// File: /workspace/github_c_makefile_star2_O1/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, %r12
movl $0xc88, %esi            # imm = 0xC88
callq 0xe969b
movq %rax, %r13
movq %rax, %r14
leaq 0x40(%rsp), %rsi
movq %r12, %rdi
callq 0xe958c
leaq 0xf64f5(%rip), %rsi     # 0x1114c5
movq %r12, %rdi
xorl %edx, %edx
movl $0x4e, %ecx
xorl %eax, %eax
callq 0xe9226
movq %r12, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x18(%r12), %rdi
movl $0x2, %r15d
movl $0x2, %esi
callq 0xef169
leaq 0x1193c7(%rip), %rsi    # 0x1343d1
movq %r12, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
leaq 0xf64c1(%rip), %rsi     # 0x1114de
movq %r12, %rdi
movl $0x4, %edx
movl $0x2c, %ecx
xorl %eax, %eax
callq 0xe9226
movq %r12, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x18(%r12), %rdi
movl $0xc, %esi
callq 0xef169
movq %rax, %rbx
movq 0x18(%r12), %rdi
movl $0xe, %esi
callq 0xef169
leaq 0xf648d(%rip), %rsi     # 0x1114f3
movq %r12, %rdi
movl %ebx, %edx
movl %eax, %ecx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r12), %rdi
movl $0x1a, %esi
callq 0xef32a
movq %rax, %rbx
leaq 0xf647f(%rip), %rsi     # 0x11150c
movq %r12, %rdi
movl %ebx, %edx
xorl %eax, %eax
callq 0xe9226
cmpq $0x1, %rbx
sbbq $0x0, %r15
movq %r15, 0x20(%r13)
movq %r12, %rdi
movl $0x1, %esi
callq 0xe9585
movl 0x20(%r13), %edx
leaq 0xf6464(%rip), %rsi     # 0x111521
movq %r12, %rdi
xorl %eax, %eax
callq 0xe9226
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movq 0x18(%r12), %rdi
movl $0x2c, %esi
callq 0xef32a
movzbl %al, %edx
movq %rdx, (%r13)
leaq 0xf644f(%rip), %rsi     # 0x111540
movq %r12, %rdi
xorl %eax, %eax
callq 0xe9226
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movq 0x18(%r12), %rdi
movl $0x30, %esi
callq 0xef0d5
movb %al, 0x8(%r13)
movzbl %al, %edx
leal -0x1(%rdx), %eax
cmpb $0x6, %al
ja 0x1b138
movzbl %al, %eax
leaq 0xf68e1(%rip), %rsi     # 0x111a10
movslq (%rsi,%rax,4), %rcx
addq %rsi, %rcx
jmp 0x1b13f
leaq 0x110d2a(%rip), %rcx    # 0x12be69
leaq 0xf640c(%rip), %rsi     # 0x111552
movq %r12, %rdi
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r12), %rdi
movl $0x32, %esi
callq 0xef32a
xorl %ecx, %ecx
testq %rax, %rax
setne %cl
movl %ecx, 0x14(%r14)
leaq 0xf63f3(%rip), %rsi     # 0x111565
movq %r12, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r12), %rdi
movl $0x36, %esi
callq 0xef32a
xorl %ecx, %ecx
testq %rax, %rax
setne %cl
movl %ecx, 0x18(%r14)
leaq 0xf63d9(%rip), %rsi     # 0x111579
movq %r12, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r12), %rdi
movl $0x42, %esi
callq 0xef32a
xorl %ecx, %ecx
testq %rax, %rax
setne %cl
movl %ecx, 0xc(%r14)
leaq 0xf63bd(%rip), %rsi     # 0x11158b
movq %r12, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r12), %rdi
movl $0x46, %esi
callq 0xef32a
xorl %ecx, %ecx
testq %rax, %rax
setne %cl
movl %ecx, 0x10(%r14)
leaq 0xf63a2(%rip), %rsi     # 0x11159e
movq %r12, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
cmpl $0x0, 0xc(%r14)
movq %r12, 0x10(%rsp)
je 0x1b28b
leaq 0xf6389(%rip), %rsi     # 0x1115b1
movl $0x4e, %edx
movl $0x38, %ecx
movq %r12, %rdi
xorl %eax, %eax
callq 0xe9226
movl $0x86, %ebp
cmpl $0x2, (%r12)
jl 0x1b290
movq %r12, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x18(%r12), %rsi
movl $0x1, (%rsp)
movl $0x4e, %edx
movl $0x38, %ecx
movl $0x100, %r8d            # imm = 0x100
movq %r12, %rdi
xorl %r9d, %r9d
callq 0xe975a
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
jmp 0x1b290
movl $0x4e, %ebp
movq %r13, 0x38(%rsp)
cmpq $0x0, 0x20(%r14)
movq %r14, 0x48(%rsp)
jle 0x1b338
xorl %r15d, %r15d
movq 0x10(%rsp), %r12
movq %rbp, 0x28(%r14,%r15,8)
movq 0x18(%r12), %rdi
leaq 0x4(%rbp), %rsi
callq 0xef169
movq %rax, %r13
movq 0x18(%r12), %rdi
leaq 0x6(%rbp), %rsi
callq 0xef169
movq %rax, %r14
movq 0x18(%r12), %rdi
leaq 0x8(%rbp), %rsi
callq 0xef169
movq %rax, %rbx
leaq 0xf(%r13), %rax
addq $0x1e, %r13
testq %rax, %rax
cmovnsq %rax, %r13
sarq $0x4, %r13
imulq %r14, %rbx
movq 0x48(%rsp), %r14
imulq %r13, %rbx
leaq 0x14(,%rbx,2), %r8
movq 0x28(%r14,%r15,8), %rcx
movq %r12, %rdi
leaq 0xf62b0(%rip), %rsi     # 0x1115cc
movl %r15d, %edx
xorl %eax, %eax
callq 0xe9226
leaq 0x14(%rbp,%rbx,2), %rbp
incq %r15
cmpq 0x20(%r14), %r15
jl 0x1b2ad
cmpl $0x0, 0x14(%r14)
je 0x1b3bc
movq 0x10(%rsp), %r12
movq 0x18(%r12), %rdi
movq %rbp, %rsi
callq 0xef32a
movq %rax, %rbx
leaq 0x4(%rbp), %r15
leaq 0xf6290(%rip), %rsi     # 0x1115ef
movq %r12, %rdi
movq %rbp, %rdx
movq %r15, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0xe9226
cmpl $0x2, (%r12)
jl 0x1b3b6
movq %r12, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x18(%r12), %rsi
movl $0x1, (%rsp)
movl $0x100, %r8d            # imm = 0x100
movq %r12, %rdi
movq %r15, %rdx
movq %rbx, %rcx
xorl %r9d, %r9d
callq 0xe975a
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
addq %r15, %rbx
movq %rbx, %rbp
cmpl $0x0, 0x18(%r14)
je 0x1b651
leaq 0x70(%rsp), %rbx
movq %rbp, (%rbx)
leaq 0x44(%rsp), %rsi
movq 0x10(%rsp), %r12
movq %r12, %rdi
callq 0xe958c
movq (%rbx), %rdx
leaq 0xf6287(%rip), %rsi     # 0x111672
movq %r12, %rdi
xorl %eax, %eax
callq 0xe9226
movq %r12, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x18(%r12), %rdi
movq %rbx, %rsi
callq 0xef34e
movq %rax, %r15
leaq 0x3(%rax), %rbx
testq %rax, %rax
cmovnsq %rax, %rbx
sarq $0x2, %rbx
decq %rbx
leaq 0xf625f(%rip), %rsi     # 0x11168a
movq %r12, %rdi
movl %ebx, %edx
xorl %eax, %eax
callq 0xe9226
leaq -0xfa8(%r15), %rax
movb $0x1, %cl
movl %ecx, 0x18(%rsp)
cmpq $-0xfa4, %rax           # imm = 0xF05C
jb 0x1b635
cmpq $0x8, %r15
jl 0x1b62d
cmpq $0x2, %rbx
movl $0x1, %eax
cmovgeq %rbx, %rax
decq %rax
movq %rax, 0x28(%rsp)
xorl %r13d, %r13d
movq 0x70(%rsp), %rbx
movq 0x18(%r12), %rdi
leaq 0x70(%rsp), %rsi
callq 0xef34e
movq %rax, %rbp
movq 0x70(%rsp), %r15
movq %r12, %rdi
leaq 0xf620b(%rip), %rsi     # 0x1116a3
movl %r13d, %edx
movq %rbx, %rcx
movq %r15, %r8
movq %rax, %r9
xorl %eax, %eax
callq 0xe9226
cmpq $0x2711, %rbp           # imm = 0x2711
setge %al
movl %eax, 0x18(%rsp)
movq %r12, %rdi
jl 0x1b4d1
leaq 0xf6206(%rip), %rsi     # 0x1116cb
xorl %eax, %eax
callq 0xe9df7
jmp 0x1b610
movl $0x1, %esi
callq 0xe9585
movl $0x40, %esi
movq %rbp, %rdi
callq 0xea792
movq 0x18(%r12), %rdi
movq %r15, %rsi
movq %rax, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
movl $0x1, %r9d
callq 0xefe67
movq %rax, %rbx
movq 0x18(%rax), %rdi
callq 0xf7557
movq %r12, %rdi
leaq 0x1048ba(%rip), %rsi    # 0x11fdd4
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
cmpq $0x5, %rbp
jl 0x1b5f3
movq 0x8(%rbx), %rcx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movb $0x1, %al
cmpb $0x49, (%rcx)
jne 0x1b565
cmpb $0x4d, 0x1(%rcx)
jne 0x1b565
cmpb $0x3d, 0x3(%rcx)
jne 0x1b565
movzbl 0x2(%rcx), %ecx
cmpl $0x31, %ecx
je 0x1b561
cmpl $0x32, %ecx
jne 0x1b565
movl $0x1, %edx
xorl %eax, %eax
jmp 0x1b565
xorl %eax, %eax
xorl %edx, %edx
testb %al, %al
jne 0x1b5f3
movl $0x1, 0x38(%r14)
movl %edx, %eax
movq %rax, 0x30(%rsp)
cmpq $0x0, 0x40(%r14,%rax,8)
je 0x1b5a4
movq 0x10(%rsp), %r12
movq %r12, %rdi
leaq 0xf616c(%rip), %rsi     # 0x1116ff
movq %r15, %rcx
xorl %eax, %eax
callq 0xe93cf
movq 0x30(%rsp), %rax
jmp 0x1b5d9
movq 0x10(%rsp), %r12
movq %r12, %rdi
leaq 0xf612b(%rip), %rsi     # 0x1116de
movq %r15, %rcx
xorl %eax, %eax
callq 0xe9226
movl $0x800, %esi            # imm = 0x800
movq %r12, %rdi
xorl %edx, %edx
callq 0xf0faf
movq 0x30(%rsp), %rcx
movq %rax, 0x40(%r14,%rcx,8)
movq %rcx, %rax
movq 0x18(%r12), %rdi
addq $0x4, %r15
leaq -0x4(%rbp), %rdx
movq 0x40(%r14,%rax,8), %rcx
movq %r15, %rsi
callq 0xefabc
movq %r12, %rdi
movq %rbx, %rsi
callq 0xf00aa
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
addq %rbp, 0x70(%rsp)
cmpq $0x2710, %rbp           # imm = 0x2710
jg 0x1b635
leaq 0x1(%r13), %rax
cmpq %r13, 0x28(%rsp)
movq %rax, %r13
jne 0x1b472
jmp 0x1b635
movl $0x0, 0x18(%rsp)
movq 0x70(%rsp), %rbp
movl 0x44(%rsp), %esi
movq %r12, %rdi
callq 0xe9595
cmpb $0x0, 0x18(%rsp)
jne 0x1b77d
cmpl $0x0, 0x10(%r14)
je 0x1b68a
movq 0x10(%rsp), %r15
movq 0x18(%r15), %rdi
movq %rbp, %rsi
callq 0xef32a
movq %rax, %rbx
leaq 0x4(%rax), %rdx
leaq 0xf5f9f(%rip), %rsi     # 0x111616
movq %r15, %rdi
movl %ebp, %ecx
xorl %eax, %eax
callq 0xe9226
addq %rbx, %rbp
addq $0x4, %rbp
cmpl $0x0, 0xc(%r14)
je 0x1b701
cmpq $0x1, (%r14)
jne 0x1b701
leaq 0xf5f93(%rip), %rsi     # 0x111631
movl $0x6, %ecx
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0xe9226
cmpl $0x2, (%rbx)
jl 0x1b6fd
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x18(%rbx), %rsi
movl $0x1, (%rsp)
movl $0x6, %ecx
movl $0x100, %r8d            # imm = 0x100
movq %rbx, %rdi
movq %rbp, %rdx
xorl %r9d, %r9d
callq 0xe975a
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
addq $0x6, %rbp
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x18(%rdi), %rax
subq %rbp, %rax
jle 0x1b77d
cmpq $0x18, %rax
jl 0x1b76a
movq %rbp, %rsi
callq 0xef32a
movq %rax, %rbx
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rdi
leaq 0x8(%rbp), %rsi
callq 0xef32a
cmpl $0x464f524d, %ebx       # imm = 0x464F524D
jne 0x1b76a
movl %eax, %eax
cmpl $0x49434f4e, %eax       # imm = 0x49434F4E
jne 0x1b76a
leaq 0xf5fd5(%rip), %rsi     # 0x111723
movq 0x10(%rsp), %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0xe9226
movl $0x1, 0x68(%r14)
movq %rbp, 0x70(%r14)
jmp 0x1b77d
leaq 0xf5fcd(%rip), %rsi     # 0x11173e
movq 0x10(%rsp), %rdi
xorl %eax, %eax
callq 0xe9b27
movl 0x40(%rsp), %esi
movq 0x10(%rsp), %r12
movq %r12, %rdi
callq 0xe9595
cmpl $0x0, 0x68(%r14)
je 0x1b79e
leaq 0xf5ca8(%rip), %rsi     # 0x111444
jmp 0x1b7b5
cmpl $0x0, 0x38(%r14)
leaq 0xf5cd9(%rip), %rax     # 0x111483
leaq 0xf5cb3(%rip), %rsi     # 0x111464
cmoveq %rax, %rsi
movq %r12, %rdi
callq 0xeb6d6
leaq 0xf5cd4(%rip), %rsi     # 0x111498
movq %r12, %rdi
xorl %eax, %eax
callq 0xe9226
cmpq $0x0, 0x20(%r14)
jle 0x1ba09
xorl %r13d, %r13d
movq 0x28(%r14,%r13,8), %rbp
movq %r12, %rdi
leaq 0xf5f9c(%rip), %rsi     # 0x111787
movl %r13d, %edx
movq %rbp, %rcx
xorl %eax, %eax
callq 0xe9226
movq %r12, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x18(%r12), %rdi
leaq 0x4(%rbp), %rsi
callq 0xef169
movq %rax, %rbx
movq 0x18(%r12), %rdi
leaq 0x6(%rbp), %rsi
callq 0xef169
movq %rax, %r15
movq 0x18(%r12), %rdi
movq %rbp, 0x18(%rsp)
leaq 0x8(%rbp), %rsi
callq 0xef169
movq %rax, %rbp
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0xe9b05
movq %r12, %rdi
leaq 0x10682a(%rip), %rsi    # 0x12207f
movl %ebp, %edx
xorl %eax, %eax
callq 0xe9226
leaq -0x9(%rbp), %rax
cmpq $-0x9, %rax
ja 0x1b883
movq %r12, %rdi
leaq 0xf5f2a(%rip), %rsi     # 0x11179c
movl %ebp, %edx
xorl %eax, %eax
callq 0xe9df7
xorl %r15d, %r15d
jmp 0x1b9b1
movl $0x10, %esi
movq %rbx, %rdi
callq 0xea80b
leaq 0x7(%rax), %rcx
testq %rax, %rax
cmovnsq %rax, %rcx
movq %rcx, 0x28(%rsp)
movq %r12, %rdi
movq %rbx, %rsi
movq %rax, %rdx
movq %r15, %rcx
movl $0x3, %r8d
callq 0xf2ce6
movq %rax, %rbx
movl $0x100, %esi            # imm = 0x100
leaq 0x70(%rsp), %rdi
xorl %edx, %edx
callq 0xf41f4
cmpq $0x1, %rbp
movq %r15, %r8
jne 0x1b90c
movq $-0x1000000, 0x70(%rsp) # imm = 0xFF000000
cmpl $0x0, 0x38(%r14)
movq 0x10(%rsp), %r12
movq %rbx, %r15
jne 0x1b95d
cmpl $0x0, 0x68(%r14)
jne 0x1b95d
movq %r12, %rdi
leaq 0xf5eb9(%rip), %rsi     # 0x1117b6
xorl %eax, %eax
movq %r8, %rbx
callq 0xe9b27
movq %rbx, %r8
jmp 0x1b95d
cmpq $0x0, (%r14)
movq 0x10(%rsp), %r12
movq %rbx, %r15
jne 0x1b929
cmpq $0x2, %rbp
jne 0x1b929
movaps 0xf60a9(%rip), %xmm0    # 0x1119d0
jmp 0x1b958
cmpq $0x2, %rbp
jne 0x1b938
movaps 0xf60aa(%rip), %xmm0    # 0x1119e0
jmp 0x1b958
cmpq $0x3, %rbp
jne 0x1b9d5
movaps 0xf60b7(%rip), %xmm0    # 0x111a00
movaps %xmm0, 0x80(%rsp)
movaps 0xf6098(%rip), %xmm0    # 0x1119f0
movaps %xmm0, 0x70(%rsp)
movq 0x28(%rsp), %rcx
sarq $0x3, %rcx
imulq %rcx, %r8
movq 0x18(%rsp), %rsi
addq $0x14, %rsi
movq 0x18(%r12), %rdi
movq %r15, (%rsp)
movl $0x0, 0x8(%rsp)
movq %rbp, %rdx
leaq 0x70(%rsp), %r9
callq 0xf36f9
movl $0x1, %edx
cmpl $0x0, 0x38(%r14)
jne 0x1b9a7
xorl %edx, %edx
cmpl $0x0, 0x68(%r14)
setne %dl
movq %r15, %rdi
xorl %esi, %esi
callq 0xf2923
movq %r15, %rdi
callq 0xf28d4
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
incq %r13
cmpq 0x20(%r14), %r13
jl 0x1b7dc
jmp 0x1ba09
movq %rbp, %rax
addq $-0x3, %rax
xorl %edx, %edx
movq %rdx, %rsi
movl %eax, %ecx
shrq %cl, %rsi
leaq 0xf6003(%rip), %rcx     # 0x1119f0
movl (%rcx,%rsi,4), %ecx
movl %ecx, 0x70(%rsp,%rdx,4)
incq %rdx
movq %rdx, %rsi
movl %ebp, %ecx
shrq %cl, %rsi
testq %rsi, %rsi
je 0x1b9de
jmp 0x1b95d
movq 0x38(%rsp), %r13
leaq 0x58(%r13), %rax
movq %rax, 0x58(%rsp)
addq $0x488, %r13            # imm = 0x488
xorl %ebx, %ebx
movq %r13, 0x38(%rsp)
movq 0x40(%r14,%rbx,8), %rbp
testq %rbp, %rbp
je 0x1bcf7
movq %r12, %rdi
leaq 0x70(%rsp), %rsi
callq 0xe958c
movq 0x18(%rbp), %rcx
movq %r12, %rdi
leaq 0xf5d8e(%rip), %rsi     # 0x1117dc
movq %rbx, 0x28(%rsp)
movl %ebx, %edx
xorl %eax, %eax
callq 0xe9226
movq %r12, %rdi
movl $0x1, %esi
callq 0xe9585
movb $0x0, 0x55(%r14)
movq %rbp, %rdi
xorl %esi, %esi
callq 0xef0d5
movb %al, 0x30(%rsp)
cmpb $0x42, %al
sete 0x20(%rsp)
movl $0x1, %esi
movq %rbp, %rdi
callq 0xef0d5
movl %eax, %r15d
movl $0x2, %esi
movq %rbp, %rdi
callq 0xef0d5
movl %eax, %ebx
movl $0x3, %esi
movq %rbp, %rdi
callq 0xef0d5
movl %eax, %r13d
movl $0x4, %esi
movq %rbp, %rdi
callq 0xef0d5
cmpb $0x21, %r15b
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 0x1bafd
movq %r12, %rdi
leaq 0xf5d0a(%rip), %rsi     # 0x1117fb
xorl %eax, %eax
callq 0xe9df7
jmp 0x1bcd1
movzbl %al, %eax
movzbl %r13b, %ecx
shll $0x6, %ecx
leal (%rcx,%rax), %edx
addl $0xfffff79f, %edx       # imm = 0xFFFFF79F
addl %ecx, %eax
addl $0xfffff59e, %eax       # imm = 0xFFFFF59E
cmpl $0xfffffdff, %eax       # imm = 0xFFFFFDFF
ja 0x1bb34
movq %r12, %rdi
leaq 0xf5ce5(%rip), %rsi     # 0x11180d
xorl %eax, %eax
callq 0xe9df7
jmp 0x1bcd1
movq %rdx, 0x18(%rsp)
movzbl %r15b, %r15d
addq $-0x21, %r15
movzbl %bl, %ebx
addq $-0x21, %rbx
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0xe9b05
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0xf241d
testl %eax, %eax
movq 0x38(%rsp), %r13
je 0x1bcd1
movq %rbx, 0x60(%rsp)
movq %r15, 0x68(%rsp)
xorl %edx, %edx
movb 0x20(%rsp), %al
movb %al, %dl
movq %r12, %rdi
leaq 0xf5d4a(%rip), %rsi     # 0x1118d7
xorl %eax, %eax
callq 0xe9226
movq %r12, %rdi
leaq 0xf7a51(%rip), %rsi     # 0x1135ef
movq 0x18(%rsp), %rbx
movl %ebx, %edx
xorl %eax, %eax
callq 0xe9226
movl $0x800, %esi            # imm = 0x800
movq %r12, %rdi
xorl %edx, %edx
callq 0xf0faf
movq %rax, %r15
xorl %eax, %eax
movb %al, 0x58(%r14)
movq 0x58(%rsp), %rdi
callq 0xf2261
movq %rbx, %rdi
callq 0xea82b
movl %eax, 0x50(%r14)
xorl %eax, %eax
movb %al, 0x54(%r14)
cmpq $0x6, 0x18(%rbp)
jl 0x1bd0c
leaq (%rbx,%rbx,2), %rax
movq %rax, 0x50(%rsp)
movl $0x5, %ebx
movq $0x0, 0x20(%rsp)
movq %rbp, %rdi
movq %rbx, %rsi
callq 0xef0d5
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 0x1bc6a
leal -0x51(%rax), %edx
cmpb $0x70, %al
movzbl %cl, %eax
movzbl %dl, %ecx
cmovbl %eax, %ecx
movzbl %cl, %r13d
movl $0x6, %r12d
xorl %edx, %edx
btl %r12d, %r13d
setb %dl
movq %r14, %rdi
movq %r15, %rsi
callq 0x1bf40
addl $-0x1, %r12d
jb 0x1bc44
movq 0x10(%rsp), %r12
movq 0x38(%rsp), %r13
jmp 0x1bcc2
cmpb $-0x2f, %al
jb 0x1bc99
addl $0xffffff30, %eax       # imm = 0xFFFFFF30
je 0x1bcc2
leaq (,%rax,8), %r12
subq %rax, %r12
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x1bf40
decq %r12
jne 0x1bc80
movq 0x10(%rsp), %r12
jmp 0x1bcc2
testq %rax, %rax
jne 0x1bcc2
movl $0x0, 0x5c(%r14)
cmpb $0x0, 0x54(%r14)
jne 0x1bcc2
movq 0x18(%r15), %rax
cmpq 0x50(%rsp), %rax
jl 0x1bcc2
movb $0x1, 0x54(%r14)
movq %rax, 0x20(%rsp)
incq %rbx
cmpq 0x18(%rbp), %rbx
jl 0x1bc02
jmp 0x1bd15
xorl %ebx, %ebx
xorl %r15d, %r15d
movq %r15, %rdi
callq 0xf0b13
movq %rbx, %rdi
callq 0xf28d4
movl 0x70(%rsp), %esi
movq %r12, %rdi
callq 0xe9595
movq 0x28(%rsp), %rbx
leaq 0x1(%rbx), %rax
testq %rbx, %rbx
movq %rax, %rbx
je 0x1ba25
jmp 0x1be49
movq $0x0, 0x20(%rsp)
movl 0x18(%r15), %edx
movq %r12, %rdi
leaq 0xf5b0b(%rip), %rsi     # 0x11182e
xorl %eax, %eax
callq 0xe9226
movq %r12, %rdi
leaq 0xf5b13(%rip), %rsi     # 0x111847
xorl %eax, %eax
callq 0xe93cf
movq %r12, %rdi
movl $0x1, %esi
callq 0xe9585
movl $0x800, %edx            # imm = 0x800
movq %r13, %rdi
xorl %esi, %esi
callq 0x18140
cmpq $0x0, 0x18(%rsp)
movq %r12, %r14
movb 0x30(%rsp), %r12b
je 0x1bdab
xorl %ebx, %ebx
xorl %ebp, %ebp
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0xefa60
movl %eax, %edx
andl $0xffffff, %edx         # imm = 0xFFFFFF
cmpb $0x42, %r12b
cmovnel %eax, %edx
testq %rbp, %rbp
cmovnel %eax, %edx
movl %edx, (%r13,%rbp,4)
movq %r14, %rdi
movq %rbp, %rsi
callq 0xe9d68
incq %rbp
addq $0x3, %rbx
cmpq %rbp, 0x18(%rsp)
jne 0x1bd6b
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movq 0x48(%rsp), %rbp
cmpb $0x0, 0x55(%rbp)
movq %r14, %r12
movq %r14, %rdi
je 0x1bddb
leaq 0xf5a88(%rip), %rsi     # 0x111858
xorl %eax, %eax
callq 0xe9df7
xorl %ebx, %ebx
jmp 0x1be41
movq 0x68(%rsp), %r14
movq %r14, %rsi
movq 0x60(%rsp), %rdx
movl $0x4, %ecx
callq 0xf2cab
movq %rax, %rbx
movl $0x0, (%rsp)
movl $0x8, %edx
movq %r15, %rdi
movq 0x20(%rsp), %rsi
movq %r14, %rcx
movq %r13, %r8
movq %rax, %r9
callq 0xf35b8
cmpb $0x0, 0xd0(%r12)
leaq 0x10359d(%rip), %rsi    # 0x11f3c4
movl $0x0, %eax
cmoveq %rax, %rsi
xorl %edx, %edx
cmpl $0x0, 0x68(%rbp)
setne %dl
movq %rbx, %rdi
callq 0xf2923
movq %rbp, %r14
jmp 0x1bcd6
cmpl $0x0, 0x68(%r14)
je 0x1bee1
movq 0x70(%r14), %r15
movq %r12, %rdi
callq 0x107b04
movq %rax, %rbx
leaq 0x70(%rsp), %r12
movq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0xe958c
leaq 0xf5a0a(%rip), %rsi     # 0x111886
movq 0x10(%rsp), %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x10(%rsp), %rdi
movl $0x1, %esi
callq 0xe9585
movq %r14, 0x10(%rbx)
leaq 0xff(%rip), %rax        # 0x1bfa4
movq %rax, 0x20(%rbx)
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x18(%rbx)
movq 0x18(%rax), %rdx
subq %r15, %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x107b28
movl (%r12), %esi
movq 0x10(%rsp), %r12
movq %r12, %rdi
callq 0xe9595
movq %rbx, %rdi
callq 0x107b17
movq 0x40(%r14), %rdi
testq %rdi, %rdi
je 0x1beef
callq 0xf0b13
movq 0x48(%r14), %rdi
testq %rdi, %rdi
je 0x1befd
callq 0xf0b13
movq %r12, %rdi
movq %r14, %rsi
callq 0xe9752
addq $0x478, %rsp            # imm = 0x478
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq