
#define shaodi_pi 3.1415926
__host__ void ellipke(const double kf, double& K, double&E){
    K = 0;
    E = 0;
    const double step = 0.00000025;
    for (double t = 0; t< 1; t+=step){
        K += step / sqrt((1- t*t)*(1-kf*kf*t*t));
        E += sqrt( (1-kf*kf*t*t)/(1-t*t) ) * step;
    }
//    std::cout<<K<<" "<<E<<std::endl;
}


__host__ void Demagnetization_factors( const double length, const double width, const double thickness, double& Nx, double &Ny, double& Nz){
    double    a = length/2;
    double    b = width/2;
    if(length < width){
	 a = width/2;
	 b = length/2;
    }
    double    t = thickness;
    double    d = t/2;
    double    Beta = b/a;
    double    Epsilon = sqrt(1-Beta*Beta);
    double    Tao = d/a;
    double    Zita = d/b;
    double    KTao = 1/sqrt(1+Tao*Tao);
    double    KZita = 1/sqrt(1+Zita*Zita);
    double K = 0, E = 0;
    ellipke(KZita*KZita,K,E);

    // Calculate Nz

    double u0 = 1+4*(1-((1-Zita*Zita)*E+Zita*Zita*K)/KZita)/(3*shaodi_pi*Zita);
    double u1 = 1*(1-((1+2*Zita*Zita)*E-2*Zita*Zita*K)/KZita)/(3*shaodi_pi*Zita);
    double u2 = 3*(1-(E-KZita*KZita*Zita*Zita*K)/KZita)/(16*shaodi_pi*Zita);
    double u3 = 5*(5-KZita*((5+4*Zita*Zita)*E-4*Zita*Zita*K))/(192*shaodi_pi*Zita);
    double u4 = 35*(35-pow(KZita,3)*((5+3*Zita*Zita)*(7+8*Zita*Zita)*E-Zita*Zita*(25+24*Zita*Zita)*K))/(12288*shaodi_pi*Zita);
    double u5 = 21*(315-pow(KZita,5)*((315+857*Zita*Zita+742*pow(Zita,4)+196*pow(Zita,6))*E-2*Zita*Zita*(105+203*Zita*Zita+96*pow(Zita,4))*K))/(81920*shaodi_pi*Zita);
//    std::cout<< u0 << " "<<u1 <<" "<<u2 <<" "<<u3 <<" "<< u4 << " "<< u5 <<" "<< Epsilon<<std::endl;
    double Eps0_u = u0; //pow(Epsilon,0);
    double Eps1_u = u1*pow(Epsilon,2);
    double Eps2_u = u2*pow(Epsilon,4);
    double Eps3_u = u3*pow(Epsilon,6);
    double Eps4_u = u4*pow(Epsilon,8);
    double Eps5_u = u5*pow(Epsilon,10);

    Nz = Eps0_u + Eps1_u + Eps2_u + Eps3_u + Eps4_u + Eps5_u;

// Calculate Nx

    double v0 = -2*(1-((1-Zita*Zita)*E+Zita*Zita*K)/KZita)/(3*shaodi_pi*Zita);
    double v1 = -1*(1-((1+8*Zita*Zita)*E-8*Zita*Zita*K)/KZita)/(12*shaodi_pi*Zita);
    double v2 = -1*(1-(E-5*KZita*KZita*Zita*Zita*K)/KZita)/(32*shaodi_pi*Zita);
    double v3 = -5*(5-KZita*((5-2*Zita*Zita)*E-22*Zita*Zita*K))/(1536*shaodi_pi*Zita);
    double v4 = -7*(35-pow(KZita,3)*((35-3*Zita*Zita-56*pow(Zita,4))*E-Zita*Zita*(145+136*Zita*Zita)*K))/(24576*shaodi_pi*Zita);
    double v5 = -7*(315-pow(KZita,5)*((315+147*Zita*Zita-928*pow(Zita,4)-848*pow(Zita,6))*E-4*Zita*Zita*(315+594*Zita*Zita+268*pow(Zita,4))*K))/(327680*shaodi_pi*Zita);

    double Eps0_v = v0;//Epsilon^0;
    double Eps1_v = v1*pow(Epsilon,2);
    double Eps2_v = v2*pow(Epsilon,4);
    double Eps3_v = v3*pow(Epsilon,6);
    double Eps4_v = v4*pow(Epsilon,8);
    double Eps5_v = v5*pow(Epsilon,10);

    Nx = Eps0_v + Eps1_v + Eps2_v + Eps3_v + Eps4_v + Eps5_v;

// Calculate Ny

    Ny = 1 - Nx - Nz;
    if( length < width){
	double temp = Ny;
	Ny = Nx;
	Nx = temp;
    }
    //std::cout<<Nx<<" "<<Ny<<" "<<Nz<<std::endl;
}

__host__ void Extract_linear_dependent(const double length, double sigma_l, const double width, double sigma_w, const double thickness, double sigma_tfl, double& Nx, double &Ny, double& Nz,double* lin_dep_factor){
	if (sigma_l == 0)
		sigma_l  = 1e-9;
	if (sigma_w == 0)
		sigma_w  = 1e-9;
	if (sigma_tfl == 0)
		sigma_tfl  = 0.01e-9;
 // extract Demagnetization's linear dependent factor on dimention
	Demagnetization_factors(length, width,thickness, Nx, Ny, Nz);
	double temp_Nx1 = 0, temp_Ny1 = 0, temp_Nz1 = 0;
	double temp_Nx2 = 0, temp_Ny2 = 0, temp_Nz2 = 0;
	Demagnetization_factors(length + 3*sigma_l, width,thickness, temp_Nx1, temp_Ny1, temp_Nz1);
	Demagnetization_factors(length - 3*sigma_l, width,thickness, temp_Nx2, temp_Ny2, temp_Nz2);
	lin_dep_factor[0] = (temp_Nx1 - temp_Nx2)/(6*sigma_l);
	lin_dep_factor[3] = (temp_Ny1 - temp_Ny2)/(6*sigma_l);
	lin_dep_factor[6] = (temp_Nz1 - temp_Nz2)/(6*sigma_l);

	Demagnetization_factors(length, width + 3*sigma_w, thickness, temp_Nx1, temp_Ny1, temp_Nz1);
	Demagnetization_factors(length, width - 3*sigma_w, thickness, temp_Nx2, temp_Ny2, temp_Nz2);
	lin_dep_factor[1] = (temp_Nx1 - temp_Nx2)/(6*sigma_w);
	lin_dep_factor[4] = (temp_Ny1 - temp_Ny2)/(6*sigma_w);
	lin_dep_factor[7] = (temp_Nz1 - temp_Nz2)/(6*sigma_w);

	Demagnetization_factors(length, width,thickness+3*sigma_tfl, temp_Nx1, temp_Ny1, temp_Nz1);
	Demagnetization_factors(length, width,thickness-3*sigma_tfl, temp_Nx2, temp_Ny2, temp_Nz2);
	lin_dep_factor[2] = (temp_Nx1 - temp_Nx2)/(6*sigma_tfl);
	lin_dep_factor[5] = (temp_Ny1 - temp_Ny2)/(6*sigma_tfl);
	lin_dep_factor[8] = (temp_Nz1 - temp_Nz2)/(6*sigma_tfl);
}


	.file	"tmpxft_002e9e60_00000000-6_Demagnetization_factors.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2013:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2013:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.globl	_Z7ellipkedRdS_
	.type	_Z7ellipkedRdS_, @function
_Z7ellipkedRdS_:
.LFB2008:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mulsd	%xmm0, %xmm0
	movq	%rdi, %rbp
	xorps	%xmm1, %xmm1
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rsi, %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	$0x000000000, (%rdi)
	movsd	.LC1(%rip), %xmm3
	movq	$0x000000000, (%rsi)
	movsd	%xmm0, (%rsp)
.L3:
	movaps	%xmm1, %xmm0
	movaps	%xmm3, %xmm4
	movaps	%xmm3, %xmm2
	movsd	%xmm1, 24(%rsp)
	mulsd	%xmm1, %xmm0
	subsd	%xmm0, %xmm4
	movsd	(%rsp), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	%xmm4, 16(%rsp)
	mulsd	%xmm1, %xmm0
	subsd	%xmm0, %xmm2
	movaps	%xmm4, %xmm0
	mulsd	%xmm2, %xmm0
	movsd	%xmm2, 8(%rsp)
	call	sqrt@PLT
	movsd	8(%rsp), %xmm2
	movsd	16(%rsp), %xmm4
	movaps	%xmm0, %xmm5
	movsd	.LC2(%rip), %xmm0
	divsd	%xmm4, %xmm2
	divsd	%xmm5, %xmm0
	addsd	0(%rbp), %xmm0
	movsd	%xmm0, 0(%rbp)
	movaps	%xmm2, %xmm0
	call	sqrt@PLT
	movsd	24(%rsp), %xmm1
	addsd	.LC2(%rip), %xmm1
	movsd	.LC1(%rip), %xmm3
	mulsd	.LC2(%rip), %xmm0
	addsd	(%rbx), %xmm0
	comisd	%xmm1, %xmm3
	movsd	%xmm0, (%rbx)
	ja	.L3
	addq	$40, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2008:
	.size	_Z7ellipkedRdS_, .-_Z7ellipkedRdS_
	.globl	_Z23Demagnetization_factorsdddRdS_S_
	.type	_Z23Demagnetization_factorsdddRdS_S_, @function
_Z23Demagnetization_factorsdddRdS_S_:
.LFB2009:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movaps	%xmm0, %xmm4
	movaps	%xmm1, %xmm5
	movq	%rsi, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movaps	%xmm4, %xmm1
	movaps	%xmm5, %xmm3
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movq	%rdx, %rbx
	subq	$224, %rsp
	.cfi_def_cfa_offset 256
	movsd	.LC3(%rip), %xmm0
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	comisd	%xmm4, %xmm5
	mulsd	%xmm0, %xmm1
	mulsd	%xmm0, %xmm3
	ja	.L8
	movaps	%xmm3, %xmm6
	movaps	%xmm1, %xmm3
	movaps	%xmm6, %xmm1
.L8:
	mulsd	%xmm0, %xmm2
	movaps	%xmm1, %xmm0
	movsd	.LC1(%rip), %xmm6
	movsd	%xmm5, 184(%rsp)
	divsd	%xmm3, %xmm0
	movsd	%xmm1, 16(%rsp)
	movsd	%xmm4, 176(%rsp)
	movsd	%xmm3, (%rsp)
	movsd	%xmm2, 24(%rsp)
	mulsd	%xmm0, %xmm0
	subsd	%xmm0, %xmm6
	movaps	%xmm6, %xmm0
	call	sqrt@PLT
	movsd	24(%rsp), %xmm2
	movsd	(%rsp), %xmm3
	movsd	%xmm0, 8(%rsp)
	movsd	16(%rsp), %xmm1
	movaps	%xmm2, %xmm0
	divsd	%xmm3, %xmm0
	divsd	%xmm1, %xmm2
	mulsd	%xmm0, %xmm0
	addsd	.LC1(%rip), %xmm0
	movsd	%xmm2, (%rsp)
	call	sqrt@PLT
	movsd	(%rsp), %xmm2
	movsd	.LC1(%rip), %xmm0
	movaps	%xmm2, %xmm4
	movsd	%xmm2, 24(%rsp)
	mulsd	%xmm2, %xmm4
	addsd	%xmm4, %xmm0
	movsd	%xmm4, 16(%rsp)
	call	sqrt@PLT
	movsd	.LC1(%rip), %xmm5
	leaq	208(%rsp), %rsi
	leaq	200(%rsp), %rdi
	movq	$0x000000000, 200(%rsp)
	movq	$0x000000000, 208(%rsp)
	divsd	%xmm0, %xmm5
	movaps	%xmm5, %xmm3
	movsd	%xmm5, (%rsp)
	mulsd	%xmm5, %xmm3
	movsd	%xmm3, 168(%rsp)
	movaps	%xmm3, %xmm0
	call	_Z7ellipkedRdS_
	movsd	.LC1(%rip), %xmm0
	subsd	16(%rsp), %xmm0
	movsd	208(%rsp), %xmm8
	movsd	16(%rsp), %xmm1
	movsd	200(%rsp), %xmm7
	movsd	24(%rsp), %xmm2
	mulsd	%xmm8, %xmm0
	movsd	.LC1(%rip), %xmm4
	movsd	.LC4(%rip), %xmm5
	movsd	%xmm8, 160(%rsp)
	mulsd	%xmm7, %xmm1
	movsd	%xmm2, 48(%rsp)
	movsd	%xmm7, 152(%rsp)
	mulsd	%xmm2, %xmm5
	addsd	%xmm1, %xmm0
	divsd	(%rsp), %xmm0
	subsd	%xmm0, %xmm4
	movaps	%xmm2, %xmm0
	addsd	%xmm2, %xmm0
	movsd	.LC6(%rip), %xmm1
	movsd	%xmm5, 32(%rsp)
	movsd	%xmm4, 56(%rsp)
	mulsd	%xmm2, %xmm0
	movsd	%xmm0, 24(%rsp)
	movsd	.LC5(%rip), %xmm0
	mulsd	%xmm2, %xmm0
	mulsd	%xmm2, %xmm0
	movsd	%xmm0, 40(%rsp)
	movsd	(%rsp), %xmm0
	call	pow@PLT
	movsd	48(%rsp), %xmm2
	movsd	.LC8(%rip), %xmm1
	movsd	%xmm0, 112(%rsp)
	movsd	.LC6(%rip), %xmm0
	movsd	%xmm2, 72(%rsp)
	mulsd	%xmm2, %xmm0
	mulsd	%xmm2, %xmm0
	movsd	%xmm0, 64(%rsp)
	movsd	.LC7(%rip), %xmm0
	mulsd	%xmm2, %xmm0
	mulsd	%xmm2, %xmm0
	movsd	%xmm0, 48(%rsp)
	movsd	(%rsp), %xmm0
	call	pow@PLT
	movsd	72(%rsp), %xmm2
	movsd	.LC5(%rip), %xmm1
	movsd	%xmm0, 104(%rsp)
	movaps	%xmm2, %xmm0
	call	pow@PLT
	movsd	72(%rsp), %xmm2
	movsd	.LC9(%rip), %xmm1
	movsd	%xmm0, 144(%rsp)
	movaps	%xmm2, %xmm0
	call	pow@PLT
	movsd	72(%rsp), %xmm2
	movsd	.LC5(%rip), %xmm1
	movsd	%xmm0, 136(%rsp)
	movsd	%xmm2, 128(%rsp)
	movaps	%xmm2, %xmm0
	call	pow@PLT
	movsd	8(%rsp), %xmm4
	movsd	.LC5(%rip), %xmm1
	movsd	%xmm0, 120(%rsp)
	movsd	8(%rsp), %xmm0
	mulsd	%xmm4, %xmm4
	movsd	%xmm4, 72(%rsp)
	call	pow@PLT
	movsd	.LC9(%rip), %xmm1
	movsd	%xmm0, 96(%rsp)
	movsd	8(%rsp), %xmm0
	call	pow@PLT
	movsd	.LC7(%rip), %xmm1
	movsd	%xmm0, 88(%rsp)
	movsd	8(%rsp), %xmm0
	call	pow@PLT
	movsd	.LC10(%rip), %xmm1
	movsd	%xmm0, 80(%rsp)
	movsd	8(%rsp), %xmm0
	call	pow@PLT
	movsd	.LC1(%rip), %xmm1
	movsd	128(%rsp), %xmm2
	movsd	168(%rsp), %xmm3
	addsd	24(%rsp), %xmm1
	movaps	%xmm0, %xmm9
	movsd	160(%rsp), %xmm8
	movsd	24(%rsp), %xmm0
	movsd	152(%rsp), %xmm7
	mulsd	%xmm2, %xmm3
	mulsd	%xmm8, %xmm1
	mulsd	%xmm7, %xmm0
	mulsd	%xmm2, %xmm3
	subsd	%xmm0, %xmm1
	movsd	.LC1(%rip), %xmm0
	divsd	(%rsp), %xmm1
	subsd	%xmm1, %xmm0
	divsd	32(%rsp), %xmm0
	mulsd	72(%rsp), %xmm0
	movsd	.LC5(%rip), %xmm1
	mulsd	%xmm7, %xmm3
	mulsd	56(%rsp), %xmm1
	divsd	32(%rsp), %xmm1
	addsd	.LC1(%rip), %xmm1
	addsd	%xmm1, %xmm0
	movaps	%xmm8, %xmm1
	subsd	%xmm3, %xmm1
	movaps	%xmm1, %xmm3
	movsd	.LC1(%rip), %xmm1
	divsd	(%rsp), %xmm3
	subsd	%xmm3, %xmm1
	movsd	.LC11(%rip), %xmm3
	mulsd	.LC6(%rip), %xmm1
	mulsd	%xmm2, %xmm3
	divsd	%xmm3, %xmm1
	movsd	.LC8(%rip), %xmm3
	addsd	40(%rsp), %xmm3
	mulsd	%xmm8, %xmm3
	mulsd	96(%rsp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	40(%rsp), %xmm1
	mulsd	%xmm7, %xmm1
	subsd	%xmm1, %xmm3
	mulsd	(%rsp), %xmm3
	movsd	.LC8(%rip), %xmm1
	subsd	%xmm3, %xmm1
	movsd	.LC12(%rip), %xmm3
	mulsd	.LC8(%rip), %xmm1
	mulsd	%xmm2, %xmm3
	divsd	%xmm3, %xmm1
	movsd	48(%rsp), %xmm3
	addsd	.LC13(%rip), %xmm3
	mulsd	88(%rsp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	.LC8(%rip), %xmm1
	addsd	64(%rsp), %xmm1
	mulsd	%xmm3, %xmm1
	movsd	.LC14(%rip), %xmm3
	movsd	144(%rsp), %xmm12
	movsd	%xmm8, 168(%rsp)
	mulsd	.LC20(%rip), %xmm12
	movsd	120(%rsp), %xmm11
	movsd	%xmm7, 160(%rsp)
	movsd	136(%rsp), %xmm10
	mulsd	%xmm2, %xmm3
	mulsd	.LC21(%rip), %xmm10
	mulsd	.LC24(%rip), %xmm11
	mulsd	%xmm8, %xmm1
	mulsd	%xmm2, %xmm3
	addsd	.LC15(%rip), %xmm3
	mulsd	16(%rsp), %xmm3
	mulsd	%xmm7, %xmm3
	subsd	%xmm3, %xmm1
	mulsd	112(%rsp), %xmm1
	movsd	.LC16(%rip), %xmm3
	movaps	%xmm3, %xmm6
	subsd	%xmm1, %xmm6
	mulsd	%xmm3, %xmm6
	movaps	%xmm6, %xmm1
	movsd	.LC17(%rip), %xmm6
	mulsd	%xmm2, %xmm6
	divsd	%xmm6, %xmm1
	movsd	.LC19(%rip), %xmm6
	mulsd	80(%rsp), %xmm1
	movsd	%xmm2, 80(%rsp)
	addsd	%xmm1, %xmm0
	movsd	.LC18(%rip), %xmm1
	mulsd	%xmm2, %xmm1
	mulsd	%xmm2, %xmm1
	addsd	%xmm6, %xmm1
	addsd	%xmm12, %xmm1
	addsd	%xmm10, %xmm1
	movsd	.LC22(%rip), %xmm10
	mulsd	%xmm2, %xmm10
	mulsd	%xmm8, %xmm1
	mulsd	%xmm2, %xmm10
	addsd	.LC23(%rip), %xmm10
	addsd	%xmm11, %xmm10
	mulsd	24(%rsp), %xmm10
	mulsd	%xmm7, %xmm10
	subsd	%xmm10, %xmm1
	mulsd	104(%rsp), %xmm1
	movaps	%xmm6, %xmm10
	subsd	%xmm1, %xmm10
	movsd	.LC25(%rip), %xmm1
	mulsd	%xmm10, %xmm1
	movaps	%xmm2, %xmm10
	mulsd	.LC26(%rip), %xmm10
	divsd	%xmm10, %xmm1
	mulsd	%xmm9, %xmm1
	addsd	%xmm1, %xmm0
	movsd	.LC6(%rip), %xmm1
	movsd	%xmm0, (%rbx)
	movsd	(%rsp), %xmm0
	call	pow@PLT
	movsd	80(%rsp), %xmm2
	movsd	.LC5(%rip), %xmm1
	movsd	%xmm0, 112(%rsp)
	movaps	%xmm2, %xmm0
	call	pow@PLT
	movsd	.LC8(%rip), %xmm1
	movsd	%xmm0, 152(%rsp)
	movsd	(%rsp), %xmm0
	call	pow@PLT
	movsd	80(%rsp), %xmm2
	movsd	.LC5(%rip), %xmm1
	movsd	%xmm0, 104(%rsp)
	movaps	%xmm2, %xmm0
	call	pow@PLT
	movsd	80(%rsp), %xmm2
	movsd	.LC9(%rip), %xmm1
	movsd	%xmm0, 144(%rsp)
	movaps	%xmm2, %xmm0
	call	pow@PLT
	movsd	80(%rsp), %xmm2
	movsd	.LC5(%rip), %xmm1
	movsd	%xmm0, 136(%rsp)
	movsd	%xmm2, 128(%rsp)
	movaps	%xmm2, %xmm0
	call	pow@PLT
	movsd	.LC5(%rip), %xmm1
	movsd	%xmm0, 120(%rsp)
	movsd	8(%rsp), %xmm0
	call	pow@PLT
	movsd	.LC9(%rip), %xmm1
	movsd	%xmm0, 96(%rsp)
	movsd	8(%rsp), %xmm0
	call	pow@PLT
	movsd	.LC7(%rip), %xmm1
	movsd	%xmm0, 88(%rsp)
	movsd	8(%rsp), %xmm0
	call	pow@PLT
	movsd	.LC10(%rip), %xmm1
	movsd	%xmm0, 80(%rsp)
	movsd	8(%rsp), %xmm0
	call	pow@PLT
	movsd	48(%rsp), %xmm9
	movsd	168(%rsp), %xmm8
	movaps	%xmm0, %xmm1
	movsd	.LC1(%rip), %xmm0
	addsd	48(%rsp), %xmm0
	movsd	160(%rsp), %xmm7
	movaps	%xmm8, %xmm15
	movsd	.LC16(%rip), %xmm3
	movsd	128(%rsp), %xmm2
	movq	.LC27(%rip), %xmm14
	movsd	152(%rsp), %xmm13
	mulsd	%xmm8, %xmm0
	mulsd	%xmm7, %xmm9
	subsd	%xmm9, %xmm0
	divsd	(%rsp), %xmm0
	movsd	.LC1(%rip), %xmm9
	subsd	%xmm0, %xmm9
	movsd	.LC28(%rip), %xmm0
	mulsd	%xmm2, %xmm0
	xorps	%xmm14, %xmm9
	divsd	%xmm0, %xmm9
	movsd	56(%rsp), %xmm0
	mulsd	.LC29(%rip), %xmm0
	divsd	32(%rsp), %xmm0
	mulsd	72(%rsp), %xmm9
	addsd	%xmm0, %xmm9
	movsd	.LC8(%rip), %xmm0
	mulsd	(%rsp), %xmm0
	mulsd	(%rsp), %xmm0
	mulsd	%xmm2, %xmm0
	mulsd	%xmm2, %xmm0
	mulsd	%xmm7, %xmm0
	subsd	%xmm0, %xmm15
	movsd	.LC1(%rip), %xmm0
	divsd	(%rsp), %xmm15
	subsd	%xmm15, %xmm0
	xorps	%xmm14, %xmm0
	movsd	.LC30(%rip), %xmm14
	mulsd	%xmm2, %xmm14
	divsd	%xmm14, %xmm0
	movsd	.LC8(%rip), %xmm14
	subsd	24(%rsp), %xmm14
	mulsd	%xmm8, %xmm14
	mulsd	96(%rsp), %xmm0
	addsd	%xmm0, %xmm9
	movsd	.LC31(%rip), %xmm0
	mulsd	%xmm2, %xmm0
	mulsd	%xmm2, %xmm0
	mulsd	%xmm7, %xmm0
	subsd	%xmm0, %xmm14
	mulsd	(%rsp), %xmm14
	movsd	.LC8(%rip), %xmm0
	subsd	%xmm14, %xmm0
	mulsd	.LC32(%rip), %xmm0
	movsd	.LC33(%rip), %xmm14
	mulsd	%xmm2, %xmm14
	divsd	%xmm14, %xmm0
	mulsd	88(%rsp), %xmm0
	addsd	%xmm9, %xmm0
	movaps	%xmm3, %xmm9
	subsd	64(%rsp), %xmm9
	mulsd	.LC34(%rip), %xmm13
	movsd	120(%rsp), %xmm10
	movsd	.LC19(%rip), %xmm6
	movsd	144(%rsp), %xmm12
	mulsd	.LC40(%rip), %xmm12
	movsd	136(%rsp), %xmm11
	mulsd	.LC41(%rip), %xmm11
	movsd	176(%rsp), %xmm4
	mulsd	.LC43(%rip), %xmm10
	movsd	184(%rsp), %xmm5
	subsd	%xmm13, %xmm9
	movsd	.LC35(%rip), %xmm13
	comisd	%xmm4, %xmm5
	mulsd	%xmm2, %xmm13
	mulsd	%xmm8, %xmm9
	mulsd	%xmm2, %xmm13
	addsd	.LC36(%rip), %xmm13
	mulsd	16(%rsp), %xmm13
	mulsd	%xmm7, %xmm13
	subsd	%xmm13, %xmm9
	mulsd	112(%rsp), %xmm9
	movsd	.LC38(%rip), %xmm13
	mulsd	%xmm2, %xmm13
	subsd	%xmm9, %xmm3
	movsd	.LC37(%rip), %xmm9
	mulsd	%xmm9, %xmm3
	divsd	%xmm13, %xmm3
	mulsd	80(%rsp), %xmm3
	addsd	%xmm3, %xmm0
	movsd	.LC39(%rip), %xmm3
	mulsd	%xmm2, %xmm3
	mulsd	%xmm2, %xmm3
	addsd	%xmm6, %xmm3
	subsd	%xmm12, %xmm3
	subsd	%xmm11, %xmm3
	mulsd	%xmm8, %xmm3
	movsd	.LC42(%rip), %xmm8
	mulsd	%xmm2, %xmm8
	mulsd	%xmm2, %xmm8
	mulsd	.LC44(%rip), %xmm2
	addsd	%xmm6, %xmm8
	addsd	%xmm8, %xmm10
	mulsd	40(%rsp), %xmm10
	mulsd	%xmm7, %xmm10
	subsd	%xmm10, %xmm3
	mulsd	104(%rsp), %xmm3
	subsd	%xmm3, %xmm6
	mulsd	%xmm9, %xmm6
	divsd	%xmm2, %xmm6
	mulsd	%xmm1, %xmm6
	movaps	%xmm0, %xmm1
	movsd	.LC1(%rip), %xmm0
	addsd	%xmm6, %xmm1
	movsd	%xmm1, 0(%rbp)
	subsd	%xmm1, %xmm0
	subsd	(%rbx), %xmm0
	movsd	%xmm0, (%r12)
	jbe	.L7
	movsd	0(%rbp), %xmm1
	movsd	%xmm1, (%r12)
	movsd	%xmm0, 0(%rbp)
.L7:
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	addq	$224, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2009:
	.size	_Z23Demagnetization_factorsdddRdS_S_, .-_Z23Demagnetization_factorsdddRdS_S_
	.globl	_Z24Extract_linear_dependentddddddRdS_S_Pd
	.type	_Z24Extract_linear_dependentddddddRdS_S_Pd, @function
_Z24Extract_linear_dependentddddddRdS_S_Pd:
.LFB2010:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movaps	%xmm1, %xmm6
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rcx, %rbx
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movsd	%xmm0, (%rsp)
	xorps	%xmm0, %xmm0
	movsd	%xmm2, 8(%rsp)
	movsd	%xmm4, 16(%rsp)
	movq	%fs:40, %rcx
	movq	%rcx, 120(%rsp)
	xorl	%ecx, %ecx
	ucomisd	%xmm0, %xmm1
	jp	.L15
	jne	.L15
	movsd	.LC45(%rip), %xmm6
.L15:
	xorps	%xmm0, %xmm0
	ucomisd	%xmm0, %xmm3
	jp	.L17
	jne	.L17
	movsd	.LC45(%rip), %xmm3
.L17:
	xorps	%xmm0, %xmm0
	ucomisd	%xmm0, %xmm5
	jp	.L19
	jne	.L19
	movsd	.LC46(%rip), %xmm5
.L19:
	movsd	16(%rsp), %xmm2
	movsd	(%rsp), %xmm0
	movsd	%xmm5, 56(%rsp)
	leaq	88(%rsp), %r15
	movsd	8(%rsp), %xmm1
	movsd	%xmm3, 48(%rsp)
	leaq	80(%rsp), %r14
	leaq	72(%rsp), %r13
	movsd	%xmm6, 24(%rsp)
	leaq	112(%rsp), %r12
	leaq	104(%rsp), %rbp
	call	_Z23Demagnetization_factorsdddRdS_S_
	movsd	(%rsp), %xmm0
	movq	%r15, %rdx
	movq	%r14, %rsi
	movsd	24(%rsp), %xmm6
	movsd	16(%rsp), %xmm2
	movq	%r13, %rdi
	movq	$0x000000000, 72(%rsp)
	movsd	.LC6(%rip), %xmm4
	movsd	8(%rsp), %xmm1
	movq	$0x000000000, 88(%rsp)
	movsd	%xmm6, 40(%rsp)
	movq	$0x000000000, 96(%rsp)
	mulsd	%xmm6, %xmm4
	movq	$0x000000000, 112(%rsp)
	addsd	%xmm4, %xmm0
	movsd	%xmm4, 32(%rsp)
	call	_Z23Demagnetization_factorsdddRdS_S_
	movsd	32(%rsp), %xmm4
	movsd	(%rsp), %xmm0
	leaq	96(%rsp), %rax
	movsd	16(%rsp), %xmm2
	movq	%rax, %rdi
	movq	%r12, %rdx
	movq	%rbp, %rsi
	subsd	%xmm4, %xmm0
	movsd	8(%rsp), %xmm1
	movq	%rax, 24(%rsp)
	call	_Z23Demagnetization_factorsdddRdS_S_
	movsd	40(%rsp), %xmm6
	movq	%r15, %rdx
	movsd	72(%rsp), %xmm0
	subsd	96(%rsp), %xmm0
	mulsd	.LC9(%rip), %xmm6
	movq	%r14, %rsi
	movq	%r13, %rdi
	movsd	48(%rsp), %xmm3
	movsd	.LC6(%rip), %xmm4
	movsd	8(%rsp), %xmm1
	movsd	16(%rsp), %xmm2
	mulsd	%xmm3, %xmm4
	movsd	%xmm3, 40(%rsp)
	divsd	%xmm6, %xmm0
	addsd	%xmm4, %xmm1
	movsd	%xmm4, 32(%rsp)
	movsd	%xmm0, (%rbx)
	movsd	80(%rsp), %xmm0
	subsd	104(%rsp), %xmm0
	divsd	%xmm6, %xmm0
	movsd	%xmm0, 24(%rbx)
	movsd	88(%rsp), %xmm0
	subsd	112(%rsp), %xmm0
	divsd	%xmm6, %xmm0
	movsd	%xmm0, 48(%rbx)
	movsd	(%rsp), %xmm0
	call	_Z23Demagnetization_factorsdddRdS_S_
	movsd	32(%rsp), %xmm4
	movq	24(%rsp), %rdi
	movq	%r12, %rdx
	movsd	8(%rsp), %xmm1
	movsd	16(%rsp), %xmm2
	movq	%rbp, %rsi
	movsd	(%rsp), %xmm0
	subsd	%xmm4, %xmm1
	call	_Z23Demagnetization_factorsdddRdS_S_
	movsd	40(%rsp), %xmm3
	movq	%r15, %rdx
	movsd	72(%rsp), %xmm0
	subsd	96(%rsp), %xmm0
	movsd	56(%rsp), %xmm5
	movq	%r14, %rsi
	movq	%r13, %rdi
	mulsd	.LC9(%rip), %xmm3
	movsd	16(%rsp), %xmm2
	movsd	8(%rsp), %xmm1
	movsd	%xmm5, 40(%rsp)
	divsd	%xmm3, %xmm0
	movsd	%xmm0, 8(%rbx)
	movsd	80(%rsp), %xmm0
	subsd	104(%rsp), %xmm0
	divsd	%xmm3, %xmm0
	movsd	%xmm0, 32(%rbx)
	movsd	88(%rsp), %xmm0
	subsd	112(%rsp), %xmm0
	divsd	%xmm3, %xmm0
	movsd	.LC6(%rip), %xmm3
	mulsd	%xmm5, %xmm3
	addsd	%xmm3, %xmm2
	movsd	%xmm3, 32(%rsp)
	movsd	%xmm0, 56(%rbx)
	movsd	(%rsp), %xmm0
	call	_Z23Demagnetization_factorsdddRdS_S_
	movsd	16(%rsp), %xmm2
	movsd	32(%rsp), %xmm3
	movq	%r12, %rdx
	movsd	(%rsp), %xmm0
	movq	24(%rsp), %rdi
	movq	%rbp, %rsi
	subsd	%xmm3, %xmm2
	movsd	8(%rsp), %xmm1
	call	_Z23Demagnetization_factorsdddRdS_S_
	movsd	40(%rsp), %xmm5
	mulsd	.LC9(%rip), %xmm5
	movsd	72(%rsp), %xmm0
	subsd	96(%rsp), %xmm0
	divsd	%xmm5, %xmm0
	movsd	%xmm0, 16(%rbx)
	movsd	80(%rsp), %xmm0
	subsd	104(%rsp), %xmm0
	divsd	%xmm5, %xmm0
	movsd	%xmm0, 40(%rbx)
	movsd	88(%rsp), %xmm0
	subsd	112(%rsp), %xmm0
	divsd	%xmm5, %xmm0
	movsd	%xmm0, 64(%rbx)
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	addq	$136, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2010:
	.size	_Z24Extract_linear_dependentddddddRdS_S_Pd, .-_Z24Extract_linear_dependentddddddRdS_S_Pd
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2036:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	movq	%rax, %rdi
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE2036:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.align 8
.LC2:
	.long	-1598689907
	.long	1049675511
	.align 8
.LC3:
	.long	0
	.long	1071644672
	.align 8
.LC4:
	.long	2043552312
	.long	1076025724
	.align 8
.LC5:
	.long	0
	.long	1074790400
	.align 8
.LC6:
	.long	0
	.long	1074266112
	.align 8
.LC7:
	.long	0
	.long	1075838976
	.align 8
.LC8:
	.long	0
	.long	1075052544
	.align 8
.LC9:
	.long	0
	.long	1075314688
	.align 8
.LC10:
	.long	0
	.long	1076101120
	.align 8
.LC11:
	.long	1293080650
	.long	1078534651
	.align 8
.LC12:
	.long	2043552312
	.long	1082317180
	.align 8
.LC13:
	.long	0
	.long	1075576832
	.align 8
.LC14:
	.long	0
	.long	1077411840
	.align 8
.LC15:
	.long	0
	.long	1077477376
	.align 8
.LC16:
	.long	0
	.long	1078034432
	.align 8
.LC17:
	.long	2043552312
	.long	1088608636
	.align 8
.LC18:
	.long	0
	.long	1082836992
	.align 8
.LC19:
	.long	0
	.long	1081323520
	.align 8
.LC20:
	.long	0
	.long	1082601472
	.align 8
.LC21:
	.long	0
	.long	1080590336
	.align 8
.LC22:
	.long	0
	.long	1080647680
	.align 8
.LC23:
	.long	0
	.long	1079656448
	.align 8
.LC24:
	.long	0
	.long	1079508992
	.align 8
.LC25:
	.long	0
	.long	1077215232
	.align 8
.LC26:
	.long	542608988
	.long	1091529338
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC27:
	.long	0
	.long	-2147483648
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC28:
	.long	2043552312
	.long	1078122876
	.align 8
.LC29:
	.long	0
	.long	-1073741824
	.align 8
.LC30:
	.long	1293080650
	.long	1079583227
	.align 8
.LC31:
	.long	0
	.long	1077280768
	.align 8
.LC32:
	.long	0
	.long	-1072431104
	.align 8
.LC33:
	.long	2043552312
	.long	1085462908
	.align 8
.LC34:
	.long	0
	.long	1078722560
	.align 8
.LC35:
	.long	0
	.long	1080098816
	.align 8
.LC36:
	.long	0
	.long	1080172544
	.align 8
.LC37:
	.long	0
	.long	-1071906816
	.align 8
.LC38:
	.long	2043552312
	.long	1089657212
	.align 8
.LC39:
	.long	0
	.long	1080188928
	.align 8
.LC40:
	.long	0
	.long	1082982400
	.align 8
.LC41:
	.long	0
	.long	1082818560
	.align 8
.LC42:
	.long	0
	.long	1082298368
	.align 8
.LC43:
	.long	0
	.long	1081131008
	.align 8
.LC44:
	.long	542608988
	.long	1093626490
	.align 8
.LC45:
	.long	-400107883
	.long	1041313291
	.align 8
.LC46:
	.long	-512138091
	.long	1034288511
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:


#include <hip/hip_runtime.h>

#define shaodi_pi 3.1415926
__host__ void ellipke(const double kf, double& K, double&E){
    K = 0;
    E = 0;
    const double step = 0.00000025;
    for (double t = 0; t< 1; t+=step){
        K += step / sqrt((1- t*t)*(1-kf*kf*t*t));
        E += sqrt( (1-kf*kf*t*t)/(1-t*t) ) * step;
    }
//    std::cout<<K<<" "<<E<<std::endl;
}


__host__ void Demagnetization_factors( const double length, const double width, const double thickness, double& Nx, double &Ny, double& Nz){
    double    a = length/2;
    double    b = width/2;
    if(length < width){
	 a = width/2;
	 b = length/2;
    }
    double    t = thickness;
    double    d = t/2;
    double    Beta = b/a;
    double    Epsilon = sqrt(1-Beta*Beta);
    double    Tao = d/a;
    double    Zita = d/b;
    double    KTao = 1/sqrt(1+Tao*Tao);
    double    KZita = 1/sqrt(1+Zita*Zita);
    double K = 0, E = 0;
    ellipke(KZita*KZita,K,E);

    // Calculate Nz

    double u0 = 1+4*(1-((1-Zita*Zita)*E+Zita*Zita*K)/KZita)/(3*shaodi_pi*Zita);
    double u1 = 1*(1-((1+2*Zita*Zita)*E-2*Zita*Zita*K)/KZita)/(3*shaodi_pi*Zita);
    double u2 = 3*(1-(E-KZita*KZita*Zita*Zita*K)/KZita)/(16*shaodi_pi*Zita);
    double u3 = 5*(5-KZita*((5+4*Zita*Zita)*E-4*Zita*Zita*K))/(192*shaodi_pi*Zita);
    double u4 = 35*(35-pow(KZita,3)*((5+3*Zita*Zita)*(7+8*Zita*Zita)*E-Zita*Zita*(25+24*Zita*Zita)*K))/(12288*shaodi_pi*Zita);
    double u5 = 21*(315-pow(KZita,5)*((315+857*Zita*Zita+742*pow(Zita,4)+196*pow(Zita,6))*E-2*Zita*Zita*(105+203*Zita*Zita+96*pow(Zita,4))*K))/(81920*shaodi_pi*Zita);
//    std::cout<< u0 << " "<<u1 <<" "<<u2 <<" "<<u3 <<" "<< u4 << " "<< u5 <<" "<< Epsilon<<std::endl;
    double Eps0_u = u0; //pow(Epsilon,0);
    double Eps1_u = u1*pow(Epsilon,2);
    double Eps2_u = u2*pow(Epsilon,4);
    double Eps3_u = u3*pow(Epsilon,6);
    double Eps4_u = u4*pow(Epsilon,8);
    double Eps5_u = u5*pow(Epsilon,10);

    Nz = Eps0_u + Eps1_u + Eps2_u + Eps3_u + Eps4_u + Eps5_u;

// Calculate Nx

    double v0 = -2*(1-((1-Zita*Zita)*E+Zita*Zita*K)/KZita)/(3*shaodi_pi*Zita);
    double v1 = -1*(1-((1+8*Zita*Zita)*E-8*Zita*Zita*K)/KZita)/(12*shaodi_pi*Zita);
    double v2 = -1*(1-(E-5*KZita*KZita*Zita*Zita*K)/KZita)/(32*shaodi_pi*Zita);
    double v3 = -5*(5-KZita*((5-2*Zita*Zita)*E-22*Zita*Zita*K))/(1536*shaodi_pi*Zita);
    double v4 = -7*(35-pow(KZita,3)*((35-3*Zita*Zita-56*pow(Zita,4))*E-Zita*Zita*(145+136*Zita*Zita)*K))/(24576*shaodi_pi*Zita);
    double v5 = -7*(315-pow(KZita,5)*((315+147*Zita*Zita-928*pow(Zita,4)-848*pow(Zita,6))*E-4*Zita*Zita*(315+594*Zita*Zita+268*pow(Zita,4))*K))/(327680*shaodi_pi*Zita);

    double Eps0_v = v0;//Epsilon^0;
    double Eps1_v = v1*pow(Epsilon,2);
    double Eps2_v = v2*pow(Epsilon,4);
    double Eps3_v = v3*pow(Epsilon,6);
    double Eps4_v = v4*pow(Epsilon,8);
    double Eps5_v = v5*pow(Epsilon,10);

    Nx = Eps0_v + Eps1_v + Eps2_v + Eps3_v + Eps4_v + Eps5_v;

// Calculate Ny

    Ny = 1 - Nx - Nz;
    if( length < width){
	double temp = Ny;
	Ny = Nx;
	Nx = temp;
    }
    //std::cout<<Nx<<" "<<Ny<<" "<<Nz<<std::endl;
}

__host__ void Extract_linear_dependent(const double length, double sigma_l, const double width, double sigma_w, const double thickness, double sigma_tfl, double& Nx, double &Ny, double& Nz,double* lin_dep_factor){
	if (sigma_l == 0)
		sigma_l  = 1e-9;
	if (sigma_w == 0)
		sigma_w  = 1e-9;
	if (sigma_tfl == 0)
		sigma_tfl  = 0.01e-9;
 // extract Demagnetization's linear dependent factor on dimention
	Demagnetization_factors(length, width,thickness, Nx, Ny, Nz);
	double temp_Nx1 = 0, temp_Ny1 = 0, temp_Nz1 = 0;
	double temp_Nx2 = 0, temp_Ny2 = 0, temp_Nz2 = 0;
	Demagnetization_factors(length + 3*sigma_l, width,thickness, temp_Nx1, temp_Ny1, temp_Nz1);
	Demagnetization_factors(length - 3*sigma_l, width,thickness, temp_Nx2, temp_Ny2, temp_Nz2);
	lin_dep_factor[0] = (temp_Nx1 - temp_Nx2)/(6*sigma_l);
	lin_dep_factor[3] = (temp_Ny1 - temp_Ny2)/(6*sigma_l);
	lin_dep_factor[6] = (temp_Nz1 - temp_Nz2)/(6*sigma_l);

	Demagnetization_factors(length, width + 3*sigma_w, thickness, temp_Nx1, temp_Ny1, temp_Nz1);
	Demagnetization_factors(length, width - 3*sigma_w, thickness, temp_Nx2, temp_Ny2, temp_Nz2);
	lin_dep_factor[1] = (temp_Nx1 - temp_Nx2)/(6*sigma_w);
	lin_dep_factor[4] = (temp_Ny1 - temp_Ny2)/(6*sigma_w);
	lin_dep_factor[7] = (temp_Nz1 - temp_Nz2)/(6*sigma_w);

	Demagnetization_factors(length, width,thickness+3*sigma_tfl, temp_Nx1, temp_Ny1, temp_Nz1);
	Demagnetization_factors(length, width,thickness-3*sigma_tfl, temp_Nx2, temp_Ny2, temp_Nz2);
	lin_dep_factor[2] = (temp_Nx1 - temp_Nx2)/(6*sigma_tfl);
	lin_dep_factor[5] = (temp_Ny1 - temp_Ny2)/(6*sigma_tfl);
	lin_dep_factor[8] = (temp_Nz1 - temp_Nz2)/(6*sigma_tfl);
}


	.text
	.file	"Demagnetization_factors.hip"
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z7ellipkedRdS_
.LCPI0_0:
	.quad	0x3ff0000000000000              # double 1
.LCPI0_1:
	.quad	0x3e90c6f7a0b5ed8d              # double 2.4999999999999999E-7
	.text
	.globl	_Z7ellipkedRdS_
	.type	_Z7ellipkedRdS_,@function
_Z7ellipkedRdS_:                        # @_Z7ellipkedRdS_
	.cfi_startproc
# %bb.0:
	pushq	%r14
	.cfi_def_cfa_offset 16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	.cfi_offset %rbx, -24
	.cfi_offset %r14, -16
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%eax, %eax
	movq	%rax, (%rdi)
	movq	%rax, (%rsi)
	mulsd	%xmm0, %xmm0
	movsd	%xmm0, 32(%rsp)                 # 8-byte Spill
	xorpd	%xmm2, %xmm2
	movsd	.LCPI0_0(%rip), %xmm5           # xmm5 = mem[0],zero
	movsd	.LCPI0_1(%rip), %xmm3           # xmm3 = mem[0],zero
	xorpd	%xmm4, %xmm4
.LBB0_1:                                # =>This Inner Loop Header: Depth=1
	movapd	%xmm4, %xmm0
	mulsd	%xmm4, %xmm0
	movapd	%xmm5, %xmm6
	subsd	%xmm0, %xmm6
	movsd	32(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	mulsd	%xmm4, %xmm0
	mulsd	%xmm4, %xmm0
	subsd	%xmm0, %xmm5
	movapd	%xmm6, %xmm0
	mulsd	%xmm5, %xmm0
	ucomisd	%xmm2, %xmm0
	movsd	%xmm4, 8(%rsp)                  # 8-byte Spill
	jb	.LBB0_3
# %bb.2:                                #   in Loop: Header=BB0_1 Depth=1
	sqrtsd	%xmm0, %xmm0
	jmp	.LBB0_4
.LBB0_3:                                # %call.sqrt
                                        #   in Loop: Header=BB0_1 Depth=1
	movsd	%xmm5, 24(%rsp)                 # 8-byte Spill
	movsd	%xmm6, 16(%rsp)                 # 8-byte Spill
	callq	sqrt
	movsd	16(%rsp), %xmm6                 # 8-byte Reload
                                        # xmm6 = mem[0],zero
	movsd	24(%rsp), %xmm5                 # 8-byte Reload
                                        # xmm5 = mem[0],zero
	movsd	.LCPI0_1(%rip), %xmm3           # xmm3 = mem[0],zero
	xorpd	%xmm2, %xmm2
.LBB0_4:                                # %.split
                                        #   in Loop: Header=BB0_1 Depth=1
	movapd	%xmm3, %xmm1
	divsd	%xmm0, %xmm1
	addsd	(%r14), %xmm1
	movsd	%xmm1, (%r14)
	divsd	%xmm6, %xmm5
	ucomisd	%xmm2, %xmm5
	jb	.LBB0_6
# %bb.5:                                #   in Loop: Header=BB0_1 Depth=1
	xorps	%xmm0, %xmm0
	sqrtsd	%xmm5, %xmm0
	jmp	.LBB0_7
.LBB0_6:                                # %call.sqrt19
                                        #   in Loop: Header=BB0_1 Depth=1
	movapd	%xmm5, %xmm0
	callq	sqrt
	movsd	.LCPI0_1(%rip), %xmm3           # xmm3 = mem[0],zero
	xorpd	%xmm2, %xmm2
.LBB0_7:                                # %.split.split
                                        #   in Loop: Header=BB0_1 Depth=1
	movsd	.LCPI0_0(%rip), %xmm5           # xmm5 = mem[0],zero
	movsd	8(%rsp), %xmm4                  # 8-byte Reload
                                        # xmm4 = mem[0],zero
	mulsd	%xmm3, %xmm0
	addsd	(%rbx), %xmm0
	movsd	%xmm0, (%rbx)
	addsd	%xmm3, %xmm4
	ucomisd	%xmm4, %xmm5
	ja	.LBB0_1
# %bb.8:
	addq	$40, %rsp
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	_Z7ellipkedRdS_, .Lfunc_end0-_Z7ellipkedRdS_
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z23Demagnetization_factorsdddRdS_S_
.LCPI1_0:
	.quad	0x3fe0000000000000              # double 0.5
.LCPI1_1:
	.quad	0x3ff0000000000000              # double 1
.LCPI1_2:
	.quad	0x3e90c6f7a0b5ed8d              # double 2.4999999999999999E-7
.LCPI1_3:
	.quad	0x4010000000000000              # double 4
.LCPI1_4:
	.quad	0x4022d97c79ce2238              # double 9.424777800000001
.LCPI1_5:
	.quad	0x4008000000000000              # double 3
.LCPI1_6:
	.quad	0x404921fb4d12d84a              # double 50.265481600000001
.LCPI1_7:
	.quad	0x4014000000000000              # double 5
.LCPI1_8:
	.quad	0x4082d97c79ce2238              # double 603.18577920000007
.LCPI1_9:
	.quad	0x4020000000000000              # double 8
.LCPI1_10:
	.quad	0x401c000000000000              # double 7
.LCPI1_11:
	.quad	0x4038000000000000              # double 24
.LCPI1_12:
	.quad	0x4039000000000000              # double 25
.LCPI1_13:
	.quad	0x4041800000000000              # double 35
.LCPI1_14:
	.quad	0x40e2d97c79ce2238              # double 38603.889868800004
.LCPI1_15:
	.quad	0x408ac80000000000              # double 857
.LCPI1_16:
	.quad	0x4073b00000000000              # double 315
.LCPI1_17:
	.quad	0x4087300000000000              # double 742
.LCPI1_18:
	.quad	0x4018000000000000              # double 6
.LCPI1_19:
	.quad	0x4068800000000000              # double 196
.LCPI1_20:
	.quad	0x4069600000000000              # double 203
.LCPI1_21:
	.quad	0x405a400000000000              # double 105
.LCPI1_22:
	.quad	0x4058000000000000              # double 96
.LCPI1_23:
	.quad	0x4035000000000000              # double 21
.LCPI1_24:
	.quad	0x410f6a7a20578e5c              # double 257359.26579199999
.LCPI1_25:
	.quad	0x4024000000000000              # double 10
.LCPI1_26:
	.quad	0xc042d97c79ce2238              # double -37.699111200000004
.LCPI1_27:
	.quad	0xc05921fb4d12d84a              # double -100.5309632
.LCPI1_28:
	.quad	0xc036000000000000              # double -22
.LCPI1_29:
	.quad	0xc0b2d97c79ce2238              # double -4825.4862336000006
.LCPI1_30:
	.quad	0xc04c000000000000              # double -56
.LCPI1_31:
	.quad	0x4061000000000000              # double 136
.LCPI1_32:
	.quad	0x4062200000000000              # double 145
.LCPI1_33:
	.quad	0xc0f2d97c79ce2238              # double -77207.779737600009
.LCPI1_34:
	.quad	0x4062600000000000              # double 147
.LCPI1_35:
	.quad	0xc08d000000000000              # double -928
.LCPI1_36:
	.quad	0xc08a800000000000              # double -848
.LCPI1_37:
	.quad	0x4082900000000000              # double 594
.LCPI1_38:
	.quad	0x4070c00000000000              # double 268
.LCPI1_39:
	.quad	0xc12f6a7a20578e5c              # double -1029437.063168
.LCPI1_40:
	.quad	0x0000000000000000              # double 0
	.text
	.globl	_Z23Demagnetization_factorsdddRdS_S_
	.type	_Z23Demagnetization_factorsdddRdS_S_,@function
_Z23Demagnetization_factorsdddRdS_S_:   # @_Z23Demagnetization_factorsdddRdS_S_
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	subq	$192, %rsp
	.cfi_def_cfa_offset 224
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movsd	%xmm2, (%rsp)                   # 8-byte Spill
	movapd	%xmm1, %xmm4
	movsd	.LCPI1_0(%rip), %xmm5           # xmm5 = mem[0],zero
	movapd	%xmm0, %xmm1
	mulsd	%xmm5, %xmm1
	movapd	%xmm4, %xmm2
	mulsd	%xmm5, %xmm2
	ucomisd	%xmm0, %xmm4
	movapd	%xmm1, %xmm6
	ja	.LBB1_2
# %bb.1:
	movapd	%xmm2, %xmm6
.LBB1_2:
	movsd	%xmm0, 176(%rsp)                # 8-byte Spill
	movapd	%xmm0, %xmm3
	cmpltsd	%xmm4, %xmm3
	andpd	%xmm3, %xmm2
	andnpd	%xmm1, %xmm3
	orpd	%xmm2, %xmm3
	movsd	(%rsp), %xmm1                   # 8-byte Reload
                                        # xmm1 = mem[0],zero
	mulsd	%xmm5, %xmm1
	movsd	%xmm1, (%rsp)                   # 8-byte Spill
	movapd	%xmm6, %xmm1
	divsd	%xmm3, %xmm1
	mulsd	%xmm1, %xmm1
	movsd	.LCPI1_1(%rip), %xmm2           # xmm2 = mem[0],zero
	movapd	%xmm2, %xmm0
	subsd	%xmm1, %xmm0
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	movsd	%xmm4, 184(%rsp)                # 8-byte Spill
	jb	.LBB1_4
# %bb.3:
	sqrtsd	%xmm0, %xmm0
	jmp	.LBB1_5
.LBB1_4:                                # %call.sqrt
	movsd	%xmm6, 32(%rsp)                 # 8-byte Spill
	callq	sqrt
	movsd	32(%rsp), %xmm6                 # 8-byte Reload
                                        # xmm6 = mem[0],zero
	movsd	.LCPI1_1(%rip), %xmm2           # xmm2 = mem[0],zero
.LBB1_5:                                # %.split
	movsd	%xmm0, 24(%rsp)                 # 8-byte Spill
	movsd	(%rsp), %xmm0                   # 8-byte Reload
                                        # xmm0 = mem[0],zero
	divsd	%xmm6, %xmm0
	movsd	%xmm0, (%rsp)                   # 8-byte Spill
	mulsd	%xmm0, %xmm0
	movsd	%xmm0, 128(%rsp)                # 8-byte Spill
	addsd	%xmm2, %xmm0
	sqrtsd	%xmm0, %xmm0
	movapd	%xmm2, %xmm1
	divsd	%xmm0, %xmm1
	movsd	%xmm1, 40(%rsp)                 # 8-byte Spill
	mulsd	%xmm1, %xmm1
	movsd	%xmm1, 120(%rsp)                # 8-byte Spill
	mulsd	%xmm1, %xmm1
	movsd	%xmm1, 64(%rsp)                 # 8-byte Spill
	xorpd	%xmm3, %xmm3
	xorpd	%xmm1, %xmm1
	xorpd	%xmm4, %xmm4
.LBB1_6:                                # =>This Inner Loop Header: Depth=1
	movapd	%xmm4, %xmm0
	mulsd	%xmm4, %xmm0
	movapd	%xmm2, %xmm5
	subsd	%xmm0, %xmm5
	movsd	64(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	mulsd	%xmm4, %xmm0
	mulsd	%xmm4, %xmm0
	subsd	%xmm0, %xmm2
	movapd	%xmm5, %xmm0
	mulsd	%xmm2, %xmm0
	ucomisd	.LCPI1_40(%rip), %xmm0
	movsd	%xmm3, 32(%rsp)                 # 8-byte Spill
	movsd	%xmm1, 56(%rsp)                 # 8-byte Spill
	movsd	%xmm4, 8(%rsp)                  # 8-byte Spill
	jb	.LBB1_8
# %bb.7:                                #   in Loop: Header=BB1_6 Depth=1
	xorps	%xmm6, %xmm6
	sqrtsd	%xmm0, %xmm6
	jmp	.LBB1_9
.LBB1_8:                                # %call.sqrt182
                                        #   in Loop: Header=BB1_6 Depth=1
	movsd	%xmm2, 48(%rsp)                 # 8-byte Spill
	movsd	%xmm5, 136(%rsp)                # 8-byte Spill
	callq	sqrt
	movsd	136(%rsp), %xmm5                # 8-byte Reload
                                        # xmm5 = mem[0],zero
	movsd	48(%rsp), %xmm2                 # 8-byte Reload
                                        # xmm2 = mem[0],zero
	movapd	%xmm0, %xmm6
.LBB1_9:                                # %.split181
                                        #   in Loop: Header=BB1_6 Depth=1
	divsd	%xmm5, %xmm2
	ucomisd	.LCPI1_40(%rip), %xmm2
	jb	.LBB1_11
# %bb.10:                               #   in Loop: Header=BB1_6 Depth=1
	xorps	%xmm0, %xmm0
	sqrtsd	%xmm2, %xmm0
	jmp	.LBB1_12
.LBB1_11:                               # %call.sqrt183
                                        #   in Loop: Header=BB1_6 Depth=1
	movapd	%xmm2, %xmm0
	movsd	%xmm6, 48(%rsp)                 # 8-byte Spill
	callq	sqrt
	movsd	48(%rsp), %xmm6                 # 8-byte Reload
                                        # xmm6 = mem[0],zero
.LBB1_12:                               # %.split181.split
                                        #   in Loop: Header=BB1_6 Depth=1
	movsd	.LCPI1_1(%rip), %xmm2           # xmm2 = mem[0],zero
	movsd	32(%rsp), %xmm3                 # 8-byte Reload
                                        # xmm3 = mem[0],zero
	movsd	.LCPI1_2(%rip), %xmm4           # xmm4 = mem[0],zero
	movapd	%xmm4, %xmm1
	divsd	%xmm6, %xmm1
	addsd	%xmm1, %xmm3
	mulsd	%xmm4, %xmm0
	movsd	56(%rsp), %xmm1                 # 8-byte Reload
                                        # xmm1 = mem[0],zero
	addsd	%xmm0, %xmm1
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	addsd	%xmm4, %xmm0
	movapd	%xmm0, %xmm4
	ucomisd	%xmm0, %xmm2
	ja	.LBB1_6
# %bb.13:                               # %_Z7ellipkedRdS_.exit
	movapd	%xmm2, %xmm0
	movsd	128(%rsp), %xmm5                # 8-byte Reload
                                        # xmm5 = mem[0],zero
	subsd	%xmm5, %xmm0
	mulsd	%xmm1, %xmm0
	movapd	%xmm1, %xmm4
	movapd	%xmm5, %xmm1
	mulsd	%xmm3, %xmm1
	addsd	%xmm0, %xmm1
	movsd	40(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	divsd	%xmm0, %xmm1
	movapd	%xmm0, %xmm5
	movapd	%xmm2, %xmm0
	subsd	%xmm1, %xmm0
	movsd	%xmm0, 136(%rsp)                # 8-byte Spill
	movsd	.LCPI1_3(%rip), %xmm1           # xmm1 = mem[0],zero
	movapd	%xmm0, %xmm9
	mulsd	%xmm1, %xmm9
	movapd	%xmm1, %xmm7
	movsd	(%rsp), %xmm11                  # 8-byte Reload
                                        # xmm11 = mem[0],zero
	movapd	%xmm11, %xmm1
	addsd	%xmm11, %xmm1
	mulsd	%xmm11, %xmm1
	movsd	%xmm1, 64(%rsp)                 # 8-byte Spill
	movapd	%xmm1, %xmm0
	addsd	%xmm2, %xmm0
	mulsd	%xmm4, %xmm0
	mulsd	%xmm3, %xmm1
	subsd	%xmm1, %xmm0
	divsd	%xmm5, %xmm0
	movapd	%xmm2, %xmm1
	subsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm10
	movsd	120(%rsp), %xmm1                # 8-byte Reload
                                        # xmm1 = mem[0],zero
	mulsd	%xmm11, %xmm1
	mulsd	%xmm11, %xmm1
	mulsd	%xmm3, %xmm1
	movsd	%xmm4, 56(%rsp)                 # 8-byte Spill
	movapd	%xmm4, %xmm0
	subsd	%xmm1, %xmm0
	divsd	%xmm5, %xmm0
	movapd	%xmm5, %xmm6
	movapd	%xmm2, %xmm5
	subsd	%xmm0, %xmm5
	movsd	.LCPI1_5(%rip), %xmm0           # xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm5
	movapd	%xmm0, %xmm1
	movsd	.LCPI1_6(%rip), %xmm0           # xmm0 = mem[0],zero
	mulsd	%xmm11, %xmm0
	divsd	%xmm0, %xmm5
	movsd	%xmm5, 104(%rsp)                # 8-byte Spill
	movapd	%xmm11, %xmm8
	mulsd	%xmm7, %xmm8
	mulsd	%xmm11, %xmm8
	movsd	%xmm8, 48(%rsp)                 # 8-byte Spill
	movsd	.LCPI1_7(%rip), %xmm5           # xmm5 = mem[0],zero
	movapd	%xmm8, %xmm0
	addsd	%xmm5, %xmm0
	mulsd	%xmm4, %xmm0
	movapd	%xmm8, %xmm4
	mulsd	%xmm3, %xmm4
	subsd	%xmm4, %xmm0
	mulsd	%xmm6, %xmm0
	movapd	%xmm5, %xmm4
	subsd	%xmm0, %xmm4
	mulsd	%xmm5, %xmm4
	movsd	.LCPI1_8(%rip), %xmm0           # xmm0 = mem[0],zero
	mulsd	%xmm11, %xmm0
	divsd	%xmm0, %xmm4
	movsd	%xmm4, 96(%rsp)                 # 8-byte Spill
	movsd	.LCPI1_4(%rip), %xmm0           # xmm0 = mem[0],zero
	mulsd	%xmm11, %xmm0
	movsd	%xmm0, 168(%rsp)                # 8-byte Spill
	divsd	%xmm0, %xmm9
	addsd	%xmm2, %xmm9
	movsd	%xmm9, 88(%rsp)                 # 8-byte Spill
	divsd	%xmm0, %xmm10
	movsd	%xmm10, 8(%rsp)                 # 8-byte Spill
	movapd	%xmm6, %xmm0
	movsd	%xmm3, 32(%rsp)                 # 8-byte Spill
	callq	pow
	movsd	(%rsp), %xmm3                   # 8-byte Reload
                                        # xmm3 = mem[0],zero
	movapd	%xmm3, %xmm1
	mulsd	.LCPI1_5(%rip), %xmm1
	mulsd	%xmm3, %xmm1
	movsd	%xmm1, 120(%rsp)                # 8-byte Spill
	movapd	%xmm1, %xmm4
	movsd	.LCPI1_7(%rip), %xmm1           # xmm1 = mem[0],zero
	addsd	%xmm1, %xmm4
	movapd	%xmm3, %xmm2
	mulsd	.LCPI1_9(%rip), %xmm2
	mulsd	%xmm3, %xmm2
	movsd	%xmm2, 160(%rsp)                # 8-byte Spill
	addsd	.LCPI1_10(%rip), %xmm2
	mulsd	%xmm4, %xmm2
	movsd	.LCPI1_11(%rip), %xmm4          # xmm4 = mem[0],zero
	mulsd	%xmm3, %xmm4
	mulsd	%xmm3, %xmm4
	movapd	%xmm3, %xmm5
	addsd	.LCPI1_12(%rip), %xmm4
	mulsd	56(%rsp), %xmm2                 # 8-byte Folded Reload
	mulsd	128(%rsp), %xmm4                # 8-byte Folded Reload
	mulsd	32(%rsp), %xmm4                 # 8-byte Folded Reload
	subsd	%xmm4, %xmm2
	mulsd	%xmm0, %xmm2
	movsd	.LCPI1_13(%rip), %xmm0          # xmm0 = mem[0],zero
	movapd	%xmm0, %xmm3
	subsd	%xmm2, %xmm3
	mulsd	%xmm0, %xmm3
	movsd	.LCPI1_14(%rip), %xmm0          # xmm0 = mem[0],zero
	mulsd	%xmm5, %xmm0
	divsd	%xmm0, %xmm3
	movsd	%xmm3, 80(%rsp)                 # 8-byte Spill
	movsd	40(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	pow
	movsd	%xmm0, 112(%rsp)                # 8-byte Spill
	movsd	.LCPI1_15(%rip), %xmm1          # xmm1 = mem[0],zero
	movsd	(%rsp), %xmm0                   # 8-byte Reload
                                        # xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm1
	mulsd	%xmm0, %xmm1
	addsd	.LCPI1_16(%rip), %xmm1
	movsd	%xmm1, 16(%rsp)                 # 8-byte Spill
	movsd	.LCPI1_3(%rip), %xmm1           # xmm1 = mem[0],zero
	callq	pow
	mulsd	.LCPI1_17(%rip), %xmm0
	addsd	16(%rsp), %xmm0                 # 8-byte Folded Reload
	movsd	%xmm0, 16(%rsp)                 # 8-byte Spill
	movsd	.LCPI1_18(%rip), %xmm1          # xmm1 = mem[0],zero
	movsd	(%rsp), %xmm0                   # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	pow
	mulsd	.LCPI1_19(%rip), %xmm0
	addsd	16(%rsp), %xmm0                 # 8-byte Folded Reload
	mulsd	56(%rsp), %xmm0                 # 8-byte Folded Reload
	movsd	%xmm0, 16(%rsp)                 # 8-byte Spill
	movsd	.LCPI1_20(%rip), %xmm1          # xmm1 = mem[0],zero
	movsd	(%rsp), %xmm0                   # 8-byte Reload
                                        # xmm0 = mem[0],zero
	mulsd	%xmm0, %xmm1
	mulsd	%xmm0, %xmm1
	addsd	.LCPI1_21(%rip), %xmm1
	movsd	%xmm1, 72(%rsp)                 # 8-byte Spill
	movsd	.LCPI1_3(%rip), %xmm1           # xmm1 = mem[0],zero
	callq	pow
	mulsd	.LCPI1_22(%rip), %xmm0
	addsd	72(%rsp), %xmm0                 # 8-byte Folded Reload
	mulsd	64(%rsp), %xmm0                 # 8-byte Folded Reload
	mulsd	32(%rsp), %xmm0                 # 8-byte Folded Reload
	movsd	16(%rsp), %xmm1                 # 8-byte Reload
                                        # xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	mulsd	112(%rsp), %xmm1                # 8-byte Folded Reload
	movapd	%xmm1, %xmm2
	movsd	.LCPI1_16(%rip), %xmm1          # xmm1 = mem[0],zero
	subsd	%xmm2, %xmm1
	mulsd	.LCPI1_23(%rip), %xmm1
	movsd	.LCPI1_24(%rip), %xmm0          # xmm0 = mem[0],zero
	mulsd	(%rsp), %xmm0                   # 8-byte Folded Reload
	divsd	%xmm0, %xmm1
	movsd	%xmm1, 16(%rsp)                 # 8-byte Spill
	movsd	24(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movapd	%xmm0, %xmm2
	mulsd	%xmm0, %xmm2
	movsd	%xmm2, 112(%rsp)                # 8-byte Spill
	movsd	8(%rsp), %xmm1                  # 8-byte Reload
                                        # xmm1 = mem[0],zero
	mulsd	%xmm2, %xmm1
	addsd	88(%rsp), %xmm1                 # 8-byte Folded Reload
	movsd	%xmm1, 8(%rsp)                  # 8-byte Spill
	movsd	.LCPI1_3(%rip), %xmm1           # xmm1 = mem[0],zero
	callq	pow
	mulsd	104(%rsp), %xmm0                # 8-byte Folded Reload
	addsd	8(%rsp), %xmm0                  # 8-byte Folded Reload
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movsd	24(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	.LCPI1_18(%rip), %xmm1          # xmm1 = mem[0],zero
	callq	pow
	mulsd	96(%rsp), %xmm0                 # 8-byte Folded Reload
	addsd	8(%rsp), %xmm0                  # 8-byte Folded Reload
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movsd	24(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	.LCPI1_9(%rip), %xmm1           # xmm1 = mem[0],zero
	callq	pow
	mulsd	80(%rsp), %xmm0                 # 8-byte Folded Reload
	addsd	8(%rsp), %xmm0                  # 8-byte Folded Reload
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movsd	.LCPI1_25(%rip), %xmm1          # xmm1 = mem[0],zero
	movsd	24(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	callq	pow
	mulsd	16(%rsp), %xmm0                 # 8-byte Folded Reload
	addsd	8(%rsp), %xmm0                  # 8-byte Folded Reload
	movsd	%xmm0, (%r15)
	movsd	40(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	.LCPI1_5(%rip), %xmm1           # xmm1 = mem[0],zero
	callq	pow
	movsd	%xmm0, 16(%rsp)                 # 8-byte Spill
	movsd	(%rsp), %xmm0                   # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	.LCPI1_3(%rip), %xmm1           # xmm1 = mem[0],zero
	callq	pow
	movsd	%xmm0, 144(%rsp)                # 8-byte Spill
	movsd	40(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	.LCPI1_7(%rip), %xmm1           # xmm1 = mem[0],zero
	callq	pow
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movsd	(%rsp), %xmm0                   # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	.LCPI1_3(%rip), %xmm1           # xmm1 = mem[0],zero
	callq	pow
	movsd	%xmm0, 72(%rsp)                 # 8-byte Spill
	movsd	(%rsp), %xmm0                   # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	.LCPI1_18(%rip), %xmm1          # xmm1 = mem[0],zero
	callq	pow
	movsd	%xmm0, 152(%rsp)                # 8-byte Spill
	movsd	(%rsp), %xmm0                   # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	.LCPI1_3(%rip), %xmm1           # xmm1 = mem[0],zero
	callq	pow
	movsd	%xmm0, 80(%rsp)                 # 8-byte Spill
	movsd	24(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	.LCPI1_3(%rip), %xmm1           # xmm1 = mem[0],zero
	callq	pow
	movsd	%xmm0, 104(%rsp)                # 8-byte Spill
	movsd	24(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	.LCPI1_18(%rip), %xmm1          # xmm1 = mem[0],zero
	callq	pow
	movsd	%xmm0, 96(%rsp)                 # 8-byte Spill
	movsd	24(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	.LCPI1_9(%rip), %xmm1           # xmm1 = mem[0],zero
	callq	pow
	movsd	%xmm0, 88(%rsp)                 # 8-byte Spill
	movsd	24(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	.LCPI1_25(%rip), %xmm1          # xmm1 = mem[0],zero
	callq	pow
	movsd	184(%rsp), %xmm1                # 8-byte Reload
                                        # xmm1 = mem[0],zero
	ucomisd	176(%rsp), %xmm1                # 8-byte Folded Reload
	movsd	136(%rsp), %xmm5                # 8-byte Reload
                                        # xmm5 = mem[0],zero
	addsd	%xmm5, %xmm5
	divsd	168(%rsp), %xmm5                # 8-byte Folded Reload
	movsd	160(%rsp), %xmm1                # 8-byte Reload
                                        # xmm1 = mem[0],zero
	movapd	%xmm1, %xmm2
	addsd	.LCPI1_1(%rip), %xmm2
	movsd	56(%rsp), %xmm4                 # 8-byte Reload
                                        # xmm4 = mem[0],zero
	mulsd	%xmm4, %xmm2
	movsd	32(%rsp), %xmm8                 # 8-byte Reload
                                        # xmm8 = mem[0],zero
	mulsd	%xmm8, %xmm1
	subsd	%xmm1, %xmm2
	movsd	40(%rsp), %xmm3                 # 8-byte Reload
                                        # xmm3 = mem[0],zero
	divsd	%xmm3, %xmm2
	movsd	.LCPI1_1(%rip), %xmm1           # xmm1 = mem[0],zero
	subsd	%xmm2, %xmm1
	movsd	.LCPI1_26(%rip), %xmm2          # xmm2 = mem[0],zero
	movsd	(%rsp), %xmm11                  # 8-byte Reload
                                        # xmm11 = mem[0],zero
	mulsd	%xmm11, %xmm2
	divsd	%xmm2, %xmm1
	movapd	%xmm3, %xmm2
	movsd	.LCPI1_7(%rip), %xmm7           # xmm7 = mem[0],zero
	mulsd	%xmm7, %xmm2
	mulsd	%xmm3, %xmm2
	movapd	%xmm3, %xmm6
	mulsd	%xmm11, %xmm2
	mulsd	%xmm11, %xmm2
	mulsd	%xmm8, %xmm2
	movapd	%xmm4, %xmm3
	subsd	%xmm2, %xmm3
	divsd	%xmm6, %xmm3
	movsd	.LCPI1_1(%rip), %xmm2           # xmm2 = mem[0],zero
	subsd	%xmm3, %xmm2
	movsd	.LCPI1_27(%rip), %xmm3          # xmm3 = mem[0],zero
	mulsd	%xmm11, %xmm3
	divsd	%xmm3, %xmm2
	movapd	%xmm7, %xmm3
	movapd	%xmm7, %xmm9
	subsd	64(%rsp), %xmm3                 # 8-byte Folded Reload
	mulsd	%xmm4, %xmm3
	movapd	%xmm4, %xmm7
	movsd	.LCPI1_28(%rip), %xmm4          # xmm4 = mem[0],zero
	mulsd	%xmm11, %xmm4
	mulsd	%xmm11, %xmm4
	mulsd	%xmm8, %xmm4
	addsd	%xmm3, %xmm4
	mulsd	%xmm6, %xmm4
	movapd	%xmm9, %xmm3
	subsd	%xmm4, %xmm3
	mulsd	%xmm9, %xmm3
	movsd	.LCPI1_29(%rip), %xmm4          # xmm4 = mem[0],zero
	mulsd	%xmm11, %xmm4
	divsd	%xmm4, %xmm3
	movsd	.LCPI1_13(%rip), %xmm9          # xmm9 = mem[0],zero
	movapd	%xmm9, %xmm4
	subsd	120(%rsp), %xmm4                # 8-byte Folded Reload
	movsd	144(%rsp), %xmm6                # 8-byte Reload
                                        # xmm6 = mem[0],zero
	mulsd	.LCPI1_30(%rip), %xmm6
	addsd	%xmm4, %xmm6
	movsd	.LCPI1_31(%rip), %xmm4          # xmm4 = mem[0],zero
	mulsd	%xmm11, %xmm4
	mulsd	%xmm11, %xmm4
	addsd	.LCPI1_32(%rip), %xmm4
	mulsd	128(%rsp), %xmm4                # 8-byte Folded Reload
	mulsd	%xmm7, %xmm6
	mulsd	%xmm8, %xmm4
	subsd	%xmm4, %xmm6
	mulsd	16(%rsp), %xmm6                 # 8-byte Folded Reload
	subsd	%xmm6, %xmm9
	movsd	.LCPI1_10(%rip), %xmm6          # xmm6 = mem[0],zero
	mulsd	%xmm6, %xmm9
	movsd	.LCPI1_33(%rip), %xmm4          # xmm4 = mem[0],zero
	mulsd	%xmm11, %xmm4
	divsd	%xmm4, %xmm9
	movsd	.LCPI1_34(%rip), %xmm4          # xmm4 = mem[0],zero
	mulsd	%xmm11, %xmm4
	mulsd	%xmm11, %xmm4
	movsd	.LCPI1_16(%rip), %xmm10         # xmm10 = mem[0],zero
	addsd	%xmm10, %xmm4
	movsd	72(%rsp), %xmm12                # 8-byte Reload
                                        # xmm12 = mem[0],zero
	mulsd	.LCPI1_35(%rip), %xmm12
	addsd	%xmm4, %xmm12
	movsd	152(%rsp), %xmm4                # 8-byte Reload
                                        # xmm4 = mem[0],zero
	mulsd	.LCPI1_36(%rip), %xmm4
	addsd	%xmm12, %xmm4
	mulsd	%xmm7, %xmm4
	movapd	%xmm4, %xmm12
	movsd	.LCPI1_37(%rip), %xmm4          # xmm4 = mem[0],zero
	mulsd	%xmm11, %xmm4
	mulsd	%xmm11, %xmm4
	addsd	%xmm10, %xmm4
	movapd	%xmm10, %xmm7
	movsd	80(%rsp), %xmm10                # 8-byte Reload
                                        # xmm10 = mem[0],zero
	mulsd	.LCPI1_38(%rip), %xmm10
	addsd	%xmm4, %xmm10
	mulsd	48(%rsp), %xmm10                # 8-byte Folded Reload
	mulsd	%xmm8, %xmm10
	subsd	%xmm10, %xmm12
	mulsd	8(%rsp), %xmm12                 # 8-byte Folded Reload
	movapd	%xmm7, %xmm4
	subsd	%xmm12, %xmm4
	mulsd	%xmm6, %xmm4
	mulsd	.LCPI1_39(%rip), %xmm11
	divsd	%xmm11, %xmm4
	mulsd	112(%rsp), %xmm1                # 8-byte Folded Reload
	subsd	%xmm5, %xmm1
	mulsd	104(%rsp), %xmm2                # 8-byte Folded Reload
	addsd	%xmm1, %xmm2
	mulsd	96(%rsp), %xmm3                 # 8-byte Folded Reload
	addsd	%xmm2, %xmm3
	movsd	.LCPI1_1(%rip), %xmm1           # xmm1 = mem[0],zero
	movapd	%xmm9, %xmm2
	mulsd	88(%rsp), %xmm2                 # 8-byte Folded Reload
	addsd	%xmm3, %xmm2
	mulsd	%xmm0, %xmm4
	addsd	%xmm2, %xmm4
	movsd	%xmm4, (%rbx)
	subsd	%xmm4, %xmm1
	subsd	(%r15), %xmm1
	movsd	%xmm1, (%r14)
	jbe	.LBB1_15
# %bb.14:
	movsd	(%rbx), %xmm0                   # xmm0 = mem[0],zero
	movsd	%xmm0, (%r14)
	movsd	%xmm1, (%rbx)
.LBB1_15:
	addq	$192, %rsp
	.cfi_def_cfa_offset 32
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end1:
	.size	_Z23Demagnetization_factorsdddRdS_S_, .Lfunc_end1-_Z23Demagnetization_factorsdddRdS_S_
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z24Extract_linear_dependentddddddRdS_S_Pd
.LCPI2_0:
	.quad	0x3e112e0be826d695              # double 1.0000000000000001E-9
.LCPI2_1:
	.quad	0x3da5fd7fe1796495              # double 9.9999999999999993E-12
.LCPI2_2:
	.quad	0x4008000000000000              # double 3
.LCPI2_3:
	.quad	0x4018000000000000              # double 6
	.text
	.globl	_Z24Extract_linear_dependentddddddRdS_S_Pd
	.type	_Z24Extract_linear_dependentddddddRdS_S_Pd,@function
_Z24Extract_linear_dependentddddddRdS_S_Pd: # @_Z24Extract_linear_dependentddddddRdS_S_Pd
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movq	%rcx, %rbx
	movaps	%xmm4, %xmm6
	movsd	%xmm4, (%rsp)                   # 8-byte Spill
	movapd	%xmm2, %xmm4
	movsd	%xmm2, 16(%rsp)                 # 8-byte Spill
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	xorpd	%xmm2, %xmm2
	movapd	%xmm1, %xmm8
	cmpeqsd	%xmm2, %xmm8
	movsd	.LCPI2_0(%rip), %xmm7           # xmm7 = mem[0],zero
	movapd	%xmm8, %xmm2
	andpd	%xmm7, %xmm2
	andnpd	%xmm1, %xmm8
	orpd	%xmm2, %xmm8
	movapd	%xmm8, 32(%rsp)                 # 16-byte Spill
	movapd	%xmm3, %xmm2
	xorpd	%xmm1, %xmm1
	cmpeqsd	%xmm1, %xmm2
	andpd	%xmm2, %xmm7
	andnpd	%xmm3, %xmm2
	orpd	%xmm7, %xmm2
	movapd	%xmm2, 48(%rsp)                 # 16-byte Spill
	cmpeqsd	%xmm5, %xmm1
	movsd	.LCPI2_1(%rip), %xmm2           # xmm2 = mem[0],zero
	andpd	%xmm1, %xmm2
	andnpd	%xmm5, %xmm1
	orpd	%xmm2, %xmm1
	movapd	%xmm1, 64(%rsp)                 # 16-byte Spill
	movapd	%xmm4, %xmm1
	movaps	%xmm6, %xmm2
	callq	_Z23Demagnetization_factorsdddRdS_S_
	xorl	%eax, %eax
	leaq	128(%rsp), %rbp
	movq	%rax, (%rbp)
	leaq	120(%rsp), %r15
	movq	%rax, (%r15)
	leaq	24(%rsp), %rcx
	movq	%rax, (%rcx)
	movq	%rcx, %rdx
	leaq	112(%rsp), %r14
	movq	%rax, (%r14)
	leaq	104(%rsp), %r13
	movq	%rax, (%r13)
	leaq	96(%rsp), %r12
	movq	%rax, (%r12)
	movapd	32(%rsp), %xmm0                 # 16-byte Reload
	mulsd	.LCPI2_2(%rip), %xmm0
	movapd	%xmm0, 80(%rsp)                 # 16-byte Spill
	addsd	8(%rsp), %xmm0                  # 8-byte Folded Reload
	movsd	16(%rsp), %xmm1                 # 8-byte Reload
                                        # xmm1 = mem[0],zero
	movsd	(%rsp), %xmm2                   # 8-byte Reload
                                        # xmm2 = mem[0],zero
	movq	%rbp, %rdi
	movq	%r15, %rsi
	callq	_Z23Demagnetization_factorsdddRdS_S_
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	subsd	80(%rsp), %xmm0                 # 16-byte Folded Reload
	movsd	16(%rsp), %xmm1                 # 8-byte Reload
                                        # xmm1 = mem[0],zero
	movsd	(%rsp), %xmm2                   # 8-byte Reload
                                        # xmm2 = mem[0],zero
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_Z23Demagnetization_factorsdddRdS_S_
	movsd	(%rbp), %xmm0                   # xmm0 = mem[0],zero
	subsd	(%r14), %xmm0
	movapd	32(%rsp), %xmm1                 # 16-byte Reload
	mulsd	.LCPI2_3(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, (%rbx)
	movsd	(%r15), %xmm0                   # xmm0 = mem[0],zero
	subsd	(%r13), %xmm0
	divsd	%xmm1, %xmm0
	movsd	%xmm0, 24(%rbx)
	leaq	24(%rsp), %rdx
	movsd	(%rdx), %xmm0                   # xmm0 = mem[0],zero
	subsd	(%r12), %xmm0
	divsd	%xmm1, %xmm0
	movsd	%xmm0, 48(%rbx)
	movapd	48(%rsp), %xmm1                 # 16-byte Reload
	mulsd	.LCPI2_2(%rip), %xmm1
	movapd	%xmm1, 32(%rsp)                 # 16-byte Spill
	addsd	16(%rsp), %xmm1                 # 8-byte Folded Reload
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	(%rsp), %xmm2                   # 8-byte Reload
                                        # xmm2 = mem[0],zero
	movq	%rbp, %rdi
	movq	%r15, %rsi
	callq	_Z23Demagnetization_factorsdddRdS_S_
	movsd	16(%rsp), %xmm1                 # 8-byte Reload
                                        # xmm1 = mem[0],zero
	subsd	32(%rsp), %xmm1                 # 16-byte Folded Reload
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	(%rsp), %xmm2                   # 8-byte Reload
                                        # xmm2 = mem[0],zero
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_Z23Demagnetization_factorsdddRdS_S_
	movsd	(%rbp), %xmm0                   # xmm0 = mem[0],zero
	subsd	(%r14), %xmm0
	movapd	48(%rsp), %xmm1                 # 16-byte Reload
	mulsd	.LCPI2_3(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, 8(%rbx)
	movsd	(%r15), %xmm0                   # xmm0 = mem[0],zero
	subsd	(%r13), %xmm0
	divsd	%xmm1, %xmm0
	movsd	%xmm0, 32(%rbx)
	leaq	24(%rsp), %rdx
	movsd	(%rdx), %xmm0                   # xmm0 = mem[0],zero
	subsd	(%r12), %xmm0
	divsd	%xmm1, %xmm0
	movsd	%xmm0, 56(%rbx)
	movsd	.LCPI2_2(%rip), %xmm2           # xmm2 = mem[0],zero
	mulsd	64(%rsp), %xmm2                 # 16-byte Folded Reload
	movsd	%xmm2, 48(%rsp)                 # 8-byte Spill
	addsd	(%rsp), %xmm2                   # 8-byte Folded Reload
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	16(%rsp), %xmm1                 # 8-byte Reload
                                        # xmm1 = mem[0],zero
	movq	%rbp, %rdi
	movq	%r15, %rsi
	callq	_Z23Demagnetization_factorsdddRdS_S_
	movsd	(%rsp), %xmm2                   # 8-byte Reload
                                        # xmm2 = mem[0],zero
	subsd	48(%rsp), %xmm2                 # 8-byte Folded Reload
	movsd	8(%rsp), %xmm0                  # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	16(%rsp), %xmm1                 # 8-byte Reload
                                        # xmm1 = mem[0],zero
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_Z23Demagnetization_factorsdddRdS_S_
	movsd	(%rbp), %xmm0                   # xmm0 = mem[0],zero
	subsd	(%r14), %xmm0
	movapd	64(%rsp), %xmm1                 # 16-byte Reload
	mulsd	.LCPI2_3(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, 16(%rbx)
	movsd	(%r15), %xmm0                   # xmm0 = mem[0],zero
	subsd	(%r13), %xmm0
	divsd	%xmm1, %xmm0
	movsd	%xmm0, 40(%rbx)
	leaq	24(%rsp), %rax
	movsd	(%rax), %xmm0                   # xmm0 = mem[0],zero
	subsd	(%r12), %xmm0
	divsd	%xmm1, %xmm0
	movsd	%xmm0, 64(%rbx)
	addq	$136, %rsp
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end2:
	.size	_Z24Extract_linear_dependentddddddRdS_S_Pd, .Lfunc_end2-_Z24Extract_linear_dependentddddddRdS_S_Pd
	.cfi_endproc
                                        # -- End function
	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_

	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.amdgpu_metadata
---
amdhsa.kernels:  []
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
