LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/iff.c
// Function: de_module_rgfx
void de_module_rgfx(deark *c, struct deark_module_info *mi)
{
	mi->id = "rgfx";
	mi->desc = "RGFX graphics";
	mi->run_fn = de_run_rgfx;
	mi->identify_fn = de_identify_rgfx;
	mi->flags |= DE_MODFLAG_HIDDEN;
}

// Assembly:
leaq 0xb0dae(%rip), %rax     # 0x12882a
movq %rax, (%rsi)
leaq 0xb0da9(%rip), %rax     # 0x12882f
movq %rax, 0x8(%rsi)
leaq 0x14(%rip), %rax        # 0x77aa5
movq %rax, 0x18(%rsi)
leaq 0xa9(%rip), %rax        # 0x77b45
movq %rax, 0x20(%rsi)
orb $0x1, 0x30(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/iff.c
// Function: de_run_rgfx
static void de_run_rgfx(deark *c, de_module_params *mparams)
{
	struct rgfx_ctx *d = NULL;
	struct de_iffctx *ictx = NULL;

	de_declare_fmt(c, "IFF-RGFX");
	d = de_malloc(c, sizeof(struct rgfx_ctx));

	ictx = fmtutil_create_iff_decoder(c);
	ictx->alignment = 2;
	ictx->userdata = (void*)d;
	ictx->handle_chunk_fn = my_rgfx_chunk_handler;
	ictx->f = c->infile;

	fmtutil_read_iff_format(ictx, 0, c->infile->len);

	fmtutil_destroy_iff_decoder(ictx);
	if(d) {
		if(d->need_errmsg) {
			de_err(c, "Unsupported or bad RGFX file");
		}
		dbuf_close(d->unc_image);
		de_free(c, d);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0xb0eed(%rip), %rsi     # 0x1289a1
callq 0xeb125
movl $0x448, %esi            # imm = 0x448
movq %rbx, %rdi
callq 0xe8b2b
movq %rax, %r14
movq %rbx, %rdi
callq 0x1075c0
movq %rax, %r15
movq $0x2, 0x48(%rax)
movq %r14, 0x10(%rax)
leaq 0x81a(%rip), %rax       # 0x78301
movq %rax, 0x20(%r15)
movq 0x18(%rbx), %rax
movq %rax, 0x18(%r15)
movq 0x18(%rax), %rdx
movq %r15, %rdi
xorl %esi, %esi
callq 0x1075e4
movq %r15, %rdi
callq 0x1075d3
testq %r14, %r14
je 0x77b3f
cmpb $0x0, 0x1(%r14)
je 0x77b26
leaq 0xb0e8e(%rip), %rsi     # 0x1289aa
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9295
movq 0x40(%r14), %rdi
callq 0xf052b
movq %rbx, %rdi
movq %r14, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0xe8be2
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/iff.c
// Function: identify_internal
static int identify_internal(deark *c, int *pconfidence)
{
	UI n1, n2, n4;

	n1 = (UI)de_getu32be(0);
	n2 = (UI)de_getu32be(4);

	if(n1==CODE_AT_T && n2==CODE_FORM) {
		*pconfidence = 100;
		return FMT_DJVU;
	}

	if(n1==CODE_FOR4) {
		*pconfidence = 25;
		return FMT_FOR4;
	}

	// Try to screen out plain text files.
	if(n2>=0x20202020U && c->infile->len<0x20000000) goto done_nomatch;

	if(n1==CODE_FORM) {
		// Must use a lower confidence than other IFF-like formats
		// (ilbm, anim, cdi_imag, nsl, ...).
		*pconfidence = 9;
		return FMT_FORM;
	}

	if(n1==CODE_CAT) {
		n4 = (UI)de_getu32be(12);
		if(n4==CODE_FORM) {
			*pconfidence = 19;
			return FMT_FORM;
		}
		*pconfidence = 9;
		return FMT_FORM;
	}

	// TODO: LIST. (The problem is that the only LIST files I've found don't seem
	// to conform to the spec.)

done_nomatch:
	*pconfidence = 0;
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x18(%rdi), %rdi
xorl %esi, %esi
callq 0xeed0d
movq %rax, %r15
movq 0x18(%r14), %rdi
movl $0x4, %esi
callq 0xeed0d
movl %r15d, %ecx
xorl $0x41542654, %ecx       # imm = 0x41542654
movl %eax, %edx
xorl $0x464f524d, %edx       # imm = 0x464F524D
orl %ecx, %edx
jne 0x77bca
movl $0xa, %ebp
movl $0x64, %eax
jmp 0x77c38
cmpl $0x464f5234, %r15d      # imm = 0x464F5234
jne 0x77bdf
movl $0x4, %ebp
movl $0x19, %eax
jmp 0x77c38
cmpl $0x20202020, %eax       # imm = 0x20202020
jb 0x77bf4
movq 0x18(%r14), %rax
cmpq $0x20000000, 0x18(%rax) # imm = 0x20000000
jl 0x77c2d
movl $0x1, %ebp
cmpl $0x464f524d, %r15d      # imm = 0x464F524D
je 0x77c33
cmpl $0x43415420, %r15d      # imm = 0x43415420
jne 0x77c2d
movq 0x18(%r14), %rdi
movl $0xc, %esi
callq 0xeed0d
cmpl $0x464f524d, %eax       # imm = 0x464F524D
movl $0x13, %ecx
movl $0x9, %eax
cmovel %ecx, %eax
jmp 0x77c38
xorl %eax, %eax
xorl %ebp, %ebp
jmp 0x77c38
movl $0x9, %eax
movl %eax, (%rbx)
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/iff.c
// Function: my_std_container_start_fn
static int my_std_container_start_fn(struct de_iffctx *ictx)
{
	deark *c = ictx->c;
	lctx *d = (lctx*)ictx->userdata;

	if(ictx->level>0 && d->decode_hint==0 && ictx->chunkctx->parent) {
		if(ictx->chunkctx->parent->chunk4cc.id==CODE_CAT) {
			if(ictx->curr_container_fmt4cc.id==CODE_FORM) {
				// TODO: Extract more formats.
				if(ictx->curr_container_contentstype4cc.id==CODE_ILBM) {
					extract_iff_item(c, d, ictx, "ilbm");
					return 0; // = Stop processing this container
				}
			}
		}
	}

	if(ictx->level==0 &&
		ictx->curr_container_fmt4cc.id==CODE_FORM &&
		ictx->main_fmt4cc.id==CODE_FORM)
	{
		const char *fmtname = NULL;

		switch(ictx->main_contentstype4cc.id) {
		case CODE_8SVX: fmtname = "8SVX"; break;
		case CODE_AIFF: fmtname = "AIFF"; break;
		case CODE_YAFA: fmtname = "YAFA"; break;
		}

		if(fmtname) {
			de_declare_fmt(c, fmtname);
		}
	}

	return 1;
}

// Assembly:
pushq %rbx
cmpl $0x0, 0x64(%rdi)
jle 0x7819c
movq 0x10(%rdi), %rax
movl $0x1, %ebx
cmpb $0x0, 0x4(%rax)
jne 0x781fa
movq 0x128(%rdi), %rax
movq 0x50(%rax), %rax
testq %rax, %rax
je 0x781fa
cmpl $0x43415420, 0x4(%rax)  # imm = 0x43415420
jne 0x781fa
cmpl $0x464f524d, 0xcc(%rdi) # imm = 0x464F524D
jne 0x781fa
cmpl $0x494c424d, 0xfc(%rdi) # imm = 0x494C424D
jne 0x781fa
callq 0x781fe
xorl %ebx, %ebx
jmp 0x781fa
movl $0x1, %ebx
jne 0x781fa
cmpl $0x464f524d, 0xcc(%rdi) # imm = 0x464F524D
jne 0x781fa
cmpl $0x464f524d, 0x6c(%rdi) # imm = 0x464F524D
jne 0x781fa
movq (%rdi), %rax
movl 0x9c(%rdi), %ecx
cmpl $0x38535658, %ecx       # imm = 0x38535658
je 0x781eb
cmpl $0x59414641, %ecx       # imm = 0x59414641
je 0x781e2
cmpl $0x41494646, %ecx       # imm = 0x41494646
jne 0x781fa
leaq 0xb071f(%rip), %rsi     # 0x1288ff
jmp 0x781f2
leaq 0xb071b(%rip), %rsi     # 0x128904
jmp 0x781f2
leaq 0xb0708(%rip), %rsi     # 0x1288fa
movq %rax, %rdi
callq 0xeb125
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/iff.c
// Function: extract_iff_item
static void extract_iff_item(deark *c, lctx *d, struct de_iffctx *ictx, const char *ext)
{
	i64 pos, len;

	pos = ictx->chunkctx->pos;
	// chunkctx->len isn't set correctly yet.
	// (TODO: That's probably something that could be improved.)
	len = 8 + de_pad_to_n(ictx->chunkctx->dlen, ictx->alignment);
	if(pos+len >= ictx->f->len+100) return;
	dbuf_create_file_from_slice(ictx->f, pos, len, ext, NULL, 0);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x48(%rdi), %rsi
movq 0x128(%rdi), %rax
movq 0x30(%rax), %rbx
movq 0x48(%rax), %rdi
callq 0xe9cb4
leaq (%rax,%rbx), %rcx
addq $0x8, %rcx
movq 0x18(%r14), %rdi
movq 0x18(%rdi), %rdx
addq $0x64, %rdx
cmpq %rdx, %rcx
jge 0x78259
addq $0x8, %rax
leaq 0xb06b4(%rip), %rcx     # 0x1288f5
movq %rbx, %rsi
movq %rax, %rdx
xorl %r8d, %r8d
xorl %r9d, %r9d
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xefd48
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/iff.c
// Function: my_midi_chunk_handler
static int my_midi_chunk_handler(struct de_iffctx *ictx)
{
	deark *c = ictx->c;

	switch(ictx->chunkctx->chunk4cc.id) {
	case CODE_MThd:
		do_midi_MThd(c, ictx, ictx->chunkctx);
		break;
	}

	return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq 0x128(%rdi), %r15
cmpl $0x4d546864, 0x4(%r15)  # imm = 0x4D546864
jne 0x782f6
cmpq $0x6, 0x48(%r15)
jl 0x782f6
movq %rdi, %r14
movl $0x1, 0x130(%rdi)
movq (%rdi), %rbx
movq 0x18(%rdi), %rdi
movq 0x40(%r15), %rsi
callq 0xeeb67
leaq 0xa95e9(%rip), %rsi     # 0x12188b
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r14), %rdi
movq 0x40(%r15), %rsi
addq $0x2, %rsi
callq 0xeeb67
leaq 0xb06bf(%rip), %rsi     # 0x128985
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r14), %rdi
movq 0x40(%r15), %rsi
addq $0x4, %rsi
callq 0xeeb67
leaq 0xb06a5(%rip), %rsi     # 0x12898f
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movl $0x1, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: de_module_ilbm
void de_module_ilbm(deark *c, struct deark_module_info *mi)
{
	mi->id = "ilbm";
	mi->desc = "IFF-ILBM and related image formats";
	mi->run_fn = de_run_ilbm;
	mi->identify_fn = de_identify_ilbm;
	mi->help_fn = de_help_ilbm;
}

// Assembly:
leaq 0xb013e(%rip), %rax     # 0x1288f5
movq %rax, (%rsi)
leaq 0xb032f(%rip), %rax     # 0x128af0
movq %rax, 0x8(%rsi)
leaq 0x1b(%rip), %rax        # 0x787e7
movq %rax, 0x18(%rsi)
leaq 0x15(%rip), %rax        # 0x787ec
movq %rax, 0x20(%rsi)
leaq 0x70(%rip), %rax        # 0x78852
movq %rax, 0x28(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: de_identify_ilbm
static int de_identify_ilbm(deark *c)
{
	u32 id;

	id = (u32)de_getu32be(0);
	if(id!=CODE_FORM) return 0;
	id = (u32)de_getu32be(8);
	switch(id) {
	case CODE_ILBM:
	case CODE_PBM:
	case CODE_ACBM:
	case CODE_RGBN:
	case CODE_RGB8:
		return 100;
	}
	return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x18(%rdi), %rdi
xorl %ebx, %ebx
xorl %esi, %esi
callq 0xeed0d
cmpl $0x464f524d, %eax       # imm = 0x464F524D
jne 0x78848
movq 0x18(%r14), %rdi
movl $0x8, %esi
callq 0xeed0d
movl $0x64, %ebx
cmpl $0x50424d1f, %eax       # imm = 0x50424D1F
jle 0x78838
cmpl $0x50424d20, %eax       # imm = 0x50424D20
je 0x78848
cmpl $0x52474238, %eax       # imm = 0x52474238
je 0x78848
cmpl $0x5247424e, %eax       # imm = 0x5247424E
je 0x78848
jmp 0x78846
cmpl $0x4143424d, %eax       # imm = 0x4143424D
je 0x78848
cmpl $0x494c424d, %eax       # imm = 0x494C424D
je 0x78848
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: de_module_anim
void de_module_anim(deark *c, struct deark_module_info *mi)
{
	mi->id = "anim";
	mi->desc = "IFF-ANIM animation";
	mi->run_fn = de_run_anim;
	mi->identify_fn = de_identify_anim;
	mi->help_fn = de_help_anim;
}

// Assembly:
leaq 0xb02b3(%rip), %rax     # 0x128b13
movq %rax, (%rsi)
leaq 0xb02ae(%rip), %rax     # 0x128b18
movq %rax, 0x8(%rsi)
leaq 0x1b(%rip), %rax        # 0x78890
movq %rax, 0x18(%rsi)
leaq 0x15(%rip), %rax        # 0x78895
movq %rax, 0x20(%rsi)
leaq 0x4c(%rip), %rax        # 0x788d7
movq %rax, 0x28(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: de_identify_anim
static int de_identify_anim(deark *c)
{
	u32 id;

	id = (u32)de_getu32be(0);
	if(id!=CODE_FORM) return 0;
	id = (u32)de_getu32be(8);
	if(id==CODE_ANIM) return 100;
	return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x18(%rdi), %rdi
xorl %ebx, %ebx
xorl %esi, %esi
callq 0xeed0d
cmpl $0x464f524d, %eax       # imm = 0x464F524D
jne 0x788cd
movq 0x18(%r14), %rdi
movl $0x8, %esi
callq 0xeed0d
xorl %ecx, %ecx
cmpl $0x414e494d, %eax       # imm = 0x414E494D
movl $0x64, %ebx
cmovnel %ecx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: de_module_deep
void de_module_deep(deark *c, struct deark_module_info *mi)
{
	mi->id = "deep";
	mi->desc = "IFF-DEEP";
	mi->run_fn = de_run_deep;
	mi->identify_fn = de_identify_deep;
	mi->help_fn = de_help_deep;
}

// Assembly:
leaq 0xa48ef(%rip), %rax     # 0x11d1d7
movq %rax, (%rsi)
leaq 0xb0239(%rip), %rax     # 0x128b2b
movq %rax, 0x8(%rsi)
leaq 0x1b(%rip), %rax        # 0x78918
movq %rax, 0x18(%rsi)
leaq 0xf6(%rip), %rax        # 0x789fe
movq %rax, 0x20(%rsi)
leaq 0x135(%rip), %rax       # 0x78a48
movq %rax, 0x28(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: de_run_deep
static void de_run_deep(deark *c, de_module_params *mparams)
{
	struct deep_ctx *d = NULL;
	struct de_iffctx *ictx = NULL;
	const char *opt_trans_str;

	d = de_malloc(c, sizeof(struct deep_ctx));

	d->trans_setting = TRANS_AUTO; // default
	opt_trans_str = de_get_ext_option(c, "deep:trans");
	if(opt_trans_str) {
		if(!de_strcmp(opt_trans_str, "auto")) {
			d->trans_setting = TRANS_AUTO;
		}
		else if(!de_strcmp(opt_trans_str, "")) {
			d->trans_setting = TRANS_RESPECT;
		}
		else {
			int opt_trans_n;

			opt_trans_n = de_atoi(opt_trans_str);
			if(opt_trans_n==0) {
				d->trans_setting = TRANS_REMOVE;
			}
			else if(opt_trans_n>0) {
				d->trans_setting = TRANS_RESPECT;
			}
		}
	}

	de_declare_fmt(c, "IFF-DEEP");

	ictx = fmtutil_create_iff_decoder(c);
	ictx->has_standard_iff_chunks = 1;
	ictx->alignment = 2;
	ictx->userdata = (void*)d;
	ictx->handle_chunk_fn = my_deep_chunk_handler;
	ictx->f = c->infile;

	fmtutil_read_iff_format(ictx, 0, c->infile->len);
	de_dbg(c, "image count: %d", d->DBOD_count);

	fmtutil_destroy_iff_decoder(ictx);
	if(d) {
		de_free(c, d);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0xd8, %esi
callq 0xe8b2b
movq %rax, %r14
movb $0x2, 0x8(%rax)
leaq 0xb0e66(%rip), %rsi     # 0x1297a0
movq %rbx, %rdi
callq 0xe9b74
testq %rax, %rax
je 0x78981
movq %rax, %r15
leaq 0x97c26(%rip), %rsi     # 0x110577
movq %rax, %rdi
callq 0x181a0
testl %eax, %eax
je 0x78976
movb $0x1, %bpl
cmpb $0x0, (%r15)
je 0x7897d
movq %r15, %rdi
callq 0xe9c2a
testl %eax, %eax
je 0x7897b
jg 0x7897d
jmp 0x78981
movb $0x2, %bpl
jmp 0x7897d
xorl %ebp, %ebp
movb %bpl, 0x8(%r14)
leaq 0xb01a3(%rip), %rsi     # 0x128b2b
movq %rbx, %rdi
callq 0xeb125
movq %rbx, %rdi
callq 0x1075c0
movq %rax, %r15
movb $0x1, 0x5d(%rax)
movq $0x2, 0x48(%rax)
movq %r14, 0x10(%rax)
leaq 0x463f(%rip), %rax      # 0x7cff1
movq %rax, 0x20(%r15)
movq 0x18(%rbx), %rax
movq %rax, 0x18(%r15)
movq 0x18(%rax), %rdx
movq %r15, %rdi
xorl %esi, %esi
callq 0x1075e4
movl 0x4(%r14), %edx
leaq 0xb0dd4(%rip), %rsi     # 0x1297ab
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movq %r15, %rdi
callq 0x1075d3
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xe8be2
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: my_preprocess_iff_chunk_fn
static int my_preprocess_iff_chunk_fn(struct de_iffctx *ictx)
{
	lctx *d = (lctx*)ictx->userdata;
	const char *name = NULL;

	// frctx will be set if we're in an "image" container, such as FORM:ILBM.
	// It is possible, e.g., for an ANIM file to contain FORM:8SVX containers
	// which contain BODY chunks that are not "image data".
	if(d->frctx) {
		switch(ictx->chunkctx->chunk4cc.id) {
		case CODE_ANHD: name="animation header"; break;
		case CODE_BMHD: name="bitmap header"; break;
		case CODE_BODY: name="image data"; break;
		case CODE_CAMG: name="Amiga viewport mode"; break;
		case CODE_CMAP: name="color map"; break;
		case CODE_CRNG: name="color register range info"; break;
		case CODE_DLTA: name="delta-compressed data"; break;
		case CODE_DPI : name="dots/inch"; break;
		case CODE_DRNG: name="color cycle"; break;
		case CODE_GRAB: name="hotspot"; break;
		case CODE_TINY: name="thumbnail"; break;
		}
	}

	if(name) {
		ictx->chunkctx->chunk_name = name;
	}
	return 1;
}

// Assembly:
movq 0x10(%rdi), %rax
cmpq $0x0, 0xb0(%rax)
je 0x7951c
movq 0x128(%rdi), %rax
movl 0x4(%rax), %ecx
cmpl $0x43524e46, %ecx       # imm = 0x43524E46
jle 0x79474
cmpl $0x44524e46, %ecx       # imm = 0x44524E46
jg 0x794a1
cmpl $0x43524e47, %ecx       # imm = 0x43524E47
je 0x79508
cmpl $0x444c5441, %ecx       # imm = 0x444C5441
je 0x794ed
cmpl $0x44504920, %ecx       # imm = 0x44504920
jne 0x7951c
leaq 0xb0088(%rip), %rcx     # 0x1294f7
jmp 0x79518
cmpl $0x424f4458, %ecx       # imm = 0x424F4458
jle 0x794c2
cmpl $0x424f4459, %ecx       # imm = 0x424F4459
je 0x794ff
cmpl $0x43414d47, %ecx       # imm = 0x43414D47
je 0x794e4
cmpl $0x434d4150, %ecx       # imm = 0x434D4150
jne 0x7951c
leaq 0xb001e(%rip), %rcx     # 0x1294bd
jmp 0x79518
cmpl $0x44524e47, %ecx       # imm = 0x44524E47
je 0x79511
cmpl $0x47524142, %ecx       # imm = 0x47524142
je 0x794f6
cmpl $0x54494e59, %ecx       # imm = 0x54494E59
jne 0x7951c
leaq 0xb03d3(%rip), %rcx     # 0x129893
jmp 0x79518
cmpl $0x414e4844, %ecx       # imm = 0x414E4844
je 0x794db
cmpl $0x424d4844, %ecx       # imm = 0x424D4844
jne 0x7951c
leaq 0xaffc2(%rip), %rcx     # 0x12949b
jmp 0x79518
leaq 0xaffa8(%rip), %rcx     # 0x12948a
jmp 0x79518
leaq 0xaffbe(%rip), %rcx     # 0x1294a9
jmp 0x79518
leaq 0xaffed(%rip), %rcx     # 0x1294e1
jmp 0x79518
leaq 0xbe221(%rip), %rcx     # 0x13771e
jmp 0x79518
leaq 0xbe2bf(%rip), %rcx     # 0x1377c5
jmp 0x79518
leaq 0xaffb8(%rip), %rcx     # 0x1294c7
jmp 0x79518
leaq 0xaffe9(%rip), %rcx     # 0x129501
movq %rcx, 0x58(%rax)
movl $0x1, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: my_on_std_container_start_fn
static int my_on_std_container_start_fn(struct de_iffctx *ictx)
{
	deark *c = ictx->c;
	lctx *d = (lctx*)ictx->userdata;

	if(ictx->level==d->FORM_level) {
		if(d->frctx) {
			on_frame_end(c, d);
		}
		if((ictx->curr_container_contentstype4cc.id == CODE_ILBM) ||
			(ictx->curr_container_contentstype4cc.id == CODE_PBM) ||
			(ictx->curr_container_contentstype4cc.id == CODE_ACBM) ||
			(ictx->curr_container_contentstype4cc.id == CODE_RGBN) ||
			(ictx->curr_container_contentstype4cc.id == CODE_RGB8))
		{
			on_frame_begin(c, d, ictx->curr_container_contentstype4cc.id);
		}
		else {
			if(d->is_anim) {
				if(ictx->curr_container_contentstype4cc.id == CODE_8SVX) {
					d->found_audio = 1;
				}
				if(!d->extra_content_warned) {
					de_warn(c, "File includes unsupported content of type '%s'",
						ictx->curr_container_contentstype4cc.id_sanitized_sz);
					d->extra_content_warned = 1;
				}
			}
			else {
				de_err(c, "Unsupported ILBM-like format");
				d->errflag = 1;
			}
		}
	}
	return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rdi), %rbx
movl 0x64(%rdi), %eax
cmpl 0x18(%rbx), %eax
jne 0x79622
movq %rdi, %r15
movq (%rdi), %r14
cmpq $0x0, 0xb0(%rbx)
je 0x79554
movq %r14, %rdi
movq %rbx, %rsi
callq 0x7963c
movl 0xfc(%r15), %ebp
cmpl $0x50424d1f, %ebp       # imm = 0x50424D1F
jle 0x7957d
cmpl $0x50424d20, %ebp       # imm = 0x50424D20
je 0x7958d
cmpl $0x5247424e, %ebp       # imm = 0x5247424E
je 0x7958d
cmpl $0x52474238, %ebp       # imm = 0x52474238
je 0x7958d
jmp 0x795d2
cmpl $0x4143424d, %ebp       # imm = 0x4143424D
je 0x7958d
cmpl $0x494c424d, %ebp       # imm = 0x494C424D
jne 0x795d2
cmpq $0x0, 0xb0(%rbx)
jne 0x79622
incl 0x20(%rbx)
movl $0x28, %esi
movq %r14, %rdi
callq 0xe8b2b
movq %rax, 0xb0(%rbx)
movl %ebp, (%rax)
movl 0x24(%rbx), %edx
movl %edx, 0x4(%rax)
cmpl $0x0, (%rbx)
je 0x79622
leaq 0xaff93(%rip), %rsi     # 0x129559
movq %r14, %rdi
xorl %eax, %eax
callq 0xe8617
jmp 0x79622
cmpl $0x0, (%rbx)
je 0x7960a
cmpl $0x38535658, %ebp       # imm = 0x38535658
jne 0x795e3
movb $0x1, 0x44(%rbx)
cmpb $0x0, 0x48(%rbx)
jne 0x79622
addq $0x100, %r15            # imm = 0x100
leaq 0xaff16(%rip), %rsi     # 0x12950d
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0xe8faa
movb $0x1, 0x48(%rbx)
jmp 0x79622
leaq 0xaff2b(%rip), %rsi     # 0x12953c
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9295
movl $0x1, 0x1c(%rbx)
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: on_frame_end
static void on_frame_end(deark *c, lctx *d)
{
	if(!d->frctx) return;

	if(d->is_anim) de_dbg(c, "[frame #%d end]", d->frctx->frame_idx);

	destroy_frame(c, d, d->oldfrctx[1]); // Destroy the frame that's aged out
	d->oldfrctx[1] = d->oldfrctx[0]; // Make room for the new frame
	d->oldfrctx[0] = d->frctx; // Save the new frame
	d->frctx = NULL;
	d->num_frames_finished++;
}

// Assembly:
movq 0xb0(%rsi), %rax
testq %rax, %rax
je 0x7969d
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
cmpl $0x0, (%rsi)
je 0x7966b
movl 0x4(%rax), %edx
leaq 0xaff0a(%rip), %rsi     # 0x12956b
movq %r14, %rdi
xorl %eax, %eax
callq 0xe8617
movq 0xc0(%rbx), %rsi
movq %r14, %rdi
callq 0x7969e
movups 0xb0(%rbx), %xmm0
movups %xmm0, 0xb8(%rbx)
movq $0x0, 0xb0(%rbx)
incl 0x24(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: do_cmap
static void do_cmap(deark *c, lctx *d, i64 pos, i64 len)
{
	i64 ncolors;

	d->found_cmap = 1;
	d->cmap_changed_flag = 1;
	ncolors = len/3;
	de_dbg(c, "number of palette colors: %d", (int)ncolors);
	if(ncolors>256) ncolors=256;

	de_read_palette_rgb(c->infile, pos, ncolors, 3, d->pal_raw, 256, 0);
	if(ncolors > d->pal_ncolors) {
		d->pal_ncolors = ncolors;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
movw $0x101, 0x33(%rsi)      # imm = 0x101
movabsq $0x5555555555555556, %rcx # imm = 0x5555555555555556
imulq %rcx
movq %rdx, %r15
shrq $0x3f, %r15
addq %rdx, %r15
leaq 0x97804(%rip), %rsi     # 0x1113c3
movl %r15d, %edx
xorl %eax, %eax
callq 0xe8617
movl $0x100, %eax            # imm = 0x100
cmpq %rax, %r15
cmovgeq %rax, %r15
movq 0x18(%r12), %rdi
leaq 0xd4(%rbx), %r8
movl $0x0, (%rsp)
movl $0x3, %ecx
movl $0x100, %r9d            # imm = 0x100
movq %r14, %rsi
movq %r15, %rdx
callq 0xf2c4e
cmpq 0xc8(%rbx), %r15
jle 0x79c0e
movq %r15, 0xc8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: do_camg
static void do_camg(deark *c, lctx *d, i64 pos, i64 len)
{
	if(len<4) return;
	d->has_camg = 1;
	d->camg_changed_flag = 1;

	d->ham_flag = 0;
	d->is_ham6 = 0;
	d->is_ham8 = 0;
	d->ehb_flag = 0;

	d->camg_mode = (UI)de_getu32be(pos);
	de_dbg(c, "CAMG mode: 0x%x", d->camg_mode);

	if(d->camg_mode & 0x0800)
		d->ham_flag = 1;
	if(d->camg_mode & 0x0080)
		d->ehb_flag = 1;

	if(d->formtype==CODE_RGBN || d->formtype==CODE_RGB8) {
		d->ham_flag = 0;
		d->ehb_flag = 0;
	}

	de_dbg_indent(c, 1);
	de_dbg(c, "HAM: %d", (int)d->ham_flag);
	de_dbg(c, "EHB: %d", (int)d->ehb_flag);
	de_dbg_indent(c, -1);
}

// Assembly:
cmpq $0x4, %rcx
jge 0x79c21
retq
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movw $0x101, 0x36(%rsi)      # imm = 0x101
movl $0x0, 0x38(%rsi)
movq 0x18(%rdi), %rdi
movq %rdx, %rsi
callq 0xeed0d
movl %eax, 0x4c(%r14)
leaq 0xaf1bc(%rip), %rsi     # 0x128e0b
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movl 0x4c(%r14), %eax
btl $0xb, %eax
jae 0x79c6a
movb $0x1, 0x38(%r14)
testb %al, %al
jns 0x79c73
movb $0x1, 0x3b(%r14)
movl 0x4(%r14), %eax
cmpl $0x5247424e, %eax       # imm = 0x5247424E
je 0x79c85
cmpl $0x52474238, %eax       # imm = 0x52474238
jne 0x79c8f
xorl %eax, %eax
movb %al, 0x38(%r14)
movb %al, 0x3b(%r14)
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movzbl 0x38(%r14), %edx
leaq 0xaf173(%rip), %rsi     # 0x128e1b
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movzbl 0x3b(%r14), %edx
leaq 0xaf165(%rip), %rsi     # 0x128e23
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xe8a15
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: do_tiny
static void do_tiny(deark *c, lctx *d, i64 pos1, i64 len)
{
	struct frame_ctx *frctx = NULL;
	i64 pos = pos1;

	if(len<=4) goto done;

	d->thumb_width = de_getu16be_p(&pos);
	d->thumb_height = de_getu16be_p(&pos);
	de_dbg(c, "thumbnail image, dimensions: %d"DE_CHAR_TIMES"%d", (int)d->thumb_width, (int)d->thumb_height);
	if(!de_good_image_dimensions_noerr(c, d->thumb_width, d->thumb_height)) {
		de_warn(c, "Bad thumbnail image dimensions");
		goto done;
	}

	frctx = create_frame(c, d);
	(void)do_image_chunk_internal(c, d, frctx, pos, pos1+len-pos, 1);

done:
	destroy_frame(c, d, frctx);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq %rdx, 0x8(%rsp)
cmpq $0x5, %rcx
jge 0x79f52
xorl %r13d, %r13d
jmp 0x7a002
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %r15
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %r13
movq %r13, %rsi
callq 0xeeb91
movq %rax, 0x90(%r15)
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xeeb91
movq %rax, 0x98(%r15)
movl 0x90(%r15), %edx
leaq 0xaf308(%rip), %rsi     # 0x12929c
movq %rbx, %rdi
movl %eax, %ecx
xorl %eax, %eax
callq 0xe8617
movq 0x90(%r15), %rsi
movq 0x98(%r15), %rdx
movq %rbx, %rdi
callq 0xf1d84
testl %eax, %eax
je 0x79fee
movl $0x28, %esi
movq %rbx, %rdi
callq 0xe8b2b
movq %rax, %r13
movq 0x8(%rsp), %rcx
addq %r12, %r14
subq %rcx, %r14
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
movq %r14, %r8
movl $0x1, %r9d
callq 0x7a445
jmp 0x7a002
leaq 0xaf2cb(%rip), %rsi     # 0x1292c0
xorl %r13d, %r13d
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8faa
movq %rbx, %rdi
movq %r13, %rsi
callq 0x7969e
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: do_xs24
static void do_xs24(deark *c, dbuf *f, i64 pos1, i64 len)
{
	i64 w, h, rowspan;
	i64 pos = pos1;
	de_bitmap *img = NULL;

	w = de_getu16be_p(&pos);
	rowspan = w*3;
	h = de_getu16be_p(&pos);
	de_dbg(c, "24-bit thumbnail image, dimensions: %u"DE_CHAR_TIMES"%u", (UI)w, (UI)h);
	if(!de_good_image_dimensions_noerr(c, w, h)) goto done;
	if(rowspan*h+6 != len) goto done;
	pos += 2; // unknown field

	img = de_bitmap_create(c, w, h, 3);
	de_convert_image_rgb(f, pos, rowspan, 3, img, 0);
	de_bitmap_write_to_file(img, "thumb", DE_CREATEFLAG_IS_AUX|DE_CREATEFLAG_OPT_IMAGE);
done:
	de_bitmap_destroy(img);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r12
movq %rsi, 0x10(%rsp)
movq %rdi, %r14
leaq 0x8(%rsp), %rbx
movq %rdx, (%rbx)
movq 0x18(%rdi), %rdi
movq %rbx, %rsi
callq 0xeeb91
movq %rax, %r13
movq 0x18(%r14), %rdi
movq %rbx, %rsi
callq 0xeeb91
movq %rax, %rbp
leaq 0xaf27e(%rip), %rsi     # 0x1292df
xorl %r15d, %r15d
movq %r14, %rdi
movl %r13d, %edx
movl %ebp, %ecx
xorl %eax, %eax
callq 0xe8617
movq %r14, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0xf1d84
testl %eax, %eax
je 0x7a0f2
leaq (,%r13,2), %rbx
addq %r13, %rbx
movq %rbp, %rax
imulq %rbx, %rax
addq $0x6, %rax
cmpq %r12, %rax
jne 0x7a0ef
addq $0x2, 0x8(%rsp)
movq %r14, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movl $0x3, %ecx
callq 0xf266a
movq %rax, %r15
movq 0x8(%rsp), %rsi
movl $0x3, %ecx
movq 0x10(%rsp), %rdi
movq %rbx, %rdx
movq %rax, %r8
xorl %r9d, %r9d
callq 0xf3279
leaq 0xb1036(%rip), %rsi     # 0x12b116
movq %r15, %rdi
movl $0x3, %edx
callq 0xf22dc
jmp 0x7a0f2
xorl %r15d, %r15d
movq %r15, %rdi
callq 0xf228d
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: do_dpi
static void do_dpi(deark *c, lctx *d, i64 pos, i64 len)
{
	if(len<4) return;
	d->x_dpi = de_getu16be(pos);
	d->y_dpi = de_getu16be(pos+2);
	de_dbg(c, "dpi: %d"DE_CHAR_TIMES"%d", (int)d->x_dpi, (int)d->y_dpi);
}

// Assembly:
cmpq $0x4, %rcx
jge 0x7a110
retq
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
movq %rdx, %rsi
callq 0xeeb67
movq %rax, 0x80(%r14)
movq 0x18(%rbx), %rdi
addq $0x2, %r15
movq %r15, %rsi
callq 0xeeb67
movq %rax, 0x88(%r14)
movl 0x80(%r14), %edx
leaq 0xaf1b4(%rip), %rsi     # 0x12930a
movq %rbx, %rdi
movl %eax, %ecx
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0xe8617
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: do_grab
static void do_grab(deark *c, lctx *d, i64 pos, i64 len)
{
	if(len<4) return;
	d->has_hotspot = 1;
	d->hotspot_x = (int)de_getu16be(pos);
	d->hotspot_y = (int)de_getu16be(pos+2);
	de_dbg(c, "hotspot: (%d, %d)", d->hotspot_x, d->hotspot_y);
}

// Assembly:
cmpq $0x4, %rcx
jge 0x7a16e
retq
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movb $0x1, 0xa0(%rsi)
movq 0x18(%rdi), %rdi
movq %rdx, %rsi
callq 0xeeb67
movl %eax, 0xa4(%r14)
movq 0x18(%rbx), %rdi
addq $0x2, %r15
movq %r15, %rsi
callq 0xeeb67
movl %eax, 0xa8(%r14)
movl 0xa4(%r14), %edx
leaq 0xaf15b(%rip), %rsi     # 0x129316
movq %rbx, %rdi
movl %eax, %ecx
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0xe8617
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: do_crng
static void do_crng(deark *c, lctx *d, i64 pos1, i64 len)
{
	UI tmp1, tmp2;

	if(len<8) return;
	tmp1 = (UI)de_getu16be(pos1+2);
	tmp2 = (UI)de_getu16be(pos1+4);
	de_dbg(c, "CRNG flags: 0x%04x", tmp2);
	if(tmp2&0x1) {
		de_dbg(c, "rate: %.2f fps", (double)(((double)tmp1)*(60.0/16384.0)));
		on_color_cycling_enabled(c, d);
	}
}

// Assembly:
cmpq $0x8, %rcx
jl 0x7a2a8
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r14
movq 0x18(%rdi), %rdi
leaq 0x2(%rdx), %rsi
callq 0xeeb67
movq %rax, %r15
movq 0x18(%r14), %rdi
addq $0x4, %r12
movq %r12, %rsi
callq 0xeeb67
movq %rax, %r12
leaq 0xaf0de(%rip), %rsi     # 0x129328
movq %r14, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0xe8617
testb $0x1, %r12b
je 0x7a29d
movl %r15d, %eax
cvtsi2sd %rax, %xmm0
mulsd 0xae87b(%rip), %xmm0    # 0x128ae8
leaq 0xaf0c7(%rip), %rsi     # 0x12933b
movq %r14, %rdi
movb $0x1, %al
callq 0xe8617
movb $0x1, 0x3c(%rbx)
cmpb $0x0, 0x3d(%rbx)
jne 0x7a29d
leaq 0xaf0bb(%rip), %rsi     # 0x12934a
movq %r14, %rdi
xorl %eax, %eax
callq 0xe8faa
movb $0x1, 0x3d(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: do_drng
static void do_drng(deark *c, lctx *d, i64 pos1, i64 len)
{
	UI tmp2;

	tmp2 = (UI)de_getu16be(pos1+4);
	de_dbg(c, "DRNG flags: 0x%04x", tmp2);
	if(tmp2&0x1) {
		on_color_cycling_enabled(c, d);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x18(%rdi), %rdi
leaq 0x4(%rdx), %rsi
callq 0xeeb67
movq %rax, %r15
leaq 0xaf0c0(%rip), %rsi     # 0x12938b
movq %r14, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xe8617
testb $0x1, %r15b
je 0x7a2fd
movb $0x1, 0x3c(%rbx)
cmpb $0x0, 0x3d(%rbx)
jne 0x7a2fd
leaq 0xaf05b(%rip), %rsi     # 0x12934a
movq %r14, %rdi
xorl %eax, %eax
callq 0xe8faa
movb $0x1, 0x3d(%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: do_ccrt
static void do_ccrt(deark *c, lctx *d, i64 pos1, i64 len)
{
	i64 tmp1;

	tmp1 = de_geti16be(pos1);
	de_dbg(c, "cycling direction: %d", (int)tmp1);
	if(tmp1!=0) {
		d->uses_color_cycling = 1;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x18(%rdi), %rdi
movq %rdx, %rsi
callq 0xeec17
movq %rax, %r15
leaq 0xaf07a(%rip), %rsi     # 0x12939e
movq %r14, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xe8617
testq %r15, %r15
je 0x7a33a
movb $0x1, 0x3c(%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: on_multipalette_enabled
static void on_multipalette_enabled(deark *c, lctx *d)
{
	if(!d->opt_allowsham) {
		d->errflag = 1;
	}
	if(d->multipalette_warned) return;
	if(d->opt_allowsham) {
		de_warn(c, "This is a multi-palette image, which is not correctly supported.");
	}
	else {
		de_err(c, "Multi-palette ILBM images are not supported. "
			"(\"-opt ilbm:allowspecial\" to decode anyway)");
	}
}

// Assembly:
cmpb $0x0, 0x2e(%rsi)
je 0x7a35a
cmpb $0x0, 0x47(%rsi)
jne 0x7a367
leaq 0xaf061(%rip), %rsi     # 0x1293b4
xorl %eax, %eax
jmp 0xe8faa
movl $0x1, 0x1c(%rsi)
cmpb $0x0, 0x47(%rsi)
je 0x7a368
retq
leaq 0xaf086(%rip), %rsi     # 0x1293f5
xorl %eax, %eax
jmp 0xe9295
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: do_ansq
static void do_ansq(deark *c, lctx *d, i64 pos1, i64 len)
{
	i64 num_items;
	i64 i;

	// TODO: Figure out how critical this ANSQ info is.
	// If deltas are supposed to be applied out of sequence, we could at least
	// emit a warning.

	num_items = len / 4;
	de_dbg(c, "number of frames in sequence: %d", (int)num_items);
	if(c->debug_level<2) return;
	de_dbg_indent(c, 1);
	for(i=0; i<num_items && i<2000; i++) {
		i64 frnum, dur;

		frnum = de_getu16be(pos1+i*4);
		dur = de_getu16be(pos1+i*4+2);
		de_dbg2(c, "item[%d]: frame=%d, dur=%d", (int)i, (int)frnum, (int)dur);
	}
	de_dbg_indent(c, -1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x3(%rdx), %r15
testq %rdx, %rdx
cmovnsq %rdx, %r15
sarq $0x2, %r15
leaq 0xaf0ae(%rip), %rsi     # 0x12944e
movl %r15d, %edx
xorl %eax, %eax
callq 0xe8617
cmpl $0x2, (%rbx)
jge 0x7a3be
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
cmpq $0x4, %r12
jl 0x7a42a
decq %r15
movl $0x7cf, %eax            # imm = 0x7CF
cmpq %rax, %r15
cmovaeq %rax, %r15
incq %r15
leaq 0xaf085(%rip), %r12     # 0x12946f
xorl %r13d, %r13d
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xeeb67
movq %rax, %rbp
movq 0x18(%rbx), %rdi
leaq 0x2(%r14), %rsi
callq 0xeeb67
movq %rbx, %rdi
movq %r12, %rsi
movl %r13d, %edx
movl %ebp, %ecx
movl %eax, %r8d
xorl %eax, %eax
callq 0xe87e4
incq %r13
addq $0x4, %r14
cmpq %r13, %r15
jne 0x7a3ed
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe8a15
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: convert_abit
static int convert_abit(deark *c, lctx *d, struct imgbody_info *ibi,
	i64 pos, i64 len, dbuf *frame_buffer)
{
	i64 plane, j;
	i64 planespan;

	planespan = ibi->height * ibi->bytes_per_row_per_plane;

	for(plane=0; plane<ibi->planes_total; plane++) {
		for(j=0; j<ibi->height; j++) {
			dbuf_copy_at(c->infile, pos + plane*planespan + j*ibi->bytes_per_row_per_plane,
				ibi->bytes_per_row_per_plane, frame_buffer,
				j*ibi->frame_buffer_rowspan + plane*ibi->bytes_per_row_per_plane);
		}
	}
	return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movq %rdx, 0x10(%rsp)
movq 0x18(%rsi), %rcx
testq %rcx, %rcx
jle 0x7b018
movq %rsi, %r15
movq %rdi, %r12
movq 0x8(%rsi), %rax
movq 0x40(%rsi), %rdx
imulq %rax, %rdx
movq %rdx, 0x8(%rsp)
xorl %ebp, %ebp
testq %rax, %rax
jle 0x7b010
movq 0x8(%rsp), %r13
imulq %rbp, %r13
addq 0x10(%rsp), %r13
xorl %r14d, %r14d
movq 0x18(%r12), %rdi
movq 0x40(%r15), %rdx
movq %rdx, %rsi
imulq %r14, %rsi
addq %r13, %rsi
movq 0x48(%r15), %rax
imulq %r14, %rax
movq %rdx, %r8
imulq %rbp, %r8
addq %rax, %r8
movq %rbx, %rcx
callq 0xef82b
incq %r14
movq 0x8(%r15), %rax
cmpq %rax, %r14
jl 0x7afd3
movq 0x18(%r15), %rcx
incq %rbp
cmpq %rcx, %rbp
jl 0x7afbd
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: decompress_ilbm_packbits
static int decompress_ilbm_packbits(deark *c, dbuf *inf, i64 pos, i64 len,
	dbuf *unc_pixels, i64 expected_len, UI nbytes_per_unit)
{
	int retval = 0;
	struct de_dfilter_in_params dcmpri;
	struct de_dfilter_out_params dcmpro;
	struct de_dfilter_results dres;
	struct de_packbits_params pbparams;

	de_zeromem(&pbparams, sizeof(struct de_packbits_params));
	pbparams.nbytes_per_unit = nbytes_per_unit;
	de_dfilter_init_objects(c, &dcmpri, &dcmpro, &dres);
	dcmpri.f = inf;
	dcmpri.pos = pos;
	dcmpri.len = len;
	dcmpro.f = unc_pixels;
	dcmpro.len_known = 1;
	dcmpro.expected_len = expected_len;

	fmtutil_decompress_packbits_ex(c, &dcmpri, &dcmpro, &dres, &pbparams);
	dbuf_flush(dcmpro.f);
	if(dres.errcode) {
		de_err(c, "Decompression failed: %s", dres.errmsg);
		goto done;
	}
	de_dbg(c, "decompressed %"I64_FMT" to %"I64_FMT" bytes", len, unc_pixels->len);
	retval = 1;
done:
	return retval;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %r9, 0x18(%rsp)
movq %r8, 0x10(%rsp)
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %rbp
movq %rdi, %rbx
movl 0xf0(%rsp), %eax
leaq 0xc(%rsp), %rcx
movl %eax, (%rcx)
leaq 0x98(%rsp), %r14
leaq 0x80(%rsp), %r15
leaq 0x20(%rsp), %rcx
movq %r14, %rsi
movq %r15, %rdx
callq 0xfa1dc
movq %rbp, (%r14)
movq %r13, 0x8(%r14)
movq %r12, %r13
movq 0x10(%rsp), %r12
movq %r13, 0x10(%r14)
movq %r12, (%r15)
movb $0x1, 0x8(%r15)
movq 0x18(%rsp), %rax
movq %rax, 0x10(%r15)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
leaq 0x20(%rsp), %rcx
leaq 0xc(%rsp), %r8
callq 0xfa801
movq (%r15), %rdi
callq 0xf08ba
leaq 0x20(%rsp), %rax
cmpl $0x0, (%rax)
je 0x7b0e4
leaq 0x30(%rsp), %rdx
leaq 0x9914b(%rip), %rsi     # 0x114221
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9295
jmp 0x7b102
movq 0x18(%r12), %rcx
leaq 0xa645f(%rip), %rsi     # 0x12154f
movq %rbx, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0xe8617
movl $0x1, %ebp
movl %ebp, %eax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: decompress_method2
static int decompress_method2(deark *c, lctx *d, struct imgbody_info *ibi,
	i64 pos, i64 len, dbuf *unc_pixels, i64 expected_len)
{
	struct vdat_ctx vdctx;
	struct de_iffctx *ictx_vdat = NULL;

	// For sanity, we'll use a separate IFF decoder for the contents of this BODY chunk.
	de_zeromem(&vdctx, sizeof(struct vdat_ctx));
	vdctx.d = d;
	vdctx.ibi = ibi;
	vdctx.unc_pixels = unc_pixels;

	ictx_vdat = fmtutil_create_iff_decoder(c);
	ictx_vdat->userdata = (void*)&vdctx;
	ictx_vdat->handle_chunk_fn = my_vdat_chunk_handler;
	ictx_vdat->f = c->infile;
	fmtutil_read_iff_format(ictx_vdat, pos, len);

	fmtutil_destroy_iff_decoder(ictx_vdat);
	return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %r8, %rbx
movq %rcx, %r14
movq %rdi, %r15
xorps %xmm0, %xmm0
movq %rsp, %r13
movups %xmm0, 0x18(%r13)
movq $0x0, 0x28(%r13)
movq %rsi, (%r13)
movq %rdx, 0x8(%r13)
movq %r9, 0x10(%r13)
callq 0x1075c0
movq %rax, %r12
movq %r13, 0x10(%rax)
leaq 0x762(%rip), %rax       # 0x7b8c0
movq %rax, 0x20(%r12)
movq 0x18(%r15), %rax
movq %rax, 0x18(%r12)
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x1075e4
movq %r12, %rdi
callq 0x1075d3
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: my_vdat_chunk_handler
static int my_vdat_chunk_handler(struct de_iffctx *ictx)
{
	deark *c = ictx->c;
	struct vdat_ctx *vdctx = (struct vdat_ctx*)ictx->userdata;

	if(ictx->chunkctx->chunk4cc.id != CODE_VDAT) {
		goto done;
	}
	ictx->handled = 1;

	if(vdctx->vdat_chunk_count >= vdctx->ibi->planes_total) goto done;
	do_vdat_chunk(c, vdctx, ictx->chunkctx->dpos, ictx->chunkctx->dlen);

done:
	if(ictx->chunkctx->chunk4cc.id == CODE_VDAT) {
		vdctx->vdat_chunk_count++;
	}
	return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq 0x128(%rdi), %rax
cmpl $0x56444154, 0x4(%rax)  # imm = 0x56444154
jne 0x7baf4
movq %rdi, %rbx
movq (%rdi), %r15
movq 0x10(%rdi), %r14
movl $0x1, 0x130(%rdi)
movq 0x8(%r14), %rcx
movq 0x18(%r14), %rdx
cmpq 0x18(%rcx), %rdx
jge 0x7baf0
movq 0x40(%rax), %rsi
movq 0x48(%rax), %rbp
addq %rsi, %rbp
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%r14)
movq 0x18(%r15), %rdi
movq %rsi, 0x8(%rsp)
callq 0xeeb67
movq %rax, %r13
leaq -0x2(%rax), %r12
leaq 0xad646(%rip), %rsi     # 0x128f7d
movq $0x0, 0x10(%rsp)
movq %r15, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0xe8617
cmpq $0x3, %r13
jl 0x7bad3
movq %rbp, 0x20(%rsp)
movq 0x8(%rsp), %rbp
leaq 0x2(%rbp), %rax
movq %rax, 0x28(%rsp)
movl $0x1, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0xe96f7
movq 0x18(%r15), %rdi
movq %rax, 0x10(%rsp)
movq %rax, %rsi
movq 0x28(%rsp), %rdx
movq %r12, %rcx
callq 0xee8d4
addq %rbp, %r13
cmpq 0x20(%rsp), %r13
jge 0x7bad3
movq %r12, %rax
movq %rbx, 0x8(%rsp)
xorl %ebx, %ebx
leaq 0x1e(%rsp), %r12
movq %rax, 0x30(%rsp)
movq 0x10(%rsp), %rax
movzbl (%rax,%rbx), %ebp
cmpl $0x1, %ebp
je 0x7ba14
testl %ebp, %ebp
jne 0x7ba53
movq 0x18(%r15), %rdi
movq %r13, %rsi
callq 0xeeb67
addq $0x2, %r13
testq %rax, %rax
jle 0x7bab6
movq %rax, %rbp
movq 0x18(%r15), %rdi
movl $0x2, %ecx
movq %r12, %rsi
movq %r13, %rdx
callq 0xee8d4
movq %r14, %rdi
movq %r12, %rsi
callq 0x7bb08
addq $0x2, %r13
decq %rbp
jne 0x7b9e7
jmp 0x7bab6
movq 0x18(%r15), %rdi
movq %r13, %rsi
callq 0xeeb67
movq %rax, %rbp
leaq 0x2(%r13), %rdx
movq 0x18(%r15), %rdi
movl $0x2, %ecx
movq %r12, %rsi
callq 0xee8d4
addq $0x4, %r13
testq %rbp, %rbp
jle 0x7bab6
movq %r14, %rdi
movq %r12, %rsi
callq 0x7bb08
decq %rbp
jne 0x7ba41
jmp 0x7bab6
testb %bpl, %bpl
js 0x7ba82
movq 0x18(%r15), %rdi
movl $0x2, %ecx
movq %r12, %rsi
movq %r13, %rdx
callq 0xee8d4
movq %r14, %rdi
movq %r12, %rsi
callq 0x7bb08
decq %rbp
jne 0x7ba6c
addq $0x2, %r13
jmp 0x7bab6
andb $0x7f, %bpl
movb $-0x80, %al
subb %bpl, %al
movzbl %al, %ebp
movq 0x18(%r15), %rdi
movl $0x2, %ecx
movq %r12, %rsi
movq %r13, %rdx
callq 0xee8d4
addq $0x2, %r13
movq %r14, %rdi
movq %r12, %rsi
callq 0x7bb08
decq %rbp
jne 0x7ba8e
incq %rbx
movq 0x30(%rsp), %rax
cmpq %rax, %rbx
jge 0x7bace
cmpq 0x20(%rsp), %r13
jl 0x7b9b5
movq 0x8(%rsp), %rbx
movq %r15, %rdi
movq 0x10(%rsp), %rsi
callq 0xe8be2
movq 0x128(%rbx), %rax
cmpl $0x56444154, 0x4(%rax)  # imm = 0x56444154
jne 0x7baf4
incq 0x18(%r14)
movl $0x1, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: vdat_write_element
static void vdat_write_element(deark *c, struct vdat_ctx *vdctx, const u8 *elembuf)
{
	i64 dstpos;

	dstpos = vdctx->ibi->bytes_per_row_per_plane * vdctx->vdat_chunk_count;
	dstpos += 2*vdctx->cur_col;
	dstpos += vdctx->ypos * vdctx->ibi->frame_buffer_rowspan;

	dbuf_write_at(vdctx->unc_pixels, dstpos, elembuf, 2);
	vdctx->ypos++;
	if(vdctx->ypos >= vdctx->ibi->height) {
		vdctx->ypos = 0;
		vdctx->cur_col++;
	}
}

// Assembly:
pushq %rbx
movq %rsi, %rdx
movq %rdi, %rbx
movq 0x18(%rdi), %rax
movq 0x8(%rdi), %rcx
movq 0x10(%rdi), %rdi
imulq 0x40(%rcx), %rax
movq 0x20(%rbx), %rsi
leaq (%rax,%rsi,2), %rax
movq 0x48(%rcx), %rsi
imulq 0x28(%rbx), %rsi
addq %rax, %rsi
movl $0x2, %ecx
callq 0xf0c11
movq 0x8(%rbx), %rax
movq 0x28(%rbx), %rcx
incq %rcx
movq %rcx, 0x28(%rbx)
cmpq 0x8(%rax), %rcx
jl 0x7bb5f
movq $0x0, 0x28(%rbx)
incq 0x20(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: decompress_delta_op5
static void decompress_delta_op5(deark *c, lctx *d, struct imgbody_info *ibi,
	struct frame_ctx *frctx, i64 pos1, i64 len)
{
	i64 planedata_offs[16];
	i64 pos = pos1;
	int i;
	int saved_indent_level;
	u8 delta4_5_xor_mode = 0;

	de_dbg_indent_save(c, &saved_indent_level);
	if(!frctx->frame_buffer) goto done;

	de_dbg(c, "[delta5 data]");

	// Note that we ignore the 0x8 bit ("RLC - run length coded").
	// I don't know what this option is for. *All* ANIM4/5 frames use run length
	// coding, but they almost never have have this bit set.
	// The rare files that do set this bit don't seem to be any different from
	// those that don't.
	if((frctx->bits & 0xfffffff5U) != 0) {
		de_err(c, "Unsupported ANHD options");
		d->errflag = 1;
		goto done;
	}

	if(frctx->bits & 0x2) {
		delta4_5_xor_mode = 1;
	}

	for(i=0; i<16; i++) {
		if(d->errflag) goto done;
		planedata_offs[i] = de_getu32be_p(&pos);
		if(i<ibi->planes_total) {
			de_dbg2(c, "plane[%d] offs: %"I64_FMT, i, planedata_offs[i]);
			if(planedata_offs[i]>0) {
				decompress_plane_vdelta(c, d, ibi, frctx, i, c->infile,
					pos1+planedata_offs[i], 0, pos1+len, 1, 1,
					0, delta4_5_xor_mode);
			}
		}
	}

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 %r9, 0x10(%rsp)
movq %rcx, %r13
movq %rdx, %rbp
movq %rsi, %r14
movq %rdi, %rbx
movq %r8, 0x8(%rsp)
movq %r8, 0x20(%rsp)
leaq 0x4(%rsp), %rsi
callq 0xe8a1c
cmpq $0x0, 0x20(%r13)
je 0x7bf55
leaq 0xad288(%rip), %rsi     # 0x129114
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movl 0x18(%r13), %eax
testl $0xfffffff5, %eax       # imm = 0xFFFFFFF5
je 0x7bebf
leaq 0xad27a(%rip), %rsi     # 0x129122
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9295
movl $0x1, 0x1c(%r14)
jmp 0x7bf55
shrb %al
andb $0x1, %al
movq 0x8(%rsp), %rcx
addq %rcx, 0x10(%rsp)
movzbl %al, %eax
movq %rax, 0x18(%rsp)
xorl %r15d, %r15d
cmpl $0x0, 0x1c(%r14)
jne 0x7bf55
movq 0x18(%rbx), %rdi
leaq 0x20(%rsp), %rsi
callq 0xeed31
cmpq %r15, 0x18(%rbp)
jle 0x7bf4c
movq %rax, %r12
movq %rbx, %rdi
leaq 0xad1e0(%rip), %rsi     # 0x1290e0
movl %r15d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0xe87e4
testq %r12, %r12
jle 0x7bf4c
movq 0x18(%rbx), %r9
addq 0x8(%rsp), %r12
subq $0x8, %rsp
movq %rbx, %rdi
movq %r14, %rsi
movq %rbp, %rdx
movq %r13, %rcx
movq %r15, %r8
pushq 0x20(%rsp)
pushq $0x0
movl $0x1, %eax
pushq %rax
pushq %rax
pushq 0x38(%rsp)
pushq $0x0
pushq %r12
callq 0x7c75f
addq $0x40, %rsp
incq %r15
cmpq $0x10, %r15
jne 0x7bed8
movl 0x4(%rsp), %esi
movq %rbx, %rdi
callq 0xe8a25
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: decompress_delta_op8
static void decompress_delta_op8(deark *c, lctx *d, struct imgbody_info *ibi,
	struct frame_ctx *frctx, i64 pos1, i64 len)
{
	i64 planedata_offs[16];
	i64 pos = pos1;
	i64 elem_size;
	int i;
	int saved_indent_level;

	de_dbg_indent_save(c, &saved_indent_level);
	if(!frctx->frame_buffer) goto done;

	de_dbg(c, "[delta8 data]");

	if(frctx->bits & 0xfffffffeU) {
		de_err(c, "Unsupported ANHD options");
		d->errflag = 1;
		goto done;
	}
	if(frctx->bits & 0x00000001) {
		elem_size = 4;
	}
	else {
		elem_size = 2;
	}

	for(i=0; i<16; i++) {
		if(d->errflag) goto done;
		planedata_offs[i] = de_getu32be_p(&pos);
		if(i<ibi->planes_total) {
			de_dbg2(c, "plane[%d] offs: %"I64_FMT, i, planedata_offs[i]);
			if(planedata_offs[i]>0) {
				decompress_plane_vdelta(c, d, ibi, frctx, i, c->infile,
					pos1+planedata_offs[i], 0, pos1+len, elem_size, elem_size, 0, 0);
			}
		}
	}

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 %r9, 0x10(%rsp)
movq %rcx, %r15
movq %rdx, %rbp
movq %rsi, %r14
movq %rdi, %rbx
movq %r8, 0x8(%rsp)
movq %r8, 0x20(%rsp)
leaq 0x4(%rsp), %rsi
callq 0xe8a1c
movq %r15, 0x18(%rsp)
cmpq $0x0, 0x20(%r15)
je 0x7c257
leaq 0xad070(%rip), %rsi     # 0x1291f7
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rsp), %rax
movl 0x18(%rax), %eax
cmpl $0x2, %eax
jae 0x7c23e
xorl %ecx, %ecx
testl %eax, %eax
setne %cl
leaq 0x2(,%rcx,2), %r13
movq 0x8(%rsp), %rax
addq %rax, 0x10(%rsp)
xorl %r15d, %r15d
cmpl $0x0, 0x1c(%r14)
jne 0x7c257
movq 0x18(%rbx), %rdi
leaq 0x20(%rsp), %rsi
callq 0xeed31
cmpq %r15, 0x18(%rbp)
jle 0x7c233
movq %rax, %r12
movq %rbx, %rdi
leaq 0xacef6(%rip), %rsi     # 0x1290e0
movl %r15d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0xe87e4
testq %r12, %r12
jle 0x7c233
movq 0x18(%rbx), %r9
addq 0x8(%rsp), %r12
subq $0x8, %rsp
movq %rbx, %rdi
movq %r14, %rsi
movq %rbp, %rdx
movq 0x20(%rsp), %rcx
movq %r15, %r8
xorl %eax, %eax
pushq %rax
pushq %rax
pushq %r13
pushq %r13
pushq 0x38(%rsp)
pushq $0x0
pushq %r12
callq 0x7c75f
addq $0x40, %rsp
incq %r15
cmpq $0x10, %r15
jne 0x7c1be
jmp 0x7c257
leaq 0xacedd(%rip), %rsi     # 0x129122
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9295
movl $0x1, 0x1c(%r14)
movl 0x4(%rsp), %esi
movq %rbx, %rdi
callq 0xe8a25
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq