// File: /workspace/github_c_makefile_star2_O1/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 $0x88, %rsp
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x2c(%rsp), %rsi
callq 0xe958c
leaq 0x30(%r15), %rax
movq %rax, 0x38(%rsp)
leaq 0x90(%r15), %rax
movq %rax, 0x30(%rsp)
leaq 0x10(%r15), %rax
movq %rax, 0x60(%rsp)
leaq 0xf0(%r15), %rax
movq %rax, 0x78(%rsp)
leaq 0x70(%r15), %rax
movq %rax, 0x48(%rsp)
leaq 0xd0(%r15), %rax
movq %rax, 0x40(%rsp)
leaq 0x50(%r15), %rax
movq %rax, 0x70(%rsp)
leaq 0xb0(%r15), %rax
movq %rax, 0x68(%rsp)
movq %r15, 0x8(%rsp)
leaq 0x114(%r15), %rax
movq %rax, 0x80(%rsp)
xorl %r15d, %r15d
movl $0x0, 0x24(%rsp)
movl $0x8, %r13d
movl %r14d, 0x28(%rsp)
testq %r15, %r15
je 0x73da2
movq %rbx, %rdi
movq %r15, %rsi
callq 0xe9752
leaq 0x8(%r13), %rbp
movq 0x8(%rsp), %rax
cmpq (%rax), %rbp
jle 0x73dbe
xorl %r15d, %r15d
movq %r13, %rbp
xorl %r14d, %r14d
jmp 0x742ad
movl $0x490, %esi            # imm = 0x490
movq %rbx, %rdi
callq 0xe969b
movq %rax, %r15
movq %r13, 0x8(%rax)
movl 0x24(%rsp), %eax
movl %eax, (%r15)
movq 0x18(%rbx), %rdi
leaq 0x38(%r15), %rdx
movq %r13, %rsi
movl $0x4, %ecx
xorl %r8d, %r8d
callq 0xf1d74
movq 0x18(%rbx), %rdi
leaq 0x4(%r13), %rsi
callq 0xef32a
movq %rax, %r12
addq $-0x8, %rax
movq %rbp, 0x10(%r15)
movq %rax, 0x18(%r15)
cmpl $0x2, %r14d
jne 0x73e36
movl (%r15), %edx
leaq 0x48(%r15), %rcx
movq 0x8(%r15), %r8
movq %rax, (%rsp)
movq %rbx, %rdi
leaq 0xb35d3(%rip), %rsi     # 0x1273ff
movq %rbp, %r9
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
cmpq $0x8, %r12
jl 0x73e57
leaq (%r12,%r13), %rbp
movq 0x8(%rsp), %rax
cmpq (%rax), %rbp
jle 0x73e88
cmpl $0x2, %r14d
jne 0x73e7d
movq %r15, %rdx
addq $0x40, %rdx
xorl %r14d, %r14d
movq %rbx, %rdi
leaq 0xb35cb(%rip), %rsi     # 0x12743c
movl %r12d, %ecx
xorl %eax, %eax
callq 0xe9df7
jmp 0x73e80
xorl %r14d, %r14d
movq %r13, %rbp
jmp 0x742ad
cmpq $0x8, %r12
jne 0x73eae
cmpl $0x2, %r14d
jne 0x74299
movq %rbx, %rdi
leaq 0xb35bf(%rip), %rsi     # 0x127461
xorl %eax, %eax
callq 0xe9226
jmp 0x74299
cmpl $0x2, %r14d
leaq 0xb3097(%rip), %rdx     # 0x126f50
jne 0x73f02
movq $0x0, 0x30(%r15)
movl 0x3c(%r15), %ecx
xorl %eax, %eax
cmpl %ecx, (%rax,%rdx)
je 0x73edc
addq $0x14, %rax
cmpq $0x320, %rax            # imm = 0x320
jne 0x73ec9
jmp 0x73ee3
addq %rdx, %rax
movq %rax, 0x30(%r15)
cmpq $0x0, 0x30(%r15)
jne 0x73f02
movl (%r15), %edx
leaq 0x40(%r15), %rcx
movq %rbx, %rdi
leaq 0xb3573(%rip), %rsi     # 0x12746e
xorl %eax, %eax
callq 0xe9b27
cmpl $0x1, %r14d
jne 0x73f68
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movl 0x3c(%r15), %eax
cmpl $0x69637322, %eax       # imm = 0x69637322
jg 0x7414e
cmpl $0x69636822, %eax       # imm = 0x69636822
jg 0x7418e
cmpl $0x49434e23, %eax       # imm = 0x49434E23
je 0x741fd
cmpl $0x68386d6b, %eax       # imm = 0x68386D6B
jne 0x7428c
movq $0x30, (%rsp)
movl $0x30, %r9d
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movq %r15, %rdx
movl $0x6, %ecx
jmp 0x74281
cmpl $0x2, %r14d
jne 0x74299
cmpq $0x0, 0x30(%r15)
je 0x74299
leaq 0x6c(%r15), %r13
movl $0x20, %edx
movq %r13, %rdi
leaq 0xd0c40(%rip), %rsi     # 0x144bd0
callq 0xe8ded
movq 0x30(%r15), %rax
movl 0x10(%rax), %ecx
leal -0x1(%rcx), %edx
cmpl $0x4, %edx
ja 0x74299
leaq 0xb2f01(%rip), %rsi     # 0x126eb0
movslq (%rsi,%rdx,4), %rdx
addq %rsi, %rdx
jmpq *%rdx
cmpl $0x0, 0x68(%r15)
jne 0x74060
movq 0x18(%rbx), %rdi
movq 0x10(%r15), %rdx
movl $0x8, %ecx
leaq 0x10(%rsp), %rsi
callq 0xeeee8
cmpb $0x6a, 0x14(%rsp)
jne 0x73fed
movl $0x3, %edi
cmpb $0x50, 0x15(%rsp)
je 0x7405c
movb 0x10(%rsp), %dl
movb 0x11(%rsp), %al
movl %edx, %ecx
notb %cl
movl %eax, %esi
xorb $0x4f, %sil
orb %cl, %sil
movb 0x12(%rsp), %cl
movl %ecx, %r8d
notb %r8b
orb %sil, %r8b
movb 0x13(%rsp), %sil
movl %esi, %r9d
xorb $0x51, %r9b
movl $0x4, %edi
orb %r8b, %r9b
je 0x7405c
movl %edx, %r8d
xorb $-0x77, %r8b
movl %eax, %r9d
xorb $0x50, %r9b
movl $0x2, %edi
orb %r8b, %r9b
je 0x7405c
xorb $0x41, %dl
xorb $0x52, %al
orb %dl, %al
xorb $0x47, %cl
orb %al, %cl
xorb $0x42, %sil
xorl %eax, %eax
orb %cl, %sil
sete %al
leal 0x1(,%rax,4), %edi
movl %edi, 0x68(%r15)
movq 0x30(%r15), %rax
cmpl $0x5, 0x10(%rax)
jne 0x74313
cmpl $0x5, 0x68(%r15)
jne 0x74313
movl 0x4(%rax), %ecx
movl 0x8(%rax), %eax
movslq %ecx, %rsi
movq %rsi, 0x18(%rsp)
movslq %eax, %r14
imulq %r14, %rsi
movq %r14, 0x58(%rsp)
shlq $0x2, %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0xf0faf
movq %rax, %r12
movl $0x4, %ecx
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x74ad7
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
movq %r14, %rdx
movl $0x4, %ecx
callq 0xf2cab
movq %r13, %r14
movq %rax, %r13
movl $0x3, %ecx
movq %r12, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0x74b76
movl $0x1, %esi
movq %r12, %rdi
movq %r13, %rdx
xorl %ecx, %ecx
callq 0x74b76
movl $0x2, %esi
movl $0x1, %ecx
movq %r12, %rdi
movq %r13, %rdx
callq 0x74b76
movl $0x3, %esi
movl $0x2, %ecx
movq %r12, %rdi
movq %r13, %rdx
callq 0x74b76
movl $0x20, %esi
movq %r14, %rdi
leaq 0xb34d8(%rip), %rdx     # 0x12760a
movq 0x18(%rsp), %rcx
movq 0x58(%rsp), %r8
xorl %eax, %eax
callq 0xe8d67
movq %r13, %rdi
movq %r14, %rsi
jmp 0x74917
cmpl $0x73386d6a, %eax       # imm = 0x73386D6A
jg 0x741c4
cmpl $0x69637323, %eax       # imm = 0x69637323
je 0x7421d
cmpl $0x6c386d6b, %eax       # imm = 0x6C386D6B
jne 0x7428c
movq $0x20, (%rsp)
movl $0x20, %r9d
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movq %r15, %rdx
movl $0x5, %ecx
jmp 0x74281
cmpl $0x69636823, %eax       # imm = 0x69636823
je 0x7423d
cmpl $0x69636d23, %eax       # imm = 0x69636D23
jne 0x7428c
movq $0xc, (%rsp)
movl $0x10, %r9d
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movq %r15, %rdx
xorl %ecx, %ecx
jmp 0x7425b
cmpl $0x73386d6b, %eax       # imm = 0x73386D6B
je 0x74263
cmpl $0x74386d6b, %eax       # imm = 0x74386D6B
jne 0x7428c
movq $0x80, (%rsp)
movl $0x80, %r9d
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movq %r15, %rdx
movl $0x7, %ecx
jmp 0x74281
movq $0x20, (%rsp)
movl $0x20, %r9d
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movq %r15, %rdx
movl $0x2, %ecx
jmp 0x7425b
movq $0x10, (%rsp)
movl $0x10, %r9d
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movq %r15, %rdx
movl $0x1, %ecx
jmp 0x7425b
movq $0x30, (%rsp)
movl $0x30, %r9d
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movq %r15, %rdx
movl $0x3, %ecx
movl $0x1, %r8d
jmp 0x74287
movq $0x10, (%rsp)
movl $0x10, %r9d
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movq %r15, %rdx
movl $0x4, %ecx
movl $0x8, %r8d
callq 0x7496d
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
incl 0x24(%rsp)
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movb $0x1, %r14b
movq %rbp, %r13
testb %r14b, %r14b
movl 0x28(%rsp), %r14d
jne 0x73d92
jmp 0x7493f
movl 0xc(%rax), %edx
movl 0x4(%rax), %esi
imull %edx, %esi
leal 0x7(%rsi), %edi
addl $0xe, %esi
testl %edi, %edi
cmovnsl %edi, %esi
sarl $0x3, %esi
movslq %esi, %rsi
movq %rsi, 0x28(%r15)
movslq 0x8(%rax), %rax
imulq %rsi, %rax
cmpl $0x4, %ecx
sete %cl
shlq %cl, %rax
cmpl $0x18, %edx
jne 0x743c1
movq 0x30(%r15), %rax
cmpl $0x49434f4e, (%rax)     # imm = 0x49434F4E
jne 0x74402
xorl %r14d, %r14d
jmp 0x745a0
movq 0x10(%r15), %rdx
movq %rbx, %rdi
leaq 0xb32a6(%rip), %rsi     # 0x1275c7
xorl %eax, %eax
callq 0xe9226
movl 0x68(%r15), %eax
addl $-0x2, %eax
cmpl $0x2, %eax
ja 0x743e9
ja 0x74474
movl %eax, %eax
leaq 0xb3015(%rip), %rcx     # 0x12735c
movq %r13, %r14
movslq (%rcx,%rax,4), %r13
addq %rcx, %r13
movq %rbx, %rdi
callq 0xea9a9
movq %rax, %r12
movq 0x30(%r15), %rax
movl 0x4(%rax), %ecx
movl 0x8(%rax), %r8d
movl $0x20, %esi
movq %r14, %rdi
leaq 0xc327d(%rip), %rdx     # 0x1375f3
xorl %eax, %eax
callq 0xe8d67
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
xorl %ecx, %ecx
movl $0x1, %r8d
callq 0xeac7c
movq 0x18(%rbx), %rdi
movq 0x10(%r15), %rsi
movq 0x18(%r15), %rdx
movq %r13, %rcx
movq %r12, %r8
xorl %r9d, %r9d
callq 0xf0321
jmp 0x74477
movq %rbx, %rdi
leaq 0xb311d(%rip), %rsi     # 0x1274d9
jmp 0x73ea2
movq 0x18(%r15), %r8
cmpq %rax, %r8
jge 0x74453
movl (%r15), %edx
movq %rbx, %rdi
leaq 0xb3112(%rip), %rsi     # 0x1274ed
movl %eax, %ecx
xorl %eax, %eax
callq 0xe9df7
jmp 0x74299
movl (%r15), %edx
movq %rbx, %rdi
leaq 0xb31ef(%rip), %rsi     # 0x1275e5
xorl %eax, %eax
callq 0xe9df7
jmp 0x74299
movl 0x4(%rax), %esi
leal -0x10(%rsi), %edx
roll $0x1c, %edx
xorl %ecx, %ecx
cmpl $0x7, %edx
ja 0x744d5
leaq 0xb2aa7(%rip), %r8      # 0x126ec4
movslq (%r8,%rdx,4), %rdi
addq %r8, %rdi
xorl %edx, %edx
jmpq *%rdi
movl 0x8(%rax), %edi
movq 0x38(%rsp), %rcx
movq 0x30(%rsp), %rdx
cmpl $0x10, %edi
je 0x744d7
cmpl $0xc, %edi
jne 0x744a2
cmpl $0x9, 0xc(%rax)
jge 0x74493
movq 0x60(%rsp), %rcx
jmp 0x744d5
jle 0x742fb
movl (%r15), %edx
movq %rbx, %rdi
leaq 0xb30c8(%rip), %rsi     # 0x12752e
movl %eax, %ecx
xorl %eax, %eax
callq 0xe9b27
jmp 0x742fb
xorl %r12d, %r12d
movq %rbx, %rdi
movq %r12, %rsi
callq 0xea9b3
jmp 0x74299
movq 0x48(%rsp), %rcx
movq 0x40(%rsp), %rdx
jmp 0x744d7
movq 0x38(%rsp), %rcx
movq 0x30(%rsp), %rdx
cmpl $0x10, %edi
je 0x744d7
cmpl $0x80, %esi
je 0x744ca
movq 0x48(%rsp), %rcx
movq 0x40(%rsp), %rdx
cmpl $0x30, %esi
je 0x744d7
cmpl $0x20, %esi
jne 0x744d3
movq 0x70(%rsp), %rcx
movq 0x68(%rsp), %rdx
jmp 0x744d7
xorl %ecx, %ecx
movq 0x78(%rsp), %rdx
jmp 0x744d7
xorl %ecx, %ecx
xorl %edx, %edx
movl 0xc(%rax), %esi
xorl %edi, %edi
cmpl $0x9, %esi
setge %dil
addq $0x9, %rdi
cmpl $0x1, %esi
movl $0x8, %esi
cmoveq %rsi, %rdi
movq 0x8(%rsp), %rsi
movzbl (%rsi,%rdi), %esi
cmpl $0x11, %esi
jg 0x74513
movq %rcx, %rdi
cmpl $0x1, %esi
je 0x7454a
movq %rdx, %rdi
cmpl $0x8, %esi
je 0x7454a
jmp 0x74534
cmpl $0x12, %esi
je 0x74538
cmpl $0x51, %esi
jne 0x74534
movq %rcx, %rdi
testq %rdx, %rdx
je 0x7454a
cmpq $0x0, 0x18(%rdx)
movq %rdx, %rdi
jne 0x7454a
movq %rcx, %rdi
jmp 0x7454a
xorl %edi, %edi
jmp 0x7454a
testq %rcx, %rcx
je 0x74547
cmpq $0x0, 0x18(%rcx)
movq %rcx, %rdi
jne 0x7454a
movq %rdx, %rdi
leaq 0x8(%r15), %rdx
testq %rdi, %rdi
je 0x74586
cmpq $0x0, 0x18(%rdi)
je 0x74586
cmpl $0x4, 0x10(%rax)
sete %al
cmpq %rcx, %rdi
sete %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x74576
movq (%rdx), %rax
cmpq (%rdi), %rax
jne 0x74586
movb $0x1, 0x8(%rdi)
leaq 0xb3096(%rip), %rsi     # 0x127617
movq %rdi, %r14
jmp 0x74593
movq %rdx, %rdi
leaq 0xb309b(%rip), %rsi     # 0x12762b
xorl %r14d, %r14d
movq (%rdi), %rdx
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movq %r14, 0x20(%r15)
movq 0x30(%r15), %rax
movl 0x4(%rax), %ecx
movl 0x8(%rax), %r8d
movl 0xc(%rax), %r9d
movl $0x20, %esi
movq %r13, %rdi
leaq 0xb2fad(%rip), %rdx     # 0x12756f
xorl %eax, %eax
callq 0xe8d67
movq 0x30(%r15), %rax
movl 0x4(%rax), %edx
movl 0x8(%rax), %ecx
movl 0xc(%rax), %r8d
movq %rbx, %rdi
leaq 0xb2f97(%rip), %rsi     # 0x127578
xorl %eax, %eax
callq 0xe9226
movq 0x30(%r15), %rax
movl 0xc(%rax), %ecx
cmpl $0x7, %ecx
jg 0x7461e
cmpl $0x1, %ecx
je 0x7462c
cmpl $0x4, %ecx
je 0x7462c
movl (%r15), %edx
movq %r15, %rcx
addq $0x40, %rcx
movq %rbx, %rdi
leaq 0xb2f88(%rip), %rsi     # 0x12759a
xorl %eax, %eax
callq 0xe9b27
jmp 0x74299
cmpl $0x18, %ecx
je 0x74793
cmpl $0x8, %ecx
jne 0x745fe
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 0xf2cab
movq %rax, %r14
movq 0x30(%r15), %r12
movl 0xc(%r12), %eax
cmpl $0x4, %eax
je 0x74755
cmpl $0x8, %eax
jne 0x747db
movq 0x8(%rsp), %rax
cmpb $0x0, 0x110(%rax)
jne 0x74737
movq 0x8(%rsp), %rax
movb $0x1, 0x110(%rax)
movl $0xff, %eax
xorl %ecx, %ecx
cmpq $0xd6, %rcx
ja 0x7470a
movl %ecx, %edx
imulq $0x38e38e39, %rdx, %rsi # imm = 0x38E38E39
movl $0xaaaaaaab, %r9d       # imm = 0xAAAAAAAB
imulq %r9, %rdx
shrq $0x22, %rdx
imull $0x132, %edx, %edx      # imm = 0x132
addl %eax, %edx
shrq $0x23, %rsi
shll $0x2, %esi
leal (%rsi,%rsi,8), %esi
movl %ecx, %edi
movl %ecx, %r8d
subl %esi, %r8d
imulq $0x38e38e39, %rdi, %rsi # imm = 0x38E38E39
shrq $0x23, %rsi
movl $0x5, %edi
subl %esi, %edi
movl %r8d, %esi
imulq %r9, %rsi
shrq $0x22, %rsi
movl $0x5, %r8d
subl %esi, %r8d
imull $0x330000, %edi, %esi   # imm = 0x330000
imull $0x3300, %r8d, %edi     # imm = 0x3300
movzwl %di, %edi
orl %esi, %edi
movzbl %dl, %edx
orl %edi, %edx
orl $0xff000000, %edx       # imm = 0xFF000000
jmp 0x74718
leaq 0xb2b9f(%rip), %rdx     # 0x1272b0
movl -0x35c(%rdx,%rcx,4), %edx
movq 0x8(%rsp), %rsi
movl %edx, 0x114(%rsi,%rcx,4)
incq %rcx
addl $-0x33, %eax
cmpq $0x100, %rcx            # imm = 0x100
jne 0x7468b
leaq 0x8c(%r15), %rdi
movl $0x400, %edx            # imm = 0x400
movq 0x80(%rsp), %rsi
callq 0x181e0
jmp 0x747ec
movaps 0xb2b44(%rip), %xmm0    # 0x1272a0
movups %xmm0, 0xbc(%r15)
movaps 0xb2b25(%rip), %xmm0    # 0x127290
movups %xmm0, 0xac(%r15)
movaps 0xb2b06(%rip), %xmm0    # 0x127280
movups %xmm0, 0x9c(%r15)
movaps 0xb2ae7(%rip), %xmm0    # 0x127270
movups %xmm0, 0x8c(%r15)
jmp 0x747ec
movslq 0x4(%rax), %r14
movslq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
cmpl $0x69743332, 0x3c(%r15) # imm = 0x69743332
movq %r13, 0x50(%rsp)
jne 0x7484f
movq 0x18(%rbx), %rdi
movq 0x10(%r15), %rsi
movl $0x4, %ecx
leaq 0xb2b8d(%rip), %rdx     # 0x127354
callq 0xf025e
xorl %r12d, %r12d
testl %eax, %eax
sete %r12b
shll $0x2, %r12d
jmp 0x74852
movabsq $-0xffffff00000001, %rax # imm = 0xFF000000FFFFFFFF
movq %rax, 0x8c(%r15)
movq 0x18(%rbx), %rdi
movslq 0xc(%r12), %rdx
movq 0x10(%r15), %rsi
movq 0x28(%r15), %rcx
movq %r15, %r8
addq $0x8c, %r8
movl $0x0, (%rsp)
movq %r14, %r9
callq 0xf35b8
movq 0x20(%r15), %rax
testq %rax, %rax
je 0x74832
movq 0x18(%rax), %rsi
testq %rsi, %rsi
je 0x74832
movq %r14, %rdi
xorl %edx, %edx
callq 0xf3e1c
movq %r14, %rdi
movq %r13, %rsi
movl $0x2, %edx
callq 0xf2923
movq %r14, %rdi
callq 0xf28d4
jmp 0x74299
xorl %r12d, %r12d
movq %r14, %rax
movq 0x18(%rsp), %r13
imulq %r13, %rax
leaq (%rax,%rax,2), %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0xf0faf
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
movq %r12, %rcx
movq %rax, %r12
callq 0x74ad7
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rdx
movl $0x4, %ecx
callq 0xf2cab
movq %rax, %r13
movl $0x0, (%rsp)
movq %rax, %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %r14, %rcx
movq 0x18(%rsp), %r8
movl $0xff000000, %r9d       # imm = 0xFF000000
callq 0xf3cb3
movq %r12, %rdi
xorl %esi, %esi
movq %r13, %rdx
xorl %ecx, %ecx
callq 0x74b76
movl $0x1, %esi
movl $0x1, %ecx
movq %r12, %rdi
movq %r13, %rdx
callq 0x74b76
movl $0x2, %esi
movl $0x2, %ecx
movq %r12, %rdi
movq %r13, %rdx
callq 0x74b76
movq 0x20(%r15), %rax
testq %rax, %rax
je 0x7490f
movq 0x18(%rax), %rsi
testq %rsi, %rsi
je 0x7490f
movq %r13, %rdi
xorl %edx, %edx
callq 0xf3e1c
movq %r13, %rdi
movq 0x50(%rsp), %rsi
movl $0x2, %edx
callq 0xf2923
movq %r13, %rdi
callq 0xf28d4
testq %r12, %r12
je 0x74299
movq %r12, %rdi
callq 0xf0b13
jmp 0x74299
testq %r15, %r15
je 0x7494f
movq %rbx, %rdi
movq %r15, %rsi
callq 0xe9752
movl 0x2c(%rsp), %esi
movq %rbx, %rdi
callq 0xe9595
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq