// File: /workspace/github_cpp_makefile_star2_O1/rishabh-battulwar[P]imageprocessing/./include/ImageProc.h
// Function: ImageProc::apply_artistic_effect(char const*, char const*, int, int, float, float, float, int, int, int, int)
void ImageProc::apply_artistic_effect(const char *infile, const char *outfile, int width, int height, float tau, float epsilon, float phi, int window_size, int sigma_dist, int sigma_simi, int iter)
{
	Image img_orig("color", width, height);
	Image img_orig_rgb("color", width, height);
	Image img_orig_bw("bw", width, height);
	Image img_orig_bw_bf("bw", width, height);
	Image img_modified("bw", width, height);
	Image img_bilateral_color("color", width, height);
	Image img_modified_color("color", width, height);
	img_orig.read_image(infile, img_orig.cols, img_orig.rows);

	for(int i = 0; i < img_orig.rows; i++)
		for(int j = 0; j < img_orig.cols; j++)
			img_orig_bw.setvalue(i,j,0,((img_orig.getvalue(i,j,0)*0.21)\
								  	   +(img_orig.getvalue(i,j,1)*0.72)\
								  	   +(img_orig.getvalue(i,j,2)*0.07)));

	//rgb2cielab(img_orig, img_modified);

	//	//Bilateral Filter
	for(int i = 0; i < iter; i++)
	{
		bilateral_filter(img_orig, img_bilateral_color, window_size, sigma_dist, sigma_simi);
		for(int i = 0; i < img_orig.rows; i++)
		 	for(int j = 0; j < img_orig.cols; j++)
		 		for(int k = 0; k < img_orig.channels; k++)
			 	{
			 		img_orig.setvalue(i,j,k,img_bilateral_color.getvalue(i,j,k));
			 	}
	}

	img_bilateral_color.write_image("../output_images/bilateral_art_effect.raw", img_bilateral_color.cols, img_bilateral_color.rows);
	//cielab2rgb(img_modified_color2, img_orig_rgb);

	//img_modified_color.write_image(outfile, img_modified.cols, img_modified.rows);

	for(int i = 0; i < img_orig_bw.rows; i++)
		for(int j = 0; j < img_orig_bw.cols; j++)
			for(int k = 0; k < img_orig_bw.channels; k++)
				img_orig_bw.setvalue(i,j,k,((img_orig.getvalue(i,j,0)*0.21)\
									  +(img_orig.getvalue(i,j,1)*0.72)\
									  +(img_orig.getvalue(i,j,2)*0.07)));

	Image img_sigma_small("bw", width, height);
	Image img_sigma_large("bw", width, height);
	Image img_xDoG("bw", width, height);

	int sigma = 1;

	gaussian_filter(img_orig_bw, img_sigma_small, 9, sigma);
	gaussian_filter(img_orig_bw, img_sigma_large, 9, sigma*sqrt(1.6));

	for(int i = 0; i < img_orig.rows; i++)
		for(int j = 0; j < img_orig.cols; j++)
			for(int k = 0; k < img_orig.channels; k++)
				img_xDoG.setvalue(i,j,k,(int)((float)img_sigma_small.getvalue(i,j,k) - (float)(1.0*tau*img_sigma_large.getvalue(i,j,k))));
				//img_xDoG.setvalue(i,j,k,(int)((float)img_sigma_small.getvalue(i,j,k) - (float)(1.0*img_sigma_large.getvalue(i,j,k))));
	img_xDoG.write_image("../output_images/xDoG_art_effect.raw", img_xDoG.cols, img_xDoG.rows);

	float xDoG_val, value;
	for(int i = 0; i < img_orig.rows; i++)
		for(int j = 0; j < img_orig.cols; j++)
			for(int k = 0; k < img_orig.channels; k++)
			{
				value = (float)img_xDoG.getvalue(i,j,k)/255.0;
				if(value > epsilon)
					img_modified.setvalue(i,j,k,0);
				else
				{
					value = 1.0 + tanh(phi*(((float)img_sigma_small.getvalue(i,j,k) - (float)(1.0*tau*img_sigma_large.getvalue(i,j,k))) - epsilon));
					img_modified.setvalue(i,j,k,(int)(value*255.0));
				}

			}

	img_modified.write_image("../output_images/contours_art_effect.raw", img_modified.cols, img_modified.rows);

	for(int i = 0; i < img_orig.rows; i++)
		for(int j = 0; j < img_orig.cols; j++)
			for(int k = 0; k < img_orig.channels; k++)
				if(img_modified.getvalue(i,j,k) == 0)
					img_modified.setvalue(i,j,k,0);
				else
					img_modified.setvalue(i,j,k,1);

//	for(int i = 0; i < img_orig.rows; i++)
//		for(int j = 0; j < img_orig.cols; j++)
//			for(int k = 0; k < img_orig.channels; k++)
//				if(img_xDoG.getvalue(i,j,k) == 255)
//					img_modified.setvalue(i,j,k,0);
//				else
//					img_modified.setvalue(i,j,k,1);


	for(int i = 0; i < img_orig.rows; i++)
		for(int j = 0; j < img_orig.cols; j++)
			for(int k = 0; k < img_orig.channels; k++)
				img_modified_color.setvalue(i,j,k,(int)((img_bilateral_color.getvalue(i,j,k) * (img_modified.getvalue(i,j,0)))));
	img_modified_color.write_image(outfile, img_modified.cols, img_modified.rows);


}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1f8, %rsp            # imm = 0x1F8
movl %r9d, 0x40(%rsp)
movl %r8d, 0xc(%rsp)
movss %xmm2, 0x3c(%rsp)
movss %xmm1, 0x24(%rsp)
movss %xmm0, 0x54(%rsp)
movl %ecx, %r14d
movl %edx, %r15d
movq %rsi, 0xf0(%rsp)
movq %rdi, %r12
leaq 0x42e9(%rip), %rbp      # 0x1165c
leaq 0x90(%rsp), %r13
movq %r13, %rdi
movq %rbp, %rsi
callq 0x4c6e
leaq 0x1d8(%rsp), %rdi
movq %rbp, %rsi
movl %r15d, %edx
movl %r14d, %ecx
callq 0x4c6e
leaq 0x4e44(%rip), %rbx      # 0x121e7
leaq 0xd0(%rsp), %rdi
movq %rbx, %rsi
movl %r15d, %edx
movl %r14d, %ecx
callq 0x4c6e
leaq 0x1b8(%rsp), %rdi
movq %rbx, %rsi
movl %r15d, %edx
movl %r14d, %ecx
callq 0x4c6e
leaq 0xb0(%rsp), %rdi
movq %rbx, %rsi
movl %r15d, %edx
movl %r14d, %ecx
callq 0x4c6e
leaq 0x178(%rsp), %rdi
movq %rbp, %rsi
movl %r15d, %edx
movl %r14d, %ecx
callq 0x4c6e
leaq 0x198(%rsp), %rdi
movq %rbp, %rsi
movl %r15d, 0x10(%rsp)
movl %r15d, %edx
movl %r14d, 0x14(%rsp)
movl %r14d, %ecx
callq 0x4c6e
movl 0x8(%r13), %eax
movq %rax, 0x18(%rsp)
movslq 0xc(%r13), %rbx
movq %r13, %rdi
movq %r12, %rsi
callq 0x4cde
movq %rbx, 0x28(%rsp)
testq %rbx, %rbx
jle 0xd50a
movq 0xa8(%rsp), %rax
movl 0xa0(%rsp), %ecx
movq 0xe8(%rsp), %rdx
movl 0xe0(%rsp), %esi
movq 0x18(%rsp), %rdi
imull %ecx, %edi
movl 0xd8(%rsp), %r8d
imull %esi, %r8d
xorl %r9d, %r9d
movsd 0x407a(%rip), %xmm0     # 0x114f8
movsd 0x407a(%rip), %xmm1     # 0x11500
movsd 0x407a(%rip), %xmm2     # 0x11508
xorl %r10d, %r10d
xorl %r11d, %r11d
movq 0x18(%rsp), %r12
movq %r12, %rbx
movl %r9d, %r14d
movl %r10d, %r15d
testl %r12d, %r12d
jle 0xd4fa
movslq %r15d, %r15
movzbl (%rax,%r15), %ebp
xorps %xmm3, %xmm3
cvtsi2sd %ebp, %xmm3
movzbl 0x1(%rax,%r15), %ebp
xorps %xmm4, %xmm4
cvtsi2sd %ebp, %xmm4
mulsd %xmm0, %xmm4
mulsd %xmm1, %xmm3
addsd %xmm4, %xmm3
movzbl 0x2(%rax,%r15), %ebp
xorps %xmm4, %xmm4
cvtsi2sd %ebp, %xmm4
mulsd %xmm2, %xmm4
addsd %xmm3, %xmm4
cvttsd2si %xmm4, %ebp
movslq %r14d, %r14
movb %bpl, (%rdx,%r14)
addl %ecx, %r15d
addl %esi, %r14d
decq %rbx
jne 0xd4a7
incq %r11
addl %edi, %r10d
addl %r8d, %r9d
cmpq 0x28(%rsp), %r11
jne 0xd499
cmpl $0x0, 0x238(%rsp)
jle 0xd5eb
leaq 0x90(%rsp), %rax
movl 0x10(%rax), %r15d
leaq 0x178(%rsp), %rcx
movq 0x18(%rcx), %r12
movl 0x10(%rcx), %r13d
movq 0x18(%rax), %rbx
movq 0x18(%rsp), %rax
imull %r15d, %eax
movl %eax, 0x48(%rsp)
movl 0x8(%rcx), %ebp
imull %r13d, %ebp
xorl %eax, %eax
movq %rax, 0x30(%rsp)
leaq 0x90(%rsp), %rdi
leaq 0x178(%rsp), %rsi
movl 0xc(%rsp), %edx
movl 0x40(%rsp), %ecx
movl 0x230(%rsp), %r8d
callq 0x9c1a
cmpl $0x0, 0x28(%rsp)
jle 0xd5d7
xorl %eax, %eax
xorl %ecx, %ecx
xorl %edx, %edx
cmpl $0x0, 0x18(%rsp)
jle 0xd5c7
movl %eax, %esi
movl %ecx, %edi
xorl %r8d, %r8d
testl %r15d, %r15d
jle 0xd5b7
movslq %edi, %r9
addq %rbx, %r9
movslq %esi, %r10
addq %r12, %r10
xorl %r11d, %r11d
movb (%r10,%r11), %r14b
movb %r14b, (%r9,%r11)
incq %r11
cmpq %r11, %r15
jne 0xd5a7
incq %r8
addl %r15d, %edi
addl %r13d, %esi
cmpq 0x18(%rsp), %r8
jne 0xd593
incq %rdx
addl 0x48(%rsp), %ecx
addl %ebp, %eax
cmpq 0x28(%rsp), %rdx
jne 0xd585
movq 0x30(%rsp), %rax
incl %eax
cmpl 0x238(%rsp), %eax
jne 0xd54e
leaq 0x178(%rsp), %rdi
movl 0x8(%rdi), %eax
movl %eax, 0x5c(%rsp)
leaq 0x42b5(%rip), %rsi      # 0x118b6
callq 0x4e1a
movslq 0xdc(%rsp), %rax
movq %rax, 0x48(%rsp)
testq %rax, %rax
jle 0xd6f5
movl 0xd8(%rsp), %ecx
movl 0xe0(%rsp), %edx
movq 0xa8(%rsp), %rsi
movl 0xa0(%rsp), %edi
movq 0xe8(%rsp), %r8
movl %ecx, %r9d
imull %edx, %r9d
xorl %r10d, %r10d
movsd 0x3ea5(%rip), %xmm0     # 0x114f8
movsd 0x3ea5(%rip), %xmm1     # 0x11500
movsd 0x3ea5(%rip), %xmm2     # 0x11508
xorl %r11d, %r11d
testl %ecx, %ecx
jle 0xd6e4
movl %r11d, %ebx
imull 0x18(%rsp), %ebx
movl %r10d, %ebp
xorl %r14d, %r14d
testl %edx, %edx
jle 0xd6da
movslq %ebp, %r15
addq %r8, %r15
leal (%rbx,%r14), %r12d
imull %edi, %r12d
movslq %r12d, %r12
xorl %r13d, %r13d
movzbl (%rsi,%r12), %eax
xorps %xmm3, %xmm3
cvtsi2sd %eax, %xmm3
movzbl 0x1(%rsi,%r12), %eax
xorps %xmm4, %xmm4
cvtsi2sd %eax, %xmm4
mulsd %xmm0, %xmm4
mulsd %xmm1, %xmm3
addsd %xmm4, %xmm3
movzbl 0x2(%rsi,%r12), %eax
xorps %xmm4, %xmm4
cvtsi2sd %eax, %xmm4
mulsd %xmm2, %xmm4
addsd %xmm3, %xmm4
cvttsd2si %xmm4, %eax
movb %al, (%r15,%r13)
incq %r13
cmpq %r13, %rdx
jne 0xd690
incq %r14
addl %edx, %ebp
cmpq %rcx, %r14
jne 0xd678
incq %r11
addl %r9d, %r10d
cmpq 0x48(%rsp), %r11
jne 0xd666
leaq 0x4aeb(%rip), %rbx      # 0x121e7
leaq 0x158(%rsp), %r13
movq %r13, %rdi
movq %rbx, %rsi
movl 0x10(%rsp), %r14d
movl %r14d, %edx
movl 0x14(%rsp), %ebp
movl %ebp, %ecx
callq 0x4c6e
leaq 0x138(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
movl %r14d, %edx
movl %ebp, %ecx
callq 0x4c6e
leaq 0x118(%rsp), %rdi
movq %rbx, %rsi
movl %r14d, %edx
movl %ebp, %ecx
callq 0x4c6e
leaq 0xd0(%rsp), %rbx
movss 0x3ed6(%rip), %xmm0     # 0x11630
movq %rbx, %rdi
movq %r13, %rsi
movl $0x9, %edx
callq 0x8ce4
movss 0x3eda(%rip), %xmm0     # 0x1164c
movq %rbx, %rdi
movq %r12, %rsi
movl $0x9, %edx
callq 0x8ce4
cmpl $0x0, 0x28(%rsp)
jle 0xd8d0
movl 0xa0(%rsp), %eax
movq 0x170(%rsp), %rcx
movq %rcx, 0x48(%rsp)
movl 0x168(%rsp), %edx
xorps %xmm0, %xmm0
cvtss2sd 0x54(%rsp), %xmm0
movq 0x150(%rsp), %rsi
movl 0x148(%rsp), %edi
movq 0x130(%rsp), %r8
movl 0x128(%rsp), %r9d
movl 0x120(%rsp), %ecx
imull %r9d, %ecx
movl %ecx, 0x10(%rsp)
movl 0x140(%rsp), %ecx
imull %edi, %ecx
movl %ecx, 0x70(%rsp)
movl 0x160(%rsp), %ecx
imull %edx, %ecx
movl %ecx, 0x6c(%rsp)
movq $0x0, 0x30(%rsp)
movl $0x0, 0x40(%rsp)
movl $0x0, 0xc(%rsp)
xorl %r10d, %r10d
movl %r10d, 0x14(%rsp)
cmpl $0x0, 0x18(%rsp)
jle 0xd897
movq 0x30(%rsp), %rcx
movl %ecx, %r13d
movl 0x40(%rsp), %ebp
movl 0xc(%rsp), %r15d
xorl %ebx, %ebx
testl %eax, %eax
jle 0xd885
movslq %r15d, %r14
addq %r8, %r14
movslq %ebp, %r10
addq %rsi, %r10
movslq %r13d, %r11
addq 0x48(%rsp), %r11
xorl %r12d, %r12d
movzbl (%r11,%r12), %ecx
xorps %xmm1, %xmm1
cvtsi2ss %ecx, %xmm1
movzbl (%r10,%r12), %ecx
xorps %xmm2, %xmm2
cvtsi2sd %ecx, %xmm2
mulsd %xmm0, %xmm2
cvtsd2ss %xmm2, %xmm2
subss %xmm2, %xmm1
cvttss2si %xmm1, %ecx
movb %cl, (%r14,%r12)
incq %r12
cmpq %r12, %rax
jne 0xd851
incq %rbx
addl %r9d, %r15d
addl %edi, %ebp
addl %edx, %r13d
cmpq 0x18(%rsp), %rbx
jne 0xd836
movl 0x14(%rsp), %r10d
incl %r10d
movl 0xc(%rsp), %ecx
addl 0x10(%rsp), %ecx
movl %ecx, 0xc(%rsp)
movl 0x40(%rsp), %ecx
addl 0x70(%rsp), %ecx
movl %ecx, 0x40(%rsp)
movq 0x30(%rsp), %rcx
addl 0x6c(%rsp), %ecx
movq %rcx, 0x30(%rsp)
cmpl 0x28(%rsp), %r10d
jne 0xd817
leaq 0x118(%rsp), %rdi
movl 0x8(%rdi), %eax
movl %eax, 0x58(%rsp)
leaq 0x3ffa(%rip), %rsi      # 0x118e0
callq 0x4e1a
cmpl $0x0, 0x28(%rsp)
movss 0x24(%rsp), %xmm2
jle 0xdb88
movl 0xa0(%rsp), %ebp
movq 0x130(%rsp), %rax
movq %rax, 0x108(%rsp)
movl 0x128(%rsp), %ecx
movq 0x170(%rsp), %rax
movq %rax, 0x100(%rsp)
movl 0x168(%rsp), %eax
xorps %xmm0, %xmm0
cvtss2sd 0x54(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
movq 0x150(%rsp), %rsi
movq %rsi, 0xf8(%rsp)
movl 0x148(%rsp), %esi
movq 0xc8(%rsp), %rbx
movl 0xb8(%rsp), %r8d
movl %r8d, 0x80(%rsp)
movl 0xc0(%rsp), %r14d
movl 0x140(%rsp), %r9d
movl %esi, 0x8c(%rsp)
imull %esi, %r9d
movl %r9d, 0x88(%rsp)
movl 0x160(%rsp), %esi
movl %eax, 0x54(%rsp)
imull %eax, %esi
movl %esi, 0x84(%rsp)
movl 0x58(%rsp), %eax
movl %ecx, 0x6c(%rsp)
imull %ecx, %eax
movl %eax, 0x58(%rsp)
movq $0x0, 0x78(%rsp)
movsd 0x3b49(%rip), %xmm1     # 0x11510
movl $0x0, 0x68(%rsp)
movl $0x0, 0x64(%rsp)
movl $0x0, 0x60(%rsp)
cmpl $0x0, 0x18(%rsp)
jle 0xdb48
movl 0x80(%rsp), %eax
imull 0x60(%rsp), %eax
movq %rax, 0x110(%rsp)
movq 0x78(%rsp), %rax
movl %eax, 0xc(%rsp)
movl 0x68(%rsp), %eax
movl %eax, 0x14(%rsp)
movl 0x64(%rsp), %eax
movl %eax, 0x10(%rsp)
movq $0x0, 0x70(%rsp)
testl %ebp, %ebp
jle 0xdb09
movslq 0x10(%rsp), %rax
addq 0xf8(%rsp), %rax
movq %rax, 0x48(%rsp)
movslq 0x14(%rsp), %rax
addq 0x100(%rsp), %rax
movq %rax, 0x30(%rsp)
movslq 0xc(%rsp), %r15
addq 0x108(%rsp), %r15
movq 0x110(%rsp), %rax
movq 0x70(%rsp), %rcx
leal (%rax,%rcx), %r12d
xorl %r13d, %r13d
movzbl (%r15,%r13), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
ucomiss %xmm2, %xmm0
jbe 0xda8a
xorl %eax, %eax
jmp 0xdaeb
movq 0x30(%rsp), %rax
movzbl (%rax,%r13), %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
movq 0x48(%rsp), %rax
movzbl (%rax,%r13), %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
mulsd 0x40(%rsp), %xmm1
cvtsd2ss %xmm1, %xmm1
subss %xmm1, %xmm0
subss %xmm2, %xmm0
mulss 0x3c(%rsp), %xmm0
callq 0x2250
movsd 0x3a3f(%rip), %xmm1     # 0x11510
movss 0x24(%rsp), %xmm2
addss 0x3b51(%rip), %xmm0     # 0x11630
cvtss2sd %xmm0, %xmm0
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movl %r12d, %ecx
imull %r14d, %ecx
movslq %ecx, %rcx
addq %rbx, %rcx
movb %al, (%r13,%rcx)
incq %r13
cmpq %r13, %rbp
jne 0xda6d
movq 0x70(%rsp), %rcx
incq %rcx
movl 0x10(%rsp), %eax
addl 0x8c(%rsp), %eax
movl %eax, 0x10(%rsp)
movl 0x14(%rsp), %eax
addl 0x54(%rsp), %eax
movl %eax, 0x14(%rsp)
movl 0xc(%rsp), %eax
addl 0x6c(%rsp), %eax
movl %eax, 0xc(%rsp)
movq %rcx, 0x70(%rsp)
cmpq 0x18(%rsp), %rcx
jne 0xda20
movl 0x60(%rsp), %ecx
incl %ecx
movl 0x64(%rsp), %eax
addl 0x88(%rsp), %eax
movl %eax, 0x64(%rsp)
movl 0x68(%rsp), %eax
addl 0x84(%rsp), %eax
movl %eax, 0x68(%rsp)
movq 0x78(%rsp), %rax
addl 0x58(%rsp), %eax
movq %rax, 0x78(%rsp)
movl %ecx, 0x60(%rsp)
cmpl 0x28(%rsp), %ecx
jne 0xd9df
leaq 0xb0(%rsp), %rdi
movl 0x8(%rdi), %eax
movl %eax, 0xc(%rsp)
leaq 0x3d67(%rip), %rsi      # 0x11905
callq 0x4e1a
cmpl $0x0, 0x28(%rsp)
jle 0xdc10
movl 0xa0(%rsp), %eax
movq 0xc8(%rsp), %rcx
movl 0xc0(%rsp), %edx
movl 0xc(%rsp), %esi
imull %edx, %esi
xorl %edi, %edi
xorl %r8d, %r8d
cmpl $0x0, 0x18(%rsp)
jle 0xdc04
movl %edi, %r9d
xorl %r10d, %r10d
testl %eax, %eax
jle 0xdbf7
movslq %r9d, %r11
addq %rcx, %r11
xorl %ebx, %ebx
cmpb $0x0, (%r11,%rbx)
setne (%r11,%rbx)
incq %rbx
cmpq %rbx, %rax
jne 0xdbe5
incq %r10
addl %edx, %r9d
cmpq 0x18(%rsp), %r10
jne 0xdbd9
incl %r8d
addl %esi, %edi
cmpl 0x28(%rsp), %r8d
jne 0xdbcc
cmpl $0x0, 0x28(%rsp)
jle 0xdd1c
movl 0xa0(%rsp), %ecx
movq 0x190(%rsp), %rax
movq %rax, 0x48(%rsp)
movl 0x188(%rsp), %esi
movq 0xc8(%rsp), %rdi
movl 0xc0(%rsp), %r8d
movq 0x1b0(%rsp), %r9
movl 0x1a8(%rsp), %r10d
movl 0x1a0(%rsp), %eax
imull %r10d, %eax
movl %eax, 0x40(%rsp)
movl 0x5c(%rsp), %eax
imull %esi, %eax
movl %eax, 0x5c(%rsp)
movq $0x0, 0x30(%rsp)
movl $0x0, 0x24(%rsp)
movl $0x0, 0x3c(%rsp)
cmpl $0x0, 0x18(%rsp)
jle 0xdcee
movl 0x3c(%rsp), %eax
movl %eax, %r12d
imull 0xc(%rsp), %r12d
movq 0x30(%rsp), %rax
movl %eax, %r13d
movl 0x24(%rsp), %ebp
xorl %r11d, %r11d
testl %ecx, %ecx
jle 0xdcde
movslq %ebp, %r14
addq %r9, %r14
movslq %r13d, %rbx
addq 0x48(%rsp), %rbx
leal (%r12,%r11), %eax
imull %r8d, %eax
movslq %eax, %r15
xorl %edx, %edx
movb (%rdi,%r15), %al
mulb (%rbx,%rdx)
movb %al, (%r14,%rdx)
incq %rdx
cmpq %rdx, %rcx
jne 0xdccb
incq %r11
addl %r10d, %ebp
addl %esi, %r13d
cmpq 0x18(%rsp), %r11
jne 0xdcac
movl 0x3c(%rsp), %edx
incl %edx
movl 0x24(%rsp), %eax
addl 0x40(%rsp), %eax
movl %eax, 0x24(%rsp)
movq 0x30(%rsp), %rax
addl 0x5c(%rsp), %eax
movq %rax, 0x30(%rsp)
movl %edx, 0x3c(%rsp)
cmpl 0x28(%rsp), %edx
jne 0xdc89
leaq 0x198(%rsp), %rdi
movq 0xf0(%rsp), %rsi
callq 0x4e1a
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop