// File: /workspace/github_c_makefile_star2_O0/arkanis[P]iir_gauss_blur/./iir_gauss_blur.h
// Function: iir_gauss_blur
void iir_gauss_blur(unsigned int width, unsigned int height, unsigned char components, unsigned char* image, float sigma) {
	// Create IDX macro but push any previous definition (and restore it later) so we don't overwrite a macro the user has possibly defined before us
	#pragma push_macro("IDX")
	#define IDX(x, y, n) ((y)*width*components + (x)*components + n)
	
	// Allocate buffers
	float* buffer = (float*)malloc(width * height * components * sizeof(buffer[0]));
	
	// Calculate filter parameters for a specified sigma
	// Use Equation 11b to determine q, do nothing if sigma is to small (should have no effect) or negative (doesn't make sense)
	float q;
	if (sigma >= 2.5)
		q = 0.98711 * sigma - 0.96330;
	else if (sigma >= 0.5)
		q = 3.97156 - 4.14554 * sqrtf(1.0 - 0.26891 * sigma);
	else
		return;
	
	// Use equation 8c to determine b0, b1, b2 and b3
	float b0 = 1.57825 + 2.44413*q + 1.4281*q*q + 0.422205*q*q*q;
	float b1 = 2.44413*q + 2.85619*q*q + 1.26661*q*q*q;
	float b2 = -( 1.4281*q*q + 1.26661*q*q*q );
	float b3 = 0.422205*q*q*q;
	// Use equation 10 to determine B
	float B = 1.0 - (b1 + b2 + b3) / b0;
	
	// Horizontal forward pass (from paper: Implement the forward filter with equation 9a)
	// The data is loaded from the byte image but stored in the float buffer
	for(unsigned int y = 0; y < height; y++) {
		float prev1[components], prev2[components], prev3[components];
		for(unsigned char n = 0; n < components; n++) {
			prev1[n] = image[IDX(0, y, n)];
			prev2[n] = prev1[n];
			prev3[n] = prev2[n];
		}
		
		for(unsigned int x = 0; x < width; x++) {
			for(unsigned char n = 0; n < components; n++) {
				float val = B * image[IDX(x, y, n)] + (b1 * prev1[n] + b2 * prev2[n] + b3 * prev3[n]) / b0;
				buffer[IDX(x, y, n)] = val;
				prev3[n] = prev2[n];
				prev2[n] = prev1[n];
				prev1[n] = val;
			}
		}
	}
	
	// Horizontal backward pass (from paper: Implement the backward filter with equation 9b)
	for(unsigned int y = height-1; y < height; y--) {
		float prev1[components], prev2[components], prev3[components];
		for(unsigned char n = 0; n < components; n++) {
			prev1[n] = buffer[IDX(width-1, y, n)];
			prev2[n] = prev1[n];
			prev3[n] = prev2[n];
		}
		
		for(unsigned int x = width-1; x < width; x--) {
			for(unsigned char n = 0; n < components; n++) {
				float val = B * buffer[IDX(x, y, n)] + (b1 * prev1[n] + b2 * prev2[n] + b3 * prev3[n]) / b0;
				buffer[IDX(x, y, n)] = val;
				prev3[n] = prev2[n];
				prev2[n] = prev1[n];
				prev1[n] = val;
			}
		}
	}
	
	// Vertical forward pass (from paper: Implement the forward filter with equation 9a)
	for(unsigned int x = 0; x < width; x++) {
		float prev1[components], prev2[components], prev3[components];
		for(unsigned char n = 0; n < components; n++) {
			prev1[n] = buffer[IDX(x, 0, n)];
			prev2[n] = prev1[n];
			prev3[n] = prev2[n];
		}
		
		for(unsigned int y = 0; y < height; y++) {
			for(unsigned char n = 0; n < components; n++) {
				float val = B * buffer[IDX(x, y, n)] + (b1 * prev1[n] + b2 * prev2[n] + b3 * prev3[n]) / b0;
				buffer[IDX(x, y, n)] = val;
				prev3[n] = prev2[n];
				prev2[n] = prev1[n];
				prev1[n] = val;
			}
		}
	}
	
	// Vertical backward pass (from paper: Implement the backward filter with equation 9b)
	// Also write the result back into the byte image
	for(unsigned int x = width-1; x < width; x--) {
		float prev1[components], prev2[components], prev3[components];
		for(unsigned char n = 0; n < components; n++) {
			prev1[n] = buffer[IDX(x, height-1, n)];
			prev2[n] = prev1[n];
			prev3[n] = prev2[n];
		}
		
		for(unsigned int y = height-1; y < height; y--) {
			for(unsigned char n = 0; n < components; n++) {
				float val = B * buffer[IDX(x, y, n)] + (b1 * prev1[n] + b2 * prev2[n] + b3 * prev3[n]) / b0;
				image[IDX(x, y, n)] = val;
				prev3[n] = prev2[n];
				prev2[n] = prev1[n];
				prev1[n] = val;
			}
		}
	}
	
	// Free temporary buffers and restore any potential IDX macro
	free(buffer);
	#pragma pop_macro("IDX")
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x180, %rsp            # imm = 0x180
movb %dl, %al
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movb %al, -0x9(%rbp)
movq %rcx, -0x18(%rbp)
movss %xmm0, -0x1c(%rbp)
movl -0x4(%rbp), %eax
imull -0x8(%rbp), %eax
movzbl -0x9(%rbp), %ecx
imull %ecx, %eax
movl %eax, %eax
movl %eax, %edi
shlq $0x2, %rdi
callq 0x1150
movq %rax, -0x28(%rbp)
movss -0x1c(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x1b8b1(%rip), %xmm1    # 0x21ca0
ucomisd %xmm1, %xmm0
jb 0x6421
movss -0x1c(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x1b8ca(%rip), %xmm1    # 0x21cd0
mulsd %xmm1, %xmm0
movsd 0x1b8c6(%rip), %xmm1    # 0x21cd8
addsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0x2c(%rbp)
jmp 0x6490
movss -0x1c(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x1b876(%rip), %xmm1    # 0x21ca8
ucomisd %xmm1, %xmm0
jb 0x6489
movss -0x1c(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x1b877(%rip), %xmm1    # 0x21cc0
mulsd %xmm1, %xmm0
movsd 0x1b873(%rip), %xmm1    # 0x21cc8
addsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
callq 0x1140
cvtss2sd %xmm0, %xmm0
movsd 0x1b842(%rip), %xmm1    # 0x21cb0
mulsd %xmm1, %xmm0
movsd 0x1b83e(%rip), %xmm1    # 0x21cb8
addsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0x2c(%rbp)
jmp 0x648e
jmp 0x71ee
jmp 0x6490
movss -0x2c(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x1b857(%rip), %xmm1    # 0x21cf8
mulsd %xmm1, %xmm0
movsd 0x1b85b(%rip), %xmm1    # 0x21d08
addsd %xmm1, %xmm0
movss -0x2c(%rbp), %xmm1
cvtss2sd %xmm1, %xmm2
movsd 0x1b82e(%rip), %xmm1    # 0x21cf0
mulsd %xmm2, %xmm1
movss -0x2c(%rbp), %xmm2
cvtss2sd %xmm2, %xmm2
mulsd %xmm2, %xmm1
addsd %xmm0, %xmm1
movss -0x2c(%rbp), %xmm0
cvtss2sd %xmm0, %xmm2
movsd 0x1b7f8(%rip), %xmm0    # 0x21ce0
mulsd %xmm2, %xmm0
movss -0x2c(%rbp), %xmm2
cvtss2sd %xmm2, %xmm2
mulsd %xmm2, %xmm0
movss -0x2c(%rbp), %xmm2
cvtss2sd %xmm2, %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0x30(%rbp)
movss -0x2c(%rbp), %xmm0
cvtss2sd %xmm0, %xmm1
movss -0x2c(%rbp), %xmm0
cvtss2sd %xmm0, %xmm2
movsd 0x1b7d3(%rip), %xmm0    # 0x21d00
mulsd %xmm2, %xmm0
movss -0x2c(%rbp), %xmm2
cvtss2sd %xmm2, %xmm2
mulsd %xmm2, %xmm0
movsd 0x1b7b2(%rip), %xmm2    # 0x21cf8
mulsd %xmm2, %xmm1
addsd %xmm0, %xmm1
movss -0x2c(%rbp), %xmm0
cvtss2sd %xmm0, %xmm2
movsd 0x1b789(%rip), %xmm0    # 0x21ce8
mulsd %xmm2, %xmm0
movss -0x2c(%rbp), %xmm2
cvtss2sd %xmm2, %xmm2
mulsd %xmm2, %xmm0
movss -0x2c(%rbp), %xmm2
cvtss2sd %xmm2, %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0x34(%rbp)
movss -0x2c(%rbp), %xmm0
cvtss2sd %xmm0, %xmm1
movsd 0x1b755(%rip), %xmm0    # 0x21cf0
mulsd %xmm1, %xmm0
movss -0x2c(%rbp), %xmm1
cvtss2sd %xmm1, %xmm2
movss -0x2c(%rbp), %xmm1
cvtss2sd %xmm1, %xmm3
movsd 0x1b72f(%rip), %xmm1    # 0x21ce8
mulsd %xmm3, %xmm1
movss -0x2c(%rbp), %xmm3
cvtss2sd %xmm3, %xmm3
mulsd %xmm3, %xmm1
movss -0x2c(%rbp), %xmm3
cvtss2sd %xmm3, %xmm3
mulsd %xmm3, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0x38(%rbp)
movss -0x2c(%rbp), %xmm0
cvtss2sd %xmm0, %xmm1
movsd 0x1b6d0(%rip), %xmm0    # 0x21ce0
mulsd %xmm1, %xmm0
movss -0x2c(%rbp), %xmm1
cvtss2sd %xmm1, %xmm1
mulsd %xmm1, %xmm0
movss -0x2c(%rbp), %xmm1
cvtss2sd %xmm1, %xmm1
mulsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0x3c(%rbp)
movss -0x34(%rbp), %xmm0
addss -0x38(%rbp), %xmm0
addss -0x3c(%rbp), %xmm0
divss -0x30(%rbp), %xmm0
cvtss2sd %xmm0, %xmm1
movsd 0x1b671(%rip), %xmm0    # 0x21cc8
subsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0x40(%rbp)
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
cmpl -0x8(%rbp), %eax
jae 0x68d9
movzbl -0x9(%rbp), %edx
movl %edx, %eax
movq %rsp, %rcx
movq %rcx, -0x50(%rbp)
movl %edx, %ecx
leal 0xf(,%rcx,4), %ecx
andl $-0x10, %ecx
movl %ecx, %edx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x138(%rbp)
movq %rcx, %rsp
movq %rax, -0x58(%rbp)
movzbl -0x9(%rbp), %edx
movl %edx, %eax
movl %edx, %ecx
leal 0xf(,%rcx,4), %ecx
andl $-0x10, %ecx
movl %ecx, %edx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x130(%rbp)
movq %rcx, %rsp
movq %rax, -0x60(%rbp)
movzbl -0x9(%rbp), %edx
movl %edx, %eax
movl %edx, %ecx
leal 0xf(,%rcx,4), %ecx
andl $-0x10, %ecx
movl %ecx, %edx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x128(%rbp)
movq %rcx, %rsp
movq %rax, -0x68(%rbp)
movb $0x0, -0x69(%rbp)
movzbl -0x69(%rbp), %eax
movzbl -0x9(%rbp), %ecx
cmpl %ecx, %eax
jge 0x677a
movq -0x128(%rbp), %rax
movq -0x130(%rbp), %rcx
movq -0x138(%rbp), %rdx
movq -0x18(%rbp), %rsi
movl -0x44(%rbp), %edi
movl -0x4(%rbp), %r8d
imull %r8d, %edi
movzbl -0x9(%rbp), %r8d
imull %r8d, %edi
movzbl -0x69(%rbp), %r8d
addl %r8d, %edi
movzbl (%rsi,%rdi), %esi
cvtsi2ss %esi, %xmm0
movzbl -0x69(%rbp), %esi
movss %xmm0, (%rdx,%rsi,4)
movzbl -0x69(%rbp), %esi
movss (%rdx,%rsi,4), %xmm0
movzbl -0x69(%rbp), %edx
movss %xmm0, (%rcx,%rdx,4)
movzbl -0x69(%rbp), %edx
movss (%rcx,%rdx,4), %xmm0
movzbl -0x69(%rbp), %ecx
movss %xmm0, (%rax,%rcx,4)
movb -0x69(%rbp), %al
addb $0x1, %al
movb %al, -0x69(%rbp)
jmp 0x66fa
movl $0x0, -0x70(%rbp)
movl -0x70(%rbp), %eax
cmpl -0x4(%rbp), %eax
jae 0x68c4
movb $0x0, -0x71(%rbp)
movzbl -0x71(%rbp), %eax
movzbl -0x9(%rbp), %ecx
cmpl %ecx, %eax
jge 0x68b4
movq -0x138(%rbp), %rax
movq -0x130(%rbp), %rcx
movq -0x128(%rbp), %rdx
movss -0x40(%rbp), %xmm0
movq -0x18(%rbp), %rsi
movl -0x44(%rbp), %edi
imull -0x4(%rbp), %edi
movzbl -0x9(%rbp), %r8d
imull %r8d, %edi
movl -0x70(%rbp), %r8d
movzbl -0x9(%rbp), %r9d
imull %r9d, %r8d
addl %r8d, %edi
movzbl -0x71(%rbp), %r8d
addl %r8d, %edi
movl %edi, %edi
movzbl (%rsi,%rdi), %esi
cvtsi2ss %esi, %xmm2
movss -0x34(%rbp), %xmm3
movzbl -0x71(%rbp), %esi
movss (%rax,%rsi,4), %xmm4
movss -0x38(%rbp), %xmm1
movzbl -0x71(%rbp), %esi
mulss (%rcx,%rsi,4), %xmm1
mulss %xmm4, %xmm3
addss %xmm1, %xmm3
movss -0x3c(%rbp), %xmm1
movzbl -0x71(%rbp), %esi
movss (%rdx,%rsi,4), %xmm4
mulss %xmm4, %xmm1
addss %xmm3, %xmm1
divss -0x30(%rbp), %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -0x78(%rbp)
movss -0x78(%rbp), %xmm0
movq -0x28(%rbp), %rsi
movl -0x44(%rbp), %edi
imull -0x4(%rbp), %edi
movzbl -0x9(%rbp), %r8d
imull %r8d, %edi
movl -0x70(%rbp), %r8d
movzbl -0x9(%rbp), %r9d
imull %r9d, %r8d
addl %r8d, %edi
movzbl -0x71(%rbp), %r8d
addl %r8d, %edi
movl %edi, %edi
movss %xmm0, (%rsi,%rdi,4)
movzbl -0x71(%rbp), %esi
movss (%rcx,%rsi,4), %xmm0
movzbl -0x71(%rbp), %esi
movss %xmm0, (%rdx,%rsi,4)
movzbl -0x71(%rbp), %edx
movss (%rax,%rdx,4), %xmm0
movzbl -0x71(%rbp), %edx
movss %xmm0, (%rcx,%rdx,4)
movss -0x78(%rbp), %xmm0
movzbl -0x71(%rbp), %ecx
movss %xmm0, (%rax,%rcx,4)
movb -0x71(%rbp), %al
addb $0x1, %al
movb %al, -0x71(%rbp)
jmp 0x6791
jmp 0x68b6
movl -0x70(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0x6781
movq -0x50(%rbp), %rax
movq %rax, %rsp
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x666b
movl -0x8(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
cmpl -0x8(%rbp), %eax
jae 0x6bd7
movzbl -0x9(%rbp), %edx
movl %edx, %eax
movq %rsp, %rcx
movq %rcx, -0x88(%rbp)
movl %edx, %ecx
leal 0xf(,%rcx,4), %ecx
andl $-0x10, %ecx
movl %ecx, %edx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x150(%rbp)
movq %rcx, %rsp
movq %rax, -0x90(%rbp)
movzbl -0x9(%rbp), %edx
movl %edx, %eax
movl %edx, %ecx
leal 0xf(,%rcx,4), %ecx
andl $-0x10, %ecx
movl %ecx, %edx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x148(%rbp)
movq %rcx, %rsp
movq %rax, -0x98(%rbp)
movzbl -0x9(%rbp), %edx
movl %edx, %eax
movl %edx, %ecx
leal 0xf(,%rcx,4), %ecx
andl $-0x10, %ecx
movl %ecx, %edx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x140(%rbp)
movq %rcx, %rsp
movq %rax, -0xa0(%rbp)
movb $0x0, -0xa1(%rbp)
movzbl -0xa1(%rbp), %eax
movzbl -0x9(%rbp), %ecx
cmpl %ecx, %eax
jge 0x6a31
movq -0x140(%rbp), %rax
movq -0x148(%rbp), %rcx
movq -0x150(%rbp), %rdx
movq -0x28(%rbp), %rsi
movl -0x7c(%rbp), %edi
imull -0x4(%rbp), %edi
movzbl -0x9(%rbp), %r8d
imull %r8d, %edi
movl -0x4(%rbp), %r8d
subl $0x1, %r8d
movzbl -0x9(%rbp), %r9d
imull %r9d, %r8d
addl %r8d, %edi
movzbl -0xa1(%rbp), %r8d
addl %r8d, %edi
movl %edi, %edi
movss (%rsi,%rdi,4), %xmm0
movzbl -0xa1(%rbp), %esi
movss %xmm0, (%rdx,%rsi,4)
movzbl -0xa1(%rbp), %esi
movss (%rdx,%rsi,4), %xmm0
movzbl -0xa1(%rbp), %edx
movss %xmm0, (%rcx,%rdx,4)
movzbl -0xa1(%rbp), %edx
movss (%rcx,%rdx,4), %xmm0
movzbl -0xa1(%rbp), %ecx
movss %xmm0, (%rax,%rcx,4)
movb -0xa1(%rbp), %al
addb $0x1, %al
movb %al, -0xa1(%rbp)
jmp 0x6980
movl -0x4(%rbp), %eax
subl $0x1, %eax
movl %eax, -0xa8(%rbp)
movl -0xa8(%rbp), %eax
cmpl -0x4(%rbp), %eax
jae 0x6bbf
movb $0x0, -0xa9(%rbp)
movzbl -0xa9(%rbp), %eax
movzbl -0x9(%rbp), %ecx
cmpl %ecx, %eax
jge 0x6ba9
movq -0x150(%rbp), %rax
movq -0x148(%rbp), %rcx
movq -0x140(%rbp), %rdx
movss -0x40(%rbp), %xmm0
movq -0x28(%rbp), %rsi
movl -0x7c(%rbp), %edi
imull -0x4(%rbp), %edi
movzbl -0x9(%rbp), %r8d
imull %r8d, %edi
movl -0xa8(%rbp), %r8d
movzbl -0x9(%rbp), %r9d
imull %r9d, %r8d
addl %r8d, %edi
movzbl -0xa9(%rbp), %r8d
addl %r8d, %edi
movl %edi, %edi
movss (%rsi,%rdi,4), %xmm2
movss -0x34(%rbp), %xmm3
movzbl -0xa9(%rbp), %esi
movss (%rax,%rsi,4), %xmm4
movss -0x38(%rbp), %xmm1
movzbl -0xa9(%rbp), %esi
mulss (%rcx,%rsi,4), %xmm1
mulss %xmm4, %xmm3
addss %xmm1, %xmm3
movss -0x3c(%rbp), %xmm1
movzbl -0xa9(%rbp), %esi
movss (%rdx,%rsi,4), %xmm4
mulss %xmm4, %xmm1
addss %xmm3, %xmm1
divss -0x30(%rbp), %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -0xb0(%rbp)
movss -0xb0(%rbp), %xmm0
movq -0x28(%rbp), %rsi
movl -0x7c(%rbp), %edi
imull -0x4(%rbp), %edi
movzbl -0x9(%rbp), %r8d
imull %r8d, %edi
movl -0xa8(%rbp), %r8d
movzbl -0x9(%rbp), %r9d
imull %r9d, %r8d
addl %r8d, %edi
movzbl -0xa9(%rbp), %r8d
addl %r8d, %edi
movl %edi, %edi
movss %xmm0, (%rsi,%rdi,4)
movzbl -0xa9(%rbp), %esi
movss (%rcx,%rsi,4), %xmm0
movzbl -0xa9(%rbp), %esi
movss %xmm0, (%rdx,%rsi,4)
movzbl -0xa9(%rbp), %edx
movss (%rax,%rdx,4), %xmm0
movzbl -0xa9(%rbp), %edx
movss %xmm0, (%rcx,%rdx,4)
movss -0xb0(%rbp), %xmm0
movzbl -0xa9(%rbp), %ecx
movss %xmm0, (%rax,%rcx,4)
movb -0xa9(%rbp), %al
addb $0x1, %al
movb %al, -0xa9(%rbp)
jmp 0x6a53
jmp 0x6bab
movl -0xa8(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0xa8(%rbp)
jmp 0x6a3d
movq -0x88(%rbp), %rax
movq %rax, %rsp
movl -0x7c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x7c(%rbp)
jmp 0x68e2
movl $0x0, -0xb4(%rbp)
movl -0xb4(%rbp), %eax
cmpl -0x4(%rbp), %eax
jae 0x6edf
movzbl -0x9(%rbp), %edx
movl %edx, %eax
movq %rsp, %rcx
movq %rcx, -0xc0(%rbp)
movl %edx, %ecx
leal 0xf(,%rcx,4), %ecx
andl $-0x10, %ecx
movl %ecx, %edx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x168(%rbp)
movq %rcx, %rsp
movq %rax, -0xc8(%rbp)
movzbl -0x9(%rbp), %edx
movl %edx, %eax
movl %edx, %ecx
leal 0xf(,%rcx,4), %ecx
andl $-0x10, %ecx
movl %ecx, %edx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x160(%rbp)
movq %rcx, %rsp
movq %rax, -0xd0(%rbp)
movzbl -0x9(%rbp), %edx
movl %edx, %eax
movl %edx, %ecx
leal 0xf(,%rcx,4), %ecx
andl $-0x10, %ecx
movl %ecx, %edx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x158(%rbp)
movq %rcx, %rsp
movq %rax, -0xd8(%rbp)
movb $0x0, -0xd9(%rbp)
movzbl -0xd9(%rbp), %eax
movzbl -0x9(%rbp), %ecx
cmpl %ecx, %eax
jge 0x6d2f
movq -0x158(%rbp), %rax
movq -0x160(%rbp), %rcx
movq -0x168(%rbp), %rdx
movq -0x28(%rbp), %rsi
imull $0x0, -0x4(%rbp), %edi
movzbl -0x9(%rbp), %r8d
imull %r8d, %edi
movl -0xb4(%rbp), %r8d
movzbl -0x9(%rbp), %r9d
imull %r9d, %r8d
addl %r8d, %edi
movzbl -0xd9(%rbp), %r8d
addl %r8d, %edi
movl %edi, %edi
movss (%rsi,%rdi,4), %xmm0
movzbl -0xd9(%rbp), %esi
movss %xmm0, (%rdx,%rsi,4)
movzbl -0xd9(%rbp), %esi
movss (%rdx,%rsi,4), %xmm0
movzbl -0xd9(%rbp), %edx
movss %xmm0, (%rcx,%rdx,4)
movzbl -0xd9(%rbp), %edx
movss (%rcx,%rdx,4), %xmm0
movzbl -0xd9(%rbp), %ecx
movss %xmm0, (%rax,%rcx,4)
movb -0xd9(%rbp), %al
addb $0x1, %al
movb %al, -0xd9(%rbp)
jmp 0x6c82
movl $0x0, -0xe0(%rbp)
movl -0xe0(%rbp), %eax
cmpl -0x8(%rbp), %eax
jae 0x6ec1
movb $0x0, -0xe1(%rbp)
movzbl -0xe1(%rbp), %eax
movzbl -0x9(%rbp), %ecx
cmpl %ecx, %eax
jge 0x6eab
movq -0x168(%rbp), %rax
movq -0x160(%rbp), %rcx
movq -0x158(%rbp), %rdx
movss -0x40(%rbp), %xmm0
movq -0x28(%rbp), %rsi
movl -0xe0(%rbp), %edi
imull -0x4(%rbp), %edi
movzbl -0x9(%rbp), %r8d
imull %r8d, %edi
movl -0xb4(%rbp), %r8d
movzbl -0x9(%rbp), %r9d
imull %r9d, %r8d
addl %r8d, %edi
movzbl -0xe1(%rbp), %r8d
addl %r8d, %edi
movl %edi, %edi
movss (%rsi,%rdi,4), %xmm2
movss -0x34(%rbp), %xmm3
movzbl -0xe1(%rbp), %esi
movss (%rax,%rsi,4), %xmm4
movss -0x38(%rbp), %xmm1
movzbl -0xe1(%rbp), %esi
mulss (%rcx,%rsi,4), %xmm1
mulss %xmm4, %xmm3
addss %xmm1, %xmm3
movss -0x3c(%rbp), %xmm1
movzbl -0xe1(%rbp), %esi
movss (%rdx,%rsi,4), %xmm4
mulss %xmm4, %xmm1
addss %xmm3, %xmm1
divss -0x30(%rbp), %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -0xe8(%rbp)
movss -0xe8(%rbp), %xmm0
movq -0x28(%rbp), %rsi
movl -0xe0(%rbp), %edi
imull -0x4(%rbp), %edi
movzbl -0x9(%rbp), %r8d
imull %r8d, %edi
movl -0xb4(%rbp), %r8d
movzbl -0x9(%rbp), %r9d
imull %r9d, %r8d
addl %r8d, %edi
movzbl -0xe1(%rbp), %r8d
addl %r8d, %edi
movl %edi, %edi
movss %xmm0, (%rsi,%rdi,4)
movzbl -0xe1(%rbp), %esi
movss (%rcx,%rsi,4), %xmm0
movzbl -0xe1(%rbp), %esi
movss %xmm0, (%rdx,%rsi,4)
movzbl -0xe1(%rbp), %edx
movss (%rax,%rdx,4), %xmm0
movzbl -0xe1(%rbp), %edx
movss %xmm0, (%rcx,%rdx,4)
movss -0xe8(%rbp), %xmm0
movzbl -0xe1(%rbp), %ecx
movss %xmm0, (%rax,%rcx,4)
movb -0xe1(%rbp), %al
addb $0x1, %al
movb %al, -0xe1(%rbp)
jmp 0x6d4f
jmp 0x6ead
movl -0xe0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xe0(%rbp)
jmp 0x6d39
movq -0xc0(%rbp), %rax
movq %rax, %rsp
movl -0xb4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xb4(%rbp)
jmp 0x6be1
movl -0x4(%rbp), %eax
subl $0x1, %eax
movl %eax, -0xec(%rbp)
movl -0xec(%rbp), %eax
cmpl -0x4(%rbp), %eax
jae 0x71e5
movzbl -0x9(%rbp), %edx
movl %edx, %eax
movq %rsp, %rcx
movq %rcx, -0xf8(%rbp)
movl %edx, %ecx
leal 0xf(,%rcx,4), %ecx
andl $-0x10, %ecx
movl %ecx, %edx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x180(%rbp)
movq %rcx, %rsp
movq %rax, -0x100(%rbp)
movzbl -0x9(%rbp), %edx
movl %edx, %eax
movl %edx, %ecx
leal 0xf(,%rcx,4), %ecx
andl $-0x10, %ecx
movl %ecx, %edx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x178(%rbp)
movq %rcx, %rsp
movq %rax, -0x108(%rbp)
movzbl -0x9(%rbp), %edx
movl %edx, %eax
movl %edx, %ecx
leal 0xf(,%rcx,4), %ecx
andl $-0x10, %ecx
movl %ecx, %edx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x170(%rbp)
movq %rcx, %rsp
movq %rax, -0x110(%rbp)
movb $0x0, -0x111(%rbp)
movzbl -0x111(%rbp), %eax
movzbl -0x9(%rbp), %ecx
cmpl %ecx, %eax
jge 0x703f
movq -0x170(%rbp), %rax
movq -0x178(%rbp), %rcx
movq -0x180(%rbp), %rdx
movq -0x28(%rbp), %rsi
movl -0x8(%rbp), %edi
subl $0x1, %edi
imull -0x4(%rbp), %edi
movzbl -0x9(%rbp), %r8d
imull %r8d, %edi
movl -0xec(%rbp), %r8d
movzbl -0x9(%rbp), %r9d
imull %r9d, %r8d
addl %r8d, %edi
movzbl -0x111(%rbp), %r8d
addl %r8d, %edi
movl %edi, %edi
movss (%rsi,%rdi,4), %xmm0
movzbl -0x111(%rbp), %esi
movss %xmm0, (%rdx,%rsi,4)
movzbl -0x111(%rbp), %esi
movss (%rdx,%rsi,4), %xmm0
movzbl -0x111(%rbp), %edx
movss %xmm0, (%rcx,%rdx,4)
movzbl -0x111(%rbp), %edx
movss (%rcx,%rdx,4), %xmm0
movzbl -0x111(%rbp), %ecx
movss %xmm0, (%rax,%rcx,4)
movb -0x111(%rbp), %al
addb $0x1, %al
movb %al, -0x111(%rbp)
jmp 0x6f8c
movl -0x8(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x118(%rbp)
movl -0x118(%rbp), %eax
cmpl -0x8(%rbp), %eax
jae 0x71c7
movb $0x0, -0x119(%rbp)
movzbl -0x119(%rbp), %eax
movzbl -0x9(%rbp), %ecx
cmpl %ecx, %eax
jge 0x71b1
movq -0x180(%rbp), %rax
movq -0x178(%rbp), %rcx
movq -0x170(%rbp), %rdx
movss -0x40(%rbp), %xmm0
movq -0x28(%rbp), %rdi
movl -0x118(%rbp), %r8d
movl -0x4(%rbp), %esi
imull %esi, %r8d
movzbl -0x9(%rbp), %r9d
imull %r9d, %r8d
movl -0xec(%rbp), %esi
imull %r9d, %esi
addl %esi, %r8d
movzbl -0x119(%rbp), %esi
addl %esi, %r8d
movss (%rdi,%r8,4), %xmm2
movss -0x34(%rbp), %xmm3
shll $0x2, %esi
movss (%rax,%rsi), %xmm4
movss -0x38(%rbp), %xmm1
movss (%rcx,%rsi), %xmm5
mulss %xmm5, %xmm1
mulss %xmm4, %xmm3
addss %xmm1, %xmm3
movss -0x3c(%rbp), %xmm1
movss (%rdx,%rsi), %xmm4
mulss %xmm4, %xmm1
addss %xmm3, %xmm1
movss -0x30(%rbp), %xmm3
divss %xmm3, %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, -0x120(%rbp)
cvttss2si -0x120(%rbp), %esi
movb %sil, %r8b
movq -0x18(%rbp), %rsi
movl -0x118(%rbp), %edi
imull -0x4(%rbp), %edi
movzbl -0x9(%rbp), %r9d
imull %r9d, %edi
movl -0xec(%rbp), %r9d
movzbl -0x9(%rbp), %r10d
imull %r10d, %r9d
addl %r9d, %edi
movzbl -0x119(%rbp), %r9d
addl %r9d, %edi
movl %edi, %edi
movb %r8b, (%rsi,%rdi)
movzbl -0x119(%rbp), %esi
movss (%rcx,%rsi,4), %xmm0
movzbl -0x119(%rbp), %esi
movss %xmm0, (%rdx,%rsi,4)
movzbl -0x119(%rbp), %edx
movss (%rax,%rdx,4), %xmm0
movzbl -0x119(%rbp), %edx
movss %xmm0, (%rcx,%rdx,4)
movss -0x120(%rbp), %xmm0
movzbl -0x119(%rbp), %ecx
movss %xmm0, (%rax,%rcx,4)
movb -0x119(%rbp), %al
addb $0x1, %al
movb %al, -0x119(%rbp)
jmp 0x7061
jmp 0x71b3
movl -0x118(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x118(%rbp)
jmp 0x704b
movq -0xf8(%rbp), %rax
movq %rax, %rsp
movl -0xec(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0xec(%rbp)
jmp 0x6eeb
movq -0x28(%rbp), %rdi
callq 0x1030
movq %rbp, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)