// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/amigaicon.c
// Function: de_run_amigaicon
static void de_run_amigaicon(deark *c, de_module_params *mparams)
{
	lctx *d;
	i64 i;

	d = de_malloc(c, sizeof(lctx));

	do_scan_file(c, d);

	if(d->has_glowicons) {
		de_declare_fmt(c, "Amiga Workbench Icon, GlowIcons");
	}
	else if(d->has_newicons) {
		de_declare_fmt(c, "Amiga Workbench Icon, NewIcons");
	}
	else {
		de_declare_fmt(c, "Amiga Workbench Icon");
	}

	de_dbg(c, "finished scanning file, now extracting icons");

	// Original format icons
	for(i=0; i<d->num_main_icons; i++) {
		do_read_main_icon(c, d, d->main_icon_pos[i], i);
	}

	// NewIcons
	for(i=0; i<2; i++) {
		if(d->newicons_data[i]) {
			do_decode_newicons(c, d, d->newicons_data[i], (int)i);
		}
	}

	// GlowIcons
	if(d->has_glowicons) {
		do_glowicons(c, d, d->glowicons_pos);
	}

	if(d->newicons_data[0]) dbuf_close(d->newicons_data[0]);
	if(d->newicons_data[1]) dbuf_close(d->newicons_data[1]);
	de_free(c, d);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x478, %rsp            # imm = 0x478
movq %rdi, %rbp
movl $0xc88, %esi            # imm = 0xC88
callq 0xdecaf
movq %rax, %r14
leaq 0x30(%rsp), %rsi
movq %rbp, %rdi
callq 0xdebae
leaq 0xe96b8(%rip), %rsi     # 0x1044b1
pushq $0x4e
popq %rcx
movq %rbp, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %r12
movq %rbp, %rdi
movl %r12d, %esi
callq 0xdeba7
movq 0x18(%rbp), %rdi
pushq $0x2
popq %rbx
movq %rbx, %rsi
callq 0xe3f46
leaq 0x10c6c4(%rip), %rsi    # 0x1274f1
movq %rbp, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
leaq 0xe968a(%rip), %rsi     # 0x1044ca
pushq $0x4
popq %rdx
pushq $0x2c
popq %rcx
movq %rbp, %rdi
xorl %eax, %eax
callq 0xde896
movq %rbp, %rdi
movl %r12d, %esi
callq 0xdeba7
movq 0x18(%rbp), %rdi
pushq $0xc
popq %rsi
callq 0xe3f46
movq %rax, %r15
movq 0x18(%rbp), %rdi
pushq $0xe
popq %rsi
callq 0xe3f46
leaq 0xe9662(%rip), %rsi     # 0x1044df
movq %rbp, %rdi
movl %r15d, %edx
movl %eax, %ecx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbp), %rdi
pushq $0x1a
popq %rsi
callq 0xe404f
movq %rax, %r15
leaq 0xe9656(%rip), %rsi     # 0x1044f8
movq %rbp, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xde896
cmpq $0x1, %r15
sbbq $0x0, %rbx
movq %rbx, 0x20(%r14)
movq %rbp, %rdi
movl %r12d, %esi
callq 0xdeba7
movl 0x20(%r14), %edx
leaq 0xe963c(%rip), %rsi     # 0x10450d
movq %rbp, %rdi
xorl %eax, %eax
callq 0xde896
pushq $-0x1
popq %rbx
movq %rbp, %rdi
movl %ebx, %esi
callq 0xdeba7
movq 0x18(%rbp), %rdi
pushq $0x2c
popq %rsi
callq 0xe404f
movzbl %al, %edx
movq %rdx, (%r14)
leaq 0xe962b(%rip), %rsi     # 0x10452c
movq %rbp, %rdi
xorl %eax, %eax
callq 0xde896
movq %rbp, %rdi
movl %ebx, %esi
callq 0xdeba7
movq 0x18(%rbp), %rdi
pushq $0x30
popq %rsi
callq 0xe3eb4
movb %al, 0x8(%r14)
movzbl %al, %edx
leal -0x1(%rdx), %eax
cmpb $0x6, %al
ja 0x1af42
movzbl %al, %eax
leaq 0xe9ac7(%rip), %rsi     # 0x104a00
movslq (%rsi,%rax,4), %rcx
addq %rsi, %rcx
jmp 0x1af49
leaq 0x103f98(%rip), %rcx    # 0x11eee1
leaq 0xe95ee(%rip), %rsi     # 0x10453e
movq %rbp, %rdi
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbp), %rdi
pushq $0x32
popq %rsi
callq 0xe404f
xorl %ecx, %ecx
testq %rax, %rax
setne %cl
movl %ecx, 0x14(%r14)
leaq 0xe95d8(%rip), %rsi     # 0x104551
movq %rbp, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbp), %rdi
pushq $0x36
popq %rsi
callq 0xe404f
xorl %ecx, %ecx
testq %rax, %rax
setne %cl
movl %ecx, 0x18(%r14)
leaq 0xe95c1(%rip), %rsi     # 0x104565
movq %rbp, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbp), %rdi
pushq $0x42
popq %rsi
callq 0xe404f
xorl %ecx, %ecx
testq %rax, %rax
setne %cl
movl %ecx, 0xc(%r14)
leaq 0xe95a8(%rip), %rsi     # 0x104577
movq %rbp, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbp), %rdi
pushq $0x46
popq %rsi
callq 0xe404f
xorl %ecx, %ecx
testq %rax, %rax
setne %cl
movl %ecx, 0x10(%r14)
leaq 0xe9590(%rip), %rsi     # 0x10458a
movq %rbp, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
pushq $-0x1
popq %rsi
movq %rbp, %rdi
callq 0xdeba7
cmpl $0x0, 0xc(%r14)
je 0x1b075
leaq 0xe957e(%rip), %rsi     # 0x10459d
pushq $0x4e
popq %rdx
pushq $0x38
popq %rcx
movq %rbp, %rdi
xorl %eax, %eax
callq 0xde896
movl $0x86, %r15d
cmpl $0x2, (%rbp)
jl 0x1b079
pushq $0x1
popq %rsi
movq %rbp, %rdi
callq 0xdeba7
movq 0x18(%rbp), %rsi
movl $0x1, (%rsp)
pushq $0x4e
popq %rdx
pushq $0x38
popq %rcx
movl $0x100, %r8d            # imm = 0x100
movq %rbp, %rdi
xorl %r9d, %r9d
callq 0xded3a
pushq $-0x1
popq %rsi
movq %rbp, %rdi
callq 0xdeba7
jmp 0x1b079
pushq $0x4e
popq %r15
xorl %r12d, %r12d
movq %rbp, 0x18(%rsp)
cmpq 0x20(%r14), %r12
jge 0x1b112
movq %r15, 0x28(%r14,%r12,8)
movq 0x18(%rbp), %rdi
leaq 0x4(%r15), %rsi
callq 0xe3f46
movq %rax, %r13
movq 0x18(%rbp), %rdi
leaq 0x6(%r15), %rsi
callq 0xe3f46
movq %rax, %rbp
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rdi
leaq 0x8(%r15), %rsi
callq 0xe3f46
movq %rax, %rbx
addq $0xf, %r13
movq %r13, %rax
cqto
pushq $0x10
popq %rcx
idivq %rcx
imulq %rbp, %rbx
movq 0x18(%rsp), %rbp
imulq %rax, %rbx
leaq 0x14(,%rbx,2), %r8
movq 0x28(%r14,%r12,8), %rcx
movq %rbp, %rdi
leaq 0xe94c0(%rip), %rsi     # 0x1045b8
movl %r12d, %edx
xorl %eax, %eax
callq 0xde896
leaq (%r15,%rbx,2), %r15
addq $0x14, %r15
incq %r12
jmp 0x1b081
cmpl $0x0, 0x14(%r14)
je 0x1b18a
movq 0x18(%rbp), %rdi
movq %r15, %rsi
callq 0xe404f
movq %rax, %rbx
leaq 0x4(%r15), %r12
leaq 0xe94a8(%rip), %rsi     # 0x1045db
movq %rbp, %rdi
movq %r15, %rdx
movq %r12, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0xde896
cmpl $0x2, (%rbp)
jl 0x1b184
pushq $0x1
popq %rsi
movq %rbp, %rdi
callq 0xdeba7
movq 0x18(%rbp), %rsi
movl $0x1, (%rsp)
movl $0x100, %r8d            # imm = 0x100
movq %rbp, %rdi
movq %r12, %rdx
movq %rbx, %rcx
xorl %r9d, %r9d
callq 0xded3a
pushq $-0x1
popq %rsi
movq %rbp, %rdi
callq 0xdeba7
addq %r12, %rbx
movq %rbx, %r15
cmpl $0x0, 0x18(%r14)
je 0x1b3fa
leaq 0x70(%rsp), %rbx
movq %r15, (%rbx)
leaq 0x34(%rsp), %rsi
movq %rbp, %rdi
callq 0xdebae
leaq 0xe94ad(%rip), %rsi     # 0x10465e
movq %rbp, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rsi
movq %rbp, %rdi
callq 0xdeba7
movq 0x18(%rbp), %rdi
movq %rbx, %rsi
callq 0xe4071
movq %rax, %rbx
pushq $0x4
popq %rcx
cqto
idivq %rcx
movq %rax, %r15
decq %r15
leaq 0xe9489(%rip), %rsi     # 0x104676
movq %rbp, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xde896
addq $-0xfa8, %rbx           # imm = 0xF058
movb $0x1, %r12b
cmpq $-0xfa4, %rbx           # imm = 0xF05C
jb 0x1b3e0
xorl %eax, %eax
testq %r15, %r15
cmovleq %rax, %r15
xorl %r12d, %r12d
movq %r15, 0x20(%rsp)
cmpq %r12, %r15
je 0x1b3c2
movq 0x70(%rsp), %r15
movq 0x18(%rsp), %rbp
movq 0x18(%rbp), %rdi
leaq 0x70(%rsp), %rsi
callq 0xe4071
movq %rax, %rbx
movq 0x70(%rsp), %r13
movq %rbp, %rdi
leaq 0xe943a(%rip), %rsi     # 0x10468f
movq %r12, 0x28(%rsp)
movl %r12d, %edx
movq %r15, %rcx
movq %r13, %r8
movq %rax, %r9
xorl %eax, %eax
callq 0xde896
cmpq $0x2710, %rbx           # imm = 0x2710
jg 0x1b3cc
movq %rbp, %rdi
pushq $0x1
popq %r15
movl %r15d, %esi
callq 0xdeba7
movq %rbx, %rdi
pushq $0x40
popq %rsi
callq 0xdfb45
movq 0x18(%rbp), %rdi
movq %r13, %rsi
movq %rax, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
movl %r15d, %r9d
callq 0xe495c
movq %rax, %r15
movq 0x18(%rax), %rdi
callq 0xeb877
movq %rbp, %rdi
leaq 0xf7b8e(%rip), %rsi     # 0x112e50
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
cmpq $0x5, %rbx
jl 0x1b390
movq 0x8(%r15), %rax
cmpb $0x49, (%rax)
jne 0x1b390
cmpb $0x4d, 0x1(%rax)
jne 0x1b390
cmpb $0x3d, 0x3(%rax)
jne 0x1b390
movzbl 0x2(%rax), %eax
cmpl $0x31, %eax
je 0x1b30e
cmpl $0x32, %eax
jne 0x1b390
pushq $0x1
popq %rax
jmp 0x1b310
xorl %eax, %eax
movl $0x1, 0x38(%r14)
movl %eax, %r12d
cmpq $0x0, 0x40(%r14,%r12,8)
je 0x1b346
movq 0x18(%rsp), %rbp
movq %rbp, %rdi
leaq 0xe93b9(%rip), %rsi     # 0x1046eb
movl %r12d, %edx
movq %r13, %rcx
xorl %eax, %eax
callq 0xde9f1
movq 0x40(%r14,%r12,8), %rcx
jmp 0x1b379
movq 0x18(%rsp), %rbp
movq %rbp, %rdi
leaq 0xe9375(%rip), %rsi     # 0x1046ca
movl %r12d, %edx
movq %r13, %rcx
xorl %eax, %eax
callq 0xde896
movl $0x800, %esi            # imm = 0x800
movq %rbp, %rdi
xorl %edx, %edx
callq 0xe59cd
movq %rax, %rcx
movq %rax, 0x40(%r14,%r12,8)
movq 0x18(%rbp), %rdi
addq $0x4, %r13
movq %rbx, %rdx
addq $-0x4, %rdx
movq %r13, %rsi
callq 0xe45f4
movq 0x18(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0xe4b94
movq %r13, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
addq %rbx, 0x70(%rsp)
movq 0x28(%rsp), %r12
incq %r12
movq 0x20(%rsp), %r15
jmp 0x1b222
xorl %r12d, %r12d
movq 0x18(%rsp), %rbp
jmp 0x1b3e0
leaq 0xe92e4(%rip), %rsi     # 0x1046b7
movq %rbp, %rdi
xorl %eax, %eax
callq 0xdf2a5
movb $0x1, %r12b
movq 0x70(%rsp), %r15
movl 0x34(%rsp), %esi
movq %rbp, %rdi
callq 0xdebb7
testb %r12b, %r12b
jne 0x1b504
cmpl $0x0, 0x10(%r14)
je 0x1b42f
movq 0x18(%rbp), %rdi
movq %r15, %rsi
callq 0xe404f
movq %rax, %rbx
leaq 0x4(%rax), %rdx
leaq 0xe91e7(%rip), %rsi     # 0x104602
movq %rbp, %rdi
movl %r15d, %ecx
xorl %eax, %eax
callq 0xde896
addq %rbx, %r15
addq $0x4, %r15
cmpl $0x0, 0xc(%r14)
je 0x1b495
cmpq $0x1, (%r14)
jne 0x1b495
leaq 0xe91da(%rip), %rsi     # 0x10461d
pushq $0x6
popq %rcx
movq %rbp, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0xde896
cmpl $0x2, (%rbp)
jl 0x1b491
pushq $0x1
popq %rsi
movq %rbp, %rdi
callq 0xdeba7
movq 0x18(%rbp), %rsi
movl $0x1, (%rsp)
pushq $0x6
popq %rcx
movl $0x100, %r8d            # imm = 0x100
movq %rbp, %rdi
movq %r15, %rdx
xorl %r9d, %r9d
callq 0xded3a
pushq $-0x1
popq %rsi
movq %rbp, %rdi
callq 0xdeba7
addq $0x6, %r15
movq 0x18(%rbp), %rdi
movq 0x18(%rdi), %rax
subq %r15, %rax
jle 0x1b504
cmpq $0x18, %rax
jb 0x1b4f3
movq %r15, %rsi
callq 0xe404f
movq %rax, %rbx
movq 0x18(%rbp), %rdi
leaq 0x8(%r15), %rsi
callq 0xe404f
cmpl $0x464f524d, %ebx       # imm = 0x464F524D
jne 0x1b4f3
movl %eax, %eax
cmpl $0x49434f4e, %eax       # imm = 0x49434F4E
jne 0x1b4f3
leaq 0xe9237(%rip), %rsi     # 0x10470f
movq %rbp, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xde896
movl $0x1, 0x68(%r14)
movq %r15, 0x70(%r14)
jmp 0x1b504
leaq 0xe9230(%rip), %rsi     # 0x10472a
movq %rbp, %rdi
xorl %eax, %eax
callq 0xdf05a
movl 0x30(%rsp), %esi
movq %rbp, %rdi
callq 0xdebb7
cmpl $0x0, 0x68(%r14)
je 0x1b520
leaq 0xe8f12(%rip), %rsi     # 0x104430
jmp 0x1b537
cmpl $0x0, 0x38(%r14)
leaq 0xe8f43(%rip), %rax     # 0x10446f
leaq 0xe8f1d(%rip), %rsi     # 0x104450
cmoveq %rax, %rsi
movq %rbp, %rdi
callq 0xe07f7
leaq 0xe8f3e(%rip), %rsi     # 0x104484
movq %rbp, %rdi
xorl %eax, %eax
callq 0xde896
xorl %edx, %edx
cmpq 0x20(%r14), %rdx
jge 0x1b7a0
movq 0x28(%r14,%rdx,8), %r12
movq %rbp, %rdi
leaq 0xe9208(%rip), %rsi     # 0x104773
movq %rdx, 0x28(%rsp)
movq %r12, %rcx
xorl %eax, %eax
callq 0xde896
movq %rbp, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movq 0x18(%rbp), %rdi
leaq 0x4(%r12), %rsi
callq 0xe3f46
movq %rax, %rbx
movq 0x18(%rbp), %rdi
leaq 0x6(%r12), %rsi
callq 0xe3f46
movq %rax, %r15
movq 0x18(%rbp), %rdi
leaq 0x8(%r12), %rsi
callq 0xe3f46
movq %rax, %r13
movq %rbp, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0xdf038
movq %rbp, %rdi
leaq 0xf9af7(%rip), %rsi     # 0x1150c7
movl %r13d, %edx
xorl %eax, %eax
callq 0xde896
leaq -0x9(%r13), %rax
cmpq $-0x9, %rax
ja 0x1b5ff
movq %rbp, %rdi
leaq 0xe919a(%rip), %rsi     # 0x104788
movl %r13d, %edx
xorl %eax, %eax
callq 0xdf2a5
xorl %ebx, %ebx
jmp 0x1b6cf
movq %rbx, %rdi
pushq $0x10
popq %rsi
callq 0xdfbb6
movq %rax, %rcx
cqto
pushq $0x8
popq %rsi
idivq %rsi
movq %rax, 0x20(%rsp)
movq %rbp, %rdi
movq %rbx, %rsi
movq %rcx, %rdx
movq %r15, %rcx
pushq $0x3
popq %r8
callq 0xe746f
movq %rax, %rbx
movl $0x100, %esi            # imm = 0x100
leaq 0x70(%rsp), %rdi
xorl %edx, %edx
callq 0xe87a8
cmpq $0x1, %r13
jne 0x1b6ef
movq $-0x1000000, 0x70(%rsp) # imm = 0xFF000000
cmpl $0x0, 0x38(%r14)
movq 0x20(%rsp), %rbp
jne 0x1b67c
cmpl $0x0, 0x68(%r14)
jne 0x1b67c
movq 0x18(%rsp), %rdi
leaq 0xe912d(%rip), %rsi     # 0x1047a2
xorl %eax, %eax
callq 0xdf05a
imulq %rbp, %r15
addq $0x14, %r12
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rdi
andl $0x0, 0x8(%rsp)
movq %rbx, (%rsp)
movq %r12, %rsi
movq %r13, %rdx
movq %rbp, %rcx
movq %r15, %r8
leaq 0x70(%rsp), %r9
callq 0xe7de1
cmpl $0x0, 0x38(%r14)
pushq $0x1
popq %rdx
jne 0x1b6c0
xorl %edx, %edx
cmpl $0x0, 0x68(%r14)
setne %dl
movq %rbx, %rdi
xorl %esi, %esi
callq 0xe70b7
movq 0x18(%rsp), %rbp
movq %rbx, %rdi
callq 0xe7084
movq %rbp, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
movq 0x28(%rsp), %rdx
incq %rdx
jmp 0x1b552
cmpq $0x0, (%r14)
leaq 0xe92c6(%rip), %rdx     # 0x1049c0
leaq 0xe92cf(%rip), %rsi     # 0x1049d0
leaq 0xe92d8(%rip), %rdi     # 0x1049e0
jne 0x1b72e
cmpq $0x2, %r13
jne 0x1b72e
xorl %eax, %eax
movq 0x20(%rsp), %rbp
cmpq $0x10, %rax
je 0x1b67c
movl (%rax,%rdx), %ecx
movl %ecx, 0x70(%rsp,%rax)
addq $0x4, %rax
jmp 0x1b717
cmpq $0x2, %r13
movq 0x20(%rsp), %rbp
jne 0x1b752
xorl %eax, %eax
cmpq $0x10, %rax
je 0x1b67c
movl (%rax,%rsi), %ecx
movl %ecx, 0x70(%rsp,%rax)
addq $0x4, %rax
jmp 0x1b73b
cmpq $0x3, %r13
jne 0x1b771
xorl %eax, %eax
cmpq $0x20, %rax
je 0x1b67c
movl (%rax,%rdi), %ecx
movl %ecx, 0x70(%rsp,%rax)
addq $0x4, %rax
jmp 0x1b75a
movq %r13, %rax
addq $-0x3, %rax
xorl %edx, %edx
movq %rdx, %rsi
movl %r13d, %ecx
shrq %cl, %rsi
testq %rsi, %rsi
jne 0x1b67c
movq %rdx, %rsi
movl %eax, %ecx
shrq %cl, %rsi
movl (%rdi,%rsi,4), %ecx
movl %ecx, 0x70(%rsp,%rdx,4)
incq %rdx
jmp 0x1b77a
leaq 0x58(%r14), %rax
movq %rax, 0x48(%rsp)
movq %r14, %rax
addq $0x488, %rax            # imm = 0x488
xorl %ebx, %ebx
movq %rax, 0x40(%rsp)
cmpq $0x2, %rbx
je 0x1bb92
movq 0x40(%r14,%rbx,8), %r15
testq %r15, %r15
je 0x1ba75
movq %rbp, %rdi
leaq 0x70(%rsp), %rsi
callq 0xdebae
movq 0x18(%r15), %rcx
movq %rbp, %rdi
leaq 0xe8fdc(%rip), %rsi     # 0x1047c8
movq %rbx, 0x68(%rsp)
movl %ebx, %edx
xorl %eax, %eax
callq 0xde896
movq %rbp, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movb $0x0, 0x55(%r14)
movq %r15, %rdi
xorl %esi, %esi
callq 0xe3eb4
movb %al, 0x28(%rsp)
cmpb $0x42, %al
sete 0x20(%rsp)
movq %r15, %rdi
pushq $0x1
popq %rsi
callq 0xe3eb4
movl %eax, %r12d
movq %r15, %rdi
pushq $0x2
popq %rsi
callq 0xe3eb4
movl %eax, %ebx
movq %r15, %rdi
pushq $0x3
popq %rsi
callq 0xe3eb4
movl %eax, %r13d
movq %r15, %rdi
pushq $0x4
popq %rsi
callq 0xe3eb4
cmpb $0x21, %r12b
setb %cl
cmpb $0x21, %bl
setb %dl
orb %cl, %dl
cmpb $0x21, %r13b
setb %cl
cmpb $0x21, %al
setb %sil
orb %cl, %sil
orb %dl, %sil
cmpb $0x1, %sil
jne 0x1b891
movq %rbp, %rdi
leaq 0xe8f62(%rip), %rsi     # 0x1047e7
xorl %eax, %eax
callq 0xdf2a5
jmp 0x1ba4f
movzbl %al, %eax
movzbl %r13b, %ecx
shll $0x6, %ecx
leal (%rcx,%rax), %r13d
addl $0xfffff79f, %r13d      # imm = 0xFFFFF79F
addl %ecx, %eax
addl $0xfffff59e, %eax       # imm = 0xFFFFF59E
cmpl $0xfffffdff, %eax       # imm = 0xFFFFFDFF
ja 0x1b8cd
movq %rbp, %rdi
leaq 0xe8f3b(%rip), %rsi     # 0x1047f9
movl %r13d, %edx
xorl %eax, %eax
callq 0xdf2a5
jmp 0x1ba4f
movzbl %r12b, %r12d
addq $-0x21, %r12
movzbl %bl, %ebx
addq $-0x21, %rbx
movq %rbp, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0xdf038
movq %rbp, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0xe6be1
testl %eax, %eax
je 0x1ba4f
movq %rbx, 0x50(%rsp)
movq %r12, 0x58(%rsp)
xorl %edx, %edx
movb 0x20(%rsp), %al
movb %al, %dl
movq %rbp, %rdi
leaq 0xe8fa7(%rip), %rsi     # 0x1048c3
xorl %eax, %eax
callq 0xde896
movq %rbp, %rdi
leaq 0xead12(%rip), %rsi     # 0x10663f
movl %r13d, %edx
xorl %eax, %eax
callq 0xde896
movl $0x800, %esi            # imm = 0x800
movq %rbp, %rdi
xorl %edx, %edx
callq 0xe59cd
movq %rax, %r12
xorl %ebx, %ebx
movb %bl, 0x58(%r14)
movq 0x48(%rsp), %rdi
callq 0xe6a40
movq %r13, %rdi
callq 0xdfbd6
movl %eax, 0x50(%r14)
movb %bl, 0x54(%r14)
leaq (,%r13,2), %rax
addq %r13, %rax
movq %rax, 0x60(%rsp)
pushq $0x5
popq %rbx
movq $0x0, 0x38(%rsp)
movq %r13, 0x20(%rsp)
cmpq 0x18(%r15), %rbx
jge 0x1ba7d
movq %r15, %rdi
movq %rbx, %rsi
callq 0xe3eb4
movzbl %al, %eax
leal -0x20(%rax), %ecx
cmpb $0x50, %cl
setae %dl
movl %eax, %esi
addb $0x5f, %sil
cmpb $0x30, %sil
setae %sil
testb %sil, %dl
jne 0x1b9f2
leal -0x51(%rax), %edx
cmpb $0x70, %al
movzbl %cl, %eax
movzbl %dl, %ecx
cmovbl %eax, %ecx
movzbl %cl, %ebp
pushq $0x6
popq %r13
cmpl $-0x1, %r13d
je 0x1ba14
xorl %edx, %edx
btl %r13d, %ebp
setb %dl
movq %r14, %rdi
movq %r12, %rsi
callq 0x1bc6f
decl %r13d
jmp 0x1b9d3
cmpb $-0x2f, %al
jb 0x1ba26
addl $0xffffff30, %eax       # imm = 0xFFFFFF30
imulq $0x7, %rax, %r13
subq $0x1, %r13
jb 0x1ba19
movq %r14, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x1bc6f
jmp 0x1b9ff
movq 0x18(%rsp), %rbp
movq 0x20(%rsp), %r13
incq %rbx
jmp 0x1b98a
testq %rax, %rax
jne 0x1ba1e
andl $0x0, 0x5c(%r14)
cmpb $0x0, 0x54(%r14)
jne 0x1ba1e
movq 0x18(%r12), %rax
cmpq 0x60(%rsp), %rax
jl 0x1ba1e
movb $0x1, 0x54(%r14)
movq %rax, 0x38(%rsp)
jmp 0x1ba1e
xorl %ebx, %ebx
xorl %r12d, %r12d
movq %r12, %rdi
callq 0xe5591
movq %rbx, %rdi
callq 0xe7084
movl 0x70(%rsp), %esi
movq %rbp, %rdi
callq 0xdebb7
movq 0x68(%rsp), %rbx
incq %rbx
jmp 0x1b7b9
movl 0x18(%r12), %edx
movq %rbp, %rdi
leaq 0xe8d8e(%rip), %rsi     # 0x10481a
xorl %eax, %eax
callq 0xde896
movq %rbp, %rdi
leaq 0xe8d96(%rip), %rsi     # 0x104833
xorl %eax, %eax
callq 0xde9f1
movq %rbp, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movl $0x800, %edx            # imm = 0x800
movq 0x40(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x18140
xorl %ebx, %ebx
cmpq %r13, %rbx
je 0x1bb02
leaq (%rbx,%rbx,2), %rsi
movq %r12, %rdi
xorl %edx, %edx
callq 0xe45a4
movl %eax, %edx
andl $0xffffff, %edx         # imm = 0xFFFFFF
cmpb $0x42, 0x28(%rsp)
cmovnel %eax, %edx
testq %rbx, %rbx
cmovnel %eax, %edx
movl %edx, (%r15,%rbx,4)
movq %rbp, %rdi
movq %rbx, %rsi
callq 0xdf23b
incq %rbx
jmp 0x1bac5
movq %rbp, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
cmpb $0x0, 0x55(%r14)
je 0x1bb2c
movq %rbp, %rdi
leaq 0xe8d26(%rip), %rsi     # 0x104844
xorl %eax, %eax
callq 0xdf2a5
xorl %ebx, %ebx
jmp 0x1ba54
movq %rbp, %rdi
movq 0x58(%rsp), %r13
movq %r13, %rsi
movq 0x50(%rsp), %rdx
pushq $0x4
popq %rcx
callq 0xe7437
movq %rax, %rbx
andl $0x0, (%rsp)
movq %r12, %rdi
movq 0x38(%rsp), %rsi
pushq $0x8
popq %rdx
movq %r13, %rcx
movq %r15, %r8
movq %rax, %r9
callq 0xe7cbc
cmpb $0x0, 0xd0(%rbp)
leaq 0xf688a(%rip), %rsi     # 0x1123fc
movl $0x0, %eax
cmoveq %rax, %rsi
xorl %edx, %edx
cmpl $0x0, 0x68(%r14)
setne %dl
movq %rbx, %rdi
callq 0xe70b7
jmp 0x1ba54
cmpl $0x0, 0x68(%r14)
je 0x1bc14
movq 0x70(%r14), %r15
movq %rbp, %rdi
callq 0xfacc0
movq %rax, %rbx
leaq 0x70(%rsp), %r12
movq %rbp, %rdi
movq %r12, %rsi
callq 0xdebae
leaq 0xe8cb3(%rip), %rsi     # 0x104872
movq %rbp, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rsi
movq %rbp, %rdi
callq 0xdeba7
movq %r14, 0x10(%rbx)
leaq 0xea(%rip), %rax        # 0x1bccc
movq %rax, 0x20(%rbx)
movq 0x18(%rbp), %rax
movq %rax, 0x18(%rbx)
movq 0x18(%rax), %rdx
subq %r15, %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0xface4
movl (%r12), %esi
movq %rbp, %rdi
callq 0xdebb7
movq %rbx, %rdi
callq 0xfacd3
movq 0x40(%r14), %rdi
testq %rdi, %rdi
je 0x1bc22
callq 0xe5591
movq 0x48(%r14), %rdi
testq %rdi, %rdi
je 0x1bc30
callq 0xe5591
movq %rbp, %rdi
movq %r14, %rsi
callq 0xded32
addq $0x478, %rsp            # imm = 0x478
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq