// File: /workspace/github_c_makefile_star2_O3/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 0xe8b2b
movq %rax, %r13
movq %rax, %r14
leaq 0x4c(%rsp), %rsi
movq %r12, %rdi
callq 0xe8a1c
leaq 0xf63f8(%rip), %rsi     # 0x1114d4
movq %r12, %rdi
xorl %edx, %edx
movl $0x4e, %ecx
xorl %eax, %eax
callq 0xe8617
movq %r12, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x18(%r12), %rdi
movl $0x2, %r15d
movl $0x2, %esi
callq 0xeeb67
leaq 0x1196b3(%rip), %rsi    # 0x1347c9
movq %r12, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
leaq 0xf63c4(%rip), %rsi     # 0x1114ed
movq %r12, %rdi
movl $0x4, %edx
movl $0x2c, %ecx
xorl %eax, %eax
callq 0xe8617
movq %r12, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x18(%r12), %rdi
movl $0xc, %esi
callq 0xeeb67
movq %rax, %rbx
movq 0x18(%r12), %rdi
movl $0xe, %esi
callq 0xeeb67
leaq 0xf6390(%rip), %rsi     # 0x111502
movq %r12, %rdi
movl %ebx, %edx
movl %eax, %ecx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r12), %rdi
movl $0x1a, %esi
callq 0xeed0d
movq %rax, %rbx
leaq 0xf6382(%rip), %rsi     # 0x11151b
movq %r12, %rdi
movl %ebx, %edx
xorl %eax, %eax
callq 0xe8617
cmpq $0x1, %rbx
sbbq $0x0, %r15
movq %r15, 0x20(%r13)
movq %r12, %rdi
movl $0x1, %esi
callq 0xe8a15
movl 0x20(%r13), %edx
leaq 0xf6367(%rip), %rsi     # 0x111530
movq %r12, %rdi
xorl %eax, %eax
callq 0xe8617
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq 0x18(%r12), %rdi
movl $0x2c, %esi
callq 0xeed0d
movzbl %al, %edx
movq %rdx, (%r13)
leaq 0xf6352(%rip), %rsi     # 0x11154f
movq %r12, %rdi
xorl %eax, %eax
callq 0xe8617
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq 0x18(%r12), %rdi
movl $0x30, %esi
callq 0xeead3
movb %al, 0x8(%r13)
movzbl %al, %edx
leal -0x1(%rdx), %eax
cmpb $0x6, %al
ja 0x1b244
movzbl %al, %eax
leaq 0xf67e5(%rip), %rsi     # 0x111a20
movslq (%rsi,%rax,4), %rcx
addq %rsi, %rcx
jmp 0x1b24b
leaq 0x110f06(%rip), %rcx    # 0x12c151
leaq 0xf630f(%rip), %rsi     # 0x111561
movq %r12, %rdi
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r12), %rdi
movl $0x32, %esi
callq 0xeed0d
xorl %ecx, %ecx
testq %rax, %rax
setne %cl
movl %ecx, 0x14(%r14)
leaq 0xf62f6(%rip), %rsi     # 0x111574
movq %r12, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r12), %rdi
movl $0x36, %esi
callq 0xeed0d
xorl %ecx, %ecx
testq %rax, %rax
setne %cl
movl %ecx, 0x18(%r14)
leaq 0xf62dc(%rip), %rsi     # 0x111588
movq %r12, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r12), %rdi
movl $0x42, %esi
callq 0xeed0d
xorl %ecx, %ecx
testq %rax, %rax
setne %cl
movl %ecx, 0xc(%r14)
leaq 0xf62c0(%rip), %rsi     # 0x11159a
movq %r12, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r12), %rdi
movl $0x46, %esi
callq 0xeed0d
xorl %ecx, %ecx
testq %rax, %rax
setne %cl
movl %ecx, 0x10(%r14)
leaq 0xf62a5(%rip), %rsi     # 0x1115ad
movq %r12, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq %r14, 0x18(%rsp)
cmpl $0x0, 0xc(%r14)
movq %r12, 0x10(%rsp)
je 0x1b39d
leaq 0xf6287(%rip), %rsi     # 0x1115c0
movl $0x4e, %edx
movl $0x38, %ecx
movq %r12, %rdi
xorl %eax, %eax
callq 0xe8617
movl $0x86, %r14d
cmpl $0x2, (%r12)
jl 0x1b3a3
movq %r12, %rdi
movl $0x1, %esi
callq 0xe8a15
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 0xe8bea
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
jmp 0x1b3a3
movl $0x4e, %r14d
movq %r13, 0x40(%rsp)
movq 0x18(%rsp), %rax
cmpq $0x0, 0x20(%rax)
jle 0x1b452
xorl %r15d, %r15d
movq 0x10(%rsp), %r12
movq 0x18(%rsp), %rbp
movq %r14, 0x28(%rbp,%r15,8)
movq 0x18(%r12), %rdi
leaq 0x4(%r14), %rsi
callq 0xeeb67
movq %rax, %r13
movq 0x18(%r12), %rdi
leaq 0x6(%r14), %rsi
callq 0xeeb67
movq %rax, 0x30(%rsp)
movq 0x18(%r12), %rdi
leaq 0x8(%r14), %rsi
callq 0xeeb67
movq %rax, %rbx
leaq 0xf(%r13), %rax
addq $0x1e, %r13
testq %rax, %rax
cmovnsq %rax, %r13
sarq $0x4, %r13
imulq 0x30(%rsp), %rbx
imulq %r13, %rbx
leaq 0x14(,%rbx,2), %r8
movq 0x28(%rbp,%r15,8), %rcx
movq %r12, %rdi
leaq 0xf61a8(%rip), %rsi     # 0x1115db
movl %r15d, %edx
xorl %eax, %eax
callq 0xe8617
leaq (%r14,%rbx,2), %r14
addq $0x14, %r14
incq %r15
cmpq 0x20(%rbp), %r15
jl 0x1b3c5
movq 0x18(%rsp), %rax
cmpl $0x0, 0x14(%rax)
je 0x1b4dc
movq 0x10(%rsp), %r12
movq 0x18(%r12), %rdi
movq %r14, %rsi
callq 0xeed0d
movq %rax, %rbx
leaq 0x4(%r14), %r15
leaq 0xf6181(%rip), %rsi     # 0x1115fe
movq %r12, %rdi
movq %r14, %rdx
movq %r15, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0xe8617
cmpl $0x2, (%r12)
jl 0x1b4d4
movq %r12, %rdi
movl $0x1, %esi
callq 0xe8a15
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 0xe8bea
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
addq %r15, %rbx
movq %rbx, %r12
jmp 0x1b4df
movq %r14, %r12
movq 0x18(%rsp), %r14
cmpl $0x0, 0x18(%r14)
je 0x1b749
leaq 0x70(%rsp), %rbx
movq %r12, (%rbx)
leaq 0x3c(%rsp), %rsi
movq %r12, %r15
movq 0x10(%rsp), %r12
movq %r12, %rdi
callq 0xe8a1c
leaq 0xf616e(%rip), %rsi     # 0x111681
movq %r12, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0xe8617
movq %r12, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x18(%r12), %rdi
movq %rbx, %rsi
callq 0xeed31
movq %rax, %r15
leaq 0x3(%rax), %rbx
testq %rax, %rax
cmovnsq %rax, %rbx
sarq $0x2, %rbx
decq %rbx
leaq 0xf6143(%rip), %rsi     # 0x111699
movq %r12, %rdi
movl %ebx, %edx
xorl %eax, %eax
callq 0xe8617
leaq -0xfa8(%r15), %rax
cmpq $-0xfa4, %rax           # imm = 0xF05C
jb 0x1b8a1
movq 0x70(%rsp), %r12
cmpq $0x8, %r15
jb 0x1b733
cmpq $0x2, %rbx
movl $0x1, %r14d
cmovgeq %rbx, %r14
xorl %ebp, %ebp
movq 0x10(%rsp), %rbx
movq 0x18(%rbx), %rdi
leaq 0x70(%rsp), %rsi
callq 0xeed31
movq %rax, %r15
movq 0x70(%rsp), %r13
movq %rbx, %rdi
leaq 0xf60f9(%rip), %rsi     # 0x1116b2
movl %ebp, %edx
movq %r12, %rcx
movq %r13, %r8
movq %rax, %r9
xorl %eax, %eax
callq 0xe8617
cmpq $0x2710, %r15           # imm = 0x2710
jg 0x1b88d
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movl $0x40, %esi
movq %r15, %rdi
callq 0xe9c3b
movq 0x18(%rbx), %rdi
movq %r13, %rsi
movq %rax, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
movl $0x1, %r9d
callq 0xef87c
movq %rax, %r12
movq 0x18(%rax), %rdi
callq 0xf70f6
movq %rbx, %rdi
leaq 0x1048d9(%rip), %rsi    # 0x11fefc
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
cmpq $0x5, %r15
jl 0x1b700
movq 0x8(%r12), %rax
cmpb $0x49, (%rax)
jne 0x1b700
cmpb $0x4d, 0x1(%rax)
jne 0x1b700
cmpb $0x3d, 0x3(%rax)
jne 0x1b700
movzbl 0x2(%rax), %eax
cmpl $0x31, %eax
je 0x1b672
cmpl $0x32, %eax
jne 0x1b700
movl $0x1, %eax
jmp 0x1b674
xorl %eax, %eax
movq 0x18(%rsp), %rcx
movl $0x1, 0x38(%rcx)
movl %eax, %ebx
cmpq $0x0, 0x40(%rcx,%rbx,8)
je 0x1b6ae
movq 0x10(%rsp), %rdi
leaq 0xf6078(%rip), %rsi     # 0x11170e
movl %ebx, %edx
movq %r13, %rcx
xorl %eax, %eax
callq 0xe87e4
movq 0x18(%rsp), %rax
movq 0x40(%rax,%rbx,8), %rcx
jmp 0x1b6e4
movq 0x10(%rsp), %rdi
leaq 0xf6033(%rip), %rsi     # 0x1116ed
movl %ebx, %edx
movq %r13, %rcx
xorl %eax, %eax
callq 0xe8617
movl $0x800, %esi            # imm = 0x800
movq 0x10(%rsp), %rdi
xorl %edx, %edx
callq 0xf09c5
movq %rax, %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x40(%rax,%rbx,8)
movq 0x10(%rsp), %rbx
movq 0x18(%rbx), %rdi
addq $0x4, %r13
movq %r15, %rdx
addq $-0x4, %rdx
movq %r13, %rsi
callq 0xef481
movq %rbx, %rdi
movq %r12, %rsi
callq 0xefaca
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq 0x70(%rsp), %r12
addq %r15, %r12
movq %r12, 0x70(%rsp)
incq %rbp
cmpq %rbp, %r14
jne 0x1b599
jmp 0x1b738
movq 0x10(%rsp), %rbx
movl 0x3c(%rsp), %esi
movq %rbx, %rdi
callq 0xe8a25
movq 0x18(%rsp), %r14
cmpl $0x0, 0x10(%r14)
je 0x1b783
movq 0x10(%rsp), %r15
movq 0x18(%r15), %rdi
movq %r12, %rsi
callq 0xeed0d
movq %rax, %rbx
leaq 0x4(%rax), %rdx
leaq 0xf5eb6(%rip), %rsi     # 0x111625
movq %r15, %rdi
movl %r12d, %ecx
xorl %eax, %eax
callq 0xe8617
addq %rbx, %r12
addq $0x4, %r12
cmpl $0x0, 0xc(%r14)
je 0x1b7fa
cmpq $0x1, (%r14)
jne 0x1b7fa
leaq 0xf5ea9(%rip), %rsi     # 0x111640
movl $0x6, %ecx
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0xe8617
cmpl $0x2, (%rbx)
jl 0x1b7f6
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x18(%rbx), %rsi
movl $0x1, (%rsp)
movl $0x6, %ecx
movl $0x100, %r8d            # imm = 0x100
movq %rbx, %rdi
movq %r12, %rdx
xorl %r9d, %r9d
callq 0xe8bea
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
addq $0x6, %r12
movq %r12, %r14
movq 0x10(%rsp), %r12
movq 0x18(%r12), %rdi
movq 0x18(%rdi), %rax
subq %r14, %rax
jle 0x1b8ad
cmpq $0x18, %rax
jb 0x1b875
movq %r14, %rsi
callq 0xeed0d
movq %rax, %rbx
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rdi
leaq 0x8(%r14), %rsi
callq 0xeed0d
cmpl $0x464f524d, %ebx       # imm = 0x464F524D
jne 0x1b875
movl %eax, %eax
cmpl $0x49434f4e, %eax       # imm = 0x49434F4E
jne 0x1b875
leaq 0xf5ee3(%rip), %rsi     # 0x111732
movq 0x10(%rsp), %r12
movq %r12, %rdi
movq %r14, %rbx
movl %ebx, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rsp), %rax
movl $0x1, 0x68(%rax)
movq %r14, 0x70(%rax)
jmp 0x1b8ad
leaq 0xf5ed1(%rip), %rsi     # 0x11174d
movq 0x10(%rsp), %r12
movq %r12, %rdi
xorl %eax, %eax
callq 0xe8faa
jmp 0x1b8ad
leaq 0xf5e46(%rip), %rsi     # 0x1116da
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9295
movq %rbx, %r12
movl 0x3c(%rsp), %esi
movq %r12, %rdi
callq 0xe8a25
movl 0x4c(%rsp), %esi
movq %r12, %rdi
callq 0xe8a25
movq 0x18(%rsp), %r14
cmpl $0x0, 0x68(%r14)
je 0x1b8ce
leaq 0xf5b87(%rip), %rsi     # 0x111453
jmp 0x1b8e5
cmpl $0x0, 0x38(%r14)
leaq 0xf5bb8(%rip), %rax     # 0x111492
leaq 0xf5b92(%rip), %rsi     # 0x111473
cmoveq %rax, %rsi
movq %r12, %rdi
callq 0xeb125
leaq 0xf5bb3(%rip), %rsi     # 0x1114a7
movq %r12, %rdi
xorl %eax, %eax
callq 0xe8617
cmpq $0x0, 0x20(%r14)
jle 0x1bb39
xorl %r13d, %r13d
movq 0x28(%r14,%r13,8), %rbp
movq %r12, %rdi
leaq 0xf5e7b(%rip), %rsi     # 0x111796
movl %r13d, %edx
movq %rbp, %rcx
xorl %eax, %eax
callq 0xe8617
movq %r12, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x18(%r12), %rdi
leaq 0x4(%rbp), %rsi
callq 0xeeb67
movq %rax, %rbx
movq 0x18(%r12), %rdi
leaq 0x6(%rbp), %rsi
callq 0xeeb67
movq %rax, %r15
movq 0x18(%r12), %rdi
movq %rbp, 0x30(%rsp)
leaq 0x8(%rbp), %rsi
callq 0xeeb67
movq %rax, %rbp
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0xe8f88
movq %r12, %rdi
leaq 0x106902(%rip), %rsi    # 0x122287
movl %ebp, %edx
xorl %eax, %eax
callq 0xe8617
leaq -0x9(%rbp), %rax
cmpq $-0x9, %rax
ja 0x1b9b3
movq %r12, %rdi
leaq 0xf5e09(%rip), %rsi     # 0x1117ab
movl %ebp, %edx
xorl %eax, %eax
callq 0xe9295
xorl %r15d, %r15d
jmp 0x1bae1
movl $0x10, %esi
movq %rbx, %rdi
callq 0xe9cb4
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 0xf26a5
movq %rax, %rbx
movl $0x100, %esi            # imm = 0x100
leaq 0x70(%rsp), %rdi
xorl %edx, %edx
callq 0xf3bdb
cmpq $0x1, %rbp
movq %r15, %r8
jne 0x1ba3c
movq $-0x1000000, 0x70(%rsp) # imm = 0xFF000000
cmpl $0x0, 0x38(%r14)
movq 0x10(%rsp), %r12
movq %rbx, %r15
jne 0x1ba8d
cmpl $0x0, 0x68(%r14)
jne 0x1ba8d
movq %r12, %rdi
leaq 0xf5d98(%rip), %rsi     # 0x1117c5
xorl %eax, %eax
movq %r8, %rbx
callq 0xe8faa
movq %rbx, %r8
jmp 0x1ba8d
cmpq $0x0, (%r14)
movq 0x10(%rsp), %r12
movq %rbx, %r15
jne 0x1ba59
cmpq $0x2, %rbp
jne 0x1ba59
movaps 0xf5f89(%rip), %xmm0    # 0x1119e0
jmp 0x1ba88
cmpq $0x2, %rbp
jne 0x1ba68
movaps 0xf5f8a(%rip), %xmm0    # 0x1119f0
jmp 0x1ba88
cmpq $0x3, %rbp
jne 0x1bb05
movaps 0xf5f97(%rip), %xmm0    # 0x111a10
movaps %xmm0, 0x80(%rsp)
movaps 0xf5f78(%rip), %xmm0    # 0x111a00
movaps %xmm0, 0x70(%rsp)
movq 0x28(%rsp), %rcx
sarq $0x3, %rcx
imulq %rcx, %r8
movq 0x30(%rsp), %rsi
addq $0x14, %rsi
movq 0x18(%r12), %rdi
movq %r15, (%rsp)
movl $0x0, 0x8(%rsp)
movq %rbp, %rdx
leaq 0x70(%rsp), %r9
callq 0xf30b3
movl $0x1, %edx
cmpl $0x0, 0x38(%r14)
jne 0x1bad7
xorl %edx, %edx
cmpl $0x0, 0x68(%r14)
setne %dl
movq %r15, %rdi
xorl %esi, %esi
callq 0xf22dc
movq %r15, %rdi
callq 0xf228d
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
incq %r13
cmpq 0x20(%r14), %r13
jl 0x1b90c
jmp 0x1bb39
movq %rbp, %rax
addq $-0x3, %rax
xorl %edx, %edx
movq %rdx, %rsi
movl %eax, %ecx
shrq %cl, %rsi
leaq 0xf5ee3(%rip), %rcx     # 0x111a00
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 0x1bb0e
jmp 0x1ba8d
movq 0x40(%rsp), %r13
leaq 0x58(%r13), %rax
movq %rax, 0x58(%rsp)
addq $0x488, %r13            # imm = 0x488
movb $0x1, %al
xorl %ebx, %ebx
movq %r13, 0x40(%rsp)
movq 0x40(%r14,%rbx,8), %r15
testq %r15, %r15
je 0x1be25
movl %eax, 0x48(%rsp)
movq %r12, %rdi
leaq 0x70(%rsp), %rsi
callq 0xe8a1c
movq 0x18(%r15), %rcx
movq %r12, %rdi
leaq 0xf5c67(%rip), %rsi     # 0x1117eb
movl %ebx, %edx
xorl %eax, %eax
callq 0xe8617
movq %r12, %rdi
movl $0x1, %esi
callq 0xe8a15
movb $0x0, 0x55(%r14)
movq %r15, %rdi
xorl %esi, %esi
callq 0xeead3
movb %al, 0x30(%rsp)
cmpb $0x42, %al
sete 0x20(%rsp)
movl $0x1, %esi
movq %r15, %rdi
callq 0xeead3
movl %eax, %ebp
movl $0x2, %esi
movq %r15, %rdi
callq 0xeead3
movl %eax, %ebx
movl $0x3, %esi
movq %r15, %rdi
callq 0xeead3
movl %eax, %r13d
movl $0x4, %esi
movq %r15, %rdi
callq 0xeead3
cmpb $0x21, %bpl
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 0x1bc2d
movq %r12, %rdi
leaq 0xf5be9(%rip), %rsi     # 0x11180a
xorl %eax, %eax
callq 0xe9295
jmp 0x1be01
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 0x1bc64
movq %r12, %rdi
leaq 0xf5bc4(%rip), %rsi     # 0x11181c
xorl %eax, %eax
callq 0xe9295
jmp 0x1be01
movq %rdx, 0x28(%rsp)
movzbl %bpl, %ebp
addq $-0x21, %rbp
movzbl %bl, %ebx
addq $-0x21, %rbx
movq %r12, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0xe8f88
movq %r12, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0xf1db1
testl %eax, %eax
movq 0x40(%rsp), %r13
je 0x1be01
movq %rbx, 0x60(%rsp)
movq %rbp, 0x68(%rsp)
xorl %edx, %edx
movb 0x20(%rsp), %al
movb %al, %dl
movq %r12, %rdi
leaq 0xf5c29(%rip), %rsi     # 0x1118e6
xorl %eax, %eax
callq 0xe8617
movq %r12, %rdi
leaq 0xf79d1(%rip), %rsi     # 0x11369f
movq 0x28(%rsp), %rbx
movl %ebx, %edx
xorl %eax, %eax
callq 0xe8617
movl $0x800, %esi            # imm = 0x800
movq %r12, %rdi
xorl %edx, %edx
callq 0xf09c5
movq %rax, %rbp
xorl %eax, %eax
movb %al, 0x58(%r14)
movq 0x58(%rsp), %rdi
callq 0xf1bdd
movq %rbx, %rdi
callq 0xe9cd4
movl %eax, 0x50(%r14)
xorl %eax, %eax
movb %al, 0x54(%r14)
cmpq $0x6, 0x18(%r15)
jl 0x1be3c
leaq (%rbx,%rbx,2), %rax
movq %rax, 0x50(%rsp)
movl $0x5, %ebx
movq $0x0, 0x20(%rsp)
movq %r15, %rdi
movq %rbx, %rsi
callq 0xeead3
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 0x1bd9a
leal -0x51(%rax), %edx
cmpb $0x70, %al
movzbl %cl, %eax
movzbl %dl, %ecx
cmovbl %eax, %ecx
movzbl %cl, %r12d
movl $0x6, %r13d
xorl %edx, %edx
btl %r13d, %r12d
setb %dl
movq %r14, %rdi
movq %rbp, %rsi
callq 0x1c066
addl $-0x1, %r13d
jb 0x1bd74
movq 0x10(%rsp), %r12
movq 0x40(%rsp), %r13
jmp 0x1bdf2
cmpb $-0x2f, %al
jb 0x1bdc9
addl $0xffffff30, %eax       # imm = 0xFFFFFF30
je 0x1bdf2
leaq (,%rax,8), %r12
subq %rax, %r12
movq %r14, %rdi
movq %rbp, %rsi
xorl %edx, %edx
callq 0x1c066
decq %r12
jne 0x1bdb0
movq 0x10(%rsp), %r12
jmp 0x1bdf2
testq %rax, %rax
jne 0x1bdf2
movl $0x0, 0x5c(%r14)
cmpb $0x0, 0x54(%r14)
jne 0x1bdf2
movq 0x18(%rbp), %rax
cmpq 0x50(%rsp), %rax
jl 0x1bdf2
movb $0x1, 0x54(%r14)
movq %rax, 0x20(%rsp)
incq %rbx
cmpq 0x18(%r15), %rbx
jl 0x1bd32
jmp 0x1be45
xorl %ebx, %ebx
xorl %ebp, %ebp
movq %rbp, %rdi
callq 0xf052b
movq %rbx, %rdi
callq 0xf228d
movl 0x70(%rsp), %esi
movq %r12, %rdi
callq 0xe8a25
movl 0x48(%rsp), %eax
movl $0x1, %ebx
testb $0x1, %al
movl $0x0, %eax
jne 0x1bb57
jmp 0x1bf6f
movq $0x0, 0x20(%rsp)
movl 0x18(%rbp), %edx
movq %r12, %rdi
leaq 0xf59eb(%rip), %rsi     # 0x11183d
xorl %eax, %eax
callq 0xe8617
movq %r12, %rdi
leaq 0xf59f3(%rip), %rsi     # 0x111856
xorl %eax, %eax
callq 0xe87e4
movq %r12, %rdi
movl $0x1, %esi
callq 0xe8a15
movl $0x800, %edx            # imm = 0x800
movq %r13, %rdi
xorl %esi, %esi
callq 0x18140
cmpq $0x0, 0x28(%rsp)
je 0x1bed4
xorl %ebx, %ebx
xorl %r15d, %r15d
movq %rbp, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0xef42f
movl %eax, %edx
andl $0xffffff, %edx         # imm = 0xFFFFFF
cmpb $0x42, 0x30(%rsp)
cmovnel %eax, %edx
testq %r15, %r15
cmovnel %eax, %edx
movl %edx, (%r13,%r15,4)
movq %r12, %rdi
movq %r15, %rsi
callq 0xe91fc
incq %r15
addq $0x3, %rbx
cmpq %r15, 0x28(%rsp)
jne 0x1be93
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
cmpb $0x0, 0x55(%r14)
je 0x1bf00
movq %r12, %rdi
leaq 0xf5975(%rip), %rsi     # 0x111867
xorl %eax, %eax
callq 0xe9295
xorl %ebx, %ebx
jmp 0x1be05
movq %r12, %rdi
movq 0x68(%rsp), %r15
movq %r15, %rsi
movq 0x60(%rsp), %rdx
movl $0x4, %ecx
callq 0xf266a
movq %rax, %rbx
movl $0x0, (%rsp)
movl $0x8, %edx
movq %rbp, %rdi
movq 0x20(%rsp), %rsi
movq %r15, %rcx
movq %r13, %r8
movq %rax, %r9
callq 0xf2f79
cmpb $0x0, 0xd0(%r12)
leaq 0x10357d(%rip), %rsi    # 0x11f4cc
movl $0x0, %eax
cmoveq %rax, %rsi
xorl %edx, %edx
cmpl $0x0, 0x68(%r14)
setne %dl
movq %rbx, %rdi
callq 0xf22dc
jmp 0x1be05
cmpl $0x0, 0x68(%r14)
je 0x1c007
movq 0x70(%r14), %r15
movq %r12, %rdi
callq 0x1075c0
movq %rax, %rbx
leaq 0x70(%rsp), %r12
movq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0xe8a1c
leaq 0xf58f3(%rip), %rsi     # 0x111895
movq 0x10(%rsp), %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x10(%rsp), %rdi
movl $0x1, %esi
callq 0xe8a15
movq %r14, 0x10(%rbx)
leaq 0xff(%rip), %rax        # 0x1c0ca
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 0x1075e4
movl (%r12), %esi
movq 0x10(%rsp), %r12
movq %r12, %rdi
callq 0xe8a25
movq %rbx, %rdi
callq 0x1075d3
movq 0x40(%r14), %rdi
testq %rdi, %rdi
je 0x1c015
callq 0xf052b
movq 0x48(%r14), %rdi
testq %rdi, %rdi
je 0x1c023
callq 0xf052b
movq %r12, %rdi
movq %r14, %rsi
callq 0xe8be2
addq $0x478, %rsp            # imm = 0x478
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq