// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/ilbm.c
// Function: my_deep_chunk_handler
static int my_deep_chunk_handler(struct de_iffctx *ictx)
{
	deark *c = ictx->c;
	struct deep_ctx *d = (struct deep_ctx*)ictx->userdata;

	switch(ictx->chunkctx->chunk4cc.id) {
	case CODE_FORM:
		ictx->is_std_container = 1;
		goto done;
	}

	if(ictx->level != 1) goto done;

	switch(ictx->chunkctx->chunk4cc.id) {
	case CODE_DGBL:
		do_deep_DGBL(c, d, ictx);
		ictx->handled = 1;
		break;
	case CODE_DLOC:
		do_deep_DLOC(c, d, ictx);
		ictx->handled = 1;
		break;
	case CODE_DPEL:
		do_deep_DPEL(c, d, ictx);
		ictx->handled = 1;
		break;
	case CODE_DBOD:
		do_deep_DBOD(c, d, ictx);
		d->DBOD_count++;
		ictx->handled = 1;
		break;
	case CODE_TVDC:
		d->found_TVDC = 1;
		dbuf_read(ictx->f, d->tvdc_data, ictx->chunkctx->dpos, sizeof(d->tvdc_data));
		// Don't set ictx->handled, since we don't emit dbg info.
		break;
	case CODE_MPIC:
		do_deep_mpic(c, d, ictx->f, ictx->chunkctx->dpos, ictx->chunkctx->dlen);
		ictx->handled = 1;
		break;
	case CODE_XS24:
		do_xs24(c, ictx->f, ictx->chunkctx->dpos, ictx->chunkctx->dlen);
		ictx->handled = 1;
		break;
	}

done:
	return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %r15
movq 0x128(%rdi), %rax
movl 0x4(%rax), %ecx
cmpl $0x464f524d, %ecx       # imm = 0x464F524D
jne 0x7d024
movl $0x1, 0x134(%r15)
jmp 0x7d8a7
cmpl $0x1, 0x64(%r15)
jne 0x7d8a7
movq (%r15), %r12
movq 0x10(%r15), %rbp
cmpl $0x4450454b, %ecx       # imm = 0x4450454B
movq %rbp, 0x18(%rsp)
jle 0x7d11d
cmpl $0x54564442, %ecx       # imm = 0x54564442
jg 0x7d1b7
cmpl $0x4450454c, %ecx       # imm = 0x4450454C
je 0x7d253
cmpl $0x4d504943, %ecx       # imm = 0x4D504943
jne 0x7d8a7
movq %r15, 0x30(%rsp)
movq %r12, %rbp
movq 0x18(%r15), %r12
movq 0x40(%rax), %rcx
movq 0x48(%rax), %rax
movq %rax, 0x38(%rsp)
leaq 0x40(%rsp), %r13
movq %rcx, 0x20(%rsp)
movq %rcx, (%r13)
movq 0x18(%rbp), %rdi
movq %r13, %rsi
callq 0xeeb91
movq %rax, %r14
movq 0x18(%rbp), %rdi
movq %r13, %rsi
callq 0xeeb91
movq %rax, %rbx
leaq 0xac7a0(%rip), %rsi     # 0x129857
movq %rbp, %rdi
movl %r14d, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0xe8617
movq %rbp, %r15
movq 0x18(%rbp), %rdi
movq %r13, %rsi
callq 0xeed31
cmpl $0x40002, %eax          # imm = 0x40002
jne 0x7d0ff
movq %r14, %rax
imulq %rbx, %rax
shlq $0x2, %rax
addq 0x40(%rsp), %rax
movq 0x38(%rsp), %rcx
addq 0x20(%rsp), %rcx
cmpq %rcx, %rax
jle 0x7d711
leaq 0xac77c(%rip), %rsi     # 0x129882
xorl %r13d, %r13d
movq %r15, %rdi
xorl %eax, %eax
callq 0xe8faa
movq 0x30(%rsp), %rbx
jmp 0x7d7f8
cmpl $0x44424f44, %ecx       # imm = 0x44424F44
je 0x7d1e8
cmpl $0x4447424c, %ecx       # imm = 0x4447424C
je 0x7d2c9
cmpl $0x444c4f43, %ecx       # imm = 0x444C4F43
jne 0x7d8a7
movq 0x40(%rax), %rax
leaq 0x40(%rsp), %rbx
movq %rax, (%rbx)
movb $0x1, 0x9(%rbp)
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xeeb91
movq %rax, 0x20(%rbp)
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xeeb91
movq %rax, 0x28(%rbp)
movq 0x20(%rbp), %rsi
movq %r12, %rdi
movq %rax, %rdx
callq 0xe8f88
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xeec86
movq %rax, %r14
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xeec86
leaq 0xac630(%rip), %rsi     # 0x1297d2
movq %r12, %rdi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xe8617
jmp 0x7d89c
cmpl $0x54564443, %ecx       # imm = 0x54564443
je 0x7d2a4
cmpl $0x58533234, %ecx       # imm = 0x58533234
jne 0x7d8a7
movq 0x18(%r15), %rsi
movq 0x40(%rax), %rdx
movq 0x48(%rax), %rcx
movq %r12, %rdi
callq 0x7a01b
jmp 0x7d89c
movl (%rbp), %edx
cmpl $0x5, %edx
ja 0x7d6fb
movl $0x23, %eax
btl %edx, %eax
jae 0x7d6fb
xorl %eax, %eax
movb %al, 0x40(%rsp)
movb %al, 0x14(%rsp)
movb %al, 0x13(%rsp)
movb %al, 0x12(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0xa4(%rbp)
movups %xmm0, 0x94(%rbp)
movb %al, 0x50(%rbp)
movb %al, 0x52(%rbp)
movq 0x48(%rbp), %rax
leaq -0x9(%rax), %rcx
cmpq $-0x6, %rcx
jae 0x7d413
leaq 0x9a4d6(%rip), %rsi     # 0x11771a
movq %r12, %rdi
xorl %eax, %eax
callq 0xe9295
jmp 0x7d899
movq 0x40(%rax), %r13
leaq 0x40(%rsp), %rsi
movq %r13, (%rsi)
addq 0x48(%rax), %r13
movb $0x1, 0xb(%rbp)
movq 0x18(%r15), %rdi
callq 0xeed31
movl %eax, %ecx
movq %rcx, 0x48(%rbp)
leaq 0xac568(%rip), %rsi     # 0x1297e5
movq %r12, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x48(%rbp), %rax
cmpq $0x8, %rax
jle 0x7d381
movq $0x0, 0x48(%rbp)
jmp 0x7d89c
movb $0x1, 0xa(%rbp)
movq 0x18(%r15), %rdi
addq $0xb4, %rbp
movq 0x40(%rax), %rdx
movl $0x20, %ecx
movq %rbp, %rsi
callq 0xee8d4
jmp 0x7d8a7
movq 0x40(%rax), %rax
leaq 0x40(%rsp), %rbx
movq %rax, (%rbx)
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xeeb91
movq %rax, 0x10(%rbp)
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xeeb91
movq %rax, 0x18(%rbp)
movq 0x10(%rbp), %rdx
leaq 0xac4bb(%rip), %rsi     # 0x1297bb
movq %r12, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0xe8617
cmpb $0x0, 0x9(%rbp)
jne 0x7d31b
movups 0x10(%rbp), %xmm0
movups %xmm0, 0x20(%rbp)
movq 0x18(%r15), %rdi
leaq 0x40(%rsp), %rbx
movq %rbx, %rsi
callq 0xeeb91
movl %eax, (%rbp)
leaq 0x9bdf3(%rip), %rsi     # 0x119129
movq %r12, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xeeb4b
movzbl %al, %eax
movq %rax, 0x30(%rbp)
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xeeb4b
movzbl %al, %ecx
movq %rcx, 0x38(%rbp)
movl 0x30(%rbp), %edx
leaq 0xab8dd(%rip), %rsi     # 0x128c4f
movq %r12, %rdi
xorl %eax, %eax
callq 0xe8617
jmp 0x7d89c
movq %r12, 0x20(%rsp)
testq %rax, %rax
jle 0x7d89c
movl $0x1, %ebp
xorl %r12d, %r12d
movq 0x18(%rsp), %r14
movq 0x40(%rsp), %rax
addq $0x4, %rax
cmpq %r13, %rax
jg 0x7d89c
movq 0x18(%r15), %rdi
leaq 0x40(%rsp), %rsi
callq 0xeeb91
movl %eax, 0x74(%r14,%r12,4)
cmpl $0x11, %eax
je 0x7d3cb
cmpl $0x4, %eax
jne 0x7d3d0
movb $0x1, 0x51(%r14)
leal -0x1(%rbp), %ebx
movq 0x18(%r15), %rdi
leaq 0x40(%rsp), %rsi
callq 0xeeb91
movl %eax, 0x54(%r14,%r12,4)
movl 0x74(%r14,%r12,4), %ecx
movq 0x20(%rsp), %rdi
leaq 0xac3fc(%rip), %rsi     # 0x1297f3
movl %ebx, %edx
movl %eax, %r8d
xorl %eax, %eax
callq 0xe8617
movl %ebp, %r12d
incl %ebp
cmpq %r12, 0x48(%r14)
jg 0x7d39c
jmp 0x7d89c
xorl %ecx, %ecx
movb $0x1, %dl
leaq 0x2f(%rsp), %rsi
leaq 0x12(%rsp), %rdi
leaq 0xab668(%rip), %r8      # 0x128a90
leaq 0x40(%rsp), %r9
leaq 0x14(%rsp), %r10
leaq 0x13(%rsp), %r11
movl 0x74(%rbp,%rcx,4), %ebx
leal -0x1(%rbx), %r14d
cmpl $0x3, %r14d
ja 0x7d45e
movslq (%r8,%r14,4), %rbx
addq %r8, %rbx
jmpq *%rbx
movl $0x0, 0x94(%rbp,%rcx,4)
movq %r9, %rbx
jmp 0x7d4bc
cmpl $0x11, %ebx
jne 0x7d476
movl $0x3, 0x94(%rbp,%rcx,4)
movb %dl, 0x50(%rbp)
movb %dl, 0x52(%rbp)
jmp 0x7d4a9
movl $0x4, 0x94(%rbp,%rcx,4)
movq %rdi, %rbx
jmp 0x7d4bc
movl $0x2, 0x94(%rbp,%rcx,4)
movq %r11, %rbx
jmp 0x7d4bc
movl $0x3, 0x94(%rbp,%rcx,4)
movb $0x1, 0x50(%rbp)
movb $0x0, 0x52(%rbp)
movq %rsi, %rbx
jmp 0x7d4bc
movl $0x1, 0x94(%rbp,%rcx,4)
movq %r10, %rbx
movb $0x1, (%rbx)
incq %rcx
cmpq %rcx, %rax
jne 0x7d437
cmpb $0x0, 0x40(%rsp)
je 0x7d23d
cmpb $0x0, 0x14(%rsp)
je 0x7d23d
cmpb $0x0, 0x13(%rsp)
je 0x7d23d
cmpb $0x0, 0x12(%rsp)
je 0x7d504
leaq 0xac314(%rip), %rsi     # 0x12980e
movq %r12, %rdi
xorl %eax, %eax
callq 0xe8faa
movq 0x20(%rbp), %rsi
movq 0x28(%rbp), %rdx
movq %r12, %rdi
callq 0xf1db1
testl %eax, %eax
je 0x7d899
movq 0x28(%rbp), %rsi
imulq 0x20(%rbp), %rsi
imulq 0x48(%rbp), %rsi
movq %rsi, 0x40(%rbp)
cmpl $0x0, (%rbp)
movq 0x18(%r15), %r13
movq 0x128(%r15), %rax
movq 0x40(%rax), %r14
movq 0x48(%rax), %rbx
je 0x7d80f
movq %r12, 0x20(%rsp)
movq %r12, %rdi
movl $0x1, %edx
callq 0xf09c5
movq %rax, %r12
cmpl $0x5, (%rbp)
je 0x7d578
movq %r12, %rdi
callq 0xf0855
cmpl $0x5, (%rbp)
jne 0x7d83d
xorps %xmm0, %xmm0
movups %xmm0, 0x58(%rsp)
movq $0x0, 0x68(%rsp)
movq %r13, 0x40(%rsp)
movq %r14, 0x48(%rsp)
addq %r14, %rbx
movq %rbx, 0x50(%rsp)
movq %r12, %rdi
callq 0xf087d
cmpb $0x0, 0xa(%rbp)
je 0x7d825
leaq 0x40(%rsp), %rbx
movq %rbx, %rdi
movl $0x4, %esi
callq 0xf1bed
movl $0x1, %r14d
cmpb $0x0, 0x18(%rbx)
jne 0x7d86d
xorl %r14d, %r14d
movq $0x0, 0x70(%rsp)
xorl %ebp, %ebp
movq $0x0, 0x38(%rsp)
xorl %r13d, %r13d
movq %r15, 0x30(%rsp)
addl %eax, %eax
movq 0x18(%rsp), %rcx
movb 0xb5(%rcx,%rax), %cl
testb %cl, %cl
jne 0x7d615
movl %eax, %eax
movq 0x18(%rsp), %rdx
cmpb $0x0, 0xb4(%rdx,%rax)
je 0x7d6d3
addb %cl, %r14b
movl $0x1, %ebx
movl $0x1, %r15d
movzbl %r14b, %edx
movq %r12, %rdi
movq %rbp, %rsi
callq 0xf0e8b
movq 0x18(%rsp), %rax
addq 0x48(%rax), %rbp
incq %r13
movq 0x20(%rax), %rax
cmpq %rax, %r13
jge 0x7d653
leal 0x1(%r15), %ecx
cmpl %ebx, %r15d
movl %ecx, %r15d
jb 0x7d623
movq 0x30(%rsp), %r15
cmpq %rax, %r13
jl 0x7d6b4
leaq 0x40(%rsp), %rdi
callq 0xf1c84
movq 0x70(%rsp), %rcx
incq %rcx
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rbp
cmpq %rbp, %rcx
jl 0x7d696
movq 0x38(%rsp), %rdx
incq %rdx
movq %rdx, 0x38(%rsp)
cmpq 0x28(%rax), %rdx
jge 0x7d862
xorl %ecx, %ecx
imulq 0x38(%rsp), %rbp
movq 0x18(%rsp), %rax
imulq 0x20(%rax), %rbp
movq %rcx, 0x70(%rsp)
addq %rcx, %rbp
xorl %r13d, %r13d
xorl %r14d, %r14d
leaq 0x40(%rsp), %rdi
movl $0x4, %esi
callq 0xf1bed
cmpb $0x0, 0x58(%rsp)
je 0x7d5ee
jmp 0x7d862
leaq 0x40(%rsp), %rdi
movl $0x4, %esi
callq 0xf1bed
movq %rax, %rbx
incl %ebx
jne 0x7d61d
movq 0x18(%rsp), %rax
movq 0x20(%rax), %rax
jmp 0x7d658
leaq 0x9a4f9(%rip), %rsi     # 0x117bfb
movq %r12, %rdi
xorl %eax, %eax
callq 0xe9295
jmp 0x7d899
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0x4, %ecx
callq 0xf266a
movq %rax, %r13
movq 0x10(%rax), %rcx
testq %rcx, %rcx
jle 0x7d7a7
movq 0x40(%rsp), %r15
movq 0x8(%r13), %rax
xorl %ebp, %ebp
leaq 0x14(%rsp), %r14
testq %rax, %rax
jle 0x7d79f
xorl %ebx, %ebx
movl $0x4, %ecx
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0xee8d4
addq $0x4, %r15
movzbl 0x17(%rsp), %eax
shll $0x18, %eax
movzbl 0x14(%rsp), %ecx
shll $0x10, %ecx
orl %eax, %ecx
movzbl 0x15(%rsp), %eax
shll $0x8, %eax
orl %ecx, %eax
movzbl 0x16(%rsp), %ecx
orl %eax, %ecx
movq %r13, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0xf24bf
incq %rbx
movq 0x8(%r13), %rax
cmpq %rax, %rbx
jl 0x7d747
movq 0x10(%r13), %rcx
incq %rbp
cmpq %rcx, %rbp
jl 0x7d740
movq 0x18(%rsp), %rcx
movb 0x8(%rcx), %al
testb %al, %al
je 0x7d7d7
cmpb $0x0, 0xb(%rcx)
je 0x7d7bf
cmpb $0x0, 0x51(%rcx)
je 0x7d7d7
cmpb $0x2, %al
movq 0x30(%rsp), %rbx
jne 0x7d7e4
movq %r13, %rdi
movl $0x1, %esi
callq 0xf38c4
jmp 0x7d7e4
movq %r13, %rdi
callq 0xf383e
movq 0x30(%rsp), %rbx
leaq 0xad92b(%rip), %rsi     # 0x12b116
movq %r13, %rdi
movl $0x3, %edx
callq 0xf22dc
movq %r13, %rdi
callq 0xf228d
movl $0x1, 0x130(%rbx)
jmp 0x7d8a7
movq %r12, %rdi
movq %rbp, %rsi
movq %r13, %rdx
movq %r14, %rcx
movq %rbx, %r8
callq 0x7d8bb
jmp 0x7d899
leaq 0xac018(%rip), %rsi     # 0x129844
xorl %r14d, %r14d
movq 0x20(%rsp), %rdi
xorl %eax, %eax
callq 0xe9295
jmp 0x7d86d
movq 0x40(%rbp), %r9
movl 0x48(%rbp), %eax
movl %eax, (%rsp)
movq 0x20(%rsp), %rdi
movq %r13, %rsi
movq %r14, %rdx
movq %rbx, %rcx
movq %r12, %r8
callq 0x7b027
movl %eax, %r14d
jmp 0x7d86d
movq 0x18(%rsp), %rbp
movl $0x1, %r14d
movq %r12, %rdi
callq 0xf08ba
testl %r14d, %r14d
je 0x7d891
movq 0x18(%r12), %r8
movq 0x20(%rsp), %rdi
movq %rbp, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x7d8bb
movq %r12, %rdi
callq 0xf052b
incl 0x4(%rbp)
movl $0x1, 0x130(%r15)
movl $0x1, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq