kusano 2b45e8
/*********************************************************************/
kusano 2b45e8
/* Copyright 2009, 2010 The University of Texas at Austin.           */
kusano 2b45e8
/* All rights reserved.                                              */
kusano 2b45e8
/*                                                                   */
kusano 2b45e8
/* Redistribution and use in source and binary forms, with or        */
kusano 2b45e8
/* without modification, are permitted provided that the following   */
kusano 2b45e8
/* conditions are met:                                               */
kusano 2b45e8
/*                                                                   */
kusano 2b45e8
/*   1. Redistributions of source code must retain the above         */
kusano 2b45e8
/*      copyright notice, this list of conditions and the following  */
kusano 2b45e8
/*      disclaimer.                                                  */
kusano 2b45e8
/*                                                                   */
kusano 2b45e8
/*   2. Redistributions in binary form must reproduce the above      */
kusano 2b45e8
/*      copyright notice, this list of conditions and the following  */
kusano 2b45e8
/*      disclaimer in the documentation and/or other materials       */
kusano 2b45e8
/*      provided with the distribution.                              */
kusano 2b45e8
/*                                                                   */
kusano 2b45e8
/*    THIS  SOFTWARE IS PROVIDED  BY THE  UNIVERSITY OF  TEXAS AT    */
kusano 2b45e8
/*    AUSTIN  ``AS IS''  AND ANY  EXPRESS OR  IMPLIED WARRANTIES,    */
kusano 2b45e8
/*    INCLUDING, BUT  NOT LIMITED  TO, THE IMPLIED  WARRANTIES OF    */
kusano 2b45e8
/*    MERCHANTABILITY  AND FITNESS FOR  A PARTICULAR  PURPOSE ARE    */
kusano 2b45e8
/*    DISCLAIMED.  IN  NO EVENT SHALL THE UNIVERSITY  OF TEXAS AT    */
kusano 2b45e8
/*    AUSTIN OR CONTRIBUTORS BE  LIABLE FOR ANY DIRECT, INDIRECT,    */
kusano 2b45e8
/*    INCIDENTAL,  SPECIAL, EXEMPLARY,  OR  CONSEQUENTIAL DAMAGES    */
kusano 2b45e8
/*    (INCLUDING, BUT  NOT LIMITED TO,  PROCUREMENT OF SUBSTITUTE    */
kusano 2b45e8
/*    GOODS  OR  SERVICES; LOSS  OF  USE,  DATA,  OR PROFITS;  OR    */
kusano 2b45e8
/*    BUSINESS INTERRUPTION) HOWEVER CAUSED  AND ON ANY THEORY OF    */
kusano 2b45e8
/*    LIABILITY, WHETHER  IN CONTRACT, STRICT  LIABILITY, OR TORT    */
kusano 2b45e8
/*    (INCLUDING NEGLIGENCE OR OTHERWISE)  ARISING IN ANY WAY OUT    */
kusano 2b45e8
/*    OF  THE  USE OF  THIS  SOFTWARE,  EVEN  IF ADVISED  OF  THE    */
kusano 2b45e8
/*    POSSIBILITY OF SUCH DAMAGE.                                    */
kusano 2b45e8
/*                                                                   */
kusano 2b45e8
/* The views and conclusions contained in the software and           */
kusano 2b45e8
/* documentation are those of the authors and should not be          */
kusano 2b45e8
/* interpreted as representing official policies, either expressed   */
kusano 2b45e8
/* or implied, of The University of Texas at Austin.                 */
kusano 2b45e8
/*********************************************************************/
kusano 2b45e8
kusano 2b45e8
#define ASSEMBLER
kusano 2b45e8
#include "common.h"
kusano 2b45e8
#include "l2param.h"
kusano 2b45e8
kusano 2b45e8
#ifdef ATOM
kusano 2b45e8
#define PREFETCH	prefetchnta
kusano 2b45e8
#define PREFETCHW	prefetcht0
kusano 2b45e8
#define PREFETCHSIZE	(8 * 6)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#ifndef WINDOWS_ABI
kusano 2b45e8
kusano 2b45e8
#define STACKSIZE	64
kusano 2b45e8
	
kusano 2b45e8
#define OLD_INCX	 8 + STACKSIZE(%rsp)
kusano 2b45e8
#define OLD_Y		16 + STACKSIZE(%rsp)
kusano 2b45e8
#define OLD_INCY	24 + STACKSIZE(%rsp)
kusano 2b45e8
#define OLD_BUFFER	32 + STACKSIZE(%rsp)
kusano 2b45e8
	
kusano 2b45e8
#define M	  %rdi
kusano 2b45e8
#define N	  %rsi
kusano 2b45e8
#define A	  %rcx
kusano 2b45e8
#define LDA	  %r8
kusano 2b45e8
#define X	  %r9
kusano 2b45e8
#define INCX	  %rdx
kusano 2b45e8
#define Y	  %rbp
kusano 2b45e8
#define INCY	  %r10
kusano 2b45e8
kusano 2b45e8
#else
kusano 2b45e8
kusano 2b45e8
#define STACKSIZE	256
kusano 2b45e8
	
kusano 2b45e8
#define OLD_ALPHA_I	 40 + STACKSIZE(%rsp)
kusano 2b45e8
#define OLD_A		 48 + STACKSIZE(%rsp)
kusano 2b45e8
#define OLD_LDA		 56 + STACKSIZE(%rsp)
kusano 2b45e8
#define OLD_X		 64 + STACKSIZE(%rsp)
kusano 2b45e8
#define OLD_INCX	 72 + STACKSIZE(%rsp)
kusano 2b45e8
#define OLD_Y		 80 + STACKSIZE(%rsp)
kusano 2b45e8
#define OLD_INCY	 88 + STACKSIZE(%rsp)
kusano 2b45e8
#define OLD_BUFFER	 96 + STACKSIZE(%rsp)
kusano 2b45e8
kusano 2b45e8
#define M	  %rcx
kusano 2b45e8
#define N	  %rdx
kusano 2b45e8
#define A	  %r8
kusano 2b45e8
#define LDA	  %r9
kusano 2b45e8
#define X	  %rdi
kusano 2b45e8
#define INCX	  %rsi
kusano 2b45e8
#define Y	  %rbp
kusano 2b45e8
#define INCY	  %r10
kusano 2b45e8
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#define I	%rax
kusano 2b45e8
#define J	%r11
kusano 2b45e8
#define A1	%r12
kusano 2b45e8
#define A2	%r13
kusano 2b45e8
kusano 2b45e8
#define Y1	%r14
kusano 2b45e8
#define BUFFER	%r15
kusano 2b45e8
kusano 2b45e8
#define ALPHA_R	%xmm14
kusano 2b45e8
#define ALPHA_I	%xmm15
kusano 2b45e8
kusano 2b45e8
#if !defined(CONJ) && !defined(XCONJ)
kusano 2b45e8
#define ADD1	   addsd
kusano 2b45e8
#define ADD2	   addsd
kusano 2b45e8
#define ADD3	   subsd
kusano 2b45e8
#define ADD4	   addsd
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if  defined(CONJ) && !defined(XCONJ)
kusano 2b45e8
#define ADD1	   addsd
kusano 2b45e8
#define ADD2	   addsd
kusano 2b45e8
#define ADD3	   addsd
kusano 2b45e8
#define ADD4	   subsd
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if !defined(CONJ) &&  defined(XCONJ)
kusano 2b45e8
#define ADD1	   addsd
kusano 2b45e8
#define ADD2	   subsd
kusano 2b45e8
#define ADD3	   addsd
kusano 2b45e8
#define ADD4	   addsd
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
#if  defined(CONJ) &&  defined(XCONJ)
kusano 2b45e8
#define ADD1	   addsd
kusano 2b45e8
#define ADD2	   subsd
kusano 2b45e8
#define ADD3	   subsd
kusano 2b45e8
#define ADD4	   subsd
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	PROLOGUE
kusano 2b45e8
	PROFCODE
kusano 2b45e8
kusano 2b45e8
	subq	$STACKSIZE, %rsp
kusano 2b45e8
	movq	%rbx,  0(%rsp)
kusano 2b45e8
	movq	%rbp,  8(%rsp)
kusano 2b45e8
	movq	%r12, 16(%rsp)
kusano 2b45e8
	movq	%r13, 24(%rsp)
kusano 2b45e8
	movq	%r14, 32(%rsp)
kusano 2b45e8
	movq	%r15, 40(%rsp)
kusano 2b45e8
kusano 2b45e8
#ifdef WINDOWS_ABI
kusano 2b45e8
	movq	%rdi,    48(%rsp)
kusano 2b45e8
	movq	%rsi,    56(%rsp)
kusano 2b45e8
	movups	%xmm6,   64(%rsp)
kusano 2b45e8
	movups	%xmm7,   80(%rsp)
kusano 2b45e8
	movups	%xmm8,   96(%rsp)
kusano 2b45e8
	movups	%xmm9,  112(%rsp)
kusano 2b45e8
	movups	%xmm10, 128(%rsp)
kusano 2b45e8
	movups	%xmm11, 144(%rsp)
kusano 2b45e8
	movups	%xmm12, 160(%rsp)
kusano 2b45e8
	movups	%xmm13, 176(%rsp)
kusano 2b45e8
	movups	%xmm14, 192(%rsp)
kusano 2b45e8
	movups	%xmm15, 208(%rsp)
kusano 2b45e8
kusano 2b45e8
	movq	OLD_A,     A
kusano 2b45e8
	movq	OLD_LDA,   LDA
kusano 2b45e8
	movq	OLD_X,     X
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm3,       %xmm0
kusano 2b45e8
	movsd	OLD_ALPHA_I, %xmm1
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movq	OLD_INCX,  INCX
kusano 2b45e8
	movq	OLD_Y,     Y
kusano 2b45e8
	movq	OLD_INCY,  INCY
kusano 2b45e8
	movq	OLD_BUFFER, BUFFER
kusano 2b45e8
kusano 2b45e8
	salq	$ZBASE_SHIFT,   LDA
kusano 2b45e8
	salq	$ZBASE_SHIFT,   INCX
kusano 2b45e8
	salq	$ZBASE_SHIFT,   INCY
kusano 2b45e8
kusano 2b45e8
	movaps	%xmm0, ALPHA_R
kusano 2b45e8
	movaps	%xmm1, ALPHA_I
kusano 2b45e8
kusano 2b45e8
	subq	$-16 * SIZE, A
kusano 2b45e8
	
kusano 2b45e8
	testq	M, M
kusano 2b45e8
	jle	.L999
kusano 2b45e8
	testq	N, N
kusano 2b45e8
	jle	.L999
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
	movq	BUFFER, Y1
kusano 2b45e8
kusano 2b45e8
	pxor	%xmm4, %xmm4
kusano 2b45e8
kusano 2b45e8
	movq	M,   %rax
kusano 2b45e8
	addq	$8,  %rax
kusano 2b45e8
	sarq	$3,  %rax
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L01:
kusano 2b45e8
	movapd	%xmm4,  0 * SIZE(Y1)
kusano 2b45e8
	movapd	%xmm4,  2 * SIZE(Y1)
kusano 2b45e8
	movapd	%xmm4,  4 * SIZE(Y1)
kusano 2b45e8
	movapd	%xmm4,  6 * SIZE(Y1)
kusano 2b45e8
	movapd	%xmm4,  8 * SIZE(Y1)
kusano 2b45e8
	movapd	%xmm4, 10 * SIZE(Y1)
kusano 2b45e8
	movapd	%xmm4, 12 * SIZE(Y1)
kusano 2b45e8
	movapd	%xmm4, 14 * SIZE(Y1)
kusano 2b45e8
kusano 2b45e8
	subq	$-16 * SIZE, Y1
kusano 2b45e8
	decq	%rax
kusano 2b45e8
	jg	.L01
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L10:
kusano 2b45e8
	movq	N,  J
kusano 2b45e8
	sarq	$1, J
kusano 2b45e8
	jle	.L20
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L11:
kusano 2b45e8
	leaq	16 * SIZE(BUFFER), Y1
kusano 2b45e8
	movq	A,  A1
kusano 2b45e8
	leaq	(A,  LDA, 1), A2
kusano 2b45e8
	leaq	(A,  LDA, 2), A
kusano 2b45e8
kusano 2b45e8
	movsd	0 * SIZE(X), %xmm4
kusano 2b45e8
	movsd	1 * SIZE(X), %xmm5
kusano 2b45e8
	addq	INCX, X
kusano 2b45e8
	movsd	0 * SIZE(X), %xmm6
kusano 2b45e8
	movsd	1 * SIZE(X), %xmm7
kusano 2b45e8
	addq	INCX, X
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm4,  %xmm8
kusano 2b45e8
	mulsd	ALPHA_R,  %xmm4
kusano 2b45e8
	mulsd	ALPHA_I,  %xmm8
kusano 2b45e8
	movapd	%xmm6, %xmm10
kusano 2b45e8
	mulsd	ALPHA_R,  %xmm6
kusano 2b45e8
	mulsd	ALPHA_I,  %xmm10
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm5,  %xmm9
kusano 2b45e8
	mulsd	ALPHA_I,  %xmm9
kusano 2b45e8
	mulsd	ALPHA_R,  %xmm5
kusano 2b45e8
	movapd	%xmm7, %xmm11
kusano 2b45e8
	mulsd	ALPHA_I,  %xmm11
kusano 2b45e8
	mulsd	ALPHA_R,  %xmm7
kusano 2b45e8
kusano 2b45e8
#ifndef XCONJ
kusano 2b45e8
	subsd	%xmm9,  %xmm4
kusano 2b45e8
	addsd	%xmm8,  %xmm5
kusano 2b45e8
	subsd	%xmm11, %xmm6
kusano 2b45e8
	addsd	%xmm10, %xmm7
kusano 2b45e8
#else
kusano 2b45e8
	addsd	%xmm9,  %xmm4
kusano 2b45e8
	subsd	%xmm8,  %xmm5
kusano 2b45e8
	addsd	%xmm11, %xmm6
kusano 2b45e8
	subsd	%xmm10, %xmm7
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movsd	 -16 * SIZE(Y1), %xmm0
kusano 2b45e8
	movsd	 -15 * SIZE(Y1), %xmm1
kusano 2b45e8
	movsd	 -14 * SIZE(Y1), %xmm2
kusano 2b45e8
	movsd	 -13 * SIZE(Y1), %xmm3
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
	movq	M,   I
kusano 2b45e8
	sarq	$2,  I
kusano 2b45e8
	jle	.L15
kusano 2b45e8
kusano 2b45e8
	movsd	 -16 * SIZE(A1), %xmm8
kusano 2b45e8
	movsd	 -15 * SIZE(A1), %xmm9
kusano 2b45e8
	movsd	 -14 * SIZE(A1), %xmm10
kusano 2b45e8
	movsd	 -13 * SIZE(A1), %xmm11
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm8,  %xmm12
kusano 2b45e8
	mulsd	%xmm4,  %xmm8
kusano 2b45e8
	mulsd	%xmm5,  %xmm12
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm10, %xmm13
kusano 2b45e8
	mulsd	%xmm4,  %xmm10
kusano 2b45e8
	ADD1	%xmm8,  %xmm0
kusano 2b45e8
	movsd	 -16 * SIZE(A2), %xmm8
kusano 2b45e8
	mulsd	%xmm5,  %xmm13
kusano 2b45e8
	ADD2	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	decq	 I
kusano 2b45e8
	jle	 .L14
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L13:
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	(PREFETCHSIZE + 0) * SIZE(A2)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm9,  %xmm12
kusano 2b45e8
	mulsd	%xmm5,  %xmm9
kusano 2b45e8
	ADD1	%xmm10, %xmm2
kusano 2b45e8
	movsd	 -14 * SIZE(A2), %xmm10
kusano 2b45e8
	mulsd	%xmm4,  %xmm12
kusano 2b45e8
	ADD2	%xmm13, %xmm3
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm11, %xmm13
kusano 2b45e8
	mulsd	%xmm5,  %xmm11
kusano 2b45e8
	ADD3	%xmm9,  %xmm0
kusano 2b45e8
	movsd	 -15 * SIZE(A2), %xmm9
kusano 2b45e8
	mulsd	%xmm4,  %xmm13
kusano 2b45e8
	ADD4	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm8, %xmm12
kusano 2b45e8
	mulsd	%xmm6,  %xmm8
kusano 2b45e8
	ADD3	%xmm11, %xmm2
kusano 2b45e8
	movsd	 -13 * SIZE(A2), %xmm11
kusano 2b45e8
	mulsd	%xmm7,  %xmm12
kusano 2b45e8
	ADD4	%xmm13, %xmm3
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm10, %xmm13
kusano 2b45e8
	mulsd	%xmm6,  %xmm10
kusano 2b45e8
	ADD1	%xmm8, %xmm0
kusano 2b45e8
	movsd	 -12 * SIZE(A1), %xmm8
kusano 2b45e8
	mulsd	%xmm7,  %xmm13
kusano 2b45e8
	ADD2	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm9, %xmm12
kusano 2b45e8
	mulsd	%xmm7,  %xmm9
kusano 2b45e8
	ADD1	%xmm10, %xmm2
kusano 2b45e8
	movsd	 -10 * SIZE(A1), %xmm10
kusano 2b45e8
	mulsd	%xmm6,  %xmm12
kusano 2b45e8
	ADD2	%xmm13, %xmm3
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm11, %xmm13
kusano 2b45e8
	mulsd	%xmm7,  %xmm11
kusano 2b45e8
	ADD3	%xmm9,  %xmm0
kusano 2b45e8
	movsd	 -11 * SIZE(A1), %xmm9
kusano 2b45e8
	mulsd	%xmm6,  %xmm13
kusano 2b45e8
	ADD4	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm8,  %xmm12
kusano 2b45e8
	movlpd	 %xmm0, -16 * SIZE(Y1)
kusano 2b45e8
	mulsd	%xmm4,  %xmm8
kusano 2b45e8
	movsd	 -12 * SIZE(Y1), %xmm0
kusano 2b45e8
	ADD3	%xmm11, %xmm2
kusano 2b45e8
	movsd	  -9 * SIZE(A1), %xmm11
kusano 2b45e8
	mulsd	%xmm5,  %xmm12
kusano 2b45e8
	movlpd	 %xmm1, -15 * SIZE(Y1)
kusano 2b45e8
	ADD4	%xmm13, %xmm3
kusano 2b45e8
	movsd	 -11 * SIZE(Y1), %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm10, %xmm13
kusano 2b45e8
	movlpd	 %xmm2, -14 * SIZE(Y1)
kusano 2b45e8
	mulsd	%xmm4,  %xmm10
kusano 2b45e8
	movlpd	 %xmm3, -13 * SIZE(Y1)
kusano 2b45e8
	ADD1	%xmm8,  %xmm0
kusano 2b45e8
	movsd	 -12 * SIZE(A2), %xmm8
kusano 2b45e8
	mulsd	%xmm5,  %xmm13
kusano 2b45e8
	movsd	 -10 * SIZE(Y1), %xmm2
kusano 2b45e8
	ADD2	%xmm12, %xmm1
kusano 2b45e8
	movsd	  -9 * SIZE(Y1), %xmm3
kusano 2b45e8
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	(PREFETCHSIZE + 0) * SIZE(A1)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm9,  %xmm12
kusano 2b45e8
	mulsd	%xmm5,  %xmm9
kusano 2b45e8
	ADD1	%xmm10, %xmm2
kusano 2b45e8
	movsd	 -10 * SIZE(A2), %xmm10
kusano 2b45e8
	mulsd	%xmm4,  %xmm12
kusano 2b45e8
	ADD2	%xmm13, %xmm3
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm11, %xmm13
kusano 2b45e8
	mulsd	%xmm5,  %xmm11
kusano 2b45e8
	ADD3	%xmm9,  %xmm0
kusano 2b45e8
	movsd	 -11 * SIZE(A2), %xmm9
kusano 2b45e8
	mulsd	%xmm4,  %xmm13
kusano 2b45e8
	ADD4	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm8, %xmm12
kusano 2b45e8
	mulsd	%xmm6,  %xmm8
kusano 2b45e8
	ADD3	%xmm11, %xmm2
kusano 2b45e8
	movsd	  -9 * SIZE(A2), %xmm11
kusano 2b45e8
	mulsd	%xmm7,  %xmm12
kusano 2b45e8
	ADD4	%xmm13, %xmm3
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm10, %xmm13
kusano 2b45e8
	mulsd	%xmm6,  %xmm10
kusano 2b45e8
	ADD1	%xmm8, %xmm0
kusano 2b45e8
	movsd	  -8 * SIZE(A1), %xmm8
kusano 2b45e8
	mulsd	%xmm7,  %xmm13
kusano 2b45e8
	ADD2	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm9, %xmm12
kusano 2b45e8
	mulsd	%xmm7,  %xmm9
kusano 2b45e8
	ADD1	%xmm10, %xmm2
kusano 2b45e8
	movsd	  -6 * SIZE(A1), %xmm10
kusano 2b45e8
	mulsd	%xmm6,  %xmm12
kusano 2b45e8
	ADD2	%xmm13, %xmm3
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm11, %xmm13
kusano 2b45e8
	mulsd	%xmm7,  %xmm11
kusano 2b45e8
	ADD3	%xmm9,  %xmm0
kusano 2b45e8
	movsd	  -7 * SIZE(A1), %xmm9
kusano 2b45e8
	mulsd	%xmm6,  %xmm13
kusano 2b45e8
	ADD4	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm8,  %xmm12
kusano 2b45e8
	movlpd	 %xmm0, -12 * SIZE(Y1)
kusano 2b45e8
	mulsd	%xmm4,  %xmm8
kusano 2b45e8
	movsd	  -8 * SIZE(Y1), %xmm0
kusano 2b45e8
	ADD3	%xmm11, %xmm2
kusano 2b45e8
	movsd	  -5 * SIZE(A1), %xmm11
kusano 2b45e8
	mulsd	%xmm5,  %xmm12
kusano 2b45e8
	movlpd	 %xmm1, -11 * SIZE(Y1)
kusano 2b45e8
	ADD4	%xmm13, %xmm3
kusano 2b45e8
	movsd	  -7 * SIZE(Y1), %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm10, %xmm13
kusano 2b45e8
	movlpd	 %xmm2, -10 * SIZE(Y1)
kusano 2b45e8
	mulsd	%xmm4,  %xmm10
kusano 2b45e8
	movsd	  -6 * SIZE(Y1), %xmm2
kusano 2b45e8
	ADD1	%xmm8,  %xmm0
kusano 2b45e8
	movsd	  -8 * SIZE(A2), %xmm8
kusano 2b45e8
	mulsd	%xmm5,  %xmm13
kusano 2b45e8
	movlpd	 %xmm3,  -9 * SIZE(Y1)
kusano 2b45e8
	ADD2	%xmm12, %xmm1
kusano 2b45e8
	movsd	  -5 * SIZE(Y1), %xmm3
kusano 2b45e8
kusano 2b45e8
	subq	 $-8 * SIZE, A1
kusano 2b45e8
	subq	 $-8 * SIZE, A2
kusano 2b45e8
	subq	 $-8 * SIZE, Y1
kusano 2b45e8
kusano 2b45e8
	subq	 $1, I
kusano 2b45e8
	BRANCH
kusano 2b45e8
	jg	.L13
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L14:
kusano 2b45e8
	movapd	%xmm9,  %xmm12
kusano 2b45e8
	mulsd	%xmm5,  %xmm9
kusano 2b45e8
	ADD1	%xmm10, %xmm2
kusano 2b45e8
	movsd	 -14 * SIZE(A2), %xmm10
kusano 2b45e8
	mulsd	%xmm4,  %xmm12
kusano 2b45e8
	ADD2	%xmm13, %xmm3
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm11, %xmm13
kusano 2b45e8
	mulsd	%xmm5,  %xmm11
kusano 2b45e8
	ADD3	%xmm9,  %xmm0
kusano 2b45e8
	movsd	 -15 * SIZE(A2), %xmm9
kusano 2b45e8
	mulsd	%xmm4,  %xmm13
kusano 2b45e8
	ADD4	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm8, %xmm12
kusano 2b45e8
	mulsd	%xmm6,  %xmm8
kusano 2b45e8
	ADD3	%xmm11, %xmm2
kusano 2b45e8
	movsd	 -13 * SIZE(A2), %xmm11
kusano 2b45e8
	mulsd	%xmm7,  %xmm12
kusano 2b45e8
	ADD4	%xmm13, %xmm3
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm10, %xmm13
kusano 2b45e8
	mulsd	%xmm6,  %xmm10
kusano 2b45e8
	ADD1	%xmm8, %xmm0
kusano 2b45e8
	movsd	 -12 * SIZE(A1), %xmm8
kusano 2b45e8
	mulsd	%xmm7,  %xmm13
kusano 2b45e8
	ADD2	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm9, %xmm12
kusano 2b45e8
	mulsd	%xmm7,  %xmm9
kusano 2b45e8
	ADD1	%xmm10, %xmm2
kusano 2b45e8
	movsd	 -10 * SIZE(A1), %xmm10
kusano 2b45e8
	mulsd	%xmm6,  %xmm12
kusano 2b45e8
	ADD2	%xmm13, %xmm3
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm11, %xmm13
kusano 2b45e8
	mulsd	%xmm7,  %xmm11
kusano 2b45e8
	ADD3	%xmm9,  %xmm0
kusano 2b45e8
	movsd	 -11 * SIZE(A1), %xmm9
kusano 2b45e8
	mulsd	%xmm6,  %xmm13
kusano 2b45e8
	ADD4	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm8,  %xmm12
kusano 2b45e8
	movlpd	 %xmm0, -16 * SIZE(Y1)
kusano 2b45e8
	mulsd	%xmm4,  %xmm8
kusano 2b45e8
	movsd	 -12 * SIZE(Y1), %xmm0
kusano 2b45e8
	ADD3	%xmm11, %xmm2
kusano 2b45e8
	movsd	  -9 * SIZE(A1), %xmm11
kusano 2b45e8
	mulsd	%xmm5,  %xmm12
kusano 2b45e8
	movlpd	 %xmm1, -15 * SIZE(Y1)
kusano 2b45e8
	ADD4	%xmm13, %xmm3
kusano 2b45e8
	movsd	 -11 * SIZE(Y1), %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm10, %xmm13
kusano 2b45e8
	movlpd	 %xmm2, -14 * SIZE(Y1)
kusano 2b45e8
	mulsd	%xmm4,  %xmm10
kusano 2b45e8
	movlpd	 %xmm3, -13 * SIZE(Y1)
kusano 2b45e8
	ADD1	%xmm8,  %xmm0
kusano 2b45e8
	movsd	 -12 * SIZE(A2), %xmm8
kusano 2b45e8
	mulsd	%xmm5,  %xmm13
kusano 2b45e8
	movsd	 -10 * SIZE(Y1), %xmm2
kusano 2b45e8
	ADD2	%xmm12, %xmm1
kusano 2b45e8
	movsd	  -9 * SIZE(Y1), %xmm3
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm9,  %xmm12
kusano 2b45e8
	mulsd	%xmm5,  %xmm9
kusano 2b45e8
	ADD1	%xmm10, %xmm2
kusano 2b45e8
	movsd	 -10 * SIZE(A2), %xmm10
kusano 2b45e8
	mulsd	%xmm4,  %xmm12
kusano 2b45e8
	ADD2	%xmm13, %xmm3
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm11, %xmm13
kusano 2b45e8
	mulsd	%xmm5,  %xmm11
kusano 2b45e8
	ADD3	%xmm9,  %xmm0
kusano 2b45e8
	movsd	 -11 * SIZE(A2), %xmm9
kusano 2b45e8
	mulsd	%xmm4,  %xmm13
kusano 2b45e8
	ADD4	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm8, %xmm12
kusano 2b45e8
	mulsd	%xmm6,  %xmm8
kusano 2b45e8
	ADD3	%xmm11, %xmm2
kusano 2b45e8
	movsd	  -9 * SIZE(A2), %xmm11
kusano 2b45e8
	mulsd	%xmm7,  %xmm12
kusano 2b45e8
	ADD4	%xmm13, %xmm3
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm10, %xmm13
kusano 2b45e8
	mulsd	%xmm6,  %xmm10
kusano 2b45e8
	ADD1	%xmm8, %xmm0
kusano 2b45e8
	mulsd	%xmm7,  %xmm13
kusano 2b45e8
	ADD2	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm9, %xmm12
kusano 2b45e8
	mulsd	%xmm7,  %xmm9
kusano 2b45e8
	ADD1	%xmm10, %xmm2
kusano 2b45e8
	mulsd	%xmm6,  %xmm12
kusano 2b45e8
	ADD2	%xmm13, %xmm3
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm11, %xmm13
kusano 2b45e8
	mulsd	%xmm7,  %xmm11
kusano 2b45e8
	ADD3	%xmm9,  %xmm0
kusano 2b45e8
	mulsd	%xmm6,  %xmm13
kusano 2b45e8
	ADD4	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	ADD3	%xmm11, %xmm2
kusano 2b45e8
	movlpd	 %xmm0, -12 * SIZE(Y1)
kusano 2b45e8
	movsd	  -8 * SIZE(Y1), %xmm0
kusano 2b45e8
	ADD4	%xmm13, %xmm3
kusano 2b45e8
	movlpd	 %xmm1, -11 * SIZE(Y1)
kusano 2b45e8
	movsd	  -7 * SIZE(Y1), %xmm1
kusano 2b45e8
kusano 2b45e8
	movlpd	 %xmm2, -10 * SIZE(Y1)
kusano 2b45e8
	movsd	  -6 * SIZE(Y1), %xmm2
kusano 2b45e8
	movlpd	 %xmm3,  -9 * SIZE(Y1)
kusano 2b45e8
	movsd	  -5 * SIZE(Y1), %xmm3
kusano 2b45e8
kusano 2b45e8
	subq	 $-8 * SIZE, A1
kusano 2b45e8
	subq	 $-8 * SIZE, A2
kusano 2b45e8
	subq	 $-8 * SIZE, Y1
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L15:
kusano 2b45e8
	testq	$2, M
kusano 2b45e8
	je	.L17
kusano 2b45e8
kusano 2b45e8
	movsd	 -16 * SIZE(A1), %xmm8
kusano 2b45e8
	movsd	 -15 * SIZE(A1), %xmm9
kusano 2b45e8
	movsd	 -14 * SIZE(A1), %xmm10
kusano 2b45e8
	movsd	 -13 * SIZE(A1), %xmm11
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm8,  %xmm12
kusano 2b45e8
	mulsd	%xmm4,  %xmm8
kusano 2b45e8
	mulsd	%xmm5,  %xmm12
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm10, %xmm13
kusano 2b45e8
	mulsd	%xmm4,  %xmm10
kusano 2b45e8
	ADD1	%xmm8,  %xmm0
kusano 2b45e8
	movsd	 -16 * SIZE(A2), %xmm8
kusano 2b45e8
	mulsd	%xmm5,  %xmm13
kusano 2b45e8
	ADD2	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm9,  %xmm12
kusano 2b45e8
	mulsd	%xmm5,  %xmm9
kusano 2b45e8
	ADD1	%xmm10, %xmm2
kusano 2b45e8
	movsd	 -14 * SIZE(A2), %xmm10
kusano 2b45e8
	mulsd	%xmm4,  %xmm12
kusano 2b45e8
	ADD2	%xmm13, %xmm3
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm11, %xmm13
kusano 2b45e8
	mulsd	%xmm5,  %xmm11
kusano 2b45e8
	ADD3	%xmm9,  %xmm0
kusano 2b45e8
	movsd	 -15 * SIZE(A2), %xmm9
kusano 2b45e8
	mulsd	%xmm4,  %xmm13
kusano 2b45e8
	ADD4	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm8, %xmm12
kusano 2b45e8
	mulsd	%xmm6,  %xmm8
kusano 2b45e8
	ADD3	%xmm11, %xmm2
kusano 2b45e8
	movsd	 -13 * SIZE(A2), %xmm11
kusano 2b45e8
	mulsd	%xmm7,  %xmm12
kusano 2b45e8
	ADD4	%xmm13, %xmm3
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm10, %xmm13
kusano 2b45e8
	mulsd	%xmm6,  %xmm10
kusano 2b45e8
	ADD1	%xmm8, %xmm0
kusano 2b45e8
	mulsd	%xmm7,  %xmm13
kusano 2b45e8
	ADD2	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm9, %xmm12
kusano 2b45e8
	mulsd	%xmm7,  %xmm9
kusano 2b45e8
	ADD1	%xmm10, %xmm2
kusano 2b45e8
	mulsd	%xmm6,  %xmm12
kusano 2b45e8
	ADD2	%xmm13, %xmm3
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm11, %xmm13
kusano 2b45e8
	mulsd	%xmm7,  %xmm11
kusano 2b45e8
	ADD3	%xmm9,  %xmm0
kusano 2b45e8
	mulsd	%xmm6,  %xmm13
kusano 2b45e8
	ADD4	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	ADD3	%xmm11, %xmm2
kusano 2b45e8
	ADD4	%xmm13, %xmm3
kusano 2b45e8
kusano 2b45e8
	movlpd	 %xmm0, -16 * SIZE(Y1)
kusano 2b45e8
	movlpd	 %xmm1, -15 * SIZE(Y1)
kusano 2b45e8
	movsd	 -12 * SIZE(Y1), %xmm0
kusano 2b45e8
	movsd	 -11 * SIZE(Y1), %xmm1
kusano 2b45e8
kusano 2b45e8
	movlpd	 %xmm2, -14 * SIZE(Y1)
kusano 2b45e8
	movlpd	 %xmm3, -13 * SIZE(Y1)
kusano 2b45e8
kusano 2b45e8
kusano 2b45e8
	addq	 $4 * SIZE, A1
kusano 2b45e8
	addq	 $4 * SIZE, A2
kusano 2b45e8
	addq	 $4 * SIZE, Y1
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L17:
kusano 2b45e8
	testq	$1, M
kusano 2b45e8
	je	.L19
kusano 2b45e8
kusano 2b45e8
	movsd	 -16 * SIZE(A1), %xmm8
kusano 2b45e8
	movsd	 -15 * SIZE(A1), %xmm9
kusano 2b45e8
	movsd	 -16 * SIZE(A2), %xmm10
kusano 2b45e8
	movsd	 -15 * SIZE(A2), %xmm11
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm8,  %xmm12
kusano 2b45e8
	mulsd	%xmm4,  %xmm8
kusano 2b45e8
	mulsd	%xmm5,  %xmm12
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm9,  %xmm13
kusano 2b45e8
	mulsd	%xmm5,  %xmm9
kusano 2b45e8
	ADD1	%xmm8,  %xmm0
kusano 2b45e8
	mulsd	%xmm4,  %xmm13
kusano 2b45e8
	ADD2	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm10, %xmm12
kusano 2b45e8
	mulsd	%xmm6,  %xmm10
kusano 2b45e8
	ADD3	%xmm9,  %xmm0
kusano 2b45e8
	mulsd	%xmm7,  %xmm12
kusano 2b45e8
	ADD4	%xmm13, %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm11, %xmm13
kusano 2b45e8
	mulsd	%xmm7,  %xmm11
kusano 2b45e8
	ADD1	%xmm10, %xmm0
kusano 2b45e8
	mulsd	%xmm6,  %xmm13
kusano 2b45e8
	ADD2	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	ADD3	%xmm11, %xmm0
kusano 2b45e8
	ADD4	%xmm13, %xmm1
kusano 2b45e8
kusano 2b45e8
	movlpd	 %xmm0, -16 * SIZE(Y1)
kusano 2b45e8
	movlpd	 %xmm1, -15 * SIZE(Y1)
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L19:
kusano 2b45e8
	decq	J
kusano 2b45e8
	jg	.L11
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L20:
kusano 2b45e8
	testq	$1, N
kusano 2b45e8
	jle	.L90
kusano 2b45e8
kusano 2b45e8
	leaq	16 * SIZE(BUFFER), Y1
kusano 2b45e8
	movq	A,  A1
kusano 2b45e8
kusano 2b45e8
	movsd	0 * SIZE(X), %xmm4
kusano 2b45e8
	movsd	1 * SIZE(X), %xmm5
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm4,  %xmm8
kusano 2b45e8
	mulsd	ALPHA_R,  %xmm4
kusano 2b45e8
	mulsd	ALPHA_I,  %xmm8
kusano 2b45e8
	movapd	%xmm5,  %xmm9
kusano 2b45e8
	mulsd	ALPHA_I,  %xmm9
kusano 2b45e8
	mulsd	ALPHA_R,  %xmm5
kusano 2b45e8
kusano 2b45e8
#ifndef XCONJ
kusano 2b45e8
	subsd	%xmm9,  %xmm4
kusano 2b45e8
	addsd	%xmm8,  %xmm5
kusano 2b45e8
#else
kusano 2b45e8
	addsd	%xmm9,  %xmm4
kusano 2b45e8
	subsd	%xmm8,  %xmm5
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movsd	 -16 * SIZE(Y1), %xmm0
kusano 2b45e8
	movsd	 -15 * SIZE(Y1), %xmm1
kusano 2b45e8
	movsd	 -14 * SIZE(Y1), %xmm2
kusano 2b45e8
	movsd	 -13 * SIZE(Y1), %xmm3
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
	movq	M,   I
kusano 2b45e8
	sarq	$2,  I
kusano 2b45e8
	jle	.L25
kusano 2b45e8
kusano 2b45e8
	movsd	 -16 * SIZE(A1), %xmm8
kusano 2b45e8
	movsd	 -15 * SIZE(A1), %xmm9
kusano 2b45e8
	movsd	 -14 * SIZE(A1), %xmm10
kusano 2b45e8
	movsd	 -13 * SIZE(A1), %xmm11
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm8,  %xmm12
kusano 2b45e8
	mulsd	%xmm4,  %xmm8
kusano 2b45e8
	mulsd	%xmm5,  %xmm12
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm10, %xmm13
kusano 2b45e8
	mulsd	%xmm4,  %xmm10
kusano 2b45e8
	ADD1	%xmm8,  %xmm0
kusano 2b45e8
	movsd	 -12 * SIZE(A1), %xmm8
kusano 2b45e8
	mulsd	%xmm5,  %xmm13
kusano 2b45e8
	ADD2	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	decq	 I
kusano 2b45e8
	jle	 .L24
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L23:
kusano 2b45e8
#ifdef PREFETCH
kusano 2b45e8
	PREFETCH	(PREFETCHSIZE + 0) * SIZE(A2)
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm9,  %xmm12
kusano 2b45e8
	mulsd	%xmm5,  %xmm9
kusano 2b45e8
	ADD1	%xmm10, %xmm2
kusano 2b45e8
	movsd	 -10 * SIZE(A1), %xmm10
kusano 2b45e8
	mulsd	%xmm4,  %xmm12
kusano 2b45e8
	ADD2	%xmm13, %xmm3
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm11,  %xmm13
kusano 2b45e8
	mulsd	%xmm5,  %xmm11
kusano 2b45e8
	ADD3	%xmm9,  %xmm0
kusano 2b45e8
	movsd	 -11 * SIZE(A1), %xmm9
kusano 2b45e8
	mulsd	%xmm4,  %xmm13
kusano 2b45e8
	ADD4	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm8,  %xmm12
kusano 2b45e8
	movlpd	 %xmm0, -16 * SIZE(Y1)
kusano 2b45e8
	mulsd	%xmm4,  %xmm8
kusano 2b45e8
	movsd	 -12 * SIZE(Y1), %xmm0
kusano 2b45e8
	ADD3	%xmm11, %xmm2
kusano 2b45e8
	movsd	  -9 * SIZE(A1), %xmm11
kusano 2b45e8
kusano 2b45e8
	mulsd	%xmm5,  %xmm12
kusano 2b45e8
	movlpd	 %xmm1, -15 * SIZE(Y1)
kusano 2b45e8
	ADD4	%xmm13, %xmm3
kusano 2b45e8
	movsd	 -11 * SIZE(Y1), %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm10, %xmm13
kusano 2b45e8
	movlpd	 %xmm2, -14 * SIZE(Y1)
kusano 2b45e8
	mulsd	%xmm4,  %xmm10
kusano 2b45e8
	movsd	 -10 * SIZE(Y1), %xmm2
kusano 2b45e8
	ADD1	%xmm8,  %xmm0
kusano 2b45e8
	movsd	  -8 * SIZE(A1), %xmm8
kusano 2b45e8
	mulsd	%xmm5,  %xmm13
kusano 2b45e8
	movlpd	 %xmm3, -13 * SIZE(Y1)
kusano 2b45e8
	ADD2	%xmm12, %xmm1
kusano 2b45e8
	movsd	  -9 * SIZE(Y1), %xmm3
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm9,  %xmm12
kusano 2b45e8
	mulsd	%xmm5,  %xmm9
kusano 2b45e8
	ADD1	%xmm10, %xmm2
kusano 2b45e8
	movsd	  -6 * SIZE(A1), %xmm10
kusano 2b45e8
	mulsd	%xmm4,  %xmm12
kusano 2b45e8
	ADD2	%xmm13, %xmm3
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm11,  %xmm13
kusano 2b45e8
	mulsd	%xmm5,  %xmm11
kusano 2b45e8
	ADD3	%xmm9,  %xmm0
kusano 2b45e8
	movsd	  -7 * SIZE(A1), %xmm9
kusano 2b45e8
	mulsd	%xmm4,  %xmm13
kusano 2b45e8
	subq	 $-8 * SIZE, A1
kusano 2b45e8
	ADD4	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm8,  %xmm12
kusano 2b45e8
	movlpd	 %xmm0, -12 * SIZE(Y1)
kusano 2b45e8
	mulsd	%xmm4,  %xmm8
kusano 2b45e8
	movsd	  -8 * SIZE(Y1), %xmm0
kusano 2b45e8
	ADD3	%xmm11, %xmm2
kusano 2b45e8
	movsd	 -13 * SIZE(A1), %xmm11
kusano 2b45e8
	mulsd	%xmm5,  %xmm12
kusano 2b45e8
	movlpd	 %xmm1, -11 * SIZE(Y1)
kusano 2b45e8
	ADD4	%xmm13, %xmm3
kusano 2b45e8
	movsd	  -7 * SIZE(Y1), %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm10, %xmm13
kusano 2b45e8
	movlpd	 %xmm2, -10 * SIZE(Y1)
kusano 2b45e8
	mulsd	%xmm4,  %xmm10
kusano 2b45e8
	movsd	  -6 * SIZE(Y1), %xmm2
kusano 2b45e8
	ADD1	%xmm8,  %xmm0
kusano 2b45e8
	movsd	 -12 * SIZE(A1), %xmm8
kusano 2b45e8
	mulsd	%xmm5,  %xmm13
kusano 2b45e8
	movlpd	 %xmm3,  -9 * SIZE(Y1)
kusano 2b45e8
	ADD2	%xmm12, %xmm1
kusano 2b45e8
	movsd	  -5 * SIZE(Y1), %xmm3
kusano 2b45e8
kusano 2b45e8
	subq	 $-8 * SIZE, Y1
kusano 2b45e8
kusano 2b45e8
	subq	 $1, I
kusano 2b45e8
	BRANCH
kusano 2b45e8
	jg	.L23
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L24:
kusano 2b45e8
	movapd	%xmm9,  %xmm12
kusano 2b45e8
	mulsd	%xmm5,  %xmm9
kusano 2b45e8
	ADD1	%xmm10, %xmm2
kusano 2b45e8
	movsd	 -10 * SIZE(A1), %xmm10
kusano 2b45e8
	mulsd	%xmm4,  %xmm12
kusano 2b45e8
	ADD2	%xmm13, %xmm3
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm11,  %xmm13
kusano 2b45e8
	mulsd	%xmm5,  %xmm11
kusano 2b45e8
	ADD3	%xmm9,  %xmm0
kusano 2b45e8
	movsd	 -11 * SIZE(A1), %xmm9
kusano 2b45e8
	mulsd	%xmm4,  %xmm13
kusano 2b45e8
	ADD4	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm8,  %xmm12
kusano 2b45e8
	movlpd	 %xmm0, -16 * SIZE(Y1)
kusano 2b45e8
	mulsd	%xmm4,  %xmm8
kusano 2b45e8
	movsd	 -12 * SIZE(Y1), %xmm0
kusano 2b45e8
	ADD3	%xmm11, %xmm2
kusano 2b45e8
	movsd	  -9 * SIZE(A1), %xmm11
kusano 2b45e8
kusano 2b45e8
	mulsd	%xmm5,  %xmm12
kusano 2b45e8
	movlpd	 %xmm1, -15 * SIZE(Y1)
kusano 2b45e8
	ADD4	%xmm13, %xmm3
kusano 2b45e8
	movsd	 -11 * SIZE(Y1), %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm10, %xmm13
kusano 2b45e8
	mulsd	%xmm4,  %xmm10
kusano 2b45e8
	movlpd	 %xmm2, -14 * SIZE(Y1)
kusano 2b45e8
	ADD1	%xmm8,  %xmm0
kusano 2b45e8
	movsd	 -10 * SIZE(Y1), %xmm2
kusano 2b45e8
	mulsd	%xmm5,  %xmm13
kusano 2b45e8
	movlpd	 %xmm3, -13 * SIZE(Y1)
kusano 2b45e8
	ADD2	%xmm12, %xmm1
kusano 2b45e8
	movsd	  -9 * SIZE(Y1), %xmm3
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm9,  %xmm12
kusano 2b45e8
	mulsd	%xmm5,  %xmm9
kusano 2b45e8
	ADD1	%xmm10, %xmm2
kusano 2b45e8
	mulsd	%xmm4,  %xmm12
kusano 2b45e8
	ADD2	%xmm13, %xmm3
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm11,  %xmm13
kusano 2b45e8
	mulsd	%xmm5,  %xmm11
kusano 2b45e8
	ADD3	%xmm9,  %xmm0
kusano 2b45e8
	mulsd	%xmm4,  %xmm13
kusano 2b45e8
	ADD4	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	ADD3	%xmm11, %xmm2
kusano 2b45e8
	movlpd	 %xmm0, -12 * SIZE(Y1)
kusano 2b45e8
	movsd	  -8 * SIZE(Y1), %xmm0
kusano 2b45e8
	ADD4	%xmm13, %xmm3
kusano 2b45e8
	movlpd	 %xmm1, -11 * SIZE(Y1)
kusano 2b45e8
	movsd	  -7 * SIZE(Y1), %xmm1
kusano 2b45e8
kusano 2b45e8
	movlpd	 %xmm2, -10 * SIZE(Y1)
kusano 2b45e8
	movlpd	 %xmm3,  -9 * SIZE(Y1)
kusano 2b45e8
	movsd	  -6 * SIZE(Y1), %xmm2
kusano 2b45e8
	movsd	  -5 * SIZE(Y1), %xmm3
kusano 2b45e8
kusano 2b45e8
	subq	 $-8 * SIZE, A1
kusano 2b45e8
	subq	 $-8 * SIZE, Y1
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L25:
kusano 2b45e8
	testq	$2, M
kusano 2b45e8
	je	.L27
kusano 2b45e8
kusano 2b45e8
	movsd	 -16 * SIZE(A1), %xmm8
kusano 2b45e8
	movsd	 -15 * SIZE(A1), %xmm9
kusano 2b45e8
	movsd	 -14 * SIZE(A1), %xmm10
kusano 2b45e8
	movsd	 -13 * SIZE(A1), %xmm11
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm8,  %xmm12
kusano 2b45e8
	mulsd	%xmm4,  %xmm8
kusano 2b45e8
	mulsd	%xmm5,  %xmm12
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm10, %xmm13
kusano 2b45e8
	mulsd	%xmm4,  %xmm10
kusano 2b45e8
	ADD1	%xmm8,  %xmm0
kusano 2b45e8
	mulsd	%xmm5,  %xmm13
kusano 2b45e8
	ADD2	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm9,  %xmm12
kusano 2b45e8
	mulsd	%xmm5,  %xmm9
kusano 2b45e8
	ADD1	%xmm10, %xmm2
kusano 2b45e8
	mulsd	%xmm4,  %xmm12
kusano 2b45e8
	ADD2	%xmm13, %xmm3
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm11,  %xmm13
kusano 2b45e8
	mulsd	%xmm5,  %xmm11
kusano 2b45e8
	ADD3	%xmm9,  %xmm0
kusano 2b45e8
	mulsd	%xmm4,  %xmm13
kusano 2b45e8
	ADD4	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	ADD3	%xmm11, %xmm2
kusano 2b45e8
	movlpd	 %xmm0, -16 * SIZE(Y1)
kusano 2b45e8
	movsd	 -12 * SIZE(Y1), %xmm0
kusano 2b45e8
	ADD4	%xmm13, %xmm3
kusano 2b45e8
	movlpd	 %xmm1, -15 * SIZE(Y1)
kusano 2b45e8
	movsd	 -11 * SIZE(Y1), %xmm1
kusano 2b45e8
kusano 2b45e8
	movlpd	 %xmm2, -14 * SIZE(Y1)
kusano 2b45e8
	movlpd	 %xmm3, -13 * SIZE(Y1)
kusano 2b45e8
kusano 2b45e8
	addq	 $4 * SIZE, A1
kusano 2b45e8
	addq	 $4 * SIZE, Y1
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L27:
kusano 2b45e8
	testq	$1, M
kusano 2b45e8
	je	.L90
kusano 2b45e8
kusano 2b45e8
	movsd	 -16 * SIZE(A1), %xmm8
kusano 2b45e8
	movsd	 -15 * SIZE(A1), %xmm9
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm8,  %xmm12
kusano 2b45e8
	mulsd	%xmm4,  %xmm8
kusano 2b45e8
	mulsd	%xmm5,  %xmm12
kusano 2b45e8
kusano 2b45e8
	movapd	%xmm9,  %xmm13
kusano 2b45e8
	mulsd	%xmm5,  %xmm9
kusano 2b45e8
	ADD1	%xmm8,  %xmm0
kusano 2b45e8
	mulsd	%xmm4,  %xmm13
kusano 2b45e8
	ADD2	%xmm12, %xmm1
kusano 2b45e8
kusano 2b45e8
	ADD3	%xmm9,  %xmm0
kusano 2b45e8
	ADD4	%xmm13, %xmm1
kusano 2b45e8
kusano 2b45e8
	movlpd	 %xmm0, -16 * SIZE(Y1)
kusano 2b45e8
	movlpd	 %xmm1, -15 * SIZE(Y1)
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L90:
kusano 2b45e8
	movq	Y,  Y1
kusano 2b45e8
kusano 2b45e8
	movq	M,  %rax
kusano 2b45e8
	sarq	$3, %rax
kusano 2b45e8
	jle	.L94
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L92:
kusano 2b45e8
 	movsd	 0 * SIZE(Y), %xmm0
kusano 2b45e8
	movhpd	 1 * SIZE(Y), %xmm0
kusano 2b45e8
	addq	INCY, Y
kusano 2b45e8
kusano 2b45e8
	movsd	 0 * SIZE(Y), %xmm1
kusano 2b45e8
	movhpd	 1 * SIZE(Y), %xmm1
kusano 2b45e8
	addq	INCY, Y
kusano 2b45e8
kusano 2b45e8
	movsd	 0 * SIZE(Y), %xmm2
kusano 2b45e8
	movhpd	 1 * SIZE(Y), %xmm2
kusano 2b45e8
	addq	INCY, Y
kusano 2b45e8
kusano 2b45e8
	movsd	 0 * SIZE(Y), %xmm3
kusano 2b45e8
	movhpd	 1 * SIZE(Y), %xmm3
kusano 2b45e8
	addq	INCY, Y
kusano 2b45e8
kusano 2b45e8
 	movsd	 0 * SIZE(Y), %xmm4
kusano 2b45e8
	movhpd	 1 * SIZE(Y), %xmm4
kusano 2b45e8
	addq	INCY, Y
kusano 2b45e8
kusano 2b45e8
	movsd	 0 * SIZE(Y), %xmm5
kusano 2b45e8
	movhpd	 1 * SIZE(Y), %xmm5
kusano 2b45e8
	addq	INCY, Y
kusano 2b45e8
kusano 2b45e8
	movsd	 0 * SIZE(Y), %xmm6
kusano 2b45e8
	movhpd	 1 * SIZE(Y), %xmm6
kusano 2b45e8
	addq	INCY, Y
kusano 2b45e8
kusano 2b45e8
	movsd	 0 * SIZE(Y), %xmm7
kusano 2b45e8
	movhpd	 1 * SIZE(Y), %xmm7
kusano 2b45e8
	addq	INCY, Y
kusano 2b45e8
kusano 2b45e8
	addpd	 0 * SIZE(BUFFER), %xmm0
kusano 2b45e8
	addpd	 2 * SIZE(BUFFER), %xmm1
kusano 2b45e8
	addpd	 4 * SIZE(BUFFER), %xmm2
kusano 2b45e8
	addpd	 6 * SIZE(BUFFER), %xmm3
kusano 2b45e8
	addpd	 8 * SIZE(BUFFER), %xmm4
kusano 2b45e8
	addpd	10 * SIZE(BUFFER), %xmm5
kusano 2b45e8
	addpd	12 * SIZE(BUFFER), %xmm6
kusano 2b45e8
	addpd	14 * SIZE(BUFFER), %xmm7
kusano 2b45e8
kusano 2b45e8
	movlpd	%xmm0,  0 * SIZE(Y1)
kusano 2b45e8
	movhpd	%xmm0,  1 * SIZE(Y1)
kusano 2b45e8
	addq	INCY, Y1
kusano 2b45e8
kusano 2b45e8
	movlpd	%xmm1,  0 * SIZE(Y1)
kusano 2b45e8
	movhpd	%xmm1,  1 * SIZE(Y1)
kusano 2b45e8
	addq	INCY, Y1
kusano 2b45e8
kusano 2b45e8
	movlpd	%xmm2,  0 * SIZE(Y1)
kusano 2b45e8
	movhpd	%xmm2,  1 * SIZE(Y1)
kusano 2b45e8
	addq	INCY, Y1
kusano 2b45e8
kusano 2b45e8
	movlpd	%xmm3,  0 * SIZE(Y1)
kusano 2b45e8
	movhpd	%xmm3,  1 * SIZE(Y1)
kusano 2b45e8
	addq	INCY, Y1
kusano 2b45e8
kusano 2b45e8
	movlpd	%xmm4,  0 * SIZE(Y1)
kusano 2b45e8
	movhpd	%xmm4,  1 * SIZE(Y1)
kusano 2b45e8
	addq	INCY, Y1
kusano 2b45e8
kusano 2b45e8
	movlpd	%xmm5,  0 * SIZE(Y1)
kusano 2b45e8
	movhpd	%xmm5,  1 * SIZE(Y1)
kusano 2b45e8
	addq	INCY, Y1
kusano 2b45e8
kusano 2b45e8
	movlpd	%xmm6,  0 * SIZE(Y1)
kusano 2b45e8
	movhpd	%xmm6,  1 * SIZE(Y1)
kusano 2b45e8
	addq	INCY, Y1
kusano 2b45e8
kusano 2b45e8
	movlpd	%xmm7,  0 * SIZE(Y1)
kusano 2b45e8
	movhpd	%xmm7,  1 * SIZE(Y1)
kusano 2b45e8
	addq	INCY, Y1
kusano 2b45e8
kusano 2b45e8
	subq	$-16 * SIZE, BUFFER
kusano 2b45e8
	decq	%rax
kusano 2b45e8
	jg	.L92
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L94:
kusano 2b45e8
	testq	$7, M
kusano 2b45e8
	jle	.L999
kusano 2b45e8
kusano 2b45e8
	testq	$4, M
kusano 2b45e8
	jle	.L95
kusano 2b45e8
kusano 2b45e8
 	movsd	 0 * SIZE(Y), %xmm0
kusano 2b45e8
	movhpd	 1 * SIZE(Y), %xmm0
kusano 2b45e8
	addq	INCY, Y
kusano 2b45e8
kusano 2b45e8
	movsd	 0 * SIZE(Y), %xmm1
kusano 2b45e8
	movhpd	 1 * SIZE(Y), %xmm1
kusano 2b45e8
	addq	INCY, Y
kusano 2b45e8
kusano 2b45e8
	movsd	 0 * SIZE(Y), %xmm2
kusano 2b45e8
	movhpd	 1 * SIZE(Y), %xmm2
kusano 2b45e8
	addq	INCY, Y
kusano 2b45e8
kusano 2b45e8
	movsd	 0 * SIZE(Y), %xmm3
kusano 2b45e8
	movhpd	 1 * SIZE(Y), %xmm3
kusano 2b45e8
	addq	INCY, Y
kusano 2b45e8
kusano 2b45e8
	addpd	 0 * SIZE(BUFFER), %xmm0
kusano 2b45e8
	addpd	 2 * SIZE(BUFFER), %xmm1
kusano 2b45e8
	addpd	 4 * SIZE(BUFFER), %xmm2
kusano 2b45e8
	addpd	 6 * SIZE(BUFFER), %xmm3
kusano 2b45e8
kusano 2b45e8
	movlpd	%xmm0,  0 * SIZE(Y1)
kusano 2b45e8
	movhpd	%xmm0,  1 * SIZE(Y1)
kusano 2b45e8
	addq	INCY, Y1
kusano 2b45e8
kusano 2b45e8
	movlpd	%xmm1,  0 * SIZE(Y1)
kusano 2b45e8
	movhpd	%xmm1,  1 * SIZE(Y1)
kusano 2b45e8
	addq	INCY, Y1
kusano 2b45e8
kusano 2b45e8
	movlpd	%xmm2,  0 * SIZE(Y1)
kusano 2b45e8
	movhpd	%xmm2,  1 * SIZE(Y1)
kusano 2b45e8
	addq	INCY, Y1
kusano 2b45e8
kusano 2b45e8
	movlpd	%xmm3,  0 * SIZE(Y1)
kusano 2b45e8
	movhpd	%xmm3,  1 * SIZE(Y1)
kusano 2b45e8
	addq	INCY, Y1
kusano 2b45e8
kusano 2b45e8
	addq	$8 * SIZE, BUFFER
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L95:
kusano 2b45e8
	testq	$2, M
kusano 2b45e8
	jle	.L96
kusano 2b45e8
kusano 2b45e8
 	movsd	 0 * SIZE(Y), %xmm0
kusano 2b45e8
	movhpd	 1 * SIZE(Y), %xmm0
kusano 2b45e8
	addq	INCY, Y
kusano 2b45e8
kusano 2b45e8
	movsd	 0 * SIZE(Y), %xmm1
kusano 2b45e8
	movhpd	 1 * SIZE(Y), %xmm1
kusano 2b45e8
	addq	INCY, Y
kusano 2b45e8
kusano 2b45e8
	addpd	 0 * SIZE(BUFFER), %xmm0
kusano 2b45e8
	addpd	 2 * SIZE(BUFFER), %xmm1
kusano 2b45e8
kusano 2b45e8
	movlpd	%xmm0,  0 * SIZE(Y1)
kusano 2b45e8
	movhpd	%xmm0,  1 * SIZE(Y1)
kusano 2b45e8
	addq	INCY, Y1
kusano 2b45e8
kusano 2b45e8
	movlpd	%xmm1,  0 * SIZE(Y1)
kusano 2b45e8
	movhpd	%xmm1,  1 * SIZE(Y1)
kusano 2b45e8
	addq	INCY, Y1
kusano 2b45e8
kusano 2b45e8
	addq	$4 * SIZE, BUFFER
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L96:
kusano 2b45e8
	testq	$1, M
kusano 2b45e8
	jle	.L999
kusano 2b45e8
kusano 2b45e8
 	movsd	 0 * SIZE(Y), %xmm0
kusano 2b45e8
	movhpd	 1 * SIZE(Y), %xmm0
kusano 2b45e8
kusano 2b45e8
	addpd	 0 * SIZE(BUFFER), %xmm0
kusano 2b45e8
kusano 2b45e8
	movlpd	%xmm0,  0 * SIZE(Y1)
kusano 2b45e8
	movhpd	%xmm0,  1 * SIZE(Y1)
kusano 2b45e8
	ALIGN_3
kusano 2b45e8
kusano 2b45e8
.L999:
kusano 2b45e8
	movq	  0(%rsp), %rbx
kusano 2b45e8
	movq	  8(%rsp), %rbp
kusano 2b45e8
	movq	 16(%rsp), %r12
kusano 2b45e8
	movq	 24(%rsp), %r13
kusano 2b45e8
	movq	 32(%rsp), %r14
kusano 2b45e8
	movq	 40(%rsp), %r15
kusano 2b45e8
kusano 2b45e8
#ifdef WINDOWS_ABI
kusano 2b45e8
	movq	 48(%rsp), %rdi
kusano 2b45e8
	movq	 56(%rsp), %rsi
kusano 2b45e8
	movups	 64(%rsp), %xmm6
kusano 2b45e8
	movups	 80(%rsp), %xmm7
kusano 2b45e8
	movups	 96(%rsp), %xmm8
kusano 2b45e8
	movups	112(%rsp), %xmm9
kusano 2b45e8
	movups	128(%rsp), %xmm10
kusano 2b45e8
	movups	144(%rsp), %xmm11
kusano 2b45e8
	movups	160(%rsp), %xmm12
kusano 2b45e8
	movups	176(%rsp), %xmm13
kusano 2b45e8
	movups	192(%rsp), %xmm14
kusano 2b45e8
	movups	208(%rsp), %xmm15
kusano 2b45e8
#endif
kusano 2b45e8
kusano 2b45e8
	addq	$STACKSIZE, %rsp
kusano 2b45e8
	ret
kusano 2b45e8
kusano 2b45e8
	EPILOGUE