// File: /workspace/github_c_makefile_star2_O3/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 0xe8b2b
movq %rax, %r14
movq %rbx, %rdi
movl $0x30, %esi
callq 0xeb499
movq %rax, 0x28(%r14)
leaq 0xdad76(%rip), %rsi     # 0x12337f
movq %rbx, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
leaq 0x40(%rsp), %r15
movq $0x8, (%r15)
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xeed31
movl %eax, (%r14)
leaq 0xd574f(%rip), %rsi     # 0x11dd93
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
xorps %xmm0, %xmm0
leaq 0xa0(%rsp), %r12
movaps %xmm0, (%r12)
movq (%r15), %rsi
movq 0x18(%rbx), %rdi
callq 0xeedae
movq %rax, %r13
movq %rax, %rdi
movq %r12, %rsi
movl $0x1, %edx
callq 0xea7f5
leaq 0xf0(%rsp), %rbp
movl $0x40, %edx
movq %r12, %rdi
movq %rbp, %rsi
xorl %ecx, %ecx
callq 0xeaf46
leaq 0xce591(%rip), %rsi     # 0x116c31
leaq 0xe5998(%rip), %rdx     # 0x12e03f
movq %rbx, %rdi
movq %r13, %rcx
movq %rbp, %r8
xorl %eax, %eax
callq 0xe8617
addq $0x4, (%r15)
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xeeb91
movq %rax, 0x8(%r14)
leaq 0xca5f6(%rip), %rsi     # 0x112cc8
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x8(%r14), %rdx
cmpq $0xc7, %rdx
jg 0x48a71
testq %rdx, %rdx
je 0x48705
leaq 0xd56a9(%rip), %rsi     # 0x11dda4
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9393
movq 0x18(%rbx), %rdi
leaq 0x40(%rsp), %rsi
callq 0xeeb91
movq %rax, 0x10(%r14)
leaq 0xd56ca(%rip), %rsi     # 0x11dde8
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x10(%r14), %rax
cmpq $0xc7, %rax
jg 0x48a71
cmpq 0x8(%r14), %rax
jl 0x48a71
movq 0x18(%rbx), %rdi
leaq 0x40(%rsp), %r12
movq %r12, %rsi
callq 0xeed31
movq %rax, %r15
leaq 0xf2fb8(%rip), %rsi     # 0x13b717
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xeed31
movq %rax, %r12
leaq 0xd5675(%rip), %rsi     # 0x11ddf7
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
cmpq $0x0, 0x8(%r14)
jne 0x487c0
cmpq $0x0, 0x10(%r14)
jne 0x487c0
testq %r15, %r15
setne %al
testq %r12, %r12
setne %cl
testb %cl, %al
jne 0x487c0
leaq 0xd5659(%rip), %rsi     # 0x11de0d
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8faa
jmp 0x487c5
movb $0x1, 0x20(%r14)
leaq 0x40(%rsp), %r15
movq $0x32, (%r15)
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xeeb91
leaq 0xd5658(%rip), %rsi     # 0x11de3c
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xeeb91
movl %eax, 0x4(%r14)
cmpl $0x7, %eax
jae 0x48817
movl %eax, %ecx
andl $0x7, %ecx
leaq 0x138fd7(%rip), %rdx    # 0x1817e8
movq (%rdx,%rcx,8), %rcx
jmp 0x4881e
leaq 0xe3933(%rip), %rcx     # 0x12c151
leaq 0xcd902(%rip), %rsi     # 0x116127
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
leaq 0x40(%rsp), %rsi
callq 0xeeb91
leaq 0xfc5e6(%rip), %rsi     # 0x144e2c
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
leaq 0xd567d(%rip), %rsi     # 0x11dee3
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq $0x0, 0x18(%r14)
movq %rbx, (%rsp)
movq 0x18(%rbx), %rdi
cmpq $0x4c, 0x18(%rdi)
jl 0x48a5c
leaq 0x30(%r14), %rax
movq %rax, 0x20(%rsp)
movl $0xc8, %r12d
movl $0x38, %r15d
xorl %ebx, %ebx
movq %r14, 0x8(%rsp)
movl $0x2, %ecx
movq %r15, %rsi
leaq 0xce37d(%rip), %rdx     # 0x116c40
callq 0xefc85
testl %eax, %eax
jne 0x48a19
cmpq $0xc8, 0x18(%r14)
jge 0x48a30
movq %r12, 0x10(%rsp)
movq (%rsp), %r12
movq 0x18(%r12), %rdi
leaq 0x2(%r15), %rsi
callq 0xeeb67
movq %rax, %r13
movq 0x18(%r12), %rdi
leaq 0x6(%r15), %rsi
callq 0xeeb67
movq %rax, %rbp
movq 0x18(%r12), %rdi
leaq 0xa(%r15), %rsi
callq 0xeeb67
movq %rax, 0x28(%rsp)
movq 0x18(%r12), %rdi
leaq 0xc(%r15), %rsi
callq 0xeead3
movl %eax, %r14d
movq 0x18(%r12), %rdi
leaq 0xd(%r15), %rsi
callq 0xeead3
movq 0x8(%rsp), %rcx
movl 0x18(%rcx), %edx
movzbl %al, %r10d
movzbl %r14b, %r11d
movq 0x8(%rsp), %r14
subq $0x8, %rsp
movq %r12, %rdi
leaq 0xd55e3(%rip), %rsi     # 0x11df41
movq %r15, %rcx
movl %r13d, %r8d
movq %rbp, %r9
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x40(%rsp)
callq 0xe8617
addq $0x20, %rsp
movq 0x18(%r14), %rax
movq %rax, %rcx
shlq $0x4, %rcx
movq 0x20(%rsp), %rdx
movq %r15, (%rdx,%rcx)
movl %r13d, 0x8(%rdx,%rcx)
cmpb $0x0, 0x20(%r14)
je 0x489ad
cmpq 0x8(%r14), %r13
movq 0x10(%rsp), %r12
jl 0x489cc
cmpq 0x10(%r14), %r13
jle 0x489bb
jmp 0x489cc
cmpq $0xc7, %r13
movq 0x10(%rsp), %r12
jg 0x489cc
movl %eax, 0xcb0(%r14,%r13,8)
movb $0x1, 0xcb4(%r14,%r13,8)
cmpq %r12, %r13
movq %r12, %rcx
cmovlq %r13, %rcx
cmpq %rbx, %r13
movq %rbx, %rdx
cmovgq %r13, %rdx
cmpq $0xc8, %r13
cmovlq %rdx, %rbx
cmovlq %rcx, %r12
incq %rax
movq %rax, 0x18(%r14)
leaq (%r15,%rbp), %rax
addq $0x28, %rax
addq %rbp, %r15
addq $0x14, %r15
movq (%rsp), %rcx
movq 0x18(%rcx), %rdi
cmpq 0x18(%rdi), %rax
jle 0x488b4
jmp 0x48a42
leaq 0xd54d1(%rip), %rsi     # 0x11def1
movq (%rsp), %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0xe8617
jmp 0x48a42
leaq 0xd54f2(%rip), %rsi     # 0x11df29
movq (%rsp), %rdi
xorl %eax, %eax
callq 0xe9295
movq 0x18(%r14), %rax
testq %rax, %rax
je 0x48a5c
cmpb $0x0, 0x20(%r14)
je 0x48aaf
movq 0x8(%r14), %r12
movq 0x10(%r14), %rbx
jmp 0x48ab7
leaq 0xd5518(%rip), %rsi     # 0x11df7b
movq (%rsp), %rbx
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9295
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq %rbx, %rdi
movq %r14, %rsi
callq 0x49561
movq 0x28(%r14), %rdi
callq 0xeb858
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe8be2
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, 0x8(%r14)
movq %rbx, 0x10(%r14)
cmpq %rbx, %r12
jg 0x48aef
incq %rbx
movq %r12, %rdx
movq 0x20(%rsp), %rsi
cmpb $0x0, 0xcb4(%r14,%rdx,8)
je 0x494ec
movl 0xcb0(%r14,%rdx,8), %ecx
shlq $0x4, %rcx
movb $0x1, 0xc(%rsi,%rcx)
incq %rdx
cmpq %rdx, %rbx
jne 0x48ac7
testq %rax, %rax
movq (%rsp), %rbx
jle 0x48b17
leaq 0x3c(%r14), %rcx
cmpb $0x0, (%rcx)
je 0x48b0e
cmpl %r12d, -0x4(%rcx)
jne 0x49506
incl %r12d
addq $0x10, %rcx
decq %rax
jne 0x48afc
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movl $0x2c00, %esi           # imm = 0x2C00
movq %rbx, %rdi
xorl %edx, %edx
callq 0xf09c5
movq %rax, %r12
movq %rax, %rdi
callq 0xf0855
leaq 0x10230d(%rip), %rsi    # 0x14ae52
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xefda1
movq %rax, 0x88(%rsp)
cmpq $0x0, 0x18(%r14)
jle 0x494d2
movq %r14, %r13
addq $0x3c, %r13
xorl %ecx, %ecx
xorl %edx, %edx
movq %r12, 0x38(%rsp)
testl %edx, %edx
je 0x48b88
movl $0x1, %eax
cmpb $0x0, (%r13)
jne 0x494bf
movl %edx, 0x28(%rsp)
movq %rcx, 0x10(%rsp)
movq %r12, %rdi
xorl %esi, %esi
callq 0xf0f27
movq %rbx, %rdi
leaq 0x34(%rsp), %rsi
callq 0xe8a1c
movl $0x98, %esi
movq %rbx, %rdi
callq 0xe8b2b
movq %rax, %rbp
movq -0xc(%r13), %r12
movl -0x4(%r13), %r8d
movq %r8, (%rax)
movb (%r13), %al
movb %al, 0x30(%rbp)
leaq 0x44(%rbp), %r14
testb %al, %al
leaq 0xfc4d9(%rip), %rcx     # 0x1450b0
leaq 0xd53fc(%rip), %rax     # 0x11dfda
cmoveq %rax, %rcx
movl $0x50, %esi
movq %r14, %rdi
leaq 0xd53de(%rip), %rdx     # 0x11dfcf
xorl %eax, %eax
callq 0xe8193
movq %rbx, %rdi
leaq 0xe7f5b(%rip), %rsi     # 0x130b5d
movq %r14, 0x18(%rsp)
movq %r14, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
leaq 0x6(%r12), %rax
movq %rax, 0x90(%rsp)
movq 0x18(%rbx), %rdi
leaq 0x90(%rsp), %r14
movq %r14, %rsi
callq 0xeeb91
movq %rax, 0x10(%rbp)
movq %rbx, %rdi
leaq 0x101f95(%rip), %rsi    # 0x14abe5
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xeeb91
movq %rax, 0x18(%rbp)
movq %rbx, %rdi
leaq 0xd536d(%rip), %rsi     # 0x11dfe1
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xeeb91
movq %rax, 0x20(%rbp)
movq %rbx, %rdi
leaq 0xf95db(%rip), %rsi     # 0x142273
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xeeb4b
movzbl %al, %eax
movl %eax, 0x28(%rbp)
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xeeb4b
movzbl %al, %eax
movl %eax, 0x2c(%rbp)
movq %rbx, %rdi
callq 0xf6410
movq %rax, %r14
movl 0x28(%rbp), %r15d
movl 0x2c(%rbp), %eax
addl $-0x5, %eax
cmpl $0x1, %eax
ja 0x48d12
testb $0x4, %r15b
je 0x48cf9
movq %r14, %rdi
leaq 0xd5399(%rip), %rsi     # 0x11e089
callq 0xf7105
addl $-0x4, %r15d
testb $0x2, %r15b
je 0x48d12
movq %r14, %rdi
leaq 0xd5386(%rip), %rsi     # 0x11e08f
callq 0xf7105
addl $-0x2, %r15d
testb $0x1, %r15b
je 0x48d2a
movq %r14, %rdi
leaq 0xd5389(%rip), %rsi     # 0x11e0ab
callq 0xf7105
decl %r15d
testl %r15d, %r15d
je 0x48d43
movq %r14, %rdi
leaq 0xfbfc2(%rip), %rsi     # 0x144cfb
movl %r15d, %edx
xorl %eax, %eax
callq 0xf7132
movq %r14, %rdi
movl 0x28(%rbp), %r14d
movq %rdi, 0x20(%rsp)
callq 0xf70f6
movq %rbx, %rdi
leaq 0xd5299(%rip), %rsi     # 0x11dff7
movl %r14d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0xe8617
movl 0x2c(%rbp), %edx
leaq 0xe33dc(%rip), %rcx     # 0x12c151
cmpq $0x6, %rdx
ja 0x48d86
leaq 0x138a66(%rip), %rax    # 0x1817e8
movq (%rax,%rdx,8), %rcx
movq %rbx, %rdi
leaq 0xd5280(%rip), %rsi     # 0x11e010
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
leaq 0x90(%rsp), %r14
movq %r14, %rsi
callq 0xeeb91
movl %eax, 0x34(%rbp)
movq %rbx, %rdi
leaq 0x101fac(%rip), %rsi    # 0x14ad64
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xeeb91
movl %eax, 0x38(%rbp)
movq %rbx, %rdi
leaq 0xd524f(%rip), %rsi     # 0x11e029
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xeeb91
movl %eax, 0x3c(%rbp)
movq %rbx, %rdi
leaq 0xd5251(%rip), %rsi     # 0x11e04d
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
addq $0x14, %r12
movq %r12, 0x8(%rbp)
movq %rbx, %rdi
leaq 0xdd05f(%rip), %rsi     # 0x125e76
movq %r12, %rdx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movb $0x1, %r14b
movq 0x38(%rsp), %r12
cmpq $0x0, 0x18(%r12)
jne 0x49358
movq 0x10(%rbp), %rax
addq 0x8(%rbp), %rax
movq 0x18(%rbx), %rcx
cmpq 0x18(%rcx), %rax
jle 0x48e6a
movq %rbx, %rdi
leaq 0xd5253(%rip), %rsi     # 0x11e0b1
xorl %eax, %eax
callq 0xe9295
jmp 0x49358
movq %rbx, %rdi
leaq 0x40(%rsp), %rsi
leaq 0x70(%rsp), %rdx
leaq 0xf0(%rsp), %rcx
callq 0xfa1dc
movq 0x18(%rbx), %rax
movq %rax, 0x40(%rsp)
movups 0x8(%rbp), %xmm0
movups %xmm0, 0x48(%rsp)
movq %r12, 0x70(%rsp)
movb $0x1, 0x78(%rsp)
movq 0x20(%rbp), %rax
movq %rax, 0x80(%rsp)
movl $0x0, 0x40(%rbp)
movl 0x2c(%rbp), %ecx
cmpq $0x6, %rcx
ja 0x49040
leaq 0xd4e7d(%rip), %rdx     # 0x11dd44
movslq (%rdx,%rcx,4), %rax
addq %rdx, %rax
jmpq *%rax
xorl %eax, %eax
cmpl $0x4, %ecx
sete %al
leaq 0x12f8(,%rax,8), %rbx
cmpl $0x2, %ecx
movl $0x12f0, %eax           # imm = 0x12F0
cmoveq %rax, %rbx
movq 0x8(%rsp), %rax
movq (%rax,%rbx), %r12
testq %r12, %r12
je 0x490d2
cmpb $0x0, 0x30(%rbp)
je 0x490b9
movq 0x8(%rsp), %rax
movq $0x0, (%rax,%rbx)
movb $0x1, 0x38(%r12)
movq 0x18(%rbp), %rax
movq %rax, 0x40(%r12)
movq 0x10(%r12), %rdi
movl $0x4, %esi
xorl %edx, %edx
callq 0xfa3ab
movq 0x28(%r12), %rdi
jmp 0x49152
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
movl %ecx, 0x60(%rsp)
movl 0x28(%rbp), %eax
movb %al, 0x64(%rsp)
cmpb $0x0, 0x30(%rbp)
je 0x48f74
movq 0x8(%rsp), %rdx
movq 0x1308(%rdx), %rcx
movq %rcx, 0x68(%rsp)
movq $0x0, 0x1308(%rdx)
testb $0x4, %al
leaq 0xf0(%rsp), %rcx
jne 0x48f9c
movq %rbx, %rdi
leaq 0x40(%rsp), %rsi
leaq 0x70(%rsp), %rdx
leaq 0x60(%rsp), %r8
callq 0x49d0c
jmp 0x49024
movq 0x18(%rbp), %rax
leaq 0xa8(%rsp), %rdx
movups %xmm0, 0x30(%rdx)
movups %xmm0, 0x20(%rdx)
movups %xmm0, 0x10(%rdx)
movups %xmm0, (%rdx)
leaq 0xd4e(%rip), %rdx       # 0x49d0c
movq %rdx, 0xa0(%rsp)
leaq 0x60(%rsp), %rdx
movq %rdx, 0xb0(%rsp)
leaq 0x615(%rip), %rdx       # 0x495ef
movq %rdx, 0xb8(%rsp)
leaq 0x40(%rsp), %rdx
movq %rdx, 0xc8(%rsp)
leaq 0x70(%rsp), %rdx
movq %rdx, 0xd0(%rsp)
movq %rcx, 0xd8(%rsp)
movq %rax, 0xe8(%rsp)
movb $0x1, 0xe0(%rsp)
movq %rbx, %rdi
leaq 0xa0(%rsp), %rsi
callq 0xfb10b
cmpb $0x0, 0x30(%rbp)
movq 0x68(%rsp), %rsi
je 0x490ac
movq 0x8(%rsp), %rax
movq %rsi, 0x1308(%rax)
jmp 0x492c1
movq %rbx, %rdi
leaq 0xd5085(%rip), %rsi     # 0x11e0cf
movq 0x18(%rsp), %rdx
leaq 0xe30fb(%rip), %r8      # 0x12c151
xorl %eax, %eax
callq 0xe9295
jmp 0x49358
movq %rbx, %rdi
leaq 0x40(%rsp), %rsi
leaq 0x70(%rsp), %rdx
leaq 0xf0(%rsp), %rcx
xorl %r8d, %r8d
callq 0xfa510
jmp 0x492c1
movq %rbx, %rdi
leaq 0x561(%rip), %rsi       # 0x495ef
xorl %edx, %edx
leaq 0x40(%rsp), %rcx
leaq 0x70(%rsp), %r8
leaq 0xf0(%rsp), %r9
callq 0xfa46f
jmp 0x492c1
movq %rbx, %rdi
callq 0x4a0d8
jmp 0x492c1
movq (%rsp), %rdi
movq %r12, %rsi
callq 0x49759
movq 0x8(%rsp), %rax
movq $0x0, (%rax,%rbx)
movl $0xa8, %esi
movq (%rsp), %r15
movq %r15, %rdi
callq 0xe8b2b
movq %rax, %r12
movl 0x2c(%rbp), %eax
movl %eax, (%r12)
cmpl $0x4, %eax
leaq 0xd5064(%rip), %rcx     # 0x11e15b
leaq 0xd5054(%rip), %rdx     # 0x11e152
cmoveq %rdx, %rcx
cmpl $0x2, %eax
leaq 0xd503c(%rip), %rax     # 0x11e148
cmoveq %rax, %rcx
movq %rcx, 0x8(%r12)
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xf13d3
movq %rax, %rdi
movq %rax, 0x28(%r12)
movq %r12, 0xa8(%rax)
leaq 0x669(%rip), %rax       # 0x497a0
movq %rax, 0xb0(%rdi)
movq %rdi, 0x30(%r12)
movb $0x1, 0x38(%r12)
movq 0x18(%rbp), %rax
movq %rax, 0x40(%r12)
movq %rbx, 0x98(%rsp)
xorl %esi, %esi
callq 0xf0f27
movq 0x18(%r12), %rdi
testq %rdi, %rdi
je 0x49179
callq 0xfa3d4
movq $0x0, 0x18(%r12)
movq (%rsp), %r15
movq %r15, %rdi
leaq 0x468(%rip), %rsi       # 0x495ef
xorl %edx, %edx
leaq 0x70(%rsp), %rcx
leaq 0xf0(%rsp), %rbx
movq %rbx, %r8
callq 0xfa325
movq %rax, 0x18(%r12)
movq 0x10(%r12), %rdi
testq %rdi, %rdi
jne 0x49245
movl (%r12), %eax
cmpl $0x2, %eax
je 0x491fc
cmpl $0x4, %eax
jne 0x49216
movl $0x0, 0xa0(%rsp)
movb $0x0, 0xa4(%rsp)
movb $0x1, 0xa3(%rsp)
leaq 0x30(%r12), %rcx
leaq 0x48(%r12), %r8
movq (%rsp), %r15
movq %r15, %rdi
leaq 0xbd5d3(%rip), %rsi     # 0x1067c5
leaq 0xa0(%rsp), %rdx
jmp 0x49230
leaq 0x30(%r12), %rcx
leaq 0x48(%r12), %r8
movq (%rsp), %r15
movq %r15, %rdi
leaq 0x5d5(%rip), %rsi       # 0x497e9
jmp 0x4922e
leaq 0x30(%r12), %rcx
leaq 0x48(%r12), %r8
movq (%rsp), %r15
movq %r15, %rdi
leaq 0x64d(%rip), %rsi       # 0x4987b
xorl %edx, %edx
callq 0xfa325
movq %rax, %rdi
movq %rax, 0x10(%r12)
leaq 0xf0(%rsp), %rbx
movq 0x48(%rsp), %rdx
movq %rdx, 0x18(%rdi)
movq $0x0, 0x20(%r12)
movq 0x40(%rsp), %rsi
movq 0x50(%rsp), %rcx
callq 0xfa404
movq 0x10(%r12), %rdi
movl $0x3, %esi
xorl %edx, %edx
callq 0xfa3ab
movq 0x18(%r12), %rdi
callq 0xfa3c8
movq 0x10(%r12), %rax
movq 0x8(%rax), %rsi
movq %r15, %rdi
movq %rbx, %rdx
callq 0xfb0b6
cmpb $0x0, 0x30(%rbp)
je 0x492ae
movq 0x8(%rsp), %rax
movq 0x98(%rsp), %rcx
movq %r12, (%rax,%rcx)
jmp 0x492b9
movq %r15, %rdi
movq %r12, %rsi
callq 0x49759
movq %r15, %rbx
movq 0x38(%rsp), %r12
movq 0x70(%rsp), %rdi
callq 0xf08ba
cmpl $0x0, 0xf0(%rsp)
je 0x49300
movq %rbx, %rdi
leaq 0xf0(%rsp), %rsi
callq 0xfa1a4
movq %rbx, %rdi
leaq 0xd4e0d(%rip), %rsi     # 0x11e0fc
movq 0x18(%rsp), %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xe9295
jmp 0x49358
movq 0x18(%r12), %r15
movq 0x20(%rbp), %rsi
movq %r12, %rdi
callq 0xf0f27
movq 0x20(%rbp), %rcx
cmpq %rcx, %r15
jge 0x49335
movq %rbx, %rdi
leaq 0xd4df6(%rip), %rsi     # 0x11e11a
movq 0x18(%rsp), %rdx
movq %r15, %r8
xorl %eax, %eax
callq 0xe9295
jmp 0x49358
jle 0x49355
xorl %r14d, %r14d
movq %rbx, %rdi
leaq 0xd4dd6(%rip), %rsi     # 0x11e11a
movq 0x18(%rsp), %rdx
movq %r15, %r8
xorl %eax, %eax
callq 0xe8faa
jmp 0x49358
xorl %r14d, %r14d
cmpb $0x0, 0x30(%rbp)
je 0x49371
testb $0x1, 0x28(%rbp)
jne 0x49371
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
callq 0x49561
testb %r14b, %r14b
movq 0x8(%rsp), %r14
jne 0x4942a
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq 0x28(%r14), %rdi
callq 0xeb7fe
movq 0x28(%r14), %rdi
movq 0x18(%r12), %rcx
movq %r12, %rsi
xorl %edx, %edx
callq 0xeb944
movq 0x28(%r14), %rdi
callq 0xeb865
movzwl %ax, %edx
movl %edx, 0x40(%rbp)
movq %rbx, %rdi
leaq 0x101a16(%rip), %rsi    # 0x14add7
xorl %eax, %eax
callq 0xe8617
movl 0x40(%rbp), %eax
cmpl 0x34(%rbp), %eax
jne 0x49414
movq 0x20(%rsp), %rdi
callq 0xf6753
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xe8be2
movl 0x34(%rsp), %esi
movq %rbx, %rdi
callq 0xe8a25
cmpb $0x0, (%r13)
je 0x49460
movq 0x18(%r12), %rdx
movq %r12, %rdi
xorl %esi, %esi
movq 0x88(%rsp), %rcx
callq 0xef481
jmp 0x494b6
movq %rbx, %rdi
leaq 0xd4c50(%rip), %rsi     # 0x11e06e
movq 0x18(%rsp), %rdx
xorl %eax, %eax
callq 0xe9295
movq 0x20(%rsp), %rdi
callq 0xf6753
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xe8be2
movl 0x34(%rsp), %esi
movq %rbx, %rdi
callq 0xe8a25
cmpb $0x0, (%r13)
movl $0x1, %eax
movl 0x28(%rsp), %ecx
cmovnel %eax, %ecx
movl %ecx, %eax
jmp 0x494ba
movl -0x4(%r13), %ecx
movl $0x50, %esi
leaq 0xf0(%rsp), %r14
movq %r14, %rdi
leaq 0xd4df8(%rip), %rdx     # 0x11e273
xorl %eax, %eax
callq 0xe8193
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
movl $0x1, %ecx
callq 0xefda1
movq %rax, %r14
movq 0x18(%r12), %rdx
movq %r12, %rdi
xorl %esi, %esi
movq %rax, %rcx
callq 0xef481
movq %r14, %rdi
movq 0x8(%rsp), %r14
callq 0xf052b
movl 0x28(%rsp), %eax
movq 0x10(%rsp), %rcx
incq %rcx
addq $0x10, %r13
movl %eax, %edx
cmpq 0x18(%r14), %rcx
jl 0x48b74
movq 0x88(%rsp), %rdi
callq 0xf052b
movq %r12, %rdi
callq 0xf052b
jmp 0x48a7e
leaq 0xd4a98(%rip), %rsi     # 0x11df8b
movq (%rsp), %rbx
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9295
jmp 0x48a71
leaq 0xd4a97(%rip), %rsi     # 0x11dfa4
jmp 0x48a67