// File: /workspace/github_c_makefile_star2_O1/jsummers[P]deark/modules/dms.c
// Function: de_run_amiga_dms
static void de_run_amiga_dms(deark *c, de_module_params *mparams)
{
	struct dmsctx *d = NULL;

	d = de_malloc(c, sizeof(struct dmsctx));
	d->crco_cksum = de_crcobj_create(c, DE_CRCOBJ_SUM_BYTES);
	if(!do_dms_header(c, d, 0)) goto done;
	if(!dms_scan_file(c, d, DMS_FILE_HDR_LEN)) goto done;
	do_dms_main(c, d);

done:
	if(d) {
		destroy_saved_dcrmpr_state(c, d);
		de_crcobj_destroy(d->crco_cksum);
		de_free(c, d);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x178, %rsp            # imm = 0x178
movq %rdi, %rbx
movl $0x1310, %esi           # imm = 0x1310
callq 0xe969b
movq %rax, %r14
movq %rbx, %rdi
movl $0x30, %esi
callq 0xeba56
movq %rax, 0x28(%r14)
leaq 0x40(%rsp), %r15
movq $0x0, (%r15)
leaq 0xdab62(%rip), %rsi     # 0x12319f
movq %rbx, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movq $0x8, (%r15)
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xef34e
movl %eax, (%r14)
leaq 0xd5610(%rip), %rsi     # 0x11dc83
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
xorps %xmm0, %xmm0
leaq 0xc0(%rsp), %r12
movaps %xmm0, (%r12)
movq (%r15), %rsi
movq 0x18(%rbx), %rdi
callq 0xef3cb
movq %rax, %r13
movq %rax, %rdi
movq %r12, %rsi
movl $0x1, %edx
callq 0xeace2
leaq 0x110(%rsp), %rbp
movl $0x40, %edx
movq %r12, %rdi
movq %rbp, %rsi
xorl %ecx, %ecx
callq 0xeb4f8
leaq 0xce4b2(%rip), %rsi     # 0x116b81
leaq 0xe5671(%rip), %rdx     # 0x12dd47
movq %rbx, %rdi
movq %r13, %rcx
movq %rbp, %r8
xorl %eax, %eax
callq 0xe9226
addq $0x4, (%r15)
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xef193
movq %rax, 0x8(%r14)
leaq 0xca5b7(%rip), %rsi     # 0x112cb8
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x8(%r14), %rdx
cmpq $0xc7, %rdx
jle 0x48758
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movq %rbx, %rdi
movq %r14, %rsi
callq 0x495c7
movq 0x28(%r14), %rdi
callq 0xebe1d
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe9752
addq $0x178, %rsp            # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testq %rdx, %rdx
je 0x4876e
leaq 0xd5530(%rip), %rsi     # 0x11dc94
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9ef5
movq 0x18(%rbx), %rdi
leaq 0x40(%rsp), %rsi
callq 0xef193
movq %rax, 0x10(%r14)
leaq 0xd5551(%rip), %rsi     # 0x11dcd8
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x10(%r14), %rax
cmpq $0xc7, %rax
jg 0x4871a
cmpq 0x8(%r14), %rax
jl 0x4871a
movq 0x18(%rbx), %rdi
leaq 0x40(%rsp), %r12
movq %r12, %rsi
callq 0xef34e
movq %rax, %r15
leaq 0xf2b97(%rip), %rsi     # 0x13b35f
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef34e
movq %rax, %r12
leaq 0xd54fc(%rip), %rsi     # 0x11dce7
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
cmpq $0x0, 0x8(%r14)
jne 0x48829
cmpq $0x0, 0x10(%r14)
jne 0x48829
testq %r15, %r15
setne %al
testq %r12, %r12
setne %cl
testb %cl, %al
jne 0x48829
leaq 0xd54e0(%rip), %rsi     # 0x11dcfd
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9b27
jmp 0x4882e
movb $0x1, 0x20(%r14)
leaq 0x40(%rsp), %r15
movq $0x32, (%r15)
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xef193
leaq 0xd54df(%rip), %rsi     # 0x11dd2c
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xef193
movl %eax, 0x4(%r14)
cmpl $0x6, %eax
ja 0x48880
movl %eax, %ecx
andl $0x7, %ecx
leaq 0x138ece(%rip), %rdx    # 0x181748
movq (%rdx,%rcx,8), %rcx
jmp 0x48887
leaq 0xe35e2(%rip), %rcx     # 0x12be69
leaq 0xcd7e9(%rip), %rsi     # 0x116077
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
leaq 0x40(%rsp), %rsi
callq 0xef193
leaq 0xfc09d(%rip), %rsi     # 0x14494c
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
leaq 0xd5504(%rip), %rsi     # 0x11ddd3
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movq $0x0, 0x18(%r14)
leaq 0x30(%r14), %rax
movq %rax, 0x8(%rsp)
movl $0x38, %r12d
movl $0xc8, %eax
movq %rax, 0x18(%rsp)
leaq 0xce282(%rip), %r13     # 0x116b90
movq $0x0, 0x10(%rsp)
movq %r14, 0x20(%rsp)
leaq 0x14(%r12), %r15
movq 0x18(%rbx), %rdi
cmpq 0x18(%rdi), %r15
jle 0x48932
xorl %ebp, %ebp
jmp 0x48aab
movl $0x2, %ecx
movq %r12, %rsi
movq %r13, %rdx
callq 0xf025e
testl %eax, %eax
je 0x48961
xorl %ebp, %ebp
movq %rbx, %rdi
leaq 0xd548f(%rip), %rsi     # 0x11dde1
movq %r12, %rdx
xorl %eax, %eax
callq 0xe9226
jmp 0x48aab
cmpq $0xc8, 0x18(%r14)
jl 0x48983
xorl %ebp, %ebp
movq %rbx, %rdi
leaq 0xd54a2(%rip), %rsi     # 0x11de19
xorl %eax, %eax
callq 0xe9df7
jmp 0x48aab
movq 0x18(%rbx), %rdi
leaq 0x2(%r12), %rsi
callq 0xef169
movq %rax, %rbp
movq 0x18(%rbx), %rdi
leaq 0x6(%r12), %rsi
callq 0xef169
movq %rax, %r13
movq 0x18(%rbx), %rdi
leaq 0xa(%r12), %rsi
callq 0xef169
movq %rax, 0x30(%rsp)
movq 0x18(%rbx), %rdi
leaq 0xc(%r12), %rsi
callq 0xef0d5
movl %eax, %r14d
movq 0x18(%rbx), %rdi
leaq 0xd(%r12), %rsi
callq 0xef0d5
movq 0x20(%rsp), %rcx
movl 0x18(%rcx), %edx
movzbl %al, %r10d
movzbl %r14b, %r11d
movq 0x20(%rsp), %r14
subq $0x8, %rsp
movq %rbx, %rdi
leaq 0xd5437(%rip), %rsi     # 0x11de31
movq %r12, %rcx
movl %ebp, %r8d
movq %r13, %r9
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x48(%rsp)
callq 0xe9226
addq $0x20, %rsp
movq 0x18(%r14), %rax
movq %rax, %rcx
shlq $0x4, %rcx
movq 0x8(%rsp), %rdx
movq %r12, (%rdx,%rcx)
movl %ebp, 0x8(%rdx,%rcx)
cmpb $0x0, 0x20(%r14)
je 0x48a43
cmpq 0x8(%r14), %rbp
jl 0x48a5d
cmpq 0x10(%r14), %rbp
jle 0x48a4c
jmp 0x48a5d
cmpq $0xc7, %rbp
jg 0x48a5d
movl %eax, 0xcb0(%r14,%rbp,8)
movb $0x1, 0xcb4(%r14,%rbp,8)
movq 0x18(%rsp), %rsi
cmpq %rsi, %rbp
movq %rsi, %rcx
cmovlq %rbp, %rcx
movq 0x10(%rsp), %rdi
cmpq %rdi, %rbp
movq %rdi, %rdx
cmovgq %rbp, %rdx
cmpq $0xc8, %rbp
cmovlq %rdx, %rdi
movq %rdi, 0x10(%rsp)
cmovlq %rcx, %rsi
movq %rsi, 0x18(%rsp)
incq %rax
movq %rax, 0x18(%r14)
addq %r15, %r13
movb $0x1, %bpl
movq %r13, %r12
leaq 0xce0e5(%rip), %r13     # 0x116b90
testb %bpl, %bpl
jne 0x4891c
movq 0x18(%r14), %rax
testq %rax, %rax
je 0x49543
cmpb $0x0, 0x20(%r14)
jne 0x48ada
movq 0x18(%rsp), %rcx
movq %rcx, 0x8(%r14)
movq 0x10(%rsp), %rcx
movq %rcx, 0x10(%r14)
movq 0x8(%r14), %rcx
movq 0x10(%r14), %rsi
cmpq %rsi, %rcx
movq 0x8(%rsp), %r8
jg 0x48b1b
incq %rsi
movq %rcx, %rdx
cmpb $0x0, 0xcb4(%r14,%rdx,8)
je 0x4954c
movl 0xcb0(%r14,%rdx,8), %edi
shlq $0x4, %rdi
movb $0x1, 0xc(%r8,%rdi)
incq %rdx
cmpq %rdx, %rsi
jne 0x48af2
testq %rax, %rax
jle 0x48b41
leaq 0x3c(%r14), %rdx
cmpb $0x0, (%rdx)
je 0x48b38
movl -0x4(%rdx), %esi
cmpl %ecx, %esi
jne 0x49562
incl %esi
movl %esi, %ecx
addq $0x10, %rdx
decq %rax
jne 0x48b24
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movl $0x2c00, %esi           # imm = 0x2C00
movq %rbx, %rdi
xorl %edx, %edx
callq 0xf0faf
movq %rax, %rbp
movq %rax, %rdi
callq 0xf0e3f
leaq 0x101d33(%rip), %rsi    # 0x14a8a2
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xf037a
movq %rax, 0x90(%rsp)
cmpq $0x0, 0x18(%r14)
jle 0x49529
leaq 0x12f8(%r14), %rax
movq %rax, 0xa8(%rsp)
leaq 0x1300(%r14), %rax
movq %rax, 0xa0(%rsp)
leaq 0x12f0(%r14), %rax
movq %rax, 0xb8(%rsp)
movq %r14, %r13
addq $0x3c, %r13
xorl %ecx, %ecx
xorl %edx, %edx
movq %rbp, 0x38(%rsp)
testl %edx, %edx
je 0x48bdf
movl $0x1, %eax
cmpb $0x0, (%r13)
jne 0x49516
movl %edx, 0x10(%rsp)
movq %rcx, 0x18(%rsp)
movq %rbp, %rdi
xorl %esi, %esi
callq 0xf152a
movq %rbx, %rdi
leaq 0x2c(%rsp), %rsi
callq 0xe958c
movl $0x98, %esi
movq %rbx, %rdi
callq 0xe969b
movq %rax, %r12
movq -0xc(%r13), %rbp
movl -0x4(%r13), %r8d
movq %r8, (%rax)
movb (%r13), %al
movb %al, 0x30(%r12)
leaq 0x44(%r12), %r14
testb %al, %al
leaq 0xfbf9f(%rip), %rcx     # 0x144bd0
leaq 0xd5292(%rip), %rax     # 0x11deca
cmoveq %rax, %rcx
movl $0x50, %esi
movq %r14, %rdi
leaq 0xd5274(%rip), %rdx     # 0x11debf
xorl %eax, %eax
callq 0xe8d67
movq %rbx, %rdi
leaq 0xe7bc6(%rip), %rsi     # 0x130822
movq %r14, 0x8(%rsp)
movq %r14, %rdx
movq %rbp, %rcx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
leaq 0x6(%rbp), %rax
movq %rax, 0x98(%rsp)
movq 0x18(%rbx), %rdi
leaq 0x98(%rsp), %r14
movq %r14, %rsi
callq 0xef193
movq %rax, 0x10(%r12)
movq %rbx, %rdi
leaq 0x10198b(%rip), %rsi    # 0x14a635
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xef193
movq %rax, 0x18(%r12)
movq %rbx, %rdi
leaq 0xd5202(%rip), %rsi     # 0x11ded1
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xef193
movq %rax, 0x20(%r12)
movq %rbx, %rdi
leaq 0xf909f(%rip), %rsi     # 0x141d93
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xef14d
movzbl %al, %eax
movl %eax, 0x28(%r12)
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xef14d
movzbl %al, %eax
movl %eax, 0x2c(%r12)
movq %rbx, %rdi
callq 0xf6870
movq %rax, %r14
movl 0x28(%r12), %r15d
movl 0x2c(%r12), %eax
addl $-0x5, %eax
cmpl $0x1, %eax
ja 0x48d75
testb $0x4, %r15b
je 0x48d5c
movq %r14, %rdi
leaq 0xd5226(%rip), %rsi     # 0x11df79
callq 0xf7566
addl $-0x4, %r15d
testb $0x2, %r15b
je 0x48d75
movq %r14, %rdi
leaq 0xd5213(%rip), %rsi     # 0x11df7f
callq 0xf7566
addl $-0x2, %r15d
testb $0x1, %r15b
je 0x48d8d
movq %r14, %rdi
leaq 0xd5216(%rip), %rsi     # 0x11df9b
callq 0xf7566
decl %r15d
testl %r15d, %r15d
je 0x48da6
movq %r14, %rdi
leaq 0xfba7f(%rip), %rsi     # 0x14481b
movl %r15d, %edx
xorl %eax, %eax
callq 0xf7593
movq %r14, %rdi
movl 0x28(%r12), %r14d
movq %rdi, 0x30(%rsp)
callq 0xf7557
movq %rbx, %rdi
leaq 0xd5125(%rip), %rsi     # 0x11dee7
movl %r14d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0xe9226
movl 0x2c(%r12), %edx
leaq 0xe308e(%rip), %rcx     # 0x12be69
cmpq $0x6, %rdx
ja 0x48dec
leaq 0x138960(%rip), %rax    # 0x181748
movq (%rax,%rdx,8), %rcx
movq %rbx, %rdi
leaq 0xd510a(%rip), %rsi     # 0x11df00
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
leaq 0x98(%rsp), %r14
movq %r14, %rsi
callq 0xef193
movl %eax, 0x34(%r12)
movq %rbx, %rdi
leaq 0x101994(%rip), %rsi    # 0x14a7b4
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xef193
movl %eax, 0x38(%r12)
movq %rbx, %rdi
leaq 0xd50d5(%rip), %rsi     # 0x11df19
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xef193
movl %eax, 0x3c(%r12)
movq %rbx, %rdi
leaq 0xd50d5(%rip), %rsi     # 0x11df3d
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
addq $0x14, %rbp
movq %rbp, 0x8(%r12)
movq %rbx, %rdi
leaq 0xdcdc2(%rip), %rsi     # 0x125c46
movq %rbp, %rdx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movb $0x1, %r14b
movq 0x38(%rsp), %rbp
cmpq $0x0, 0x18(%rbp)
jne 0x493a8
movq 0x10(%r12), %rax
addq 0x8(%r12), %rax
movq 0x18(%rbx), %rcx
cmpq 0x18(%rcx), %rax
jle 0x48ed8
movq %rbx, %rdi
leaq 0xd50d5(%rip), %rsi     # 0x11dfa1
xorl %eax, %eax
callq 0xe9df7
jmp 0x493a8
movq %rbx, %rdi
leaq 0x40(%rsp), %rsi
leaq 0x78(%rsp), %rdx
leaq 0x110(%rsp), %rcx
callq 0xfa6e0
movq 0x18(%rbx), %rax
movq %rax, 0x40(%rsp)
movq 0x8(%r12), %rax
movq %rax, 0x48(%rsp)
movq 0x10(%r12), %rax
movq %rax, 0x50(%rsp)
movq %rbp, 0x78(%rsp)
movb $0x1, 0x80(%rsp)
movq 0x20(%r12), %rax
movq %rax, 0x88(%rsp)
movl $0x0, 0x40(%r12)
movl 0x2c(%r12), %ecx
cmpq $0x6, %rcx
ja 0x49080
leaq 0xd4cec(%rip), %rdx     # 0x11dc34
movslq (%rdx,%rcx,4), %rax
addq %rdx, %rax
movq 0xb8(%rsp), %r15
jmpq *%rax
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
movl %ecx, 0x60(%rsp)
movl 0x28(%r12), %eax
movb %al, 0x64(%rsp)
cmpb $0x0, 0x30(%r12)
je 0x48f92
movq 0x20(%rsp), %rdx
movq 0x1308(%rdx), %rcx
movq %rcx, 0x68(%rsp)
movq $0x0, 0x1308(%rdx)
testb $0x4, %al
leaq 0x110(%rsp), %rcx
jne 0x48fba
movq %rbx, %rdi
leaq 0x40(%rsp), %rsi
leaq 0x78(%rsp), %rdx
leaq 0x60(%rsp), %r8
callq 0x49d6c
jmp 0x49054
movaps %xmm0, 0xc0(%rsp)
movaps %xmm0, 0xd0(%rsp)
movaps %xmm0, 0xe0(%rsp)
movaps %xmm0, 0xf0(%rsp)
movaps %xmm0, 0x100(%rsp)
leaq 0xd83(%rip), %rax       # 0x49d6c
movq %rax, 0xc0(%rsp)
leaq 0x60(%rsp), %rax
movq %rax, 0xd0(%rsp)
leaq 0x650(%rip), %rax       # 0x49655
movq %rax, 0xd8(%rsp)
leaq 0x40(%rsp), %rax
movq %rax, 0xe8(%rsp)
leaq 0x78(%rsp), %rax
movq %rax, 0xf0(%rsp)
movq %rcx, 0xf8(%rsp)
movq 0x18(%r12), %rax
movq %rax, 0x108(%rsp)
movb $0x1, 0x100(%rsp)
movq %rbx, %rdi
leaq 0xc0(%rsp), %rsi
callq 0xfb662
cmpb $0x0, 0x30(%r12)
movq 0x68(%rsp), %rsi
je 0x4912e
movq 0x20(%rsp), %rax
movq %rsi, 0x1308(%rax)
jmp 0x49310
movq 0xa0(%rsp), %r15
jmp 0x490aa
movq %rbx, %rdi
leaq 0xd4f35(%rip), %rsi     # 0x11dfbf
movq 0x8(%rsp), %rdx
leaq 0xe2dd3(%rip), %r8      # 0x12be69
xorl %eax, %eax
callq 0xe9df7
jmp 0x493a8
movq 0xa8(%rsp), %r15
movq (%r15), %rbp
testq %rbp, %rbp
je 0x4914d
cmpb $0x0, 0x30(%r12)
je 0x4913b
movq $0x0, (%r15)
movb $0x1, 0x38(%rbp)
movq 0x18(%r12), %rax
movq %rax, 0x40(%rbp)
movq 0x10(%rbp), %rdi
movl $0x4, %esi
xorl %edx, %edx
callq 0xfa8af
jmp 0x4914f
movq %rbx, %rdi
leaq 0x40(%rsp), %rsi
leaq 0x78(%rsp), %rdx
leaq 0x110(%rsp), %rcx
xorl %r8d, %r8d
callq 0xfaa08
jmp 0x49310
movq %rbx, %rdi
leaq 0x545(%rip), %rsi       # 0x49655
xorl %edx, %edx
leaq 0x40(%rsp), %rcx
leaq 0x78(%rsp), %r8
leaq 0x110(%rsp), %r9
callq 0xfa967
jmp 0x49310
movq %rbx, %rdi
callq 0x4a17e
jmp 0x49310
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x497bf
movq $0x0, (%r15)
xorl %ebp, %ebp
testq %rbp, %rbp
jne 0x491c9
movl $0xa8, %esi
movq %rbx, %rdi
callq 0xe969b
movq %rax, %rbp
movl 0x2c(%r12), %eax
movl %eax, (%rbp)
cmpl $0x4, %eax
leaq 0xd4ed5(%rip), %rcx     # 0x11e04b
leaq 0xd4ec5(%rip), %rdx     # 0x11e042
cmoveq %rdx, %rcx
cmpl $0x2, %eax
leaq 0xd4ead(%rip), %rax     # 0x11e038
cmoveq %rax, %rcx
movq %rcx, 0x8(%rbp)
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xf19d3
movq %rax, 0x28(%rbp)
movq %rbp, 0xa8(%rax)
leaq 0x655(%rip), %rcx       # 0x49806
movq %rcx, 0xb0(%rax)
movq %rax, 0x30(%rbp)
movb $0x1, 0x38(%rbp)
movq 0x18(%r12), %rax
movq %rax, 0x40(%rbp)
movq %r15, 0xb0(%rsp)
movq 0x28(%rbp), %rdi
xorl %esi, %esi
callq 0xf152a
movq 0x18(%rbp), %rdi
testq %rdi, %rdi
je 0x491f2
callq 0xfa8d8
movq $0x0, 0x18(%rbp)
movq %rbx, %rdi
leaq 0x459(%rip), %rsi       # 0x49655
xorl %edx, %edx
leaq 0x78(%rsp), %rcx
leaq 0x110(%rsp), %r15
movq %r15, %r8
callq 0xfa829
movq %rax, 0x18(%rbp)
cmpq $0x0, 0x10(%rbp)
jne 0x4929b
movl (%rbp), %eax
cmpl $0x2, %eax
je 0x49262
cmpl $0x4, %eax
jne 0x49276
movl $0x0, 0xc0(%rsp)
movb $0x0, 0xc4(%rsp)
movb $0x1, 0xc3(%rsp)
leaq 0x30(%rbp), %rcx
leaq 0x48(%rbp), %r8
movq %rbx, %rdi
leaq 0xbda1d(%rip), %rsi     # 0x106c75
leaq 0xc0(%rsp), %rdx
jmp 0x4928a
leaq 0x30(%rbp), %rcx
leaq 0x48(%rbp), %r8
movq %rbx, %rdi
leaq 0x5d6(%rip), %rsi       # 0x4984a
jmp 0x49288
leaq 0x30(%rbp), %rcx
leaq 0x48(%rbp), %r8
movq %rbx, %rdi
leaq 0x654(%rip), %rsi       # 0x498dc
xorl %edx, %edx
callq 0xfa829
movq %rax, 0x10(%rbp)
leaq 0x110(%rsp), %r15
movq 0x48(%rsp), %rdx
movq 0x10(%rbp), %rdi
movq %rdx, 0x18(%rdi)
movq $0x0, 0x20(%rbp)
movq 0x40(%rsp), %rsi
movq 0x50(%rsp), %rcx
callq 0xfa908
movq 0x10(%rbp), %rdi
movl $0x3, %esi
xorl %edx, %edx
callq 0xfa8af
movq 0x18(%rbp), %rdi
callq 0xfa8cc
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rsi
movq %rbx, %rdi
movq %r15, %rdx
callq 0xfb60d
cmpb $0x0, 0x30(%r12)
je 0x49300
movq 0xb0(%rsp), %rax
movq %rbp, (%rax)
jmp 0x4930b
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x497bf
movq 0x38(%rsp), %rbp
movq 0x78(%rsp), %rdi
callq 0xf0ea4
cmpl $0x0, 0x110(%rsp)
je 0x4934f
movq %rbx, %rdi
leaq 0x110(%rsp), %rsi
callq 0xfa6a8
movq %rbx, %rdi
leaq 0xd4cae(%rip), %rsi     # 0x11dfec
movq 0x8(%rsp), %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xe9df7
jmp 0x493a8
movq 0x18(%rbp), %r15
movq 0x20(%r12), %rsi
movq %rbp, %rdi
callq 0xf152a
movq 0x20(%r12), %rcx
cmpq %rcx, %r15
jge 0x49385
movq %rbx, %rdi
leaq 0xd4c96(%rip), %rsi     # 0x11e00a
movq 0x8(%rsp), %rdx
movq %r15, %r8
xorl %eax, %eax
callq 0xe9df7
jmp 0x493a8
jle 0x493a5
xorl %r14d, %r14d
movq %rbx, %rdi
leaq 0xd4c76(%rip), %rsi     # 0x11e00a
movq 0x8(%rsp), %rdx
movq %r15, %r8
xorl %eax, %eax
callq 0xe9b27
jmp 0x493a8
xorl %r14d, %r14d
cmpb $0x0, 0x30(%r12)
je 0x493c5
testb $0x1, 0x28(%r12)
jne 0x493c5
movq %rbx, %rdi
movq 0x20(%rsp), %rsi
callq 0x495c7
testb %r14b, %r14b
movq 0x20(%rsp), %r14
jne 0x49482
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movq 0x28(%r14), %rdi
callq 0xebdc3
movq 0x28(%r14), %rdi
movq 0x18(%rbp), %rcx
movq %rbp, %rsi
xorl %edx, %edx
callq 0xebf09
movq 0x28(%r14), %rdi
callq 0xebe2a
movzwl %ax, %edx
movl %edx, 0x40(%r12)
movq %rbx, %rdi
leaq 0x101411(%rip), %rsi    # 0x14a827
xorl %eax, %eax
callq 0xe9226
movl 0x40(%r12), %eax
cmpl 0x34(%r12), %eax
jne 0x4946c
movq 0x30(%rsp), %rdi
callq 0xf6bb0
movq %rbx, %rdi
movq %r12, %rsi
callq 0xe9752
movl 0x2c(%rsp), %esi
movq %rbx, %rdi
callq 0xe9595
cmpb $0x0, (%r13)
je 0x494b8
movq 0x18(%rbp), %rdx
movq %rbp, %rdi
xorl %esi, %esi
movq 0x90(%rsp), %rcx
callq 0xefabc
jmp 0x4950d
movq %rbx, %rdi
leaq 0xd4ae8(%rip), %rsi     # 0x11df5e
movq 0x8(%rsp), %rdx
xorl %eax, %eax
callq 0xe9df7
movq 0x30(%rsp), %rdi
callq 0xf6bb0
movq %rbx, %rdi
movq %r12, %rsi
callq 0xe9752
movl 0x2c(%rsp), %esi
movq %rbx, %rdi
callq 0xe9595
cmpb $0x0, (%r13)
movl $0x1, %eax
movl 0x10(%rsp), %ecx
cmovnel %eax, %ecx
movl %ecx, %eax
jmp 0x49511
movl -0x4(%r13), %ecx
movl $0x50, %esi
leaq 0x110(%rsp), %r14
movq %r14, %rdi
leaq 0xd4c90(%rip), %rdx     # 0x11e163
xorl %eax, %eax
callq 0xe8d67
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
movl $0x1, %ecx
callq 0xf037a
movq %rax, %r14
movq 0x18(%rbp), %rdx
movq %rbp, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0xefabc
movq %r14, %rdi
movq 0x20(%rsp), %r14
callq 0xf0b13
movl 0x10(%rsp), %eax
movq 0x18(%rsp), %rcx
incq %rcx
addq $0x10, %r13
movl %eax, %edx
cmpq 0x18(%r14), %rcx
jl 0x48bcb
movq 0x90(%rsp), %rdi
callq 0xf0b13
movq %rbp, %rdi
callq 0xf0b13
jmp 0x48727
leaq 0xd4921(%rip), %rsi     # 0x11de6b
jmp 0x49569
leaq 0xd4928(%rip), %rsi     # 0x11de7b
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9df7
jmp 0x4871a
leaq 0xd492b(%rip), %rsi     # 0x11de94
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9df7
jmp 0x4871a