// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/icns.c
// Function: de_run_icns_pass
static void de_run_icns_pass(deark *c, lctx *d, int pass)
{
	i64 segment_pos;
	struct page_ctx *pg = NULL;
	int image_count;
	int saved_indent_level;

	de_dbg_indent_save(c, &saved_indent_level);
	segment_pos = 8;
	image_count = 0;

	while(1) {
		i64 segment_len;

		if(pg) { de_free(c, pg); pg=NULL; }

		if(segment_pos+8 > d->file_size) break;

		pg = de_malloc(c, sizeof(struct page_ctx));
		pg->segment_pos = segment_pos;
		pg->image_num = image_count;

		dbuf_read_fourcc(c->infile, segment_pos, &pg->code4cc, 4, 0x0);

		segment_len = de_getu32be(segment_pos+4);

		pg->image_pos = segment_pos + 8;
		pg->image_len = segment_len - 8;

		if(pass==2) {
			de_dbg(c, "image #%d, type '%s', segment at %"I64_FMT", image at %"I64_FMT", size=%"I64_FMT,
				pg->image_num, pg->code4cc.id_dbgstr,
				pg->segment_pos, pg->image_pos, pg->image_len);
		}
		de_dbg_indent(c, 1);

		if(segment_len<8 || segment_pos+segment_len > d->file_size) {
			if(pass==2) {
				de_err(c, "Invalid length for segment '%s' (%u)", pg->code4cc.id_sanitized_sz,
					(unsigned int)segment_len);
			}
			break;
		}

		if(segment_len==8) {
			if(pass==2) {
				de_dbg(c, "[empty icon]");
			}
			goto next_icon;
		}

		if(pass==2) {
			size_t i;

			// Find this type code in the image_type_info array
			pg->type_info = NULL;
			for(i=0; i<DE_ARRAYCOUNT(image_type_info_arr); i++) {
				if(image_type_info_arr[i].code==pg->code4cc.id) {
					pg->type_info = &image_type_info_arr[i];
					break;
				}
			}
			if(!pg->type_info) {
				de_warn(c, "(Image #%d) Unknown image type '%s'", pg->image_num, pg->code4cc.id_sanitized_sz);
			}
		}

		if(pass==1) {
			de_dbg_indent(c, -1);
			switch(pg->code4cc.id) {
			case 0x69636d23: // icm# 16x12x1
				do_read_mask(c, d, pg, MASKTYPEID_16_12_1, 1, 16, 12);
				break;
			case 0x69637323: // ics# 16x16x1
				do_read_mask(c, d, pg, MASKTYPEID_16_16_1, 1, 16, 16);
				break;
			case 0x49434e23: // ICN# 32x32x1
				do_read_mask(c, d, pg, MASKTYPEID_32_32_1, 1, 32, 32);
				break;
			case 0x69636823: // ich# 48x48x1
				do_read_mask(c, d, pg, MASKTYPEID_48_48_1, 1, 48, 48);
				break;
			case 0x73386d6b: // s8mk 16x16x8
				do_read_mask(c, d, pg, MASKTYPEID_16_16_8, 8, 16, 16);
				break;
			case 0x6c386d6b: // l8mk 32x32x8
				do_read_mask(c, d, pg, MASKTYPEID_32_32_8, 8, 32, 32);
				break;
			case 0x68386d6b: // h8mk 48x48x8
				do_read_mask(c, d, pg, MASKTYPEID_48_48_8, 8, 48, 48);
				break;
			case 0x74386d6b: // t8mk 128x128x8
				do_read_mask(c, d, pg, MASKTYPEID_128_128_8, 8, 128, 128);
				break;
			}
			de_dbg_indent(c, 1);
		}
		else if(pass==2) {
			do_icon(c, d, pg);
		}

next_icon:
		image_count++;
		segment_pos += segment_len;
		de_dbg_indent(c, -1);
	}

	if(pg) de_free(c, pg);
	de_dbg_indent_restore(c, saved_indent_level);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movl %edx, 0x2c(%rsp)
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x4c(%rsp), %rsi
callq 0xe8a1c
leaq 0xf0(%r14), %rax
movq %rax, 0x90(%rsp)
leaq 0x70(%r14), %rax
movq %rax, 0x88(%rsp)
leaq 0xd0(%r14), %rax
movq %rax, 0x80(%rsp)
leaq 0x50(%r14), %rax
movq %rax, 0x78(%rsp)
leaq 0xb0(%r14), %rax
movq %rax, 0x70(%rsp)
leaq 0x30(%r14), %rax
movq %rax, 0x68(%rsp)
leaq 0x90(%r14), %rax
movq %rax, 0x60(%rsp)
leaq 0x10(%r14), %rax
movq %rax, 0x58(%rsp)
movq %r14, 0x10(%rsp)
leaq 0x114(%r14), %rax
movq %rax, 0x50(%rsp)
xorl %r13d, %r13d
xorl %r14d, %r14d
movl $0x8, %r15d
testq %r13, %r13
je 0x73ab8
movq %rbx, %rdi
movq %r13, %rsi
callq 0xe8be2
leaq 0x8(%r15), %rbp
movq 0x10(%rsp), %rax
cmpq (%rax), %rbp
jg 0x74644
movl $0x490, %esi            # imm = 0x490
movq %rbx, %rdi
callq 0xe8b2b
movq %rax, %r13
movq %r15, 0x8(%rax)
movl %r14d, (%rax)
movq 0x18(%rbx), %rdi
leaq 0x38(%rax), %rdx
movq %r15, %rsi
movl $0x4, %ecx
xorl %r8d, %r8d
callq 0xf1762
movq 0x18(%rbx), %rdi
leaq 0x4(%r15), %rsi
callq 0xeed0d
movq %rax, %r12
addq $-0x8, %rax
movq %rbp, 0x10(%r13)
movq %rax, 0x18(%r13)
cmpl $0x2, 0x2c(%rsp)
jne 0x73b40
movl (%r13), %edx
leaq 0x48(%r13), %rcx
movq 0x8(%r13), %r8
movq %rax, (%rsp)
movq %rbx, %rdi
leaq 0xb3af9(%rip), %rsi     # 0x12762f
movq %rbp, %r9
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
cmpq $0x8, %r12
jl 0x74617
addq %r12, %r15
movq 0x10(%rsp), %rax
cmpq (%rax), %r15
jg 0x74617
cmpq $0x8, %r12
movl 0x2c(%rsp), %eax
jne 0x73b91
cmpl $0x2, %eax
jne 0x7415e
movq %rbx, %rdi
leaq 0xb3b0c(%rip), %rsi     # 0x127691
xorl %eax, %eax
callq 0xe8617
jmp 0x7415e
cmpl $0x2, %eax
leaq 0xb35e5(%rip), %rdx     # 0x127180
jne 0x73be5
movq $0x0, 0x30(%r13)
movl 0x3c(%r13), %ecx
xorl %eax, %eax
cmpl %ecx, (%rax,%rdx)
je 0x73c4e
addq $0x14, %rax
cmpq $0x320, %rax            # imm = 0x320
jne 0x73bab
movl (%r13), %edx
leaq 0x40(%r13), %rcx
movq %rbx, %rdi
leaq 0xb3acc(%rip), %rsi     # 0x12769e
xorl %eax, %eax
callq 0xe8faa
cmpq $0x0, 0x30(%r13)
jne 0x73c55
jmp 0x7415e
cmpl $0x1, %eax
jne 0x7415e
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movl 0x3c(%r13), %eax
cmpl $0x69637322, %eax       # imm = 0x69637322
jg 0x73eeb
cmpl $0x69636822, %eax       # imm = 0x69636822
jg 0x74013
cmpl $0x49434e23, %eax       # imm = 0x49434E23
je 0x740c2
cmpl $0x68386d6b, %eax       # imm = 0x68386D6B
jne 0x74151
movq $0x30, (%rsp)
movl $0x30, %r9d
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
movq %r13, %rdx
movl $0x6, %ecx
jmp 0x74146
addq %rdx, %rax
movq %rax, 0x30(%r13)
leaq 0x6c(%r13), %rbp
movl $0x20, %edx
movq %rbp, %rdi
leaq 0xd1448(%rip), %rsi     # 0x1450b0
callq 0xe8219
movq 0x30(%r13), %rdx
movl 0x10(%rdx), %ecx
leal -0x1(%rcx), %eax
cmpl $0x4, %eax
ja 0x7415e
leaq 0xb3459(%rip), %rsi     # 0x1270e0
movslq (%rsi,%rax,4), %rax
addq %rsi, %rax
jmpq *%rax
movl 0x68(%r13), %esi
testl %esi, %esi
jne 0x73d40
movq 0x18(%rbx), %rdi
movq 0x10(%r13), %rdx
movl $0x8, %ecx
leaq 0x30(%rsp), %rsi
callq 0xee8d4
cmpb $0x6a, 0x34(%rsp)
jne 0x73cc6
movl $0x3, %esi
cmpb $0x50, 0x35(%rsp)
je 0x73d35
movb 0x30(%rsp), %dl
movb 0x31(%rsp), %al
movl %edx, %ecx
notb %cl
movl %eax, %esi
xorb $0x4f, %sil
orb %cl, %sil
movb 0x32(%rsp), %cl
movl %ecx, %r8d
notb %r8b
orb %sil, %r8b
movb 0x33(%rsp), %dil
movl %edi, %r9d
xorb $0x51, %r9b
movl $0x4, %esi
orb %r8b, %r9b
je 0x73d35
movl %edx, %r8d
xorb $-0x77, %r8b
movl %eax, %r9d
xorb $0x50, %r9b
movl $0x2, %esi
orb %r8b, %r9b
je 0x73d35
xorb $0x41, %dl
xorb $0x52, %al
orb %dl, %al
xorb $0x47, %cl
orb %al, %cl
xorb $0x42, %dil
xorl %eax, %eax
orb %cl, %dil
sete %al
leal 0x1(,%rax,4), %esi
movl %esi, 0x68(%r13)
movq 0x30(%r13), %rdx
movl 0x10(%rdx), %ecx
movq %rbp, 0x20(%rsp)
cmpl $0x5, %ecx
jne 0x73f3e
cmpl $0x5, %esi
jne 0x73f3e
movl 0x4(%rdx), %eax
movl 0x8(%rdx), %ecx
movslq %eax, %rsi
movq %rsi, 0x18(%rsp)
movslq %ecx, %r12
imulq %r12, %rsi
movq %r12, 0x38(%rsp)
shlq $0x2, %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0xf09c5
movl $0x4, %ecx
movq %rbx, %rdi
movq %r13, %rsi
movq %rax, %rdx
movl %r14d, 0x40(%rsp)
movq %rax, %r14
callq 0x747fc
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
movq %r12, %rdx
movl $0x4, %ecx
callq 0xf266a
movq 0x20(%rsp), %r12
movq %rax, %rbp
movl $0x3, %ecx
movq %r14, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0x7489b
movl $0x1, %esi
movq %r14, %rdi
movq %rbp, %rdx
xorl %ecx, %ecx
callq 0x7489b
movl $0x2, %esi
movl $0x1, %ecx
movq %r14, %rdi
movq %rbp, %rdx
callq 0x7489b
movl $0x3, %esi
movl $0x2, %ecx
movq %r14, %rdi
movq %rbp, %rdx
callq 0x7489b
movl $0x20, %esi
movq %r12, %rdi
leaq 0xb3a23(%rip), %rdx     # 0x12783a
movq 0x18(%rsp), %rcx
movq 0x38(%rsp), %r8
xorl %eax, %eax
callq 0xe8193
movq %rbp, %rdi
movq %r12, %rsi
movl $0x2, %edx
callq 0xf22dc
movq %rbp, %rdi
callq 0xf228d
movq %r14, %rdi
movl 0x40(%rsp), %r14d
jmp 0x74604
movl 0xc(%rdx), %esi
movl 0x4(%rdx), %eax
imull %esi, %eax
leal 0x7(%rax), %edi
addl $0xe, %eax
testl %edi, %edi
cmovnsl %edi, %eax
sarl $0x3, %eax
movslq %eax, %rdi
movq %rdi, 0x28(%r13)
movslq 0x8(%rdx), %rax
imulq %rdi, %rax
cmpl $0x4, %ecx
sete %cl
shlq %cl, %rax
cmpl $0x18, %esi
jne 0x73fea
cmpl $0x49434f4e, (%rdx)     # imm = 0x49434F4E
je 0x74266
movl 0x4(%rdx), %ecx
addl $-0x10, %ecx
roll $0x1c, %ecx
xorl %eax, %eax
cmpl $0x7, %ecx
ja 0x7419f
leaq 0xb3248(%rip), %rsi     # 0x1270f4
movslq (%rsi,%rcx,4), %rcx
addq %rsi, %rcx
xorl %r12d, %r12d
jmpq *%rcx
movl 0x8(%rdx), %ecx
movq 0x68(%rsp), %rax
movq 0x60(%rsp), %r12
cmpl $0x10, %ecx
je 0x741a2
cmpl $0xc, %ecx
jne 0x7419d
cmpl $0x9, 0xc(%rdx)
movl $0x0, %eax
cmovlq 0x58(%rsp), %rax
jmp 0x7419f
cmpl $0x73386d6a, %eax       # imm = 0x73386D6A
jg 0x74049
cmpl $0x69637323, %eax       # imm = 0x69637323
je 0x740e2
cmpl $0x6c386d6b, %eax       # imm = 0x6C386D6B
jne 0x74151
movq $0x20, (%rsp)
movl $0x20, %r9d
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
movq %r13, %rdx
movl $0x5, %ecx
jmp 0x74146
movq %rbx, %rdi
leaq 0xb37d0(%rip), %rsi     # 0x127709
jmp 0x73b85
movq 0x10(%r13), %rdx
movq %rbx, %rdi
leaq 0xb38ab(%rip), %rsi     # 0x1277f7
xorl %eax, %eax
callq 0xe8617
movslq 0x68(%r13), %rax
leal -0x2(%rax), %ecx
cmpl $0x2, %ecx
ja 0x74082
leaq 0xb3622(%rip), %rcx     # 0x12758c
movslq -0x8(%rcx,%rax,4), %rax
addq %rcx, %rax
movq %rax, 0x18(%rsp)
movq %rbx, %rdi
callq 0xea504
movq 0x20(%rsp), %rbp
movq %rax, %r12
movq 0x30(%r13), %rax
movl 0x4(%rax), %ecx
movl 0x8(%rax), %r8d
movl $0x20, %esi
movq %rbp, %rdi
leaq 0xc39da(%rip), %rdx     # 0x13797b
xorl %eax, %eax
callq 0xe8193
movq %rbx, %rdi
movq %r12, %rsi
movq %rbp, %rdx
xorl %ecx, %ecx
movl $0x1, %r8d
callq 0xea78f
movq 0x18(%rbx), %rdi
movq 0x10(%r13), %rsi
movq 0x18(%r13), %rdx
movq 0x18(%rsp), %rcx
movq %r12, %r8
xorl %r9d, %r9d
callq 0xefd48
movq %rbx, %rdi
movq %r12, %rsi
callq 0xea50e
jmp 0x7415e
movq 0x18(%r13), %r8
cmpq %rax, %r8
jge 0x7409c
movl (%r13), %edx
movq %rbx, %rdi
leaq 0xb3718(%rip), %rsi     # 0x12771d
movl %eax, %ecx
xorl %eax, %eax
callq 0xe9295
jmp 0x7415e
cmpl $0x69636823, %eax       # imm = 0x69636823
je 0x74102
cmpl $0x69636d23, %eax       # imm = 0x69636D23
jne 0x74151
movq $0xc, (%rsp)
movl $0x10, %r9d
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
movq %r13, %rdx
xorl %ecx, %ecx
jmp 0x74120
cmpl $0x73386d6b, %eax       # imm = 0x73386D6B
je 0x74128
cmpl $0x74386d6b, %eax       # imm = 0x74386D6B
jne 0x74151
movq $0x80, (%rsp)
movl $0x80, %r9d
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
movq %r13, %rdx
movl $0x7, %ecx
jmp 0x74146
movl (%r13), %edx
movq %rbx, %rdi
leaq 0xb3785(%rip), %rsi     # 0x127815
xorl %eax, %eax
callq 0xe9295
jmp 0x7415e
jle 0x73e85
movl (%r13), %edx
movq %rbx, %rdi
leaq 0xb36ae(%rip), %rsi     # 0x12775e
movl %eax, %ecx
xorl %eax, %eax
callq 0xe8faa
movq 0x30(%r13), %rdx
jmp 0x73e85
movq $0x20, (%rsp)
movl $0x20, %r9d
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
movq %r13, %rdx
movl $0x2, %ecx
jmp 0x74120
movq $0x10, (%rsp)
movl $0x10, %r9d
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
movq %r13, %rdx
movl $0x1, %ecx
jmp 0x74120
movq $0x30, (%rsp)
movl $0x30, %r9d
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
movq %r13, %rdx
movl $0x3, %ecx
movl $0x1, %r8d
jmp 0x7414c
movq $0x10, (%rsp)
movl $0x10, %r9d
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
movq %r13, %rdx
movl $0x4, %ecx
movl $0x8, %r8d
callq 0x74662
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
incl %r14d
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
jmp 0x73aa8
movq 0x88(%rsp), %rax
movq 0x80(%rsp), %r12
jmp 0x741a2
movq 0x78(%rsp), %rax
movq 0x70(%rsp), %r12
jmp 0x741a2
xorl %eax, %eax
movq 0x90(%rsp), %r12
jmp 0x741a2
xorl %eax, %eax
xorl %r12d, %r12d
movl 0xc(%rdx), %ecx
xorl %esi, %esi
cmpl $0x9, %ecx
setge %sil
addq $0x9, %rsi
cmpl $0x1, %ecx
movl $0x8, %ecx
cmoveq %rcx, %rsi
movq 0x10(%rsp), %rcx
movzbl (%rcx,%rsi), %esi
cmpl $0x11, %esi
jg 0x741de
movq %rax, %rcx
cmpl $0x1, %esi
je 0x74214
movq %r12, %rcx
cmpl $0x8, %esi
je 0x74214
jmp 0x74251
cmpl $0x12, %esi
je 0x741fd
cmpl $0x51, %esi
jne 0x74251
movq %rax, %rcx
testq %r12, %r12
je 0x74214
cmpq $0x0, 0x18(%r12)
movq %rax, %rcx
jne 0x74223
jmp 0x74214
testq %rax, %rax
je 0x74211
cmpq $0x0, 0x18(%rax)
movq %r12, %rcx
movq %rax, %r12
jne 0x74223
jmp 0x74214
movq %r12, %rcx
testq %rcx, %rcx
je 0x74251
cmpq $0x0, 0x18(%rcx)
movq %rcx, %r12
je 0x74251
cmpl $0x4, 0x10(%rdx)
movq (%r12), %rdx
jne 0x74238
cmpq %rax, %r12
jne 0x74238
cmpq %rdx, 0x8(%r13)
jne 0x74251
movb $0x1, 0x8(%r12)
movq %rbx, %rdi
leaq 0xb35ff(%rip), %rsi     # 0x127847
xorl %eax, %eax
callq 0xe8617
jmp 0x74269
movq 0x8(%r13), %rdx
movq %rbx, %rdi
leaq 0xb35fc(%rip), %rsi     # 0x12785b
xorl %eax, %eax
callq 0xe8617
xorl %r12d, %r12d
movq %r12, 0x20(%r13)
movq 0x30(%r13), %rax
movl 0x4(%rax), %ecx
movl 0x8(%rax), %r8d
movl 0xc(%rax), %r9d
movl $0x20, %esi
movq %rbp, %rdi
leaq 0xb3514(%rip), %rdx     # 0x12779f
xorl %eax, %eax
callq 0xe8193
movq 0x30(%r13), %rax
movl 0x4(%rax), %edx
movl 0x8(%rax), %ecx
movl 0xc(%rax), %r8d
movq %rbx, %rdi
leaq 0xb34fe(%rip), %rsi     # 0x1277a8
xorl %eax, %eax
callq 0xe8617
movq 0x30(%r13), %rax
movl 0xc(%rax), %ecx
cmpl $0x7, %ecx
jg 0x742e8
cmpl $0x1, %ecx
je 0x742f6
cmpl $0x4, %ecx
je 0x742f6
movl (%r13), %edx
movq %r13, %rcx
addq $0x40, %rcx
movq %rbx, %rdi
leaq 0xb34ee(%rip), %rsi     # 0x1277ca
xorl %eax, %eax
callq 0xe8faa
jmp 0x7415e
cmpl $0x18, %ecx
je 0x74452
cmpl $0x8, %ecx
jne 0x742c7
movq %rbp, 0x20(%rsp)
xorl %edx, %edx
cmpl $0x1, %ecx
setne %dl
leal 0x2(%rdx,%rdx), %ecx
movslq 0x4(%rax), %rsi
movslq 0x8(%rax), %rdx
movq %rbx, %rdi
callq 0xf266a
movq %rax, %r12
movq 0x30(%r13), %rbp
movl 0xc(%rbp), %eax
cmpl $0x4, %eax
je 0x74414
cmpl $0x8, %eax
jne 0x7449a
movq 0x10(%rsp), %rax
cmpb $0x0, 0x110(%rax)
jne 0x743f9
movq 0x10(%rsp), %rax
movb $0x1, 0x110(%rax)
movb $0x5, %al
xorl %ecx, %ecx
cmpq $0xd6, %rcx
ja 0x743d1
movzbl %cl, %edx
imull $0xab, %edx, %esi
shrl $0x9, %esi
andl $-0x2, %esi
leal (%rsi,%rsi,2), %esi
addb %al, %sil
imull $0x39, %edx, %edx
shrl $0x9, %edx
andl $-0x4, %edx
leal (%rdx,%rdx,8), %edx
movl %ecx, %edi
subb %dl, %dil
movzbl %cl, %edx
imull $0x39, %edx, %edx
shrl $0xb, %edx
movl $0x5, %r8d
subl %edx, %r8d
movzbl %dil, %edx
imull $0xab, %edx, %edx
shrl $0xa, %edx
movl $0x5, %edi
subl %edx, %edi
movzbl %sil, %edx
imull $0x33, %edx, %edx
imull $0x330000, %r8d, %esi   # imm = 0x330000
orl %edx, %esi
imull $0x3300, %edi, %edx     # imm = 0x3300
movl $0xffff, %edi           # imm = 0xFFFF
andl %edi, %edx
addl %esi, %edx
orl $0xff000000, %edx       # imm = 0xFF000000
jmp 0x743df
leaq 0xb3108(%rip), %rdx     # 0x1274e0
movl -0x35c(%rdx,%rcx,4), %edx
movq 0x50(%rsp), %rsi
movl %edx, (%rsi,%rcx,4)
incq %rcx
decb %al
cmpq $0x100, %rcx            # imm = 0x100
jne 0x74355
leaq 0x8c(%r13), %rdi
movl $0x400, %edx            # imm = 0x400
movq 0x50(%rsp), %rsi
callq 0x181e0
jmp 0x744ab
movaps 0xb30b5(%rip), %xmm0    # 0x1274d0
movups %xmm0, 0xbc(%r13)
movaps 0xb3096(%rip), %xmm0    # 0x1274c0
movups %xmm0, 0xac(%r13)
movaps 0xb3077(%rip), %xmm0    # 0x1274b0
movups %xmm0, 0x9c(%r13)
movaps 0xb3058(%rip), %xmm0    # 0x1274a0
movups %xmm0, 0x8c(%r13)
jmp 0x744ab
movslq 0x4(%rax), %rcx
movq %rcx, 0x40(%rsp)
movslq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
cmpl $0x69743332, 0x3c(%r13) # imm = 0x69743332
jne 0x7450f
movq 0x18(%rbx), %rdi
movq 0x10(%r13), %rsi
movl $0x4, %ecx
leaq 0xb30fe(%rip), %rdx     # 0x127584
callq 0xefc85
xorl %r12d, %r12d
testl %eax, %eax
sete %r12b
shll $0x2, %r12d
jmp 0x74512
movabsq $-0xffffff00000001, %rax # imm = 0xFF000000FFFFFFFF
movq %rax, 0x8c(%r13)
movq 0x18(%rbx), %rdi
movslq 0xc(%rbp), %rdx
movq 0x10(%r13), %rsi
movq 0x28(%r13), %rcx
movq %r13, %r8
addq $0x8c, %r8
movl $0x0, (%rsp)
movq %r12, %r9
callq 0xf2f79
movq 0x20(%r13), %rax
testq %rax, %rax
je 0x744f0
movq 0x18(%rax), %rsi
testq %rsi, %rsi
je 0x744f0
movq %r12, %rdi
xorl %edx, %edx
callq 0xf37bd
movq %r12, %rdi
movq 0x20(%rsp), %rsi
movl $0x2, %edx
callq 0xf22dc
movq %r12, %rdi
callq 0xf228d
jmp 0x7415e
xorl %r12d, %r12d
movq 0x40(%rsp), %rax
imulq 0x18(%rsp), %rax
leaq (%rax,%rax,2), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0xf09c5
movq %rax, 0x20(%rsp)
movq %rbx, %rdi
movq %r13, %rsi
movq %rax, %rdx
movq %r12, %rcx
callq 0x747fc
movq %rbx, %rdi
movq 0x40(%rsp), %r12
movq %r12, %rsi
movq 0x18(%rsp), %rdx
movl $0x4, %ecx
callq 0xf266a
movq %rax, 0x38(%rsp)
movl $0x0, (%rsp)
movq %rax, %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %r12, %rcx
movq 0x18(%rsp), %r8
movl $0xff000000, %r9d       # imm = 0xFF000000
callq 0xf3654
movq 0x20(%rsp), %r12
movq %r12, %rdi
xorl %esi, %esi
movq 0x38(%rsp), %rdx
xorl %ecx, %ecx
callq 0x7489b
movl $0x1, %esi
movl $0x1, %ecx
movq %r12, %rdi
movq 0x38(%rsp), %r12
movq %r12, %rdx
callq 0x7489b
movl $0x2, %esi
movl $0x2, %ecx
movq 0x20(%rsp), %rdi
movq %r12, %rdx
callq 0x7489b
movq 0x20(%r13), %rax
testq %rax, %rax
je 0x745e7
movq 0x18(%rax), %rsi
testq %rsi, %rsi
je 0x745e7
movq %r12, %rdi
xorl %edx, %edx
callq 0xf37bd
movq %r12, %rdi
movq %rbp, %rsi
movl $0x2, %edx
callq 0xf22dc
movq %r12, %rdi
callq 0xf228d
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x7415e
callq 0xf052b
jmp 0x7415e
cmpl $0x2, 0x2c(%rsp)
jne 0x74639
movq %r13, %rdx
addq $0x40, %rdx
leaq 0xb3040(%rip), %rsi     # 0x12766c
movq %rbx, %rdi
movl %r12d, %ecx
xorl %eax, %eax
callq 0xe9295
movq %rbx, %rdi
movq %r13, %rsi
callq 0xe8be2
movl 0x4c(%rsp), %esi
movq %rbx, %rdi
callq 0xe8a25
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq