LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/fli.c
// Function: do_chunk_colormap
static void do_chunk_colormap(deark *c, lctx *d, struct chunk_info_type *ci)
{
	i64 npackets;
	i64 pknum;
	i64 pos = ci->dpos;
	int bps;
	UI num_entries_total = 0;
	UI next_idx = 0;

	if(!ci->ictx) return;
	if(ci->chunktype==CHUNKTYPE_COLORMAP256)
		bps = 8;
	else
		bps = 6;
	npackets = de_getu16le_p(&pos);

	for(pknum=0; pknum<npackets; pknum++) {
		UI num_entries_to_skip;
		UI num_entries_to_set;
		UI k;

		if(pos >= ci->pos + ci->len)  goto done;
		num_entries_to_skip = (UI)de_getbyte_p(&pos);
		next_idx += num_entries_to_skip;
		num_entries_to_set = (UI)de_getbyte_p(&pos);
		if(num_entries_to_set==0) num_entries_to_set = 256;
		num_entries_total += num_entries_to_set;

		for(k=0; k<num_entries_to_set; k++) {
			u8 samp[3];
			u32 clr;
			UI z;

			for(z=0; z<3; z++) {
				samp[z] = de_getbyte_p(&pos);
				if(bps==6) {
					samp[z] = de_scale_63_to_255(samp[z]);
				}
			}

			clr = DE_MAKE_RGB(samp[0], samp[1], samp[2]);
			if(next_idx < 256) {
				ci->ictx->pal[next_idx] = clr;
				de_dbg_pal_entry(c, (i64)next_idx, clr);
			}
			next_idx++;
		}
	}
done:
	de_dbg(c, "number of entries: %u", num_entries_total);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq 0x20(%rdx), %rax
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x48(%rdx)
je 0x57daa
movq %rdx, %r14
movq %rdi, %rbx
movl (%rdx), %ebp
movq 0x18(%rdi), %rdi
leaq 0x20(%rsp), %r12
movq %r12, %rsi
callq 0xe3fc4
movq %rax, %rdx
xorl %ecx, %ecx
testq %rax, %rax
movl $0x0, %eax
movq %rax, 0x10(%rsp)
cmovleq %rcx, %rdx
movq %rdx, 0x28(%rsp)
xorl %r13d, %r13d
xorl %eax, %eax
movq %r14, 0x18(%rsp)
movq %rax, 0x30(%rsp)
cmpq 0x28(%rsp), %rax
je 0x57d94
movq 0x18(%r14), %rax
addq 0x10(%r14), %rax
cmpq %rax, 0x20(%rsp)
jge 0x57d94
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xe3f2a
movzbl %al, %eax
addl %eax, %r13d
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xe3f2a
movzbl %al, %ecx
testb %cl, %cl
movl $0x100, %eax            # imm = 0x100
cmovel %eax, %ecx
movl %ecx, 0xc(%rsp)
xorl %r14d, %r14d
cmpl 0xc(%rsp), %r14d
je 0x57d74
xorl %r15d, %r15d
cmpq $0x3, %r15
je 0x57d2c
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xe3f2a
movb %al, 0x9(%rsp,%r15)
cmpl $0x4, %ebp
je 0x57d27
movzbl %al, %edi
callq 0xe1cec
movb %al, 0x9(%rsp,%r15)
incq %r15
jmp 0x57cfe
cmpl $0xff, %r13d
ja 0x57d6c
movzbl 0xb(%rsp), %eax
movzbl 0x9(%rsp), %ecx
shll $0x10, %ecx
orl %eax, %ecx
movzbl 0xa(%rsp), %edx
shll $0x8, %edx
orl %ecx, %edx
orl $0xff000000, %edx       # imm = 0xFF000000
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rax
movl %r13d, %esi
movl %edx, 0x38(%rax,%rsi,4)
movq %rbx, %rdi
callq 0xdf23b
incl %r13d
incl %r14d
jmp 0x57cf4
movq 0x10(%rsp), %rax
addl 0xc(%rsp), %eax
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rax
incq %rax
movq 0x18(%rsp), %r14
jmp 0x57c9f
leaq 0xbd3d5(%rip), %rsi     # 0x115170
movq %rbx, %rdi
movq 0x10(%rsp), %rdx
xorl %eax, %eax
callq 0xde896
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/fli.c
// Function: do_chunk_rle
static void do_chunk_rle(deark *c, lctx *d, struct chunk_info_type *ci)
{
	i64 xpos = 0;
	i64 ypos = 0;
	i64 pos = ci->dpos;
	struct image_ctx_type *ictx;

	if(!ci->ictx) goto done;
	de_dbg(c, "doing RLE decompression");
	ictx = ci->ictx;
	ictx->use_count++;
	pos++; // First byte of each line is a packet count (not needed)

	while(1) {
		UI clridx;
		u8 code;
		i64 count;
		i64 k;

		if(pos >= ci->pos + ci->len) break;

		code = de_getbyte_p(&pos); // packet type/size
		if(code >= 128) { // "negative" = run of uncompressed pixels
			count = (i64)256 - (i64)code;
			for(k=0; k<count; k++) {
				clridx = (UI)de_getbyte_p(&pos);
				de_bitmap_setpixel_rgb(ictx->img, xpos, ypos, ictx->pal[clridx]);
				xpos++;
			}
		}
		else { // "positive" = RLE
			count = (i64)code;
			clridx = (UI)de_getbyte_p(&pos);
			for(k=0; k<count; k++) {
				de_bitmap_setpixel_rgb(ictx->img, xpos, ypos, ictx->pal[clridx]);
				xpos++;
			}
		}

		if(xpos >= ictx->w) {
			xpos = 0;
			ypos++;
			pos++; // packet count
			if(ypos>=ictx->h) break;
		}
	}

done:
	;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, 0x10(%rsp)
cmpq $0x0, 0x48(%rdx)
je 0x57ec1
movq %rdi, %r14
movq 0x10(%rsp), %r12
movq 0x20(%r12), %rbx
leaq 0xbd39b(%rip), %rsi     # 0x115186
xorl %r15d, %r15d
xorl %eax, %eax
callq 0xde896
movq 0x48(%r12), %rbp
incl 0x10(%rbp)
incq %rbx
leaq 0x8(%rsp), %r12
movq %rbx, (%r12)
xorl %r13d, %r13d
movq 0x10(%rsp), %rcx
movq 0x18(%rcx), %rax
addq 0x10(%rcx), %rax
cmpq %rax, %rbx
jge 0x57ec1
movq 0x18(%r14), %rdi
movq %r12, %rsi
callq 0xe3f2a
movzbl %al, %ebx
testb %al, %al
js 0x57e76
movq 0x18(%r14), %rdi
movq %r12, %rsi
callq 0xe3f2a
movzbl %al, %r12d
subq $0x1, %rbx
jb 0x57e64
movq 0x30(%rbp), %rdi
movl 0x38(%rbp,%r12,4), %ecx
movq %r13, %rsi
movq %r15, %rdx
callq 0xe7287
incq %r13
jmp 0x57e45
leaq 0x8(%rsp), %r12
movq 0x8(%rsp), %rbx
cmpq (%rbp), %r13
jl 0x57e0c
jmp 0x57eac
orq $-0x100, %rbx
testq %rbx, %rbx
je 0x57e69
movq 0x18(%r14), %rdi
movq %r12, %rsi
callq 0xe3f2a
movq 0x30(%rbp), %rdi
movzbl %al, %eax
movl 0x38(%rbp,%rax,4), %ecx
movq %r13, %rsi
movq %r15, %rdx
callq 0xe7287
incq %r13
incq %rbx
jmp 0x57e7d
incq %r15
incq %rbx
movq %rbx, 0x8(%rsp)
cmpq 0x8(%rbp), %r15
jl 0x57e09
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/fli.c
// Function: do_chunk_copy
static void do_chunk_copy(deark *c, lctx *d, struct chunk_info_type *ci)
{
	if(!ci->ictx) return;
	ci->ictx->use_count++;
	de_convert_image_paletted(c->infile, ci->dpos, 8, ci->ictx->w, ci->ictx->pal,
		ci->ictx->img, 0);
}

// Assembly:
movq 0x48(%rdx), %rax
testq %rax, %rax
je 0x5829c
pushq %rax
incl 0x10(%rax)
movq 0x18(%rdi), %rdi
movq 0x20(%rdx), %rsi
leaq 0x38(%rax), %r8
movq (%rax), %rcx
movq 0x30(%rax), %r9
andl $0x0, (%rsp)
pushq $0x8
popq %rdx
callq 0xe7cbc
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/fli.c
// Function: read_timestamp
static void read_timestamp(deark *c, lctx *d, i64 pos, struct de_timestamp *ts,
	const char *name)
{
	i64 datetime_raw;
	i64 date_raw, time_raw;
	struct de_timestamp tmp_timestamp;
	char timestamp_buf[64];

	de_zeromem(ts, sizeof(struct de_timestamp));

	// The timestamp is said to be "MS-DOS formatted", but that's uncomfortably
	// vague, and bogus timestamps seem to be common.

	datetime_raw = de_getu32le_p(&pos);
	de_dbg(c, "%s time: %"I64_FMT, name, datetime_raw);
	if(datetime_raw==0) return;

	de_dbg_indent(c, 1);
	time_raw = datetime_raw & 0xffff;
	date_raw = (datetime_raw >> 16) & 0xffff;

	de_zeromem(&tmp_timestamp, sizeof(struct de_timestamp));
	de_dos_datetime_to_timestamp(&tmp_timestamp, date_raw, time_raw);
	tmp_timestamp.tzcode = DE_TZCODE_LOCAL;
	de_timestamp_to_string(&tmp_timestamp, timestamp_buf, sizeof(timestamp_buf), 0);
	de_dbg(c, "... if DOS time/date: %s", timestamp_buf);

	// Autodesk animator was first released in 1989. Assume timestamps older than
	// the middle of 1988 are bogus.
	if(de_timestamp_to_unix_time(&tmp_timestamp) >= 583718400) {
		*ts = tmp_timestamp;
	}

	de_dbg_indent(c, -1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rcx, %r12
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x18(%rsp), %rax
movq %rsi, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%rdx)
movq 0x18(%rdi), %rdi
movq %rax, %rsi
callq 0xe40bf
movq %rax, %r15
leaq 0xbcbd4(%rip), %rsi     # 0x1150d1
movq %rbx, %rdi
movq %r12, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xde896
testq %r15, %r15
je 0x5858d
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0xdeba7
movzwl %r15w, %edx
shrl $0x10, %r15d
movq %rsp, %r12
xorps %xmm0, %xmm0
movaps %xmm0, (%r12)
movq %r12, %rdi
movq %r15, %rsi
callq 0xe0110
movb $0x2, 0x1(%r12)
leaq 0x20(%rsp), %r15
pushq $0x40
popq %rdx
movq %r12, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
callq 0xe0644
leaq 0xbcb81(%rip), %rsi     # 0x1150de
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0xde896
movq %r12, %rdi
callq 0xe0461
cmpq $0x22cad600, %rax       # imm = 0x22CAD600
jl 0x58582
movaps (%rsp), %xmm0
movups %xmm0, (%r14)
pushq $-0x1
popq %rsi
movq %rbx, %rdi
callq 0xdeba7
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/fli.c
// Function: dbg_id
static void dbg_id(deark *c, lctx *d, i64 pos, const char *name)
{
	i64 n;
	struct de_fourcc id4cc;

	n = de_getu32le(pos);
	if(n<0x01000000) {
		de_dbg(c, "%s: %"I64_FMT,name, n);
		return;
	}
	dbuf_read_fourcc(c->infile, pos, &id4cc, 4, 0x0);
	de_dbg(c, "%s: %"I64_FMT" (0x%08x, '%s')", name, n, (UI)n,
		id4cc.id_dbgstr);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r15
movq 0x18(%rdi), %rdi
callq 0xe409f
movq %rax, %r14
cmpq $0xffffff, %rax         # imm = 0xFFFFFF
jg 0x585e3
leaq 0xbcb2f(%rip), %rsi     # 0x1150f7
movq %r15, %rdi
movq %rbx, %rdx
movq %r14, %rcx
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xde896
movq 0x18(%r15), %rdi
leaq 0x8(%rsp), %rdx
pushq $0x4
popq %rcx
movq %r12, %rsi
xorl %r8d, %r8d
callq 0xe657c
leaq 0x18(%rsp), %r9
leaq 0xbcaf9(%rip), %rsi     # 0x1150ff
movq %r15, %rdi
movq %rbx, %rdx
movq %r14, %rcx
movl %r14d, %r8d
xorl %eax, %eax
callq 0xde896
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/fli.c
// Function: create_image_ctx
static struct image_ctx_type *create_image_ctx(deark *c, lctx *d, i64 w, i64 h)
{
	struct image_ctx_type *ictx;

	ictx = de_malloc(c, sizeof(struct image_ctx_type));
	ictx->w = w;
	ictx->h = h;
	ictx->img = de_bitmap_create(c, w, h, 3);
	return ictx;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl $0x438, %esi            # imm = 0x438
callq 0xdecaf
movq %rax, %r12
movq %r14, (%rax)
movq %rbx, 0x8(%rax)
pushq $0x3
popq %rcx
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0xe7437
movq %rax, 0x30(%r12)
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/fli.c
// Function: do_sequence_of_chunks
static void do_sequence_of_chunks(deark *c, lctx *d, struct chunk_info_type *parent_ci,
	i64 pos1, i64 max_nchunks)
{
	i64 pos = pos1;
	i64 endpos = parent_ci->pos + parent_ci->len;
	i64 chunk_idx = 0;
	int saved_indent_level;

	de_dbg_indent_save(c, &saved_indent_level);

	if(!parent_ci) goto done;
	if(parent_ci->level > 10) goto done;
	if(pos+6 >= endpos) goto done;
	de_dbg(c, "sequence of chunks at %"I64_FMT, pos1);
	de_dbg_indent(c, 1);

	while(1) {
		i64 bytes_avail;
		i64 bytes_consumed = 0;
		int ret;

		if(max_nchunks>=0 && chunk_idx>=max_nchunks) break;
		bytes_avail = endpos - pos;
		if(bytes_avail<6) break;

		ret = do_chunk(c, d, parent_ci, pos, bytes_avail, parent_ci->level+1, &bytes_consumed);
		if(!ret || bytes_consumed<1) break;
		pos += bytes_consumed;
		chunk_idx++;
	}

done:
	de_dbg_indent_restore(c, saved_indent_level);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, 0x20(%rsp)
movq %rdi, %rbx
movq 0x18(%rdx), %rbp
addq 0x10(%rdx), %rbp
leaq 0x14(%rsp), %rsi
callq 0xdebae
cmpl $0xb, 0x4(%r12)
setl %al
leaq 0x6(%r15), %rcx
cmpq %rbp, %rcx
setl %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x5873f
leaq 0xbca51(%rip), %rsi     # 0x115116
xorl %r13d, %r13d
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0xdeba7
testq %r14, %r14
sets %al
andq $0x0, 0x18(%rsp)
cmpq %r14, %r13
setl %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x5873f
movq %rbp, %r8
subq %r15, %r8
cmpq $0x6, %r8
jl 0x5873f
movl 0x4(%r12), %r9d
incl %r9d
leaq 0x18(%rsp), %rax
movq %rax, (%rsp)
movq %rbx, %rdi
movq 0x20(%rsp), %rsi
movq %r12, %rdx
movq %r15, %rcx
callq 0x5734a
testl %eax, %eax
je 0x5873f
movq 0x18(%rsp), %rax
testq %rax, %rax
jle 0x5873f
addq %rax, %r15
incq %r13
jmp 0x586e0
movl 0x14(%rsp), %esi
movq %rbx, %rdi
callq 0xdebb7
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/fli.c
// Function: destroy_image_ctx
static void destroy_image_ctx(deark *c, struct image_ctx_type *ictx)
{
	if(!ictx) return;
	if(ictx->img) {
		de_bitmap_destroy(ictx->img);
	}
	de_free(c, ictx);
}

// Assembly:
testq %rsi, %rsi
je 0x58789
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x30(%rsi), %rdi
testq %rdi, %rdi
je 0x58777
callq 0xe7084
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xded32
retq
nop
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/fat.c
// Function: de_module_fat
void de_module_fat(deark *c, struct deark_module_info *mi)
{
	mi->id = "fat";
	mi->desc = "FAT disk image";
	mi->run_fn = de_run_fat;
	mi->identify_fn = de_identify_fat;
	mi->help_fn = de_help_fat;
}

// Assembly:
leaq 0xad5df(%rip), %rax     # 0x105d72
movq %rax, (%rsi)
leaq 0xbca73(%rip), %rax     # 0x115210
movq %rax, 0x8(%rsi)
leaq 0x1b(%rip), %rax        # 0x587c3
movq %rax, 0x18(%rsi)
leaq 0x9eb(%rip), %rax       # 0x5919e
movq %rax, 0x20(%rsi)
leaq 0xb94(%rip), %rax       # 0x59352
movq %rax, 0x28(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/fat.c
// Function: de_module_loaddskf
void de_module_loaddskf(deark *c, struct deark_module_info *mi)
{
	mi->id = "loaddskf";
	mi->desc = "LoadDskF/SaveDskF disk image";
	mi->run_fn = de_run_loaddskf;
	mi->identify_fn = de_identify_loaddskf;
	mi->help_fn = de_help_loaddskf;
}

// Assembly:
leaq 0xbbea2(%rip), %rax     # 0x11521f
movq %rax, (%rsi)
leaq 0xbbea1(%rip), %rax     # 0x115228
movq %rax, 0x8(%rsi)
leaq 0x1b(%rip), %rax        # 0x593ad
movq %rax, 0x18(%rsi)
leaq 0x50f(%rip), %rax       # 0x598ac
movq %rax, 0x20(%rsi)
leaq 0x546(%rip), %rax       # 0x598ee
movq %rax, 0x28(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/fat.c
// Function: do_oem_name
static void do_oem_name(deark *c, lctx *d, i64 pos, i64 len)
{
	struct de_stringreaderdata *srd;
	i64 i;

	srd = dbuf_read_string(c->infile, pos, len, len, 0, DE_ENCODING_ASCII);

	// Require printable ASCII.
	for(i=0; i<len; i++) {
		if(srd->sz[i]<32 || srd->sz[i]>126) {
			goto done;
		}
	}

	de_dbg(c, "OEM name: \"%s\"", ucstring_getpsz_d(srd->str));

done:
	de_destroy_stringreaderdata(c, srd);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
xorl %r12d, %r12d
pushq $0x1
popq %r9
movq %rdx, %rcx
xorl %r8d, %r8d
callq 0xe495c
movq %rax, %r14
testq %r15, %r15
cmovleq %r12, %r15
cmpq %r12, %r15
je 0x59942
movq 0x8(%r14), %rax
movb (%rax,%r12), %al
addb $-0x7f, %al
incq %r12
cmpb $-0x5f, %al
jae 0x5992a
jmp 0x5995f
movq 0x18(%r14), %rdi
callq 0xeb877
leaq 0xbbc65(%rip), %rsi     # 0x1155b7
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xe4b94
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/fat.c
// Function: get_unpadded_len
static i64 get_unpadded_len(const u8 *s, i64 len1)
{
	i64 i;
	i64 len = len1;

	// Stop at NUL, I guess.
	for(i=0; i<len1; i++) {
		if(s[i]==0x00) {
			len = i;
			break;
		}
	}

	for(i=len; i>0; i--) {
		if(s[i-1]!=' ') {
			return i;
		}
	}
	return 0;
}

// Assembly:
movq %rsi, %rax
xorl %ecx, %ecx
testq %rsi, %rsi
movl $0x0, %edx
cmovgq %rsi, %rdx
cmpq %rcx, %rdx
je 0x5a3f7
cmpb $0x0, (%rdi,%rcx)
je 0x5a3e8
incq %rcx
jmp 0x5a3d8
movq %rcx, %rax
jmp 0x5a3f7
cmpb $0x20, -0x1(%rdi,%rax)
jne 0x5a3fe
decq %rax
testq %rax, %rax
jg 0x5a3ed
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/fat.c
// Function: do_extract_file
static void do_extract_file(deark *c, lctx *d, struct member_data *md)
{
	dbuf *outf = NULL;
	de_finfo *fi = NULL;
	de_ucstring *fullfn = NULL;

	if(!md->is_subdir) {
		if(md->filesize > d->num_data_region_clusters * d->bytes_per_cluster) {
			de_err(c, "%s: Bad file size", ucstring_getpsz_d(md->short_fn));
			goto done;
		}
	}

	fi = de_finfo_create(c);
	fullfn = ucstring_create(c);
	de_strarray_make_path(d->curpath, fullfn, DE_MPFLAG_NOTRAILINGSLASH);
	de_finfo_set_name_from_ucstring(c, fi, fullfn, DE_SNFLAG_FULLPATH);
	fi->original_filename_flag = 1;
	if(md->is_subdir) {
		fi->is_directory = 1;
	}
	else if(md->is_volume_label) {
		fi->is_volume_label = 1;
	}
	if(md->mod_time.is_valid) {
		fi->timestamp[DE_TIMESTAMPIDX_MODIFY] = md->mod_time;
	}

	outf = dbuf_create_output_file(c, NULL, fi, 0);

	if(!extract_file_lowlevel(c, d, md, outf)) {
		de_err(c, "%s: File extraction failed", ucstring_getpsz_d(md->short_fn));
		goto done;
	}

done:
	dbuf_close(outf);
	ucstring_destroy(fullfn);
	de_finfo_destroy(c, fi);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
cmpb $0x0, 0xb(%rdx)
jne 0x5a43d
movq 0x28(%r13), %rax
imulq 0x48(%r13), %rax
cmpq %rax, 0x28(%r12)
jle 0x5a43d
leaq 0xbb3bd(%rip), %r13     # 0x1157ed
xorl %ebp, %ebp
xorl %r14d, %r14d
xorl %r15d, %r15d
jmp 0x5a4db
movq %rbx, %rdi
callq 0xdfd1a
movq %rax, %r14
movq %rbx, %rdi
callq 0xeac74
movq %rax, %r15
movq 0x80(%r13), %rdi
pushq $0x1
popq %rbp
movq %rax, %rsi
movl %ebp, %edx
callq 0xeba55
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl %ebp, %ecx
callq 0xdfd55
movb $0x1, 0x8(%r14)
cmpb $0x0, 0xb(%r12)
je 0x5a48b
movb $0x1, 0x9(%r14)
jmp 0x5a498
cmpb $0x0, 0xc(%r12)
je 0x5a498
movb $0x1, 0xa(%r14)
cmpb $0x0, 0x48(%r12)
je 0x5a4ad
leaq 0x48(%r12), %rax
movups (%rax), %xmm0
movups %xmm0, 0x18(%r14)
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0xe4e62
movq %rax, %rbp
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %rax, %rcx
callq 0x5a534
testl %eax, %eax
jne 0x5a4f5
leaq 0xbb324(%rip), %r13     # 0x1157ff
movq 0x38(%r12), %rdi
callq 0xeb877
movq %rbx, %rdi
movq %r13, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0xdf2a5
movq %rbp, %rdi
callq 0xe5591
movq %r15, %rdi
callq 0xeaf3c
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xdfd24
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/fat.c
// Function: extract_file_lowlevel
static int extract_file_lowlevel(deark *c, lctx *d, struct member_data *md, dbuf *outf)
{
	int retval = 0;
	i64 cur_cluster;
	i64 nbytes_remaining;

	cur_cluster = md->first_cluster;
	if(md->is_subdir) {
		nbytes_remaining = 0;
	}
	else {
		nbytes_remaining = md->filesize;
	}

	while(1) {
		i64 dpos;
		i64 nbytes_to_copy;

		if(nbytes_remaining <= 0) break;
		if(!is_good_clusternum(d, cur_cluster)) break;
		if(d->cluster_used_flags[cur_cluster]) break;
		d->cluster_used_flags[cur_cluster] = 1;
		if(c->debug_level>=3) de_dbg3(c, "cluster: %d", (int)cur_cluster);
		dpos = clusternum_to_offset(c, d, cur_cluster);
		nbytes_to_copy = de_min_int(d->bytes_per_cluster, nbytes_remaining);
		dbuf_copy(c->infile, dpos, nbytes_to_copy, outf);
		nbytes_remaining -= nbytes_to_copy;
		cur_cluster = (i64)d->fat_nextcluster[cur_cluster];
	}

	if(nbytes_remaining>0) {
		goto done;
	}

	retval = 1;
done:
	return retval;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, (%rsp)
movq %rsi, %r14
movq %rdi, %r15
cmpb $0x0, 0xb(%rdx)
je 0x5a554
xorl %r12d, %r12d
jmp 0x5a558
movq 0x28(%rdx), %r12
movq 0x30(%rdx), %r13
testq %r12, %r12
jle 0x5a5d8
cmpq $0x2, %r13
jl 0x5a5d8
cmpq %r13, 0x78(%r14)
jle 0x5a5d8
movq 0x98(%r14), %rax
cmpb $0x0, (%rax,%r13)
jne 0x5a5d8
movb $0x1, (%rax,%r13)
cmpl $0x3, (%r15)
jl 0x5a59a
movq %r15, %rdi
leaq 0xbadc2(%rip), %rsi     # 0x115352
movl %r13d, %edx
xorl %eax, %eax
callq 0xdea83
leaq -0x2(%r13), %rbp
movq 0x28(%r14), %rdi
imulq %rdi, %rbp
addq 0x40(%r14), %rbp
movq %r12, %rsi
callq 0xdfb45
movq %rax, %rbx
movq 0x18(%r15), %rdi
movq %rbp, %rsi
movq %rax, %rdx
movq (%rsp), %rcx
callq 0xe45f4
subq %rbx, %r12
movq 0x90(%r14), %rax
movl (%rax,%r13,4), %r13d
jmp 0x5a55c
xorl %eax, %eax
testq %r12, %r12
setle %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/fat.c
// Function: loaddskf_finish_checksum
static void loaddskf_finish_checksum(deark *c, struct skf_ctx *d)
{
	d->checksum_calc = de_crcobj_getval(d->crco);
	de_dbg(c, "checksum (calculated): 0x%08x", (UI)d->checksum_calc);
	if(d->checksum_calc != d->checksum_reported) {
		de_warn(c, "Checksum mismatch (reported 0x%08x, calculated 0x%08x). "
			"Something may have gone wrong.", (UI)d->checksum_reported,
			(UI)d->checksum_calc);
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x30(%rsi), %rdi
callq 0xe0e95
movl %eax, 0x10(%r14)
leaq 0xbb466(%rip), %rsi     # 0x115a73
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movl 0xc(%r14), %edx
movl 0x10(%r14), %ecx
cmpl %edx, %ecx
jne 0x5a62d
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0xbb45d(%rip), %rsi     # 0x115a91
movq %rbx, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xdf05a
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/fat.c
// Function: loaddskf_pad_ima_file
static void loaddskf_pad_ima_file(deark *c, struct skf_ctx *d, dbuf *outf)
{
	i64 num_padding_bytes;
	u8 padding_value;

	dbuf_flush(outf);
	if(d->padded_size<=0) goto done;
	num_padding_bytes = d->padded_size - outf->len;
	if(num_padding_bytes<=0) goto done;
	de_dbg(c, "[adding padding]");

	// TODO: Does it matter what we pad with? Possibilities include 0x00, 0xe5, 0xf6.
	padding_value = 0x00;
	dbuf_write_run(outf, padding_value, num_padding_bytes);
done:
	;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rdx, %rdi
callq 0xe58e8
movq 0x28(%r14), %r14
testq %r14, %r14
jle 0x5a68d
subq 0x18(%rbx), %r14
jle 0x5a68d
leaq 0xbb3f1(%rip), %rsi     # 0x115a62
movq %r15, %rdi
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0xe5e40
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/flac.c
// Function: de_module_flac
void de_module_flac(deark *c, struct deark_module_info *mi)
{
	mi->id = "flac";
	mi->desc = "FLAC";
	mi->run_fn = de_run_flac;
	mi->identify_fn = de_identify_flac;
}

// Assembly:
leaq 0xbb4ad(%rip), %rax     # 0x115b48
movq %rax, (%rsi)
leaq 0xc537f(%rip), %rax     # 0x11fa24
movq %rax, 0x8(%rsi)
leaq 0x10(%rip), %rax        # 0x5a6c0
movq %rax, 0x18(%rsi)
leaq 0x21a(%rip), %rax       # 0x5a8d5
movq %rax, 0x20(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/flac.c
// Function: de_run_flac
static void de_run_flac(deark *c, de_module_params *mparams)
{
	lctx *d = NULL;
	struct de_id3info id3i;

	d = de_malloc(c, sizeof(lctx));
	fmtutil_handle_id3(c, c->infile, &id3i, 0);
	run_flac_internal(c, d, id3i.main_start, id3i.main_end-id3i.main_start);
	de_free(c, d);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
pushq $0x4
popq %rsi
callq 0xdecaf
movq %rax, 0x10(%rsp)
movq 0x18(%rbx), %rsi
leaq 0x20(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0xed79a
movq 0x8(%r14), %r15
movq 0x10(%r14), %rax
movq %rax, 0x18(%rsp)
leaq 0xe28f8(%rip), %rsi     # 0x13d000
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0xde896
addq $0x4, %r15
movq %rsp, %rax
movq %r15, (%rax)
leaq 0xc(%rsp), %rsi
movq %rbx, %rdi
callq 0xdebae
pushq $-0x1
popq %r15
movq (%rsp), %rdx
cmpq 0x18(%rsp), %rdx
jge 0x5a8ad
movq %rbx, %rdi
leaq 0xbb404(%rip), %rsi     # 0x115b4d
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movq 0x18(%rbx), %rdi
movq %rsp, %rsi
callq 0xe3f2a
movl %eax, %r14d
shrb $0x7, %al
movzbl %al, %edx
movq %rbx, %rdi
leaq 0xbb3e9(%rip), %rsi     # 0x115b63
xorl %eax, %eax
callq 0xde896
movl %r14d, %eax
andb $0x7f, %al
movzbl %al, %ebp
leaq 0xc4751(%rip), %rcx     # 0x11eee1
cmpb $0x6, %al
ja 0x5a7a2
leaq 0xbb4ad(%rip), %rax     # 0x115c48
movslq (%rax,%rbp,4), %rcx
addq %rax, %rcx
movq %rbx, %rdi
leaq 0xbb3c3(%rip), %rsi     # 0x115b6f
movl %ebp, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq (%rsp), %rsi
pushq $0x3
popq %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0xe424b
movq %rax, %r12
addq $0x3, (%rsp)
movq %rbx, %rdi
leaq 0xbb3a7(%rip), %rsi     # 0x115b83
movl %r12d, %edx
xorl %eax, %eax
callq 0xde896
movq (%rsp), %r13
cmpb $0x6, %bpl
je 0x5a82f
cmpl $0x4, %ebp
jne 0x5a87d
movq %rbx, %rdi
leaq 0xbb3eb(%rip), %rsi     # 0x115bee
movq %r13, %rdx
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movq 0x18(%rbx), %rcx
movq %rbx, %rdi
leaq 0xbb3e4(%rip), %rsi     # 0x115c0a
leaq 0xbc062(%rip), %rdx     # 0x11688f
jmp 0x5a863
movq %rbx, %rdi
leaq 0xbb3d5(%rip), %rsi     # 0x115c0e
movq %r13, %rdx
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movq 0x18(%rbx), %rcx
movq %rbx, %rdi
leaq 0xaaf5a(%rip), %rsi     # 0x1057b6
leaq 0xc3f59(%rip), %rdx     # 0x11e7bc
movq %r13, %r8
movq %r12, %r9
callq 0xdfa28
movq %rbx, %rdi
movl %r15d, %esi
callq 0xdeba7
movq (%rsp), %r13
addq %r12, %r13
movq %r13, (%rsp)
movq %rbx, %rdi
movl %r15d, %esi
callq 0xdeba7
testb %r14b, %r14b
jns 0x5a730
movq (%rsp), %rdx
leaq 0xbb2ee(%rip), %rsi     # 0x115b91
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
movl 0xc(%rsp), %esi
movq %rbx, %rdi
callq 0xdebb7
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
callq 0xded32
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/flac.c
// Function: de_identify_flac
static int de_identify_flac(deark *c)
{
	i64 pos = 0;

	if(!c->detection_data->id3.detection_attempted) {
		de_err(c, "flac detection requires id3 module");
		return 0;
	}

	if(c->detection_data->id3.has_id3v2) {
		pos = (i64)c->detection_data->id3.bytes_at_start;
	}

	if(!dbuf_memcmp(c->infile, pos, "fLaC", 4))
		return 100;

	return 0;
}

// Assembly:
pushq %rbx
movq 0x28(%rdi), %rax
cmpb $0x0, 0x14(%rax)
je 0x5a8ed
xorl %ebx, %ebx
cmpb $0x0, 0x15(%rax)
je 0x5a8ff
movl 0x18(%rax), %esi
jmp 0x5a901
leaq 0xbb329(%rip), %rsi     # 0x115c1d
xorl %ebx, %ebx
xorl %eax, %eax
callq 0xdf2a5
jmp 0x5a91c
xorl %esi, %esi
movq 0x18(%rdi), %rdi
leaq 0xbb334(%rip), %rdx     # 0x115c40
pushq $0x4
popq %rcx
callq 0xe4d48
testl %eax, %eax
pushq $0x64
popq %rax
cmovel %eax, %ebx
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/dlmaker.c
// Function: de_module_dlmaker
void de_module_dlmaker(deark *c, struct deark_module_info *mi)
{
	mi->id = "dlmaker";
	mi->desc = "DL animation (DL MAKER)";
	mi->run_fn = de_run_dlmaker;
	mi->identify_fn = de_identify_dlmaker;
	mi->help_fn = de_help_dlmaker;
}

// Assembly:
leaq 0xbb359(%rip), %rax     # 0x115c80
movq %rax, (%rsi)
leaq 0xbb357(%rip), %rax     # 0x115c88
movq %rax, 0x8(%rsi)
leaq 0x1b(%rip), %rax        # 0x5a957
movq %rax, 0x18(%rsi)
leaq 0x80c(%rip), %rax       # 0x5b153
movq %rax, 0x20(%rsi)
leaq 0x934(%rip), %rax       # 0x5b286
movq %rax, 0x28(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/dlmaker.c
// Function: de_identify_dlmaker
static int de_identify_dlmaker(deark *c)
{
	u8 v;
	i64 nscrn;
	i64 hsize;
	i64 ctlsize;
	i64 expected_filesize;

	if(!de_input_file_has_ext(c, "dl")) return 0;
	v = de_getbyte(0);
	if(v==1) {
		nscrn = (i64)de_getbyte(21);
		ctlsize = de_getu16le(22); // num frames * 1 byte
		hsize = 792;
	}
	else if(v==2) {
		if(de_getbyte(1)>2) return 0;
		nscrn = (i64)de_getbyte(42);
		ctlsize = de_getu32le(43) * 2;
		hsize = 815;
	}
	else if(v==3) {
		nscrn = (i64)de_getbyte(132);
		ctlsize = de_getu16le(134) * 2;
		hsize = 906;
	}
	else {
		return 0;
	}

	if(nscrn==0 || ctlsize==0) return 0;
	if(v==3) {
		// This is just a minimum file size. v3 is hard to identify.
		expected_filesize = hsize + nscrn*5 + ctlsize;
		if(c->infile->len < expected_filesize) return 0;
		return 10;
	}
	expected_filesize = hsize + V12_SCREEN_SIZE_IN_BYTES*nscrn + ctlsize;
	if(c->infile->len == expected_filesize) return 90;
	if(c->infile->len < expected_filesize) return 0;
	// Allow for some padding or other unknown data at EOF.
	if(c->infile->len > expected_filesize+511) return 0;
	return 10;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0xbac80(%rip), %rsi     # 0x115de4
callq 0xdfcd5
testl %eax, %eax
je 0x5b1b4
movq 0x18(%r14), %rdi
xorl %ebx, %ebx
xorl %esi, %esi
callq 0xe3eb4
movl %eax, %ebp
cmpb $0x3, %al
je 0x5b1f4
movzbl %bpl, %eax
cmpl $0x2, %eax
je 0x5b1bb
cmpl $0x1, %eax
jne 0x5b279
movq 0x18(%r14), %rdi
pushq $0x15
popq %rsi
callq 0xe3eb4
movl %eax, %r15d
movq 0x18(%r14), %rdi
pushq $0x16
popq %rsi
callq 0xe3fa3
movl $0x318, %ecx            # imm = 0x318
jmp 0x5b21b
xorl %ebx, %ebx
jmp 0x5b279
movq 0x18(%r14), %rdi
pushq $0x1
popq %rsi
callq 0xe3eb4
cmpb $0x2, %al
ja 0x5b279
movq 0x18(%r14), %rdi
pushq $0x2a
popq %rsi
callq 0xe3eb4
movl %eax, %r15d
movq 0x18(%r14), %rdi
pushq $0x2b
popq %rsi
callq 0xe409f
addq %rax, %rax
movl $0x32f, %ecx            # imm = 0x32F
jmp 0x5b21b
movq 0x18(%r14), %rdi
movl $0x84, %esi
callq 0xe3eb4
movl %eax, %r15d
movq 0x18(%r14), %rdi
movl $0x86, %esi
callq 0xe3fa3
addq %rax, %rax
movl $0x38a, %ecx            # imm = 0x38A
testb %r15b, %r15b
je 0x5b279
testq %rax, %rax
je 0x5b279
movzbl %r15b, %esi
movq 0x18(%r14), %rdx
movq 0x18(%rdx), %rdx
cmpb $0x3, %bpl
jne 0x5b24e
leaq (%rsi,%rsi,4), %rsi
addq %rax, %rcx
addq %rsi, %rcx
xorl %eax, %eax
cmpq %rcx, %rdx
pushq $0xa
popq %rbx
cmovll %eax, %ebx
jmp 0x5b279
imulq $0xfa00, %rsi, %rsi     # imm = 0xFA00
addq %rax, %rcx
addq %rsi, %rcx
cmpq %rcx, %rdx
jne 0x5b265
pushq $0x5a
popq %rbx
jmp 0x5b279
jl 0x5b279
addq $0x1ff, %rcx            # imm = 0x1FF
xorl %eax, %eax
cmpq %rcx, %rdx
pushq $0xa
popq %rbx
cmovgl %eax, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/dlmaker.c
// Function: read_name
static void read_name(deark *c, lctx *d, i64 pos, de_ucstring *s, size_t nsize)
{
	size_t i;
	u8 buf[40];

	if(nsize>40) return;
	de_read(buf, pos, nsize);
	for(i=0; i<nsize; i++) {
		if(buf[i]) buf[i] ^= 0xff;
	}
	ucstring_append_bytes(s, buf, nsize, DE_CONVFLAG_STOP_AT_NUL, d->input_encoding);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %r8, %rbx
movq %rcx, %r14
movq %rsi, %r15
movq 0x18(%rdi), %rdi
movq %rsp, %rsi
movq %r8, %rcx
callq 0xe3cb7
xorl %eax, %eax
cmpq %rax, %rbx
je 0x5b2cd
movb (%rsp,%rax), %cl
testb %cl, %cl
je 0x5b2c8
notb %cl
movb %cl, (%rsp,%rax)
incq %rax
jmp 0x5b2b7
movl (%r15), %r8d
movq %rsp, %rsi
pushq $0x1
popq %rcx
movq %r14, %rdi
movq %rbx, %rdx
callq 0xeb4a9
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/crush.c
// Function: de_module_crush
void de_module_crush(deark *c, struct deark_module_info *mi)
{
	mi->id = "crush";
	mi->desc = "CRUSH archive";
	mi->run_fn = de_run_crush;
	mi->identify_fn = de_identify_crush;
}

// Assembly:
leaq 0xbab42(%rip), %rax     # 0x115e35
movq %rax, (%rsi)
leaq 0xbab3e(%rip), %rax     # 0x115e3b
movq %rax, 0x8(%rsi)
leaq 0x10(%rip), %rax        # 0x5b318
movq %rax, 0x18(%rsi)
leaq 0x72f(%rip), %rax       # 0x5ba42
movq %rax, 0x20(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/crush.c
// Function: de_identify_crush
static int de_identify_crush(deark *c)
{
	u8 buf[14];

	de_read(buf, 0, 14);
	if(!de_memcmp(buf, "CRUSH v", 7) &&
		buf[10]==0x0a && buf[11]==0x1a && buf[12]==0x00)
	{
		return 100;
	}

	return 0;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq 0x18(%rdi), %rdi
xorl %r14d, %r14d
leaq 0xa(%rsp), %rbx
pushq $0xe
popq %rcx
movq %rbx, %rsi
xorl %edx, %edx
callq 0xe3cb7
leaq 0xba4ce(%rip), %rsi     # 0x115f37
pushq $0x7
popq %rdx
movq %rbx, %rdi
callq 0x18230
movb 0xa(%rbx), %cl
movb 0xb(%rbx), %dl
xorb $0xa, %cl
xorb $0x1a, %dl
orb 0xc(%rbx), %dl
orb %cl, %dl
pushq $0x64
popq %rcx
cmovnel %r14d, %ecx
testl %eax, %eax
cmovnel %r14d, %ecx
movl %ecx, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/cdiimage.c
// Function: de_module_cdi_imag
void de_module_cdi_imag(deark *c, struct deark_module_info *mi)
{
	mi->id = "cdi_imag";
	mi->desc = "CD-I IFF IMAG";
	mi->run_fn = de_run_cdi_imag;
	mi->identify_fn = de_identify_cdi_imag;
}

// Assembly:
leaq 0xba4a9(%rip), %rax     # 0x115f70
movq %rax, (%rsi)
leaq 0xba4a8(%rip), %rax     # 0x115f79
movq %rax, 0x8(%rsi)
leaq 0x10(%rip), %rax        # 0x5baec
movq %rax, 0x18(%rsi)
leaq 0x66(%rip), %rax        # 0x5bb4d
movq %rax, 0x20(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/cdiimage.c
// Function: de_run_cdi_imag
static void de_run_cdi_imag(deark *c, de_module_params *mparams)
{
	struct cdi_imag_ctx *d = NULL;
	struct de_iffctx *ictx = NULL;

	d = de_malloc(c, sizeof(struct cdi_imag_ctx));
	ictx = fmtutil_create_iff_decoder(c);
	ictx->userdata = (void*)d;
	ictx->has_standard_iff_chunks = 1;
	ictx->handle_chunk_fn = my_cdi_imag_chunk_handler;
	ictx->f = c->infile;
	fmtutil_read_iff_format(ictx, 0, c->infile->len);
	fmtutil_destroy_iff_decoder(ictx);
	de_free(c, d);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl $0x430, %esi            # imm = 0x430
callq 0xdecaf
movq %rax, %r14
movq %rbx, %rdi
callq 0xfacc0
movq %rax, %r15
movq %r14, 0x10(%rax)
movb $0x1, 0x5d(%rax)
leaq 0x77(%rip), %rax        # 0x5bb92
movq %rax, 0x20(%r15)
movq 0x18(%rbx), %rax
movq %rax, 0x18(%r15)
movq 0x18(%rax), %rdx
movq %r15, %rdi
xorl %esi, %esi
callq 0xface4
movq %r15, %rdi
callq 0xfacd3
movq %rbx, %rdi
movq %r14, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0xded32
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/cdiimage.c
// Function: yuv_to_rgb
static void yuv_to_rgb(UI y, UI u, UI v, de_color *rgbclr)
{
	double r1, g1, b1;

	b1 = (double)y + ((double)u - 128.0) * 1.733;
	r1 = (double)y + ((double)v - 128.0) * 1.371;
	g1 = ((double)y - 0.299*r1 - 0.114*b1)/0.587;
	*rgbclr = DE_MAKE_RGB(dbl_to_u8(r1), dbl_to_u8(g1), dbl_to_u8(b1));
}

// Assembly:
cvtsi2sd %edi, %xmm1
cvtsi2sd %esi, %xmm0
movsd 0xb9c9c(%rip), %xmm3    # 0x115f40
addsd %xmm3, %xmm0
mulsd 0xb9c98(%rip), %xmm0    # 0x115f48
addsd %xmm1, %xmm0
cvtsi2sd %edx, %xmm2
addsd %xmm3, %xmm2
mulsd 0xb9c8c(%rip), %xmm2    # 0x115f50
addsd %xmm1, %xmm2
movsd 0xb9c88(%rip), %xmm3    # 0x115f58
mulsd %xmm2, %xmm3
addsd %xmm1, %xmm3
movsd 0xb9c80(%rip), %xmm1    # 0x115f60
mulsd %xmm0, %xmm1
addsd %xmm3, %xmm1
divsd 0xb9c78(%rip), %xmm1    # 0x115f68
movl $0xff000000, %eax       # imm = 0xFF000000
xorpd %xmm3, %xmm3
ucomisd %xmm2, %xmm3
jae 0x5c322
movl $0xffff0000, %eax       # imm = 0xFFFF0000
ucomisd 0xae43c(%rip), %xmm2    # 0x10a748
jae 0x5c322
addsd 0xae42a(%rip), %xmm2    # 0x10a740
cvttsd2si %xmm2, %eax
shll $0x10, %eax
orl $0xff000000, %eax       # imm = 0xFF000000
xorl %edx, %edx
ucomisd %xmm1, %xmm3
movl $0x0, %esi
jae 0x5c351
movl $0xff00, %esi           # imm = 0xFF00
ucomisd 0xae40c(%rip), %xmm1    # 0x10a748
jae 0x5c351
addsd 0xae3fa(%rip), %xmm1    # 0x10a740
cvttsd2si %xmm1, %esi
movzbl %sil, %esi
shll $0x8, %esi
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jae 0x5c379
movl $0xff, %edx
ucomisd 0xae3e0(%rip), %xmm0    # 0x10a748
jae 0x5c379
addsd 0xae3ce(%rip), %xmm0    # 0x10a740
cvttsd2si %xmm0, %edx
movzbl %dl, %edx
orl %esi, %eax
orl %edx, %eax
movl %eax, (%rcx)
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/clp.c
// Function: de_module_clp
void de_module_clp(deark *c, struct deark_module_info *mi)
{
	mi->id = "clp";
	mi->desc = "Windows Clipboard";
	mi->run_fn = de_run_clp;
	mi->identify_fn = de_identify_clp;
	mi->help_fn = de_help_clp;
}

// Assembly:
leaq 0xb9da5(%rip), %rax     # 0x11612c
movq %rax, (%rsi)
leaq 0xb9d9f(%rip), %rax     # 0x116130
movq %rax, 0x8(%rsi)
leaq 0x1b(%rip), %rax        # 0x5c3b7
movq %rax, 0x18(%rsi)
leaq 0x2c8(%rip), %rax       # 0x5c66f
movq %rax, 0x20(%rsi)
leaq 0x303(%rip), %rax       # 0x5c6b5
movq %rax, 0x28(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/clp.c
// Function: de_identify_clp
static int de_identify_clp(deark *c)
{
	int has_ext;
	UI sig;

	// TODO: Improve this
	sig = (UI)de_getu16le(0);
	if(sig<0xc350 || sig>0xc352) return 0;
	has_ext = de_input_file_has_ext(c, "clp");
	if(has_ext) return 80;
	return 15;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
xorl %r14d, %r14d
xorl %esi, %esi
callq 0xe3fa3
addl $0xffff3cad, %eax       # imm = 0xFFFF3CAD
cmpl $-0x3, %eax
jb 0x5c6aa
leaq 0xb9a97(%rip), %rsi     # 0x11612c
movq %rbx, %rdi
callq 0xdfcd5
testl %eax, %eax
pushq $0xf
popq %rax
pushq $0x50
popq %r14
cmovel %eax, %r14d
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/comicchat.c
// Function: de_module_comicchat
void de_module_comicchat(deark *c, struct deark_module_info *mi)
{
	mi->id = "comicchat";
	mi->desc = "Microsoft Comic Chat AVB or BGB";
	mi->run_fn = de_run_comicchat;
	mi->identify_fn = de_identify_comicchat;
	mi->help_fn = de_help_comicchat;
}

// Assembly:
leaq 0xb9605(%rip), %rax     # 0x116370
movq %rax, (%rsi)
leaq 0xb9605(%rip), %rax     # 0x11637a
movq %rax, 0x8(%rsi)
leaq 0x1b(%rip), %rax        # 0x5cd9b
movq %rax, 0x18(%rsi)
leaq 0x5a1(%rip), %rax       # 0x5d32c
movq %rax, 0x20(%rsi)
leaq 0x68a(%rip), %rax       # 0x5d420
movq %rax, 0x28(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/comicchat.c
// Function: de_identify_comicchat
static int de_identify_comicchat(deark *c)
{
	u8 has_ext, has_hdr, has_endtag;
	UI n0, n2, n4;

	n0 = (UI)de_getu16be(0);
	if(n0!=0x8100 && n0!=0x8181) return 0;
	n2 = (UI)de_getu16le(2);
	n4 = (UI)de_getu16le(4);

	has_hdr = 0;
	if(n0==0x8100) {
		if(n4==1 && (n2==1 || n2==2)) has_hdr = 1;
	}
	else { // 0x8181
		if(n4==2 && (n2>=1 && n2<=3)) has_hdr = 1;
	}
	if(!has_hdr) return 0;

	has_endtag = (de_getu16le(c->infile->len - 2) == 0x0007);
	has_ext = (de_input_file_has_ext(c, "avb") ||
		de_input_file_has_ext(c, "bgb"));
	if(has_endtag && has_ext) return 100;
	if(has_endtag || has_ext) return 55;
	return 35;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
xorl %r14d, %r14d
xorl %esi, %esi
callq 0xe3f46
movq %rax, %r15
cmpl $0x8181, %r15d          # imm = 0x8181
je 0x5d35e
cmpl $0x8100, %r15d          # imm = 0x8100
jne 0x5d411
movq 0x18(%rbx), %rdi
pushq $0x2
popq %rsi
callq 0xe3fa3
movq %rax, %r12
movq 0x18(%rbx), %rdi
pushq $0x4
popq %rsi
callq 0xe3fa3
cmpl $0x8100, %r15d          # imm = 0x8100
jne 0x5d398
cmpl $0x1, %eax
sete %al
decl %r12d
cmpl $0x2, %r12d
setb %cl
testb %cl, %al
jne 0x5d3ad
jmp 0x5d411
cmpl $0x2, %eax
setne %al
addl $-0x4, %r12d
cmpl $-0x3, %r12d
setb %cl
orb %al, %cl
jne 0x5d411
movq 0x18(%rbx), %rdi
movq 0x18(%rdi), %rsi
addq $-0x2, %rsi
callq 0xe3fa3
movq %rax, %r15
leaq 0xb9237(%rip), %rsi     # 0x1165ff
movq %rbx, %rdi
callq 0xdfcd5
movb $0x1, %cl
testl %eax, %eax
jne 0x5d3ea
leaq 0xb9226(%rip), %rsi     # 0x116603
movq %rbx, %rdi
callq 0xdfcd5
testl %eax, %eax
setne %cl
cmpq $0x7, %r15
sete %al
testb %cl, %al
je 0x5d3fb
pushq $0x64
popq %r14
jmp 0x5d411
testb $0x1, %cl
pushq $0x37
popq %rax
pushq $0x23
popq %r14
cmovnel %eax, %r14d
cmpq $0x7, %r15
cmovel %eax, %r14d
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/comicchat.c
// Function: handle_chunk_string
static void handle_chunk_string(deark *c, lctx *d, i64 pos, i64 len,
	de_ucstring *s, const char *name)
{
	ucstring_empty(s);
	dbuf_read_to_ucstring_n(c->infile, pos, len, 512, s,
		DE_CONVFLAG_STOP_AT_NUL, d->input_encoding);
	de_dbg(c, "%s: \"%s\"", name, ucstring_getpsz_d(s));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbp
movq %r8, %rdi
callq 0xeac85
movq 0x18(%rbp), %rdi
movl (%r13), %eax
movl %eax, (%rsp)
pushq $0x1
popq %r9
movl $0x200, %ecx            # imm = 0x200
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %r8
callq 0xe4ced
movq %r14, %rdi
callq 0xeb877
leaq 0xc1a20(%rip), %rsi     # 0x11eeba
movq %rbp, %rdi
movq %rbx, %rdx
movq %rax, %rcx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xde896
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/comicchat.c
// Function: handle_chunk_multiimageptr
static void handle_chunk_multiimageptr(deark *c, lctx *d, struct chunk_ctx *cctx,
	i64 offset, i64 item_size, i64 item_count)
{
	i64 pos;
	i64 i;

	de_dbg(c, "item count: %"I64_FMT, item_count);
	pos = cctx->ck_pos + offset;

	for(i=0; i<item_count; i++) {
		i64 n, m1, m2;

		n = de_getu32le(pos);
		m1 = de_getu32le(pos+4);
		m2 = de_getu32le(pos+8);
		if(!found_image(c, d, cctx, n, m1, m2)) goto done;
		pos += item_size;
	}

done:
	;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %rbp
movq %rcx, 0x8(%rsp)
movq %rdx, %r14
movq %rsi, 0x10(%rsp)
movq %rdi, %r12
leaq 0xb90d5(%rip), %rsi     # 0x1165ef
xorl %r15d, %r15d
movq %r8, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x8(%r14), %r13
testq %rbp, %rbp
cmovgq %rbp, %r15
addq $0xc, %r13
subq $0x1, %r15
jb 0x5d58f
leaq -0x8(%r13), %rsi
movq 0x18(%r12), %rdi
callq 0xe409f
movq %rax, %rbp
movq 0x18(%r12), %rdi
leaq -0x4(%r13), %rsi
callq 0xe409f
movq %rax, %rbx
movq 0x18(%r12), %rdi
movq %r13, %rsi
callq 0xe409f
movq %r12, %rdi
movq 0x10(%rsp), %rsi
movq %r14, %rdx
movq %rbp, %rcx
movq %rbx, %r8
movq %rax, %r9
callq 0x5d59e
testl %eax, %eax
je 0x5d58f
addq 0x8(%rsp), %r13
jmp 0x5d536
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/comicchat.c
// Function: emit_images_highlevel_separate
static void emit_images_highlevel_separate(deark *c, lctx *d,
	struct image_highlevel_ctx *ih)
{
	size_t k;

	if(ih->llimg[0].img) {
		if(ih->is_icon) {
			de_finfo_set_name_from_sz(c, ih->llimg[0].fi,
				"icon", 0, DE_ENCODING_LATIN1);
		}
		de_bitmap_write_to_file_finfo(ih->llimg[0].img, ih->llimg[0].fi,
			ih->llimg[0].createflags);
	}
	for(k=1; k<=2; k++) {
		if(ih->llimg[k].img) {
			de_finfo_set_name_from_sz(c, ih->llimg[k].fi,
				(k==1?"sm_mask":"lg_mask"), 0, DE_ENCODING_LATIN1);
			de_bitmap_write_to_file_finfo(ih->llimg[k].img, ih->llimg[k].fi,
				(ih->llimg[k].createflags | DE_CREATEFLAG_IS_AUX));
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rsi), %rdi
testq %rdi, %rdi
je 0x5deed
cmpb $0x0, 0x1(%rbx)
je 0x5dee1
movq 0x10(%rbx), %rsi
leaq 0xb9f0b(%rip), %rdx     # 0x117dda
pushq $0x5
popq %r8
movq %r14, %rdi
xorl %ecx, %ecx
callq 0xdffbd
movq 0x8(%rbx), %rdi
movq 0x10(%rbx), %rsi
movl 0x18(%rbx), %edx
callq 0xe70ab
xorl %r15d, %r15d
leaq 0xb86e8(%rip), %r12     # 0x1165df
leaq 0xb86e9(%rip), %r13     # 0x1165e7
pushq $0x5
popq %rbp
cmpq $0x30, %r15
je 0x5df48
cmpq $0x0, 0x20(%rbx,%r15)
je 0x5df42
movq 0x28(%rbx,%r15), %rsi
testq %r15, %r15
movq %r13, %rdx
cmoveq %r12, %rdx
movq %r14, %rdi
xorl %ecx, %ecx
movl %ebp, %r8d
callq 0xdffbd
movq 0x20(%rbx,%r15), %rdi
movq 0x28(%rbx,%r15), %rsi
movl 0x30(%rbx,%r15), %edx
orl $0x1, %edx
callq 0xe70ab
addq $0x18, %r15
jmp 0x5df01
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/comicchat.c
// Function: extract_whole_bmp
static void extract_whole_bmp(deark *c, lctx *d, dbuf *inf, i64 pos1,
	struct image_highlevel_ctx *ih)
{
	i64 bmplen;
	dbuf *outf = NULL;
	const char *ext;

	bmplen = dbuf_getu32le(inf, pos1+2);
	if(pos1+bmplen > inf->len) goto done;
	if(bmplen < 54) goto done;

	if(ih->is_icon) {
		ext = "icon.bmp";
	}
	else {
		ext = "bmp";
	}
	outf = dbuf_create_output_file(c, ext, NULL, 0);
	dbuf_copy(inf, pos1, bmplen, outf);

done:
	dbuf_close(outf);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
leaq 0x2(%rdx), %rsi
movq %r14, %rdi
callq 0xe409f
xorl %r13d, %r13d
cmpq $0x36, %rax
jl 0x5dfc5
movq %rax, %r15
addq %rbx, %rax
cmpq 0x18(%r14), %rax
jg 0x5dfc5
cmpb $0x0, 0x1(%rbp)
leaq 0xb60d8(%rip), %rax     # 0x114072
leaq 0xb85e6(%rip), %rsi     # 0x116587
cmoveq %rax, %rsi
movq %r12, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xe4e62
movq %rax, %r13
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %rax, %rcx
callq 0xe45f4
movq %r13, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe5591
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/exectext.c
// Function: de_module_txt2com
void de_module_txt2com(deark *c, struct deark_module_info *mi)
{
	mi->id = "txt2com";
	mi->desc = "TXT2COM (K. P. Graham)";
	mi->run_fn = de_run_txt2com;
	mi->identify_fn = de_identify_txt2com;
	mi->help_fn = de_help_txt2com;
}

// Assembly:
leaq 0xb84a9(%rip), %rax     # 0x116684
movq %rax, (%rsi)
leaq 0xb84a7(%rip), %rax     # 0x11668c
movq %rax, 0x8(%rsi)
leaq 0x1b(%rip), %rax        # 0x5e20b
movq %rax, 0x18(%rsi)
leaq 0x17a(%rip), %rax       # 0x5e375
movq %rax, 0x20(%rsi)
leaq 0x250(%rip), %rax       # 0x5e456
movq %rax, 0x28(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/exectext.c
// Function: de_run_txt2com
static void de_run_txt2com(deark *c, de_module_params *mparams)
{
	lctx *d = NULL;

	d = create_lctx(c);
	exectext_set_common_enc_opts(c, d, DE_ENCODING_CP437);
	d->chartypes[10] = ETCT_CONTROL;
	d->chartypes[13] = ETCT_CONTROL;
	de_declare_fmt(c, "TXT2COM");

	txt2com_search1(c, d);
	if(!d->found_text) {
		txt2com_search2(c, d);
	}
	if(!d->found_text) {
		d->need_errmsg = 1;
		goto done;
	}
	if(d->errflag) goto done;

	exectext_extract_default(c, d);

done:
	if(d) {
		if(d->need_errmsg) {
			de_err(c, "Not a TXT2COM file, or unsupported version");
		}
		destroy_lctx(c, d);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
callq 0x5fc9f
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x5fcb7
movb $0x1, %al
movb %al, 0x42(%r14)
movb %al, 0x45(%r14)
leaq 0xb85b3(%rip), %rsi     # 0x1167ee
movq %rbx, %rdi
callq 0xe07f7
movl $0xbb8, %esi            # imm = 0xBB8
movq %rbx, %rdi
callq 0xdecaf
movq %rax, %r15
movq 0x18(%rbx), %rdi
movl $0x2bc, %edx            # imm = 0x2BC
movl $0xbb8, %ecx            # imm = 0xBB8
movq %rax, %rsi
callq 0xe3cb7
leaq 0xb85cb(%rip), %rdx     # 0x11683b
pushq $0x10
popq %rcx
pushq $0x3f
popq %r8
leaq 0x8(%rsp), %r9
movl $0xbb8, %esi            # imm = 0xBB8
movq %r15, %rdi
callq 0xe1021
testl %eax, %eax
je 0x5e2a7
movb $0x1, 0x14(%r14)
movl $0x2c2, %edx            # imm = 0x2C2
addq 0x8(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5fe4c
movq %rbx, %rdi
movq %r15, %rsi
callq 0xded32
cmpb $0x0, 0x14(%r14)
jne 0x5e32f
movl $0xfa0, %esi            # imm = 0xFA0
movq %rbx, %rdi
callq 0xdecaf
movq %rax, %r15
movq 0x18(%rbx), %rdi
movl $0x1d4c, %edx           # imm = 0x1D4C
movl $0xfa0, %ecx            # imm = 0xFA0
movq %rax, %rsi
callq 0xe3cb7
leaq 0xb8590(%rip), %rdx     # 0x116876
pushq $0x10
popq %rcx
pushq $0x3f
popq %r8
leaq 0x8(%rsp), %r9
movl $0xfa0, %esi            # imm = 0xFA0
movq %r15, %rdi
callq 0xe1021
testl %eax, %eax
je 0x5e31d
movb $0x1, 0x14(%r14)
movl $0x1d55, %edx           # imm = 0x1D55
addq 0x8(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5fe4c
movq %rbx, %rdi
movq %r15, %rsi
callq 0xded32
cmpb $0x0, 0x14(%r14)
je 0x5e343
cmpb $0x0, 0x12(%r14)
jne 0x5e348
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5fd39
jmp 0x5e348
movb $0x1, 0x13(%r14)
cmpb $0x0, 0x13(%r14)
je 0x5e360
leaq 0xb84a0(%rip), %rsi     # 0x1167f6
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdf2a5
movq %rbx, %rdi
movq %r14, %rsi
callq 0xded32
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq