// File: /workspace/github_c_makefile_star2_O1/jsummers[P]deark/modules/macpaint.c
// Function: de_run_macpaint
static void de_run_macpaint(deark *c, de_module_params *mparams)
{
	lctx *d;
	struct validity_info *vi1 = NULL;
	struct validity_info *vi2 = NULL;

	d = de_malloc(c, sizeof(lctx));
	d->has_macbinary_header = de_get_ext_option_bool(c, "macpaint:macbinary", -1);

	if(d->has_macbinary_header == -1) {
		d->is_fmac2com = is_fmac2com(c);
	}

	if(d->is_fmac2com) {
		d->has_macbinary_header = 1;
	}

	if(d->has_macbinary_header == -1) {
		int v512;
		int v640;

		de_dbg(c, "trying to determine if file has a MacBinary header");
		de_dbg_indent(c, 1);

		vi1 = de_malloc(c, sizeof(struct validity_info));
		vi1->pos = 0;
		test_valid_image(c, d, vi1);
		v512 = vi1->retval;

		vi2 = de_malloc(c, sizeof(struct validity_info));
		vi2->pos = 128;
		test_valid_image(c, d, vi2);
		v640 = vi2->retval;

		de_dbg_indent(c, -1);

		if(v512 > v640) {
			de_dbg(c, "assuming it has no MacBinary header");
			d->has_macbinary_header = 0;
		}
		else if(v640 > v512) {
			de_dbg(c, "assuming it has a MacBinary header");
			d->has_macbinary_header = 1;
		}
		else if(v512 && v640) {
			de_warn(c, "Can't determine if this file has a MacBinary header. "
				"Try \"-opt macpaint:macbinary=0\".");
			d->has_macbinary_header = 1;
		}
		else {
			de_warn(c, "This is probably not a MacPaint file.");
			d->has_macbinary_header = 1;
		}
	}

	if(d->is_fmac2com)
		de_declare_fmt(c, "FMAC2COM self-displaying MacPaint");
	else if(d->has_macbinary_header)
		de_declare_fmt(c, "MacPaint with MacBinary header");
	else
		de_declare_fmt(c, "MacPaint without MacBinary header");

	if(d->has_macbinary_header) {
		d->hdr_pos = 128;
	}
	else {
		d->hdr_pos = 0;
	}
	d->img_data_pos = d->hdr_pos + 512;

	if(d->has_macbinary_header) {
		do_macbinary(c, d);
	}

	do_read_bitmap(c, d);

	if(!d->is_fmac2com) {
		do_read_patterns(c, d);
	}

	if(d) {
		ucstring_destroy(d->filename);
		de_free(c, d);
	}
	de_free(c, vi1);
	de_free(c, vi2);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rdi, %r12
movl $0x50, %esi
callq 0xe969b
movq %rax, %rbp
leaq 0x9b69d(%rip), %rsi     # 0x12f6e8
movq %r12, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xea727
movl %eax, (%rbp)
cmpl $-0x1, %eax
jne 0x9406b
movq %r12, %rdi
callq 0x94bfb
movb %al, 0x4(%rbp)
cmpb $0x0, 0x4(%rbp)
je 0x94078
movl $0x1, (%rbp)
cmpl $-0x1, (%rbp)
movq %rbp, 0x8(%rsp)
je 0x9409a
movq $0x0, 0x38(%rsp)
movq $0x0, 0x40(%rsp)
jmp 0x94183
leaq 0x9b65a(%rip), %rsi     # 0x12f6fb
xorl %ebx, %ebx
movq %r12, %rdi
xorl %eax, %eax
callq 0xe9226
movq %r12, %rdi
movl $0x1, %esi
callq 0xe9585
movl $0x60, %esi
movq %r12, %rdi
callq 0xe969b
movq %rax, %r14
movq $0x0, (%rax)
movq %r12, %rdi
movq %rax, %rsi
callq 0x94c4b
movq %r14, 0x40(%rsp)
movl 0x8(%r14), %ebp
movl $0x60, %esi
movq %r12, %rdi
callq 0xe969b
movq %rax, %r14
movq $0x80, (%rax)
movq %r12, %rdi
movq %rax, %rsi
callq 0x94c4b
movq %r14, 0x38(%rsp)
movl 0x8(%r14), %r14d
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
cmpl %r14d, %ebp
jle 0x94135
leaq 0x9b605(%rip), %rsi     # 0x12f72e
movq %r12, %rdi
xorl %eax, %eax
callq 0xe9226
jmp 0x9417b
jge 0x9414a
leaq 0x9b614(%rip), %rsi     # 0x12f752
movq %r12, %rdi
xorl %eax, %eax
callq 0xe9226
jmp 0x94176
testl %ebp, %ebp
setne %al
testl %r14d, %r14d
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x94165
leaq 0x9b612(%rip), %rsi     # 0x12f775
jmp 0x9416c
leaq 0x9b65f(%rip), %rsi     # 0x12f7cb
movq %r12, %rdi
xorl %eax, %eax
callq 0xe9b27
movl $0x1, %ebx
movq 0x8(%rsp), %rbp
movl %ebx, (%rbp)
cmpb $0x0, 0x4(%rbp)
je 0x94192
leaq 0x9b661(%rip), %rsi     # 0x12f7f1
jmp 0x941a8
cmpl $0x0, (%rbp)
leaq 0x9b695(%rip), %rax     # 0x12f832
leaq 0x9b66f(%rip), %rsi     # 0x12f813
cmoveq %rax, %rsi
movq %r12, %rdi
callq 0xeb6d6
movl (%rbp), %eax
xorl %ecx, %ecx
testl %eax, %eax
setne %cl
shll $0x7, %ecx
leaq 0x200(%rcx), %rdx
movq %rcx, 0x40(%rbp)
movq %rdx, 0x48(%rbp)
testl %eax, %eax
je 0x943c3
movq 0x18(%r12), %rdi
xorl %r15d, %r15d
xorl %esi, %esi
callq 0xef0d5
movl %eax, %ebp
movq 0x18(%r12), %rdi
movl $0x1, %esi
callq 0xef0d5
testb %bpl, %bpl
jne 0x943a2
addb $-0x40, %al
cmpb $-0x3f, %al
movq 0x8(%rsp), %rbp
jb 0x943a7
leaq 0x9b8fb(%rip), %rsi     # 0x12fb0e
movq %r12, %rdi
xorl %eax, %eax
callq 0xe9226
movq %r12, %rdi
movl $0x1, %esi
callq 0xe9585
movl $0x70, %esi
movq %r12, %rdi
callq 0xe969b
movq %rax, %r15
leaq 0xb783f(%rip), %rax     # 0x14ba80
movq %rax, (%r15)
movq %r12, %rdi
callq 0xea9a9
movq %rax, 0x60(%r15)
movq %r12, %rdi
callq 0xf6870
movq 0x60(%r15), %rcx
movq %rax, 0x90(%rcx)
movq 0x18(%r12), %rcx
movq 0x18(%rcx), %r9
leaq 0x9b47e(%rip), %rsi     # 0x12f6f1
movq %r12, %rdi
movq %r15, %rdx
xorl %r8d, %r8d
callq 0xea5fa
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movl 0x44(%r15), %eax
testq %rax, %rax
je 0x942a7
movb $0x1, 0x5(%rbp)
movq %rax, 0x8(%rbp)
movl 0x48(%r15), %eax
movq %rax, 0x18(%rbp)
movl 0x4c(%r15), %eax
testq %rax, %rax
je 0x942c0
movb $0x1, 0x6(%rbp)
movq %rax, 0x10(%rbp)
movl 0x50(%r15), %eax
movq %rax, 0x20(%rbp)
movq 0x60(%r15), %rax
cmpb $0x0, 0x18(%rax)
je 0x942d5
addq $0x18, %rax
movups (%rax), %xmm0
movups %xmm0, 0x30(%rbp)
cmpb $0x0, 0x5(%rbp)
je 0x94306
movq 0x18(%rbp), %rdx
addq 0x8(%rbp), %rdx
movq 0x18(%r12), %rax
movq 0x18(%rax), %rcx
cmpq %rcx, %rdx
jle 0x94306
leaq 0x9b605(%rip), %rsi     # 0x12f8fd
movq %r12, %rdi
xorl %eax, %eax
callq 0xe9b27
movb $0x0, 0x5(%rbp)
movq 0x60(%r15), %rax
movq 0x90(%rax), %rdi
callq 0xf6c00
testl %eax, %eax
je 0x94335
cmpq $0x0, 0x28(%rbp)
jne 0x94335
movq 0x60(%r15), %rax
movq 0x90(%rax), %rdi
callq 0xf6b5c
movq %rax, 0x28(%rbp)
cmpb $0x0, 0x6(%rbp)
je 0x943a7
movq 0x20(%rbp), %rcx
testq %rcx, %rcx
jle 0x943a7
movq 0x10(%rbp), %rdx
leaq (%rdx,%rcx), %rax
movq 0x18(%r12), %rsi
cmpq 0x18(%rsi), %rax
jg 0x943a7
leaq 0x9b5dd(%rip), %rsi     # 0x12f93b
movq %r12, %rdi
xorl %eax, %eax
callq 0xe9226
movq %r12, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x18(%r12), %rcx
movq 0x10(%rbp), %r8
movq 0x20(%rbp), %r9
leaq 0x82793(%rip), %rsi     # 0x116b1c
movq %r12, %rdi
xorl %edx, %edx
callq 0xea66a
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
jmp 0x943a7
movq 0x8(%rsp), %rbp
testq %r15, %r15
je 0x943c3
movq 0x60(%r15), %rsi
movq %r12, %rdi
callq 0xea9b3
movq %r12, %rdi
movq %r15, %rsi
callq 0xe9752
leaq 0x34(%rsp), %rsi
movq %r12, %rdi
callq 0xe958c
cmpb $0x0, 0x4(%rbp)
jne 0x9444a
movq 0x40(%rbp), %rdx
leaq 0x8edbe(%rip), %rsi     # 0x12319f
movq %r12, %rdi
xorl %eax, %eax
callq 0xe9226
movq %r12, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x18(%r12), %rdi
movq 0x40(%rbp), %rsi
callq 0xef32a
movq %rax, %r14
leaq 0x8006c(%rip), %rsi     # 0x11447c
movq %r12, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0xe9226
cmpq $0x3, %r14
ja 0x94429
cmpq $0x1, %r14
jne 0x9443d
leaq 0x9b529(%rip), %rsi     # 0x12f959
movq %r12, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0xe9b27
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movq 0x48(%rbp), %r15
leaq 0xa68ca(%rip), %rsi     # 0x13ad1f
movq %r12, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0xe9226
movq %r12, %rdi
movl $0x1, %esi
callq 0xe9585
movl $0xca80, %esi           # imm = 0xCA80
movq %r12, %rdi
movl $0x1, %edx
callq 0xf0faf
movq %rax, %r13
movq %rax, %rdi
callq 0xf0e3f
leaq 0x98(%rsp), %r14
movq %r12, %rbx
leaq 0x50(%rsp), %r12
leaq 0xb8(%rsp), %rcx
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0xfa6e0
movq 0x18(%rbx), %rax
movq %rax, (%r14)
movq %r15, 0x8(%r14)
movq 0x18(%rax), %rax
movq %r15, 0x20(%rsp)
subq %r15, %rax
movq %rax, 0x10(%r14)
movq %r13, (%r12)
movb $0x1, 0x8(%r12)
movq $0xca80, 0x10(%r12)     # imm = 0xCA80
movl $0x4, %esi
movq %rbx, 0x10(%rsp)
movq %rbx, %rdi
callq 0xe969b
movq %rax, 0x28(%rsp)
movq 0x8(%r14), %rbx
movq %rbx, 0x18(%rsp)
addq 0x10(%r14), %rbx
movb $0x0, 0x7(%rbp)
cmpb $0x0, 0x8(%r12)
je 0x9451c
cmpq $0x0, 0x60(%rsp)
jle 0x94613
xorl %r15d, %r15d
leaq 0x18(%rsp), %r12
xorl %ebp, %ebp
movq 0x18(%rsp), %rax
addq $0x2, %rax
cmpq %rbx, %rax
jg 0x94613
movq 0x98(%rsp), %rdi
movq %r12, %rsi
callq 0xef14d
testb %al, %al
js 0x94587
movzbl %al, %r14d
movq 0x18(%rsp), %rsi
leaq (%rsi,%r14), %rax
incq %rax
cmpq %rbx, %rax
jg 0x9460b
incq %r14
addq %r14, %rbp
movq 0x98(%rsp), %rdi
movq 0x50(%rsp), %rcx
movq %r14, %rdx
callq 0xefabc
addq %r14, 0x18(%rsp)
jmp 0x945bc
movl %eax, %ecx
negb %cl
jo 0x945bf
movzbl %al, %eax
movl $0x101, %r14d           # imm = 0x101
subq %rax, %r14
addq %r14, %rbp
movq 0x98(%rsp), %rdi
movq %r12, %rsi
callq 0xef14d
movq 0x50(%rsp), %rdi
movzbl %al, %esi
movq %r14, %rdx
callq 0xf14bd
addq %r14, %r15
cmpq $0x48, %rbp
jne 0x945c9
xorl %ebp, %ebp
jmp 0x945f3
jle 0x945f3
movq 0x8(%rsp), %rax
movb $0x1, 0x7(%rax)
movq %rbp, %rax
movabsq $-0x1c71c71c71c71c71, %rcx # imm = 0xE38E38E38E38E38F
mulq %rcx
shrq $0x3, %rdx
andq $-0x8, %rdx
leaq (%rdx,%rdx,8), %rax
subq %rax, %rbp
cmpb $0x0, 0x58(%rsp)
je 0x94526
cmpq 0x60(%rsp), %r15
jl 0x94526
jmp 0x94613
decq %rsi
movq %rsi, 0x18(%rsp)
movq 0x50(%rsp), %rdi
callq 0xf0ea4
movq 0x18(%rsp), %rax
subq 0xa0(%rsp), %rax
movq %rax, 0xc0(%rsp)
movb $0x1, 0xbc(%rsp)
movq %r13, %rdi
callq 0xf0ea4
movq 0xc0(%rsp), %r14
movq 0x18(%r13), %rcx
leaq 0x8cdee(%rip), %rsi     # 0x121443
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0xe9226
movq 0x8(%rsp), %rbp
cmpb $0x0, 0x5(%rbp)
je 0x94698
addq 0x20(%rsp), %r14
movq 0x18(%rbp), %rcx
addq 0x8(%rbp), %rcx
cmpq %rcx, %r14
jle 0x94698
leaq 0x9b2ee(%rip), %rsi     # 0x12f979
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0xe9b27
movq 0x18(%r13), %rdx
cmpq $0xca7f, %rdx           # imm = 0xCA7F
jg 0x946c2
leaq 0x9b316(%rip), %rsi     # 0x12f9c2
movq %rbx, %rdi
movl $0xca80, %ecx           # imm = 0xCA80
xorl %eax, %eax
callq 0xe9b27
movq 0x28(%rsp), %r14
jmp 0x946de
cmpb $0x0, 0x7(%rbp)
movq 0x28(%rsp), %r14
je 0x946de
leaq 0x9b31c(%rip), %rsi     # 0x12f9f0
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9b27
movq %rbx, %rdi
callq 0xea9a9
movq %rax, %r15
movq 0x28(%rbp), %rdx
testq %rdx, %rdx
je 0x94708
cmpb $0x0, 0xd0(%rbx)
je 0x94708
movq %rbx, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
callq 0xea9e4
cmpb $0x0, 0x30(%rbp)
je 0x9471d
movq %rbp, %rax
addq $0x30, %rax
movups (%rax), %xmm0
movups %xmm0, 0x68(%r15)
movl $0x240, %edx            # imm = 0x240
movl $0x2d0, %ecx            # imm = 0x2D0
movl $0x48, %r8d
movq %r13, %rdi
xorl %esi, %esi
movl $0x1, %r9d
pushq $0x0
pushq %r15
callq 0xf30d9
addq $0x10, %rsp
movq %r13, %rdi
callq 0xf0b13
movq %rbx, %rdi
movq %r15, %rsi
callq 0xea9b3
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe9752
movl 0x34(%rsp), %esi
movq %rbx, %rdi
callq 0xe9595
cmpb $0x0, 0x4(%rbp)
jne 0x94adb
leaq 0xb8(%rsp), %rsi
movq %rbx, %rdi
callq 0xe958c
leaq 0x9b2a2(%rip), %rsi     # 0x12fa32
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x40(%rbp), %r13
addq $0x4, %r13
leaq 0x9b28f(%rip), %rsi     # 0x12fa45
movq %rbx, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movq %rbx, %rdi
movl $0x10, %esi
callq 0xeba56
movq %rax, %r14
movq 0x18(%rbx), %rsi
movl $0x130, %ecx            # imm = 0x130
movq %rax, %rdi
movq %r13, %rdx
callq 0xebf09
movq %r14, %rdi
callq 0xebe2a
movl %eax, %ebp
movq %r14, %rdi
callq 0xebe1d
movb $0x1, %bl
cmpl $0x33d2d8d5, %ebp       # imm = 0x33D2D8D5
jg 0x94829
cmpl $0xb5348fd2, %ebp       # imm = 0xB5348FD2
je 0x9484b
cmpl $0x284a7a15, %ebp       # imm = 0x284A7A15
jne 0x94842
leaq 0x9b289(%rip), %rcx     # 0x12fab0
jmp 0x9485d
cmpl $0x47514647, %ebp       # imm = 0x47514647
je 0x94854
cmpl $0x33d2d8d6, %ebp       # imm = 0x33D2D8D6
jne 0x94842
leaq 0xa0415(%rip), %rcx     # 0x134c55
jmp 0x9485d
leaq 0x829c4(%rip), %rcx     # 0x11720d
jmp 0x9485d
leaq 0x9b258(%rip), %rcx     # 0x12faaa
jmp 0x9485b
leaq 0x9b249(%rip), %rcx     # 0x12faa4
xorl %ebx, %ebx
leaq 0x9b1f7(%rip), %rsi     # 0x12fa5b
xorl %r12d, %r12d
movq 0x10(%rsp), %r14
movq %r14, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0xe9226
movl $0x8, %esi
movl $0x130, %edx            # imm = 0x130
movq %r14, %rdi
movl $0x1, %ecx
callq 0xf2cab
movq %rax, %r15
movb $0x1, 0x38(%rax)
movq 0x18(%r14), %rdi
movl $0x1, %edx
movq %r13, %rsi
movq %rax, %rcx
movl $0x1, %r8d
callq 0xf3081
cmpl $0x2, 0x90(%r14)
jge 0x948ca
xorl %r14d, %r14d
xorl %r13d, %r13d
movq 0x10(%rsp), %rbx
jmp 0x94aa4
testb %bl, %bl
je 0x94a85
movq %r15, 0x20(%rsp)
movl $0x17d, %esi            # imm = 0x17D
movl $0x23, %edx
movq 0x10(%rsp), %rdi
movl $0x1, %ecx
callq 0xf2cab
movq %rax, 0x48(%rsp)
movl $0x1, %r14d
movl $0x8, %r12d
xorl %r8d, %r8d
movq 0x48(%rsp), %r15
movq %r8, %rax
movabsq $-0x286bca1af286bca1, %rcx # imm = 0xD79435E50D79435F
mulq %rcx
movq %rdx, %rax
shrq $0x4, %rax
imulq $0x17c, %rax, %rcx      # imm = 0x17C
movq %r14, 0x78(%rsp)
subq %rcx, %r14
movq %r12, 0x70(%rsp)
subq %rcx, %r12
andq $-0x10, %rdx
addq %rdx, %rax
incq %rax
movq %rax, 0x88(%rsp)
movq %r8, 0x68(%rsp)
leaq (,%r8,8), %rax
movq %rax, 0x80(%rsp)
xorl %ecx, %ecx
movq 0x88(%rsp), %rax
movq %rcx, 0x90(%rsp)
leaq (%rax,%rcx), %rbp
movq %rbp, 0x28(%rsp)
andl $0x7, %ebp
orq 0x80(%rsp), %rbp
xorq $0x4, %rbp
xorl %r13d, %r13d
leaq (%r14,%r13), %rbx
leal (%r12,%r13), %esi
andl $0x7, %esi
movq 0x20(%rsp), %rdi
movq %rbp, %rdx
callq 0xf2bd3
shrl $0x10, %eax
movzbl %al, %ecx
movq %r15, %rdi
movq %rbx, %rsi
movq 0x28(%rsp), %rdx
callq 0xf2a4a
incq %r13
cmpq $0x13, %r13
jne 0x9498b
movq 0x90(%rsp), %rcx
incq %rcx
cmpq $0x10, %rcx
jne 0x94960
movq 0x68(%rsp), %r8
incq %r8
movq 0x78(%rsp), %r14
addq $0x14, %r14
movq 0x70(%rsp), %r12
addq $0x14, %r12
cmpq $0x26, %r8
jne 0x94909
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0xf6870
movq %rax, %r12
movq 0x8(%rsp), %rbp
movq 0x28(%rbp), %rsi
testq %rsi, %rsi
je 0x94a3a
cmpb $0x0, 0xd0(%rbx)
je 0x94a3a
movq %r12, %rdi
callq 0xf6969
leaq 0xa6b89(%rip), %rsi     # 0x13b5b6
movq %r12, %rdi
movl $0x5, %edx
callq 0xf6a40
leaq 0x9d72e(%rip), %rsi     # 0x13216f
movq %r12, %rdi
movl $0x5, %edx
callq 0xf6a40
movq %rbx, %rdi
callq 0xea9a9
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0xea9e4
movq 0x48(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
movl $0x9, %edx
callq 0xf2917
movq 0x20(%rsp), %r15
jmp 0x94aa9
leaq 0x9afef(%rip), %rsi     # 0x12fa7b
xorl %r12d, %r12d
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
xorl %r14d, %r14d
xorl %r13d, %r13d
movq 0x8(%rsp), %rbp
movq %r13, %rdi
callq 0xf28d4
movq %r15, %rdi
callq 0xf28d4
movq %rbx, %rdi
movq %r14, %rsi
callq 0xea9b3
movq %r12, %rdi
callq 0xf6bb0
movl 0xb8(%rsp), %esi
movq %rbx, %rdi
callq 0xe9595
movq 0x28(%rbp), %rdi
callq 0xf6bb0
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xe9752
movq %rbx, %rdi
movq 0x40(%rsp), %rsi
callq 0xe9752
movq %rbx, %rdi
movq 0x38(%rsp), %rsi
callq 0xe9752
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq