// File: /workspace/github_c_makefile_star2_O2/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 $0x158, %rsp            # imm = 0x158
movq %rdi, %rbx
movl $0x1310, %esi           # imm = 0x1310
callq 0xdecaf
movq %rax, %r14
pushq $0x30
popq %rsi
movq %rbx, %rdi
callq 0xe0ae9
movq %rax, 0x28(%r14)
leaq 0xcfe4c(%rip), %rsi     # 0x1161bf
movq %rbx, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0xdeba7
leaq 0x50(%rsp), %r15
movq $0x8, (%r15)
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xe4071
movl %eax, (%r14)
leaq 0xca911(%rip), %rsi     # 0x110cbf
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
xorps %xmm0, %xmm0
leaq 0xa0(%rsp), %r12
movaps %xmm0, (%r12)
movq (%r15), %rsi
movq 0x18(%rbx), %rdi
callq 0xe40e8
movq %rax, %r13
movq %rax, %rdi
movq %r12, %rsi
movl %ebp, %edx
callq 0xe002e
leaq 0xf0(%rsp), %rbp
pushq $0x40
popq %rdx
movq %r12, %rdi
movq %rbp, %rsi
xorl %ecx, %ecx
callq 0xe0644
leaq 0xc379c(%rip), %rsi     # 0x109ba1
leaq 0xda9c3(%rip), %rdx     # 0x120dcf
movq %rbx, %rdi
movq %r13, %rcx
movq %rbp, %r8
xorl %eax, %eax
callq 0xde896
addq $0x4, (%r15)
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xe3f6e
movq %rax, 0x8(%r14)
leaq 0xbf871(%rip), %rsi     # 0x105ca8
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x8(%r14), %rdx
cmpq $0xc7, %rdx
jle 0x4648c
pushq $-0x1
popq %rsi
movq %rbx, %rdi
callq 0xdeba7
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4728b
movq 0x28(%r14), %rdi
callq 0xe0e8d
movq %rbx, %rdi
movq %r14, %rsi
callq 0xded32
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testq %rdx, %rdx
je 0x464a2
leaq 0xca838(%rip), %rsi     # 0x110cd0
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdf37f
movq 0x18(%rbx), %rdi
leaq 0x50(%rsp), %rsi
callq 0xe3f6e
movq %rax, 0x10(%r14)
leaq 0xca859(%rip), %rsi     # 0x110d14
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x10(%r14), %rax
cmpq $0xc7, %rax
jg 0x46450
cmpq 0x8(%r14), %rax
jl 0x46450
movq 0x18(%rbx), %rdi
leaq 0x50(%rsp), %r12
movq %r12, %rsi
callq 0xe4071
movq %rax, %r15
leaq 0xe7f2b(%rip), %rsi     # 0x12e427
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xe4071
movq %rax, %r12
leaq 0xca804(%rip), %rsi     # 0x110d23
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
cmpq $0x0, 0x8(%r14)
jne 0x4655d
cmpq $0x0, 0x10(%r14)
jne 0x4655d
testq %r15, %r15
setne %al
testq %r12, %r12
setne %cl
testb %cl, %al
jne 0x4655d
leaq 0xca7e8(%rip), %rsi     # 0x110d39
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdf05a
jmp 0x46562
movb $0x1, 0x20(%r14)
leaq 0x50(%rsp), %r12
movq $0x32, (%r12)
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xe3f6e
leaq 0xca7e6(%rip), %rsi     # 0x110d68
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xe3f6e
movq %rax, %r15
movl %r15d, 0x4(%r14)
movl %r15d, %edi
callq 0x4730d
leaq 0xc2ae7(%rip), %rsi     # 0x109097
movq %rbx, %rdi
movl %r15d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xe3f6e
leaq 0xf1409(%rip), %rsi     # 0x1379dc
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
pushq $-0x1
popq %rsi
movq %rbx, %rdi
callq 0xdeba7
leaq 0xca81e(%rip), %rsi     # 0x110e0f
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rsi
movq %rbx, 0x8(%rsp)
movq %rbx, %rdi
callq 0xdeba7
andq $0x0, 0x18(%r14)
leaq 0x30(%r14), %rax
movq %rax, 0x30(%rsp)
pushq $0x38
popq %rbp
movl $0xc8, %r12d
movq $0x0, 0x10(%rsp)
movq %r14, 0x18(%rsp)
leaq 0x14(%rbp), %rbx
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rdi
cmpq 0x18(%rdi), %rbx
jg 0x467cd
movq %rbp, %rsi
leaq 0xc355f(%rip), %rdx     # 0x109bb0
pushq $0x2
popq %rcx
callq 0xe4d48
testl %eax, %eax
jne 0x467a2
cmpq $0xc8, 0x18(%r14)
jge 0x467ba
movq %r12, 0x28(%rsp)
movq 0x8(%rsp), %r12
movq 0x18(%r12), %rdi
leaq 0x2(%rbp), %rsi
callq 0xe3f46
movq %rax, %r15
movq 0x18(%r12), %rdi
leaq 0x6(%rbp), %rsi
callq 0xe3f46
movq %rax, %r13
movq 0x18(%r12), %rdi
leaq 0xa(%rbp), %rsi
callq 0xe3f46
movq %rax, 0x20(%rsp)
movq 0x18(%r12), %rdi
leaq 0xc(%rbp), %rsi
callq 0xe3eb4
movl %eax, %r14d
movq 0x18(%r12), %rdi
leaq 0xd(%rbp), %rsi
callq 0xe3eb4
movq 0x18(%rsp), %rcx
movl 0x18(%rcx), %edx
movzbl %al, %r10d
movzbl %r14b, %r11d
movq 0x18(%rsp), %r14
subq $0x8, %rsp
movq %r12, %rdi
leaq 0xca77d(%rip), %rsi     # 0x110e6d
movq %rbp, %rcx
movl %r15d, %r8d
movq %r13, %r9
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x38(%rsp)
callq 0xde896
addq $0x20, %rsp
movq 0x18(%r14), %rax
movq %rax, %rcx
shlq $0x4, %rcx
movq 0x30(%rsp), %rdx
movq %rbp, (%rdx,%rcx)
movl %r15d, 0x8(%rdx,%rcx)
cmpb $0x0, 0x20(%r14)
je 0x46744
cmpq 0x8(%r14), %r15
movq 0x28(%rsp), %r12
movq 0x10(%rsp), %rsi
jl 0x46768
cmpq 0x10(%r14), %r15
jle 0x46757
jmp 0x46768
cmpq $0xc7, %r15
movq 0x28(%rsp), %r12
movq 0x10(%rsp), %rsi
jg 0x46768
movl %eax, 0xcb0(%r14,%r15,8)
movb $0x1, 0xcb4(%r14,%r15,8)
cmpq %r12, %r15
movq %r12, %rcx
cmovlq %r15, %rcx
cmpq %rsi, %r15
movq %rsi, %rdx
cmovgq %r15, %rdx
cmpq $0xc8, %r15
cmovlq %rdx, %rsi
movq %rsi, 0x10(%rsp)
cmovlq %rcx, %r12
incq %rax
movq %rax, 0x18(%r14)
addq %rbx, %r13
movq %r13, %rbp
jmp 0x46630
leaq 0xca674(%rip), %rsi     # 0x110e1d
movq 0x8(%rsp), %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0xde896
jmp 0x467cd
leaq 0xca694(%rip), %rsi     # 0x110e55
movq 0x8(%rsp), %rdi
xorl %eax, %eax
callq 0xdf2a5
movq 0x18(%r14), %rax
testq %rax, %rax
je 0x467ec
cmpb $0x0, 0x20(%r14)
movq 0x8(%rsp), %rbx
je 0x467fd
movq 0x8(%r14), %r12
movq 0x10(%r14), %rdi
jmp 0x4680a
leaq 0xca6b4(%rip), %rsi     # 0x110ea7
movq 0x8(%rsp), %rbx
jmp 0x47235
movq %r12, 0x8(%r14)
movq 0x10(%rsp), %rdi
movq %rdi, 0x10(%r14)
movq %r12, %rdx
movq 0x30(%rsp), %rsi
cmpq %rdi, %rdx
jg 0x46838
cmpb $0x0, 0xcb4(%r14,%rdx,8)
je 0x46863
movl 0xcb0(%r14,%rdx,8), %ecx
shlq $0x4, %rcx
movb $0x1, 0xc(%rsi,%rcx)
incq %rdx
jmp 0x46812
xorl %ecx, %ecx
testq %rax, %rax
cmovgq %rax, %rcx
leaq 0x3c(%r14), %rax
subq $0x1, %rcx
jb 0x46879
cmpb $0x0, (%rax)
je 0x4685d
cmpl %r12d, -0x4(%rax)
jne 0x4722e
incl %r12d
addq $0x10, %rax
jmp 0x46845
leaq 0xca64d(%rip), %rsi     # 0x110eb7
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdf2a5
jmp 0x46450
pushq $-0x1
popq %rsi
movq %rbx, %rdi
callq 0xdeba7
movl $0x2c00, %esi           # imm = 0x2C00
movq %rbx, %rdi
xorl %edx, %edx
callq 0xe59cd
movq %rax, 0x10(%rsp)
movq %rax, %rdi
callq 0xe589c
leaq 0xf70db(%rip), %rsi     # 0x13d982
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xe4e62
movq %rax, 0x88(%rsp)
movq %r14, %r13
addq $0x3c, %r13
xorl %edx, %edx
xorl %ecx, %ecx
cmpq 0x18(%r14), %rcx
jge 0x47212
testl %edx, %edx
je 0x468e2
cmpb $0x0, (%r13)
pushq $0x1
popq %rax
jne 0x47204
movl %edx, 0x28(%rsp)
movq %rcx, 0x30(%rsp)
movq 0x10(%rsp), %rdi
xorl %esi, %esi
callq 0xe5eb2
movq %rbx, %rdi
leaq 0x3c(%rsp), %rsi
callq 0xdebae
movl $0x98, %esi
movq %rbx, %rdi
callq 0xdecaf
movq %rax, %r15
movq -0xc(%r13), %r12
movl -0x4(%r13), %r8d
movq %r8, (%rax)
movb (%r13), %al
movb %al, 0x30(%r15)
leaq 0x44(%r15), %r14
testb %al, %al
leaq 0xf132c(%rip), %rcx     # 0x137c60
leaq 0xca5cb(%rip), %rax     # 0x110f06
cmoveq %rax, %rcx
movq %r14, %rdi
pushq $0x50
popq %rsi
leaq 0xca5af(%rip), %rdx     # 0x110efb
xorl %eax, %eax
callq 0xde40c
movq %rbx, %rdi
leaq 0xdcf1d(%rip), %rsi     # 0x12387a
movq %r14, 0x20(%rsp)
movq %r14, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
leaq 0x6(%r12), %rax
movq %rax, 0x90(%rsp)
movq 0x18(%rbx), %rdi
leaq 0x90(%rsp), %r14
movq %r14, %rsi
callq 0xe3f6e
movq %rax, 0x10(%r15)
movq %rbx, %rdi
leaq 0xf6d6c(%rip), %rsi     # 0x13d715
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xe3f6e
movq %rax, 0x18(%r15)
movq %rbx, %rdi
leaq 0xca540(%rip), %rsi     # 0x110f0d
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xe3f6e
movq %rax, 0x20(%r15)
movq %rbx, %rdi
leaq 0xee432(%rip), %rsi     # 0x134e23
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xe3f2a
movzbl %al, %eax
movl %eax, 0x28(%r15)
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xe3f2a
movzbl %al, %eax
movl %eax, 0x2c(%r15)
movq %rbx, %rdi
callq 0xeac74
movq %rax, %r14
movl 0x28(%r15), %ebp
movl 0x2c(%r15), %eax
addl $-0x5, %eax
cmpl $0x1, %eax
ja 0x46a6c
testb $0x4, %bpl
je 0x46a54
movq %r14, %rdi
leaq 0xca569(%rip), %rsi     # 0x110fb5
callq 0xeb884
addl $-0x4, %ebp
testb $0x2, %bpl
je 0x46a6c
movq %r14, %rdi
leaq 0xca557(%rip), %rsi     # 0x110fbb
callq 0xeb884
addl $-0x2, %ebp
testb $0x1, %bpl
je 0x46a83
movq %r14, %rdi
leaq 0xca55b(%rip), %rsi     # 0x110fd7
callq 0xeb884
decl %ebp
testl %ebp, %ebp
je 0x46a9a
movq %r14, %rdi
leaq 0xf0e1a(%rip), %rsi     # 0x1378ab
movl %ebp, %edx
xorl %eax, %eax
callq 0xeb8af
movl 0x28(%r15), %ebp
movq %r14, %rdi
callq 0xeb877
movq %rbx, %rdi
leaq 0xca473(%rip), %rsi     # 0x110f23
movl %ebp, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0xde896
movl 0x2c(%r15), %ebp
movl %ebp, %edi
callq 0x4730d
movq %rbx, %rdi
leaq 0xca46b(%rip), %rsi     # 0x110f3c
movl %ebp, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
leaq 0x90(%rsp), %rbp
movq %rbp, %rsi
callq 0xe3f6e
movl %eax, 0x34(%r15)
movq %rbx, %rdi
leaq 0xf6d95(%rip), %rsi     # 0x13d894
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %rbp, %rsi
callq 0xe3f6e
movl %eax, 0x38(%r15)
movq %rbx, %rdi
leaq 0xca433(%rip), %rsi     # 0x110f55
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %rbp, %rsi
callq 0xe3f6e
movl %eax, 0x3c(%r15)
movq %rbx, %rdi
leaq 0xca434(%rip), %rsi     # 0x110f79
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
addq $0x14, %r12
movq %r12, 0x8(%r15)
movq %rbx, %rdi
leaq 0xd2116(%rip), %rsi     # 0x118c76
movq %r12, %rdx
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movb $0x1, %bpl
movq 0x10(%rsp), %rax
cmpq $0x0, 0x18(%rax)
jne 0x4709e
movq 0x10(%r15), %rax
addq 0x8(%r15), %rax
movq 0x18(%rbx), %rcx
cmpq 0x18(%rcx), %rax
jle 0x46bb0
movq %rbx, %rdi
leaq 0xca439(%rip), %rsi     # 0x110fdd
xorl %eax, %eax
callq 0xdf2a5
jmp 0x4709e
movq %rbx, %rdi
leaq 0x50(%rsp), %rsi
leaq 0x70(%rsp), %rdx
leaq 0xf0(%rsp), %rcx
callq 0xee7ee
movq 0x18(%rbx), %rax
movq %rax, 0x50(%rsp)
movups 0x8(%r15), %xmm0
movups %xmm0, 0x58(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x70(%rsp)
movb $0x1, 0x78(%rsp)
movq 0x20(%r15), %rax
movq %rax, 0x80(%rsp)
andl $0x0, 0x40(%r15)
movl 0x2c(%r15), %r12d
cmpq $0x6, %r12
ja 0x46d96
leaq 0xca042(%rip), %rcx     # 0x110c54
movslq (%rcx,%r12,4), %rax
addq %rcx, %rax
jmpq *%rax
xorl %eax, %eax
cmpl $0x4, %r12d
sete %al
leaq 0x12f8(,%rax,8), %rbx
cmpl $0x2, %r12d
movl $0x12f0, %eax           # imm = 0x12F0
cmoveq %rax, %rbx
movq 0x18(%rsp), %rax
movq (%rax,%rbx), %r12
testq %r12, %r12
movq %rbx, 0x98(%rsp)
je 0x46e2d
cmpb $0x0, 0x30(%r15)
je 0x46e16
movq 0x18(%rsp), %rax
andq $0x0, (%rax,%rbx)
movb $0x1, 0x38(%r12)
movq 0x18(%r15), %rax
movq %rax, 0x40(%r12)
movq 0x10(%r12), %rdi
pushq $0x4
popq %rsi
xorl %edx, %edx
callq 0xee9b4
movq 0x28(%r12), %rdi
jmp 0x46eaf
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movl %r12d, 0x40(%rsp)
movl 0x28(%r15), %eax
movb %al, 0x44(%rsp)
cmpb $0x0, 0x30(%r15)
je 0x46cc5
movq 0x18(%rsp), %rdx
movq 0x1308(%rdx), %rcx
movq %rcx, 0x48(%rsp)
andq $0x0, 0x1308(%rdx)
testb $0x4, %al
leaq 0xf0(%rsp), %rcx
jne 0x46ced
movq %rbx, %rdi
leaq 0x50(%rsp), %rsi
leaq 0x70(%rsp), %rdx
leaq 0x40(%rsp), %r8
callq 0x47a08
jmp 0x46d75
leaq 0xa8(%rsp), %rax
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
leaq 0xcfd(%rip), %rax       # 0x47a08
movq %rax, 0xa0(%rsp)
leaq 0x40(%rsp), %rax
movq %rax, 0xb0(%rsp)
leaq 0x604(%rip), %rax       # 0x4732b
movq %rax, 0xb8(%rsp)
leaq 0x50(%rsp), %rax
movq %rax, 0xc8(%rsp)
leaq 0x70(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq %rcx, 0xd8(%rsp)
movq 0x18(%r15), %rax
movq %rax, 0xe8(%rsp)
movb $0x1, 0xe0(%rsp)
movq %rbx, %rdi
leaq 0xa0(%rsp), %rsi
callq 0xef577
cmpb $0x0, 0x30(%r15)
movq 0x48(%rsp), %rsi
je 0x46e09
movq 0x18(%rsp), %rax
movq %rsi, 0x1308(%rax)
jmp 0x47008
movl %r12d, %edi
callq 0x4730d
movq %rbx, %rdi
leaq 0xca253(%rip), %rsi     # 0x110ffb
movq 0x20(%rsp), %rdx
movl %r12d, %ecx
movq %rax, %r8
xorl %eax, %eax
callq 0xdf2a5
jmp 0x4709e
movq %rbx, %rdi
leaq 0x50(%rsp), %rsi
leaq 0x70(%rsp), %rdx
leaq 0xf0(%rsp), %rcx
xorl %r8d, %r8d
callq 0xeea8f
jmp 0x47008
movq %rbx, %rdi
leaq 0x540(%rip), %rsi       # 0x4732b
xorl %edx, %edx
leaq 0x50(%rsp), %rcx
leaq 0x70(%rsp), %r8
leaq 0xf0(%rsp), %r9
callq 0xeea46
jmp 0x47008
movq %rbx, %rdi
callq 0x47dab
jmp 0x47008
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x47486
movq 0x18(%rsp), %rax
andq $0x0, (%rax,%rbx)
movl $0xa8, %esi
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0xdecaf
movq %rax, %r12
movl 0x2c(%r15), %eax
movl %eax, (%r12)
cmpl $0x4, %eax
leaq 0xca233(%rip), %rcx     # 0x111087
leaq 0xca223(%rip), %rdx     # 0x11107e
cmoveq %rdx, %rcx
cmpl $0x2, %eax
leaq 0xca20b(%rip), %rax     # 0x111074
cmoveq %rax, %rcx
movq %rcx, 0x8(%r12)
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xe6277
movq %rax, %rdi
movq %rax, 0x28(%r12)
movq %r12, 0xa8(%rax)
leaq 0x639(%rip), %rax       # 0x474cd
movq %rax, 0xb0(%rdi)
movq %rdi, 0x30(%r12)
movb $0x1, 0x38(%r12)
movq 0x18(%r15), %rax
movq %rax, 0x40(%r12)
xorl %esi, %esi
callq 0xe5eb2
movq 0x18(%r12), %rdi
testq %rdi, %rdi
je 0x46ecb
callq 0xee9dd
andq $0x0, 0x18(%r12)
movq 0x8(%rsp), %rdi
leaq 0x454(%rip), %rsi       # 0x4732b
xorl %edx, %edx
leaq 0x70(%rsp), %rcx
leaq 0xf0(%rsp), %rbx
movq %rbx, %r8
callq 0xee930
movq %rax, 0x18(%r12)
movq 0x10(%r12), %rdi
testq %rdi, %rdi
jne 0x46f8c
movl (%r12), %eax
cmpl $0x2, %eax
je 0x46f47
cmpl $0x4, %eax
jne 0x46f5f
andl $0x0, 0xa0(%rsp)
movb $0x0, 0xa4(%rsp)
movb $0x1, 0xa3(%rsp)
leaq 0x30(%r12), %rcx
leaq 0x48(%r12), %r8
movq 0x8(%rsp), %rdi
leaq 0xb300c(%rip), %rsi     # 0xf9f49
leaq 0xa0(%rsp), %rdx
jmp 0x46f77
leaq 0x30(%r12), %rcx
leaq 0x48(%r12), %r8
movq 0x8(%rsp), %rdi
leaq 0x5b9(%rip), %rsi       # 0x47516
jmp 0x46f75
leaq 0x30(%r12), %rcx
leaq 0x48(%r12), %r8
movq 0x8(%rsp), %rdi
leaq 0x631(%rip), %rsi       # 0x475a6
xorl %edx, %edx
callq 0xee930
movq %rax, %rdi
movq %rax, 0x10(%r12)
leaq 0xf0(%rsp), %rbx
movq 0x58(%rsp), %rdx
movq %rdx, 0x18(%rdi)
andq $0x0, 0x20(%r12)
movq 0x50(%rsp), %rsi
movq 0x60(%rsp), %rcx
callq 0xeea0d
movq 0x10(%r12), %rdi
pushq $0x3
popq %rsi
xorl %edx, %edx
callq 0xee9b4
movq 0x18(%r12), %rdi
callq 0xee9d1
movq 0x10(%r12), %rax
movq 0x8(%rax), %rsi
movq 0x8(%rsp), %rdi
movq %rbx, %rdx
callq 0xef523
cmpb $0x0, 0x30(%r15)
je 0x46ff8
movq 0x18(%rsp), %rax
movq 0x98(%rsp), %rcx
movq %r12, (%rax,%rcx)
movq 0x8(%rsp), %rbx
jmp 0x47008
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x47486
movq 0x70(%rsp), %rdi
callq 0xe58e8
cmpl $0x0, 0xf0(%rsp)
je 0x47047
movq %rbx, %rdi
leaq 0xf0(%rsp), %rsi
callq 0xee7bc
movq %rbx, %rdi
leaq 0xc9ff2(%rip), %rsi     # 0x111028
movq 0x20(%rsp), %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xdf2a5
jmp 0x4709e
movq 0x10(%rsp), %rdi
movq 0x18(%rdi), %r12
movq 0x20(%r15), %rsi
callq 0xe5eb2
movq 0x20(%r15), %rcx
cmpq %rcx, %r12
jge 0x4707d
movq %rbx, %rdi
leaq 0xc9fda(%rip), %rsi     # 0x111046
movq 0x20(%rsp), %rdx
movq %r12, %r8
xorl %eax, %eax
callq 0xdf2a5
jmp 0x4709e
jle 0x4709c
xorl %ebp, %ebp
movq %rbx, %rdi
leaq 0xc9fbb(%rip), %rsi     # 0x111046
movq 0x20(%rsp), %rdx
movq %r12, %r8
xorl %eax, %eax
callq 0xdf05a
jmp 0x4709e
xorl %ebp, %ebp
cmpb $0x0, 0x30(%r15)
je 0x470b9
testb $0x1, 0x28(%r15)
jne 0x470b9
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
callq 0x4728b
testb %bpl, %bpl
jne 0x47176
movq %rbx, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
movq 0x18(%rsp), %r12
movq 0x28(%r12), %rdi
callq 0xe0e44
movq 0x28(%r12), %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsi), %rcx
xorl %edx, %edx
callq 0xe0f33
movq 0x28(%r12), %rdi
callq 0xe0e95
movzwl %ax, %edx
movl %edx, 0x40(%r15)
movq %rbx, %rdi
leaq 0xf67fb(%rip), %rsi     # 0x13d907
xorl %eax, %eax
callq 0xde896
movl 0x40(%r15), %eax
cmpl 0x34(%r15), %eax
jne 0x47160
movq %r14, %rdi
callq 0xeaf3c
movq %rbx, %rdi
movq %r15, %rsi
callq 0xded32
movl 0x3c(%rsp), %esi
movq %rbx, %rdi
callq 0xdebb7
cmpb $0x0, (%r13)
je 0x471a8
movq 0x10(%rsp), %rdi
movq 0x18(%rdi), %rdx
xorl %esi, %esi
movq 0x88(%rsp), %rcx
callq 0xe45f4
jmp 0x471f6
movq %rbx, %rdi
leaq 0xc9e30(%rip), %rsi     # 0x110f9a
movq 0x20(%rsp), %rdx
xorl %eax, %eax
callq 0xdf2a5
movq %r14, %rdi
callq 0xeaf3c
movq %rbx, %rdi
movq %r15, %rsi
callq 0xded32
movl 0x3c(%rsp), %esi
movq %rbx, %rdi
callq 0xdebb7
cmpb $0x0, (%r13)
pushq $0x1
popq %rax
movl 0x28(%rsp), %ecx
cmovnel %eax, %ecx
movl %ecx, %eax
jmp 0x471fa
movl -0x4(%r13), %ecx
leaq 0xf0(%rsp), %r14
movq %r14, %rdi
pushq $0x50
popq %rsi
leaq 0xc9fde(%rip), %rdx     # 0x11119f
xorl %eax, %eax
callq 0xde40c
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
pushq $0x1
popq %rcx
callq 0xe4e62
movq %rax, %r14
movq 0x10(%rsp), %rdi
movq 0x18(%rdi), %rdx
xorl %esi, %esi
movq %rax, %rcx
callq 0xe45f4
movq %r14, %rdi
callq 0xe5591
movl 0x28(%rsp), %eax
movq 0x18(%rsp), %r14
movq 0x30(%rsp), %rcx
incq %rcx
addq $0x10, %r13
movl %eax, %edx
jmp 0x468c6
movq 0x88(%rsp), %rdi
callq 0xe5591
movq 0x10(%rsp), %rdi
callq 0xe5591
jmp 0x4645b
leaq 0xc9c9b(%rip), %rsi     # 0x110ed0
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdf2a5
jmp 0x46450