// File: /workspace/github_c_makefile_star2_O1/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, %r13
movq 0x128(%rdi), %rax
movl 0x4(%rax), %ecx
cmpl $0x464f524d, %ecx       # imm = 0x464F524D
jne 0x7d63a
movl $0x1, 0x134(%r13)
jmp 0x7deb9
cmpl $0x1, 0x64(%r13)
jne 0x7deb9
movq (%r13), %rbp
movq 0x10(%r13), %rbx
cmpl $0x4450454b, %ecx       # imm = 0x4450454B
movq %rbx, 0x18(%rsp)
jle 0x7d726
cmpl $0x54564442, %ecx       # imm = 0x54564442
jg 0x7d7c4
cmpl $0x4450454c, %ecx       # imm = 0x4450454C
je 0x7d85b
cmpl $0x4d504943, %ecx       # imm = 0x4D504943
jne 0x7deb9
movq %r13, 0x28(%rsp)
movq 0x18(%r13), %r13
movq 0x40(%rax), %rcx
movq 0x48(%rax), %rax
movq %rax, 0x30(%rsp)
leaq 0x40(%rsp), %r15
movq %rcx, 0x38(%rsp)
movq %rcx, (%r15)
movq 0x18(%rbp), %rdi
movq %r15, %rsi
callq 0xef193
movq %rax, %r14
movq 0x18(%rbp), %rdi
movq %r15, %rsi
callq 0xef193
movq %rax, %rbx
leaq 0xabf5d(%rip), %rsi     # 0x129627
xorl %r12d, %r12d
movq %rbp, %rdi
movl %r14d, %edx
movl %ebx, %ecx
xorl %eax, %eax
callq 0xe9226
movq %rbp, 0x10(%rsp)
movq 0x18(%rbp), %rdi
movq %r15, %rsi
callq 0xef34e
movb $0x1, %cl
cmpl $0x40002, %eax          # imm = 0x40002
jne 0x7d71c
movq %r14, %rax
imulq %rbx, %rax
shlq $0x2, %rax
addq 0x40(%rsp), %rax
movq 0x30(%rsp), %rdx
addq 0x38(%rsp), %rdx
cmpq %rdx, %rax
jle 0x7dd14
xorl %r12d, %r12d
movq 0x28(%rsp), %rbx
jmp 0x7ddf9
cmpl $0x44424f44, %ecx       # imm = 0x44424F44
je 0x7d7f5
cmpl $0x4447424c, %ecx       # imm = 0x4447424C
je 0x7d8d4
cmpl $0x444c4f43, %ecx       # imm = 0x444C4F43
jne 0x7deb9
movq 0x40(%rax), %rax
movq %rbx, %r14
leaq 0x40(%rsp), %rbx
movq %rax, (%rbx)
movb $0x1, 0x9(%r14)
movq 0x18(%r13), %rdi
movq %rbx, %rsi
callq 0xef193
movq %rax, 0x20(%r14)
movq 0x18(%r13), %rdi
movq %rbx, %rsi
callq 0xef193
movq %rax, 0x28(%r14)
movq 0x20(%r14), %rsi
movq %rbp, %rdi
movq %rax, %rdx
callq 0xe9b05
movq 0x18(%r13), %rdi
movq %rbx, %rsi
callq 0xef295
movq %rax, %r14
movq 0x18(%r13), %rdi
movq %rbx, %rsi
callq 0xef295
leaq 0xabdf3(%rip), %rsi     # 0x1295a2
movq %rbp, %rdi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xe9226
jmp 0x7deae
cmpl $0x54564443, %ecx       # imm = 0x54564443
je 0x7d8af
cmpl $0x58533234, %ecx       # imm = 0x58533234
jne 0x7deb9
movq 0x18(%r13), %rsi
movq 0x40(%rax), %rdx
movq 0x48(%rax), %rcx
movq %rbp, %rdi
callq 0x7a42d
jmp 0x7deae
movl (%rbx), %edx
cmpl $0x5, %edx
ja 0x7dcfe
movl $0x23, %eax
btl %edx, %eax
jae 0x7dcfe
xorl %eax, %eax
movb %al, 0x44(%rsp)
movl $0x0, 0x40(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0xa4(%rbx)
movups %xmm0, 0x94(%rbx)
movb %al, 0x50(%rbx)
movb %al, 0x52(%rbx)
movq 0x48(%rbx), %rax
leaq -0x9(%rax), %rcx
cmpq $-0x6, %rcx
jae 0x7da3c
leaq 0x99e2e(%rip), %rsi     # 0x11767a
movq %rbp, %rdi
xorl %eax, %eax
callq 0xe9df7
jmp 0x7deab
movq 0x40(%rax), %r12
leaq 0x40(%rsp), %rsi
movq %r12, (%rsi)
addq 0x48(%rax), %r12
movb $0x1, 0xb(%rbx)
movq %r13, %r15
movq 0x18(%r13), %rdi
callq 0xef34e
movl %eax, %ecx
movq %rcx, 0x48(%rbx)
leaq 0xabd2d(%rip), %rsi     # 0x1295b5
movq %rbp, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x48(%rbx), %rax
cmpq $0x8, %rax
jle 0x7d99a
movq $0x0, 0x48(%rbx)
jmp 0x7da2c
movb $0x1, 0xa(%rbx)
movq 0x18(%r13), %rdi
addq $0xb4, %rbx
movq 0x40(%rax), %rdx
movl $0x20, %ecx
movq %rbx, %rsi
callq 0xeeee8
jmp 0x7deb9
movq 0x40(%rax), %rax
leaq 0x40(%rsp), %rbx
movq %rax, (%rbx)
movq 0x18(%r13), %rdi
movq %rbx, %rsi
callq 0xef193
movq 0x18(%rsp), %rcx
movq %rax, 0x10(%rcx)
movq 0x18(%r13), %rdi
movq %rbx, %rsi
movq 0x18(%rsp), %r14
callq 0xef193
movq %rax, 0x18(%r14)
movq 0x10(%r14), %rdx
leaq 0xabc76(%rip), %rsi     # 0x12958b
movq %rbp, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0xe9226
cmpb $0x0, 0x9(%r14)
jne 0x7d933
movups 0x10(%r14), %xmm0
movups %xmm0, 0x20(%r14)
movq 0x18(%r13), %rdi
leaq 0x40(%rsp), %rbx
movq %rbx, %rsi
callq 0xef193
movl %eax, (%r14)
leaq 0x9b6bb(%rip), %rsi     # 0x119009
movq %rbp, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r13), %rdi
movq %rbx, %rsi
callq 0xef14d
movzbl %al, %eax
movq %rax, 0x30(%r14)
movq 0x18(%r13), %rdi
movq %rbx, %rsi
callq 0xef14d
movzbl %al, %ecx
movq %rcx, 0x38(%r14)
movl 0x30(%r14), %edx
leaq 0xab094(%rip), %rsi     # 0x128a1f
movq %rbp, %rdi
xorl %eax, %eax
callq 0xe9226
jmp 0x7deae
movq %rbp, 0x10(%rsp)
testq %rax, %rax
jle 0x7da2c
movl $0x1, %r13d
leaq 0x40(%rsp), %r14
xorl %ebp, %ebp
movq 0x40(%rsp), %rax
addq $0x4, %rax
cmpq %r12, %rax
jg 0x7da2c
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xef193
movl %eax, 0x74(%rbx,%rbp,4)
cmpl $0x11, %eax
je 0x7d9dd
cmpl $0x4, %eax
jne 0x7d9e1
movb $0x1, 0x51(%rbx)
leal -0x1(%r13), %ebx
movq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0xef193
movq 0x18(%rsp), %rcx
movl %eax, 0x54(%rcx,%rbp,4)
movq 0x18(%rsp), %rcx
movl 0x74(%rcx,%rbp,4), %ecx
movq 0x10(%rsp), %rdi
leaq 0xabbb4(%rip), %rsi     # 0x1295c3
movl %ebx, %edx
movq 0x18(%rsp), %rbx
movl %eax, %r8d
xorl %eax, %eax
callq 0xe9226
movl %r13d, %ebp
incl %r13d
cmpq %rbp, 0x48(%rbx)
jg 0x7d9b5
movl $0x1, 0x130(%r15)
jmp 0x7deb9
testq %rax, %rax
je 0x7dad5
leaq 0x94(%rbx), %rcx
xorl %edx, %edx
movb $0x1, %sil
leaq 0xaae08(%rip), %rdi     # 0x128860
movl -0x20(%rcx,%rdx,4), %r8d
leal -0x1(%r8), %r9d
cmpl $0x3, %r9d
ja 0x7da7a
movslq (%rdi,%r9,4), %r8
addq %rdi, %r8
jmpq *%r8
movl $0x0, (%rcx,%rdx,4)
jmp 0x7dac3
cmpl $0x11, %r8d
jne 0x7da95
movl $0x3, 0x94(%rbx,%rdx,4)
movb %sil, 0x50(%rbx)
movb %sil, 0x52(%rbx)
jmp 0x7dac3
movl $0x4, (%rcx,%rdx,4)
jmp 0x7dac3
movl $0x2, (%rcx,%rdx,4)
jmp 0x7dac3
movl $0x3, 0x94(%rbx,%rdx,4)
movb $0x1, 0x50(%rbx)
movb $0x0, 0x52(%rbx)
jmp 0x7dac3
movl $0x1, (%rcx,%rdx,4)
movl (%rcx,%rdx,4), %r8d
movb $0x1, 0x40(%rsp,%r8)
incq %rdx
cmpq %rdx, %rax
jne 0x7da58
cmpb $0x0, 0x40(%rsp)
je 0x7d845
cmpb $0x0, 0x41(%rsp)
je 0x7d845
cmpb $0x0, 0x42(%rsp)
je 0x7d845
cmpb $0x0, 0x44(%rsp)
je 0x7db0e
leaq 0xabada(%rip), %rsi     # 0x1295de
movq %rbp, %rdi
xorl %eax, %eax
callq 0xe9b27
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
movq %rbp, %rdi
callq 0xf241d
testl %eax, %eax
je 0x7deab
movq 0x28(%rbx), %rsi
imulq 0x20(%rbx), %rsi
imulq 0x48(%rbx), %rsi
movq %rsi, 0x40(%rbx)
cmpl $0x0, (%rbx)
movq 0x18(%r13), %rdx
movq 0x128(%r13), %rax
movq 0x40(%rax), %r15
movq 0x48(%rax), %r14
je 0x7de27
movq %rdx, 0x10(%rsp)
movq %rbp, %rdi
movl $0x1, %edx
callq 0xf0faf
movq %rax, %r12
cmpl $0x5, (%rbx)
je 0x7db76
movq %r12, %rdi
callq 0xf0e3f
movq 0x18(%rsp), %rbx
cmpl $0x5, (%rbx)
movq 0x10(%rsp), %rsi
jne 0x7de3a
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x60(%rsp)
movq %rsi, 0x40(%rsp)
movq %r15, 0x48(%rsp)
addq %r15, %r14
movq %r14, 0x50(%rsp)
movb $0x0, 0x60(%rsp)
movq %r12, %rdi
callq 0xf0e67
cmpb $0x0, 0xa(%rbx)
je 0x7de6a
movq %rbp, 0x10(%rsp)
movq %r13, 0x28(%rsp)
xorl %r15d, %r15d
leaq 0x40(%rsp), %r14
movq $0x0, 0x30(%rsp)
xorl %ebp, %ebp
movq $0x0, 0x38(%rsp)
xorl %r13d, %r13d
movq %r14, %rdi
movl $0x4, %esi
callq 0xf2271
cmpb $0x0, 0x58(%rsp)
je 0x7dc08
xorl %ecx, %ecx
jmp 0x7dcd9
addl %eax, %eax
movb 0xb5(%rbx,%rax), %cl
testb %cl, %cl
jne 0x7dc25
movl %eax, %eax
cmpb $0x0, 0xb4(%rbx,%rax)
je 0x7dce6
addb %cl, %r13b
movl $0x1, %r14d
testl %r14d, %r14d
je 0x7dc63
movl $0x1, %ebx
movzbl %r13b, %edx
movq %r12, %rdi
movq %rbp, %rsi
callq 0xf148e
movq 0x18(%rsp), %rax
addq 0x48(%rax), %rbp
incq %r15
cmpq 0x20(%rax), %r15
jge 0x7dc63
leal 0x1(%rbx), %eax
cmpl %r14d, %ebx
movl %eax, %ebx
jb 0x7dc38
movb $0x1, %cl
movq 0x18(%rsp), %rbx
cmpq 0x20(%rbx), %r15
jge 0x7dc77
leaq 0x40(%rsp), %r14
jmp 0x7dcd9
leaq 0x40(%rsp), %r14
movq %r14, %rdi
callq 0xf22f1
movq 0x38(%rsp), %r15
incq %r15
movq 0x48(%rbx), %rax
cmpq %rax, %r15
jl 0x7dcbb
movq %r15, 0x38(%rsp)
movq 0x30(%rsp), %rsi
incq %rsi
xorl %r15d, %r15d
movl $0x0, %r13d
movl $0x0, %ecx
movq %rsi, 0x30(%rsp)
cmpq 0x28(%rbx), %rsi
jge 0x7dcd9
imulq 0x30(%rsp), %rax
imulq 0x20(%rbx), %rax
movq %r15, 0x38(%rsp)
addq %r15, %rax
xorl %r15d, %r15d
movq %rax, %rbp
xorl %r13d, %r13d
movb $0x1, %cl
testb %cl, %cl
jne 0x7dbed
jmp 0x7de59
movq %r14, %rdi
movl $0x4, %esi
callq 0xf2271
movq %rax, %r14
incl %r14d
jmp 0x7dc2e
leaq 0x99dbe(%rip), %rsi     # 0x117ac3
movq %rbp, %rdi
xorl %eax, %eax
callq 0xe9df7
jmp 0x7deab
movq 0x10(%rsp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0x4, %ecx
callq 0xf2cab
movq %rax, %r12
cmpq $0x0, 0x10(%rax)
jle 0x7dda6
movq 0x40(%rsp), %rbp
xorl %r14d, %r14d
leaq 0x24(%rsp), %r15
cmpq $0x0, 0x8(%r12)
jle 0x7dd9c
xorl %ebx, %ebx
movl $0x4, %ecx
movq %r13, %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0xeeee8
addq $0x4, %rbp
movzbl 0x27(%rsp), %eax
shll $0x18, %eax
movzbl 0x24(%rsp), %ecx
shll $0x10, %ecx
orl %eax, %ecx
movzbl 0x25(%rsp), %eax
shll $0x8, %eax
orl %ecx, %eax
movzbl 0x26(%rsp), %ecx
orl %eax, %ecx
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0xf2b02
incq %rbx
cmpq 0x8(%r12), %rbx
jl 0x7dd4a
incq %r14
cmpq 0x10(%r12), %r14
jl 0x7dd40
movq 0x18(%rsp), %rcx
movb 0x8(%rcx), %al
testb %al, %al
je 0x7ddd6
cmpb $0x0, 0xb(%rcx)
je 0x7ddbe
cmpb $0x0, 0x51(%rcx)
je 0x7ddd6
cmpb $0x2, %al
movq 0x28(%rsp), %rbx
jne 0x7dde3
movq %r12, %rdi
movl $0x1, %esi
callq 0xf3f11
jmp 0x7dde3
movq %r12, %rdi
callq 0xf3e98
movq 0x28(%rsp), %rbx
leaq 0xad05c(%rip), %rsi     # 0x12ae46
movq %r12, %rdi
movl $0x3, %edx
callq 0xf2923
xorl %ecx, %ecx
movq 0x10(%rsp), %rdi
testb %cl, %cl
je 0x7de10
leaq 0xab849(%rip), %rsi     # 0x129652
xorl %eax, %eax
callq 0xe9b27
movq %r12, %rdi
callq 0xf28d4
movl $0x1, 0x130(%rbx)
jmp 0x7deb9
movq %rbp, %rdi
movq %rbx, %rsi
movq %r15, %rcx
movq %r14, %r8
callq 0x7decd
jmp 0x7deab
movq 0x40(%rbx), %r9
movl 0x48(%rbx), %eax
movl %eax, (%rsp)
movq %rbp, %rdi
movq %r15, %rdx
movq %r14, %rcx
movq %r12, %r8
callq 0x7b38b
movl %eax, %ebx
jmp 0x7de7d
movl $0x1, %ebx
movq 0x28(%rsp), %r13
movq 0x10(%rsp), %rbp
jmp 0x7de7d
leaq 0xab7a3(%rip), %rsi     # 0x129614
xorl %ebx, %ebx
movq %rbp, %rdi
xorl %eax, %eax
callq 0xe9df7
movq %r12, %rdi
callq 0xf0ea4
testl %ebx, %ebx
movq 0x18(%rsp), %rbx
je 0x7dea3
movq 0x18(%r12), %r8
movq %rbp, %rdi
movq %rbx, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x7decd
movq %r12, %rdi
callq 0xf0b13
incl 0x4(%rbx)
movl $0x1, 0x130(%r13)
movl $0x1, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq