// File: /workspace/github_cpp_makefile_star2_O1/chfeder[P]turbulence_generator/./TurbGen.h
// Function: TurbGen::get_turb_vector_unigrid(double const*, double const*, int const*, float**)
void get_turb_vector_unigrid(const double pos_beg[], const double pos_end[], const int n[], float * return_grid[]) {
        // ******************************************************
        // Compute physical turbulent vector field on a uniform grid, provided
        // start coordinate pos_beg[ndim] and end coordinate pos_end[ndim]
        // of the grid and number of points in grid n[ndim].
        // Return into turbulent vector field into float * return_grid[ndim].
        // Note that index in return_grid[X][index] is looped with x (index i)
        // as the inner loop and with z (index k) as the outer loop.
        // ******************************************************
        if (verbose > 1) TurbGen_printf(FuncSig(__func__)+"entering.\n");
        if (verbose > 1) TurbGen_printf("pos_beg = %f %f %f, pos_end = %f %f %f, n = %i %i %i\n",
                pos_beg[X], pos_beg[Y], pos_beg[Z], pos_end[X], pos_end[Y], pos_end[Z], n[X], n[Y], n[Z]);

        // compute output grid cell width (dx, dy, dz)
        double del[3] = {1.0, 1.0, 1.0};
        for (int d = 0; d < (int)ndim; d++) if (n[d] > 1) del[d] = (pos_end[d] - pos_beg[d]) / (n[d]-1);
        // pre-compute amplitude including normalisation factors
        std::vector<double> ampl(nmodes);
        for (int m = 0; m < nmodes; m++) ampl[m] = 2.0 * sol_weight_norm * this->ampl[m];
        // pre-compute grid position geometry, and trigonometry, to speed-up loops over modes below
        std::vector< std::vector<double> > sinxi(n[X], std::vector<double>(nmodes));
        std::vector< std::vector<double> > cosxi(n[X], std::vector<double>(nmodes));
        std::vector< std::vector<double> > sinyj(n[Y], std::vector<double>(nmodes));
        std::vector< std::vector<double> > cosyj(n[Y], std::vector<double>(nmodes));
        std::vector< std::vector<double> > sinzk(n[Z], std::vector<double>(nmodes));
        std::vector< std::vector<double> > coszk(n[Z], std::vector<double>(nmodes));
        for (int m = 0; m < nmodes; m++) {
            for (int i = 0; i < n[X]; i++) {
                sinxi[i][m] = sin(mode[X][m]*(pos_beg[X]+i*del[X]));
                cosxi[i][m] = cos(mode[X][m]*(pos_beg[X]+i*del[X]));
            }
            for (int j = 0; j < n[Y]; j++) {
                if ((int)ndim > 1) {
                    sinyj[j][m] = sin(mode[Y][m]*(pos_beg[Y]+j*del[Y]));
                    cosyj[j][m] = cos(mode[Y][m]*(pos_beg[Y]+j*del[Y]));
                } else {
                    sinyj[j][m] = 0.0;
                    cosyj[j][m] = 1.0;
                }
            }
            for (int k = 0; k < n[Z]; k++) {
                if ((int)ndim > 2) {
                    sinzk[k][m] = sin(mode[Z][m]*(pos_beg[Z]+k*del[Z]));
                    coszk[k][m] = cos(mode[Z][m]*(pos_beg[Z]+k*del[Z]));
                } else {
                    sinzk[k][m] = 0.0;
                    coszk[k][m] = 1.0;
                }
            }
        }
        // scratch variables
        double v[3];
        double real, imag;
        // loop over cells in return_grid
        for (int k = 0; k < n[Z]; k++) {
            for (int j = 0; j < n[Y]; j++) {
                for (int i = 0; i < n[X]; i++) {
                    // clear
                    v[X] = 0.0; v[Y] = 0.0; v[Z] = 0.0;
                    // loop over modes
                    for (int m = 0; m < nmodes; m++) {
                        // these are the real and imaginary parts, respectively, of
                        //  e^{ i \vec{k} \cdot \vec{x} } = cos(kx*x + ky*y + kz*z) + i sin(kx*x + ky*y + kz*z)
                        real =  ( cosxi[i][m]*cosyj[j][m] - sinxi[i][m]*sinyj[j][m] ) * coszk[k][m] -
                                ( sinxi[i][m]*cosyj[j][m] + cosxi[i][m]*sinyj[j][m] ) * sinzk[k][m];
                        imag =  ( cosyj[j][m]*sinzk[k][m] + sinyj[j][m]*coszk[k][m] ) * cosxi[i][m] +
                                ( cosyj[j][m]*coszk[k][m] - sinyj[j][m]*sinzk[k][m] ) * sinxi[i][m];
                        // accumulate total v as sum over modes
                        v[X] += ampl[m] * (aka[X][m]*real - akb[X][m]*imag);
                        if (ncmp > 1) v[Y] += ampl[m] * (aka[Y][m]*real - akb[Y][m]*imag);
                        if (ncmp > 2) v[Z] += ampl[m] * (aka[Z][m]*real - akb[Z][m]*imag);
                    }
                    // copy into return grid
                    long index = k*n[X]*n[Y] + j*n[X] + i;
                    return_grid[X][index] = v[X] * ampl_factor[X];
                    if (ncmp > 1) return_grid[Y][index] = v[Y] * ampl_factor[Y];
                    if (ncmp > 2) return_grid[Z][index] = v[Z] * ampl_factor[Z];
                } // i
            } // j
        } // k
        if (verbose > 1) TurbGen_printf(FuncSig(__func__)+"exiting.\n");
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
movq %r8, 0x70(%rsp)
movq %rcx, %r14
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, %rbx
cmpl $0x2, (%rdi)
movq %rdi, 0x8(%rsp)
movq %rcx, 0x30(%rsp)
jl 0x4dfb
leaq 0x200(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xa549(%rip), %rsi      # 0xf245
leaq 0xa559(%rip), %rdx      # 0xf25c
leaq 0x1f0(%rsp), %rdi
callq 0xbba2
leaq 0x10(%rsp), %rdi
leaq 0x1f0(%rsp), %rdx
movq 0x8(%rsp), %rsi
callq 0x7ac4
leaq 0x975d(%rip), %rsi      # 0xe48b
leaq 0x10(%rsp), %rdi
callq 0x34f0
leaq 0x1c0(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4d68
movq %rdx, 0x1b0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x1c0(%rsp)
jmp 0x4d71
movupd (%rcx), %xmm0
movupd %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x1b0(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rdi
xorl %eax, %eax
callq 0x79ea
movq 0x1b0(%rsp), %rdi
cmpq %r15, %rdi
je 0x4db9
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x32a0
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4dd4
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32a0
movq 0x1f0(%rsp), %rdi
cmpq %r14, %rdi
je 0x4df1
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x32a0
movq 0x8(%rsp), %rbx
movq 0x30(%rsp), %r14
cmpl $0x2, (%rbx)
jl 0x4e96
movq %r14, %r15
leaq 0x238(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xa443(%rip), %rsi      # 0xf25d
leaq 0xa471(%rip), %rdx      # 0xf292
leaq 0x228(%rsp), %rbp
movq %rbp, %rdi
callq 0xbba2
movsd (%r12), %xmm0
movsd 0x8(%r12), %xmm1
movsd 0x10(%r12), %xmm2
movsd (%r13), %xmm3
movsd 0x8(%r13), %xmm4
movsd 0x10(%r13), %xmm5
movl (%r15), %edx
movl 0x4(%r15), %ecx
movl 0x8(%r15), %r8d
movq %rbx, %rdi
movq %rbp, %rsi
movb $0x6, %al
callq 0x79ea
movq 0x228(%rsp), %rdi
cmpq %r14, %rdi
movq 0x8(%rsp), %rbx
movq 0x30(%rsp), %r14
je 0x4e96
movq 0x238(%rsp), %rsi
incq %rsi
callq 0x32a0
movapd 0xa462(%rip), %xmm0     # 0xf300
movapd %xmm0, 0x100(%rsp)
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, 0x110(%rsp)
cvttsd2si 0x158(%rbx), %eax
testl %eax, %eax
jle 0x4efd
movl %eax, %eax
xorl %ecx, %ecx
movl (%r14,%rcx,4), %edx
cmpl $0x2, %edx
jl 0x4ef5
movsd (%r13,%rcx,8), %xmm0
subsd (%r12,%rcx,8), %xmm0
decl %edx
xorps %xmm1, %xmm1
cvtsi2sd %edx, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x100(%rsp,%rcx,8)
incq %rcx
cmpq %rcx, %rax
jne 0x4ec9
movslq 0x154(%rbx), %rsi
leaq 0xe8(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0xd5e6
movslq 0x154(%rbx), %rsi
testq %rsi, %rsi
jle 0x4f51
movq 0x138(%rbx), %rax
movq 0xe8(%rsp), %rcx
xorl %edx, %edx
movsd 0x1d8(%rbx), %xmm0
addsd %xmm0, %xmm0
mulsd (%rax,%rdx,8), %xmm0
movsd %xmm0, (%rcx,%rdx,8)
incq %rdx
cmpq %rdx, %rsi
jne 0x4f33
movslq (%r14), %r13
leaq 0x10(%rsp), %rdi
leaq 0x198(%rsp), %rdx
callq 0xd5e6
leaq 0x210(%rsp), %rdi
leaq 0x10(%rsp), %rdx
leaq 0xa0(%rsp), %rcx
movq %r13, %rsi
callq 0xd670
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4f9a
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x32a0
movslq (%r14), %r13
movslq 0x154(%rbx), %rsi
leaq 0x10(%rsp), %rdi
leaq 0xa0(%rsp), %rdx
callq 0xd5e6
leaq 0x198(%rsp), %rdi
leaq 0x10(%rsp), %rdx
leaq 0xd0(%rsp), %rcx
movq %r13, %rsi
callq 0xd670
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4fea
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x32a0
movslq 0x4(%r14), %r13
movslq 0x154(%rbx), %rsi
leaq 0x10(%rsp), %rdi
leaq 0xd0(%rsp), %rdx
callq 0xd5e6
leaq 0xa0(%rsp), %rdi
leaq 0x10(%rsp), %rdx
leaq 0x88(%rsp), %rcx
movq %r13, %rsi
callq 0xd670
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x503b
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x32a0
movslq 0x4(%r14), %r13
movslq 0x154(%rbx), %rsi
leaq 0x10(%rsp), %rdi
leaq 0x88(%rsp), %rdx
callq 0xd5e6
leaq 0xd0(%rsp), %rdi
leaq 0x10(%rsp), %rdx
leaq 0xb8(%rsp), %rcx
movq %r13, %rsi
callq 0xd670
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x508c
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x32a0
movslq 0x8(%r14), %r13
movslq 0x154(%rbx), %rsi
leaq 0x10(%rsp), %rdi
leaq 0xb8(%rsp), %rdx
callq 0xd5e6
leaq 0x88(%rsp), %rdi
leaq 0x10(%rsp), %rdx
leaq 0x7(%rsp), %rcx
movq %r13, %rsi
callq 0xd670
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x50da
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x32a0
movslq 0x8(%r14), %r13
movslq 0x154(%rbx), %rsi
leaq 0x10(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0xd5e6
leaq 0xb8(%rsp), %rdi
leaq 0x10(%rsp), %rdx
leaq 0x47(%rsp), %rcx
movq %r13, %rsi
callq 0xd670
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x5125
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x32a0
movl 0x154(%rbx), %edi
testl %edi, %edi
jle 0x53b2
movsd 0x100(%rsp), %xmm0
movsd 0x108(%rsp), %xmm1
movsd %xmm1, 0x78(%rsp)
movsd 0x110(%rsp), %xmm1
movsd %xmm1, 0x48(%rsp)
xorl %r14d, %r14d
movsd %xmm0, 0x50(%rsp)
movq 0x30(%rsp), %rbp
cmpl $0x0, (%rbp)
movq 0x8(%rsp), %r13
jle 0x51fc
xorl %ebx, %ebx
xorl %r15d, %r15d
movq 0x48(%r13), %rax
xorps %xmm1, %xmm1
cvtsi2sd %r15d, %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x38(%rsp)
movsd (%r12), %xmm0
addsd %xmm1, %xmm0
mulsd (%rax,%r14,8), %xmm0
callq 0x3080
movq 0x210(%rsp), %rax
movq (%rax,%rbx), %rax
movsd %xmm0, (%rax,%r14,8)
movq 0x48(%r13), %rax
movsd 0x38(%rsp), %xmm0
addsd (%r12), %xmm0
mulsd (%rax,%r14,8), %xmm0
callq 0x34e0
movq 0x198(%rsp), %rax
movq (%rax,%rbx), %rax
movsd %xmm0, (%rax,%r14,8)
movsd 0x50(%rsp), %xmm0
incq %r15
movslq (%rbp), %rax
addq $0x18, %rbx
cmpq %rax, %r15
jl 0x517c
cmpl $0x0, 0x4(%rbp)
jle 0x52c3
xorl %ebx, %ebx
xorl %r15d, %r15d
movq 0x8(%rsp), %r13
cvttsd2si 0x158(%r13), %eax
cmpl $0x2, %eax
jl 0x527c
movq 0x60(%r13), %rax
xorps %xmm1, %xmm1
cvtsi2sd %r15d, %xmm1
mulsd 0x78(%rsp), %xmm1
movsd %xmm1, 0x38(%rsp)
movsd 0x8(%r12), %xmm0
addsd %xmm1, %xmm0
mulsd (%rax,%r14,8), %xmm0
callq 0x3080
movq 0xa0(%rsp), %rax
movq (%rax,%rbx), %rax
movsd %xmm0, (%rax,%r14,8)
movq 0x60(%r13), %rax
movsd 0x38(%rsp), %xmm0
addsd 0x8(%r12), %xmm0
mulsd (%rax,%r14,8), %xmm0
callq 0x34e0
jmp 0x5298
movq 0xa0(%rsp), %rax
movq (%rax,%rbx), %rax
movq $0x0, (%rax,%r14,8)
movsd 0x8db0(%rip), %xmm0     # 0xe048
movq 0xd0(%rsp), %rax
movq (%rax,%rbx), %rax
movsd %xmm0, (%rax,%r14,8)
incq %r15
movq 0x30(%rsp), %rax
movslq 0x4(%rax), %rax
addq $0x18, %rbx
cmpq %rax, %r15
jl 0x520b
movq 0x30(%rsp), %rax
cmpl $0x0, 0x8(%rax)
jle 0x538f
xorl %ebx, %ebx
xorl %r15d, %r15d
movq 0x8(%rsp), %r13
cvttsd2si 0x158(%r13), %eax
cmpl $0x3, %eax
jl 0x5348
movq 0x78(%r13), %rax
xorps %xmm1, %xmm1
cvtsi2sd %r15d, %xmm1
mulsd 0x48(%rsp), %xmm1
movsd %xmm1, 0x38(%rsp)
movsd 0x10(%r12), %xmm0
addsd %xmm1, %xmm0
mulsd (%rax,%r14,8), %xmm0
callq 0x3080
movq 0x88(%rsp), %rax
movq (%rax,%rbx), %rax
movsd %xmm0, (%rax,%r14,8)
movq 0x78(%r13), %rax
movsd 0x38(%rsp), %xmm0
addsd 0x10(%r12), %xmm0
mulsd (%rax,%r14,8), %xmm0
callq 0x34e0
jmp 0x5364
movq 0x88(%rsp), %rax
movq (%rax,%rbx), %rax
movq $0x0, (%rax,%r14,8)
movsd 0x8ce4(%rip), %xmm0     # 0xe048
movq 0xb8(%rsp), %rax
movq (%rax,%rbx), %rax
movsd %xmm0, (%rax,%r14,8)
incq %r15
movq 0x30(%rsp), %rax
movslq 0x8(%rax), %rax
addq $0x18, %rbx
cmpq %rax, %r15
jl 0x52d7
incq %r14
movq 0x8(%rsp), %rax
movslq 0x154(%rax), %rdi
cmpq %rdi, %r14
movsd 0x50(%rsp), %xmm0
jl 0x5168
movq 0x30(%rsp), %r14
movslq 0x8(%r14), %rax
movq %rax, 0x118(%rsp)
testq %rax, %rax
jle 0x57ad
movq 0x30(%rsp), %rax
movl 0x4(%rax), %eax
movq %rax, 0x60(%rsp)
movl %edi, %esi
shlq $0x3, %rsi
movq $0x0, 0x58(%rsp)
movq %rdi, 0x160(%rsp)
cmpl $0x0, 0x60(%rsp)
jle 0x5792
movq 0x30(%rsp), %rax
movl (%rax), %eax
movq %rax, 0x48(%rsp)
movq 0x60(%rsp), %rax
movq 0x58(%rsp), %rcx
imull %ecx, %eax
movq %rax, 0x128(%rsp)
movq 0x8(%rsp), %rax
movsd 0x1f8(%rax), %xmm0
movl 0x160(%rax), %r8d
leaq (,%rcx,8), %rax
leaq (%rax,%rax,2), %rax
movq %rax, 0x120(%rsp)
movq $0x0, 0x68(%rsp)
movl %r8d, 0x84(%rsp)
cmpl $0x0, 0x48(%rsp)
jle 0x577a
movq 0x198(%rsp), %rax
movq %rax, 0x158(%rsp)
movq 0x68(%rsp), %r9
leaq (,%r9,8), %rax
leaq (%rax,%rax,2), %rax
movq 0xd0(%rsp), %rcx
addq %rax, %rcx
movq %rcx, 0x148(%rsp)
movq 0x210(%rsp), %rcx
movq %rcx, 0x140(%rsp)
addq 0xa0(%rsp), %rax
movq %rax, 0x150(%rsp)
movq 0xb8(%rsp), %rcx
movq 0x120(%rsp), %rax
addq %rax, %rcx
movq %rcx, 0x138(%rsp)
movq 0x88(%rsp), %rcx
addq %rax, %rcx
movq %rcx, 0x130(%rsp)
movq 0xe8(%rsp), %rdx
movq 0x8(%rsp), %rax
movq 0x90(%rax), %r11
movq 0xd8(%rax), %r14
movl 0x160(%rax), %r12d
movq 0x128(%rsp), %rcx
addl %r9d, %ecx
imull 0x48(%rsp), %ecx
movq %rcx, 0x170(%rsp)
movq 0x70(%rsp), %rcx
movq (%rcx), %rcx
movq %rcx, 0x168(%rsp)
movsd 0x200(%rax), %xmm1
movsd 0x208(%rax), %xmm2
xorl %r9d, %r9d
testl %edi, %edi
movq %r9, 0x78(%rsp)
jle 0x56f1
leaq (,%r9,8), %rax
leaq (%rax,%rax,2), %rax
movq 0x158(%rsp), %rcx
movq (%rcx,%rax), %rcx
movq 0x148(%rsp), %rdi
movq (%rdi), %r9
movq 0x140(%rsp), %rdi
movq (%rdi,%rax), %r15
movq 0x150(%rsp), %rax
movq (%rax), %rbp
movq 0x138(%rsp), %rax
movq (%rax), %rax
movq 0x130(%rsp), %rdi
movq (%rdi), %r8
movq 0x8(%rsp), %rdi
movq 0xa8(%rdi), %r10
movq %r10, 0x38(%rsp)
movq 0xc0(%rdi), %r10
movq %r10, 0x50(%rsp)
movq 0xf0(%rdi), %r10
movq 0x108(%rdi), %rbx
xorpd %xmm5, %xmm5
xorl %edi, %edi
xorpd %xmm4, %xmm4
xorpd %xmm3, %xmm3
movsd (%rcx,%rdi), %xmm7
movsd (%r9,%rdi), %xmm8
movsd (%r15,%rdi), %xmm9
movsd (%rbp,%rdi), %xmm12
movapd %xmm7, %xmm6
mulsd %xmm12, %xmm6
movapd %xmm9, %xmm10
mulsd %xmm8, %xmm10
addsd %xmm6, %xmm10
movsd (%r8,%rdi), %xmm11
mulsd %xmm11, %xmm10
movapd %xmm12, %xmm13
movapd %xmm8, %xmm6
mulsd %xmm11, %xmm6
mulsd %xmm12, %xmm11
mulsd %xmm9, %xmm12
movsd (%rax,%rdi), %xmm14
mulsd %xmm14, %xmm13
addsd %xmm13, %xmm6
mulsd %xmm7, %xmm6
mulsd %xmm8, %xmm7
subsd %xmm12, %xmm7
mulsd %xmm14, %xmm7
subsd %xmm10, %xmm7
mulsd %xmm14, %xmm8
subsd %xmm11, %xmm8
mulsd %xmm9, %xmm8
addsd %xmm8, %xmm6
movsd (%rdx,%rdi), %xmm8
cmpl $0x2, %r12d
jl 0x5697
movsd (%r10,%rdi), %xmm9
mulsd %xmm6, %xmm9
movq 0x38(%rsp), %r13
movsd (%r13,%rdi), %xmm10
mulsd %xmm7, %xmm10
subsd %xmm9, %xmm10
mulsd %xmm8, %xmm10
addsd %xmm10, %xmm4
cmpl $0x3, %r12d
jl 0x56c8
movsd (%rbx,%rdi), %xmm9
mulsd %xmm6, %xmm9
movq 0x50(%rsp), %r13
movsd (%r13,%rdi), %xmm10
mulsd %xmm7, %xmm10
subsd %xmm9, %xmm10
mulsd %xmm8, %xmm10
addsd %xmm10, %xmm3
mulsd (%r14,%rdi), %xmm6
mulsd (%r11,%rdi), %xmm7
subsd %xmm6, %xmm7
mulsd %xmm7, %xmm8
addsd %xmm8, %xmm5
addq $0x8, %rdi
cmpq %rdi, %rsi
jne 0x55d0
jmp 0x56fd
xorpd %xmm3, %xmm3
xorpd %xmm4, %xmm4
xorpd %xmm5, %xmm5
mulsd %xmm0, %xmm5
movq 0x170(%rsp), %rax
movq 0x78(%rsp), %r9
addl %r9d, %eax
cltq
cvtsd2ss %xmm5, %xmm5
movq 0x168(%rsp), %rcx
movss %xmm5, (%rcx,%rax,4)
movl 0x84(%rsp), %r8d
cmpl $0x1, %r8d
jle 0x5748
mulsd %xmm1, %xmm4
cvtsd2ss %xmm4, %xmm4
movq 0x70(%rsp), %rcx
movq 0x8(%rcx), %rcx
movss %xmm4, (%rcx,%rax,4)
cmpl $0x3, %r8d
movq 0x160(%rsp), %rdi
jl 0x576c
mulsd %xmm2, %xmm3
cvtsd2ss %xmm3, %xmm3
movq 0x70(%rsp), %rcx
movq 0x10(%rcx), %rcx
movss %xmm3, (%rcx,%rax,4)
incq %r9
cmpq 0x48(%rsp), %r9
jne 0x553a
movq 0x68(%rsp), %rcx
incq %rcx
movq %rcx, 0x68(%rsp)
cmpq 0x60(%rsp), %rcx
jne 0x5450
movq 0x58(%rsp), %rcx
incq %rcx
movq %rcx, 0x58(%rsp)
cmpq 0x118(%rsp), %rcx
jne 0x53eb
movq 0x8(%rsp), %rax
cmpl $0x1, (%rax)
jle 0x58c3
leaq 0x1e0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x9a77(%rip), %rsi      # 0xf245
leaq 0x9a87(%rip), %rdx      # 0xf25c
leaq 0x1d0(%rsp), %rdi
callq 0xbba2
leaq 0x10(%rsp), %rdi
leaq 0x1d0(%rsp), %rdx
movq 0x8(%rsp), %rsi
callq 0x7ac4
leaq 0x8e59(%rip), %rsi      # 0xe659
leaq 0x10(%rsp), %rdi
callq 0x34f0
leaq 0x188(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x583a
movq %rdx, 0x178(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x188(%rsp)
jmp 0x5843
movupd (%rcx), %xmm0
movupd %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x178(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rdi
xorl %eax, %eax
callq 0x79ea
movq 0x178(%rsp), %rdi
cmpq %r15, %rdi
je 0x588b
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x32a0
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x58a6
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32a0
movq 0x1d0(%rsp), %rdi
cmpq %r14, %rdi
je 0x58c3
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x32a0
leaq 0xb8(%rsp), %rdi
callq 0xd708
leaq 0x88(%rsp), %rdi
callq 0xd708
leaq 0xd0(%rsp), %rdi
callq 0xd708
leaq 0xa0(%rsp), %rdi
callq 0xd708
leaq 0x198(%rsp), %rdi
callq 0xd708
leaq 0x210(%rsp), %rdi
callq 0xd708
movq 0xe8(%rsp), %rdi
testq %rdi, %rdi
je 0x592e
movq 0xf8(%rsp), %rsi
subq %rdi, %rsi
callq 0x32a0
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x178(%rsp), %rdi
cmpq %r15, %rdi
je 0x5965
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x32a0
jmp 0x5965
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5985
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32a0
jmp 0x5985
movq %rax, %rbx
movq 0x1d0(%rsp), %rdi
cmpq %r14, %rdi
je 0x59a7
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x32a0
jmp 0x59a7
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0xd708
jmp 0x5a61
movq %rax, %rbx
movq 0x228(%rsp), %rdi
cmpq %r14, %rdi
je 0x5ae0
movq 0x238(%rsp), %rsi
jmp 0x5a35
movq %rax, %rbx
movq 0x1b0(%rsp), %rdi
cmpq %r15, %rdi
je 0x59fc
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x32a0
jmp 0x59fc
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5a1c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32a0
jmp 0x5a1c
movq %rax, %rbx
movq 0x1f0(%rsp), %rdi
cmpq %r14, %rdi
je 0x5ae0
movq 0x200(%rsp), %rsi
incq %rsi
jmp 0x5adb
jmp 0x5b83
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x5a61
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x32a0
jmp 0x5a61
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0xd708
jmp 0x5a8f
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x5a8f
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x32a0
jmp 0x5a8f
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
callq 0xd708
leaq 0xa0(%rsp), %rdi
callq 0xd708
leaq 0x198(%rsp), %rdi
callq 0xd708
leaq 0x210(%rsp), %rdi
callq 0xd708
movq 0xe8(%rsp), %rdi
testq %rdi, %rdi
je 0x5ae0
movq 0xf8(%rsp), %rsi
subq %rdi, %rsi
callq 0x32a0
movq %rbx, %rdi
callq 0x3480
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x5a9c
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x32a0
jmp 0x5a9c
movq %rax, %rbx
jmp 0x5a9c
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x5aa9
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x32a0
jmp 0x5aa9
movq %rax, %rbx
jmp 0x5aa9
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x5ab6
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x32a0
jmp 0x5ab6
movq %rax, %rbx
jmp 0x5ab6
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x5ac3
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x32a0
jmp 0x5ac3
movq %rax, %rbx
jmp 0x5ac3
movq %rax, %rbx
jmp 0x5ae0
nop