// File: /workspace/github_c_makefile_star2_O0/jsummers[P]deark/modules/ilbm.c
// Function: print_summary
static void print_summary(deark *c, lctx *d)
{
	de_ucstring *s = NULL;
	size_t k;

	if(c->debug_level<1) goto done;
	if(!d->found_bmhd) goto done;

	s = ucstring_create(c);

	summary_append(s,"%s", d->formtype_sanitized_sz);
	summary_append(s, "planes=%d", (int)d->planes_raw);
	if(d->masking_code!=0) summary_append(s, "masking=%d", (int)d->masking_code);
	summary_append(s, "cmpr=%d", (int)d->compression);
	for(k=0; k<256; k++) {
		if(d->delta_ops_used[k]) {
			summary_append(s, "delta%u", (UI)k);
		}
	}
	if(d->uses_anim_long_data) summary_append(s, "long_data");
	if(d->uses_anim4_5_xor_mode) summary_append(s, "xor_mode");

	if(d->ham_flag) summary_append(s, "HAM");
	if(d->ehb_flag) summary_append(s, "EHB");
	if(d->is_sham) summary_append(s, "SHAM");
	if(d->is_pchg) summary_append(s, "PCHG");
	if(d->is_ctbl) summary_append(s, "CTBL");
	if(d->is_beam) summary_append(s, "BEAM");
	if(d->is_hame) summary_append(s, "HAM-E");
	if(d->is_dctv) summary_append(s, "DCTV");
	if(d->found_rast) summary_append(s, "RAST");
	if(d->uses_color_cycling) summary_append(s, "color-cycling");
	if(d->found_clut) summary_append(s, "CLUT");
	if(d->found_audio) summary_append(s, "audio");
	if(!d->found_cmap) summary_append(s, "no-CMAP");

	de_dbg(c, "summary:%s", ucstring_getpsz(s));

done:
	ucstring_destroy(s);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq $0x0, -0x18(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x1, (%rax)
jge 0xb03a6
jmp 0xb064f
movq -0x10(%rbp), %rax
cmpb $0x0, 0x32(%rax)
jne 0xb03b5
jmp 0xb064f
movq -0x8(%rbp), %rdi
callq 0x1711d0
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rdx
addq $0x8, %rdx
leaq 0xf075a(%rip), %rsi     # 0x1a0b2f
movb $0x0, %al
callq 0xb6200
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x60(%rax), %rax
movl %eax, %edx
leaq 0x104b4d(%rip), %rsi    # 0x1b4f3e
movb $0x0, %al
callq 0xb6200
movq -0x10(%rbp), %rax
movzbl 0x69(%rax), %eax
cmpl $0x0, %eax
je 0xb041f
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movzbl 0x69(%rax), %edx
leaq 0x104b30(%rip), %rsi    # 0x1b4f48
movb $0x0, %al
callq 0xb6200
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movzbl 0x68(%rax), %edx
leaq 0x104b21(%rip), %rsi    # 0x1b4f53
movb $0x0, %al
callq 0xb6200
movq $0x0, -0x20(%rbp)
cmpq $0x100, -0x20(%rbp)     # imm = 0x100
jae 0xb0485
movq -0x10(%rbp), %rax
movq -0x20(%rbp), %rcx
cmpb $0x0, 0x8d4(%rax,%rcx)
je 0xb0475
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rax
movl %eax, %edx
leaq 0x104aed(%rip), %rsi    # 0x1b4f5b
movb $0x0, %al
callq 0xb6200
jmp 0xb0477
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0xb0441
movq -0x10(%rbp), %rax
cmpb $0x0, 0x46(%rax)
je 0xb04a1
movq -0x18(%rbp), %rdi
leaq 0x104ac9(%rip), %rsi    # 0x1b4f63
movb $0x0, %al
callq 0xb6200
movq -0x10(%rbp), %rax
cmpb $0x0, 0x45(%rax)
je 0xb04bd
movq -0x18(%rbp), %rdi
leaq 0x104ab7(%rip), %rsi    # 0x1b4f6d
movb $0x0, %al
callq 0xb6200
movq -0x10(%rbp), %rax
cmpb $0x0, 0x38(%rax)
je 0xb04d9
movq -0x18(%rbp), %rdi
leaq 0x104aa9(%rip), %rsi    # 0x1b4f7b
movb $0x0, %al
callq 0xb6200
movq -0x10(%rbp), %rax
cmpb $0x0, 0x3b(%rax)
je 0xb04f5
movq -0x18(%rbp), %rdi
leaq 0x104a88(%rip), %rsi    # 0x1b4f76
movb $0x0, %al
callq 0xb6200
movq -0x10(%rbp), %rax
cmpb $0x0, 0x3e(%rax)
je 0xb0511
movq -0x18(%rbp), %rdi
leaq 0x104a70(%rip), %rsi    # 0x1b4f7a
movb $0x0, %al
callq 0xb6200
movq -0x10(%rbp), %rax
cmpb $0x0, 0x40(%rax)
je 0xb052d
movq -0x18(%rbp), %rdi
leaq 0x104a59(%rip), %rsi    # 0x1b4f7f
movb $0x0, %al
callq 0xb6200
movq -0x10(%rbp), %rax
cmpb $0x0, 0x3f(%rax)
je 0xb0549
movq -0x18(%rbp), %rdi
leaq 0x104a42(%rip), %rsi    # 0x1b4f84
movb $0x0, %al
callq 0xb6200
movq -0x10(%rbp), %rax
cmpb $0x0, 0x41(%rax)
je 0xb0565
movq -0x18(%rbp), %rdi
leaq 0x104a2b(%rip), %rsi    # 0x1b4f89
movb $0x0, %al
callq 0xb6200
movq -0x10(%rbp), %rax
cmpb $0x0, 0x49(%rax)
je 0xb0581
movq -0x18(%rbp), %rdi
leaq 0x104a14(%rip), %rsi    # 0x1b4f8e
movb $0x0, %al
callq 0xb6200
movq -0x10(%rbp), %rax
cmpb $0x0, 0x4a(%rax)
je 0xb059d
movq -0x18(%rbp), %rdi
leaq 0x1049fe(%rip), %rsi    # 0x1b4f94
movb $0x0, %al
callq 0xb6200
movq -0x10(%rbp), %rax
cmpb $0x0, 0x43(%rax)
je 0xb05b9
movq -0x18(%rbp), %rdi
leaq 0x104987(%rip), %rsi    # 0x1b4f39
movb $0x0, %al
callq 0xb6200
movq -0x10(%rbp), %rax
cmpb $0x0, 0x3c(%rax)
je 0xb05d5
movq -0x18(%rbp), %rdi
leaq 0x1049cb(%rip), %rsi    # 0x1b4f99
movb $0x0, %al
callq 0xb6200
movq -0x10(%rbp), %rax
cmpb $0x0, 0x42(%rax)
je 0xb05f1
movq -0x18(%rbp), %rdi
leaq 0x1049bd(%rip), %rsi    # 0x1b4fa7
movb $0x0, %al
callq 0xb6200
movq -0x10(%rbp), %rax
cmpb $0x0, 0x44(%rax)
je 0xb060d
movq -0x18(%rbp), %rdi
leaq 0x1081c0(%rip), %rsi    # 0x1b87c6
movb $0x0, %al
callq 0xb6200
movq -0x10(%rbp), %rax
cmpb $0x0, 0x33(%rax)
jne 0xb0629
movq -0x18(%rbp), %rdi
leaq 0x10498a(%rip), %rsi    # 0x1b4fac
movb $0x0, %al
callq 0xb6200
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
callq 0x172500
movq -0x28(%rbp), %rdi
movq %rax, %rdx
leaq 0x10496c(%rip), %rsi    # 0x1b4fb4
movb $0x0, %al
callq 0x15b0d0
movq -0x18(%rbp), %rdi
callq 0x171750
addq $0x30, %rsp
popq %rbp
retq
nop