// File: /workspace/github_c_makefile_star2_O2/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 0x7873f
movl $0x1, 0x134(%r15)
jmp 0x78f34
cmpl $0x1, 0x64(%r15)
jne 0x78f34
movq (%r15), %r12
movq 0x10(%r15), %rbp
cmpl $0x44424f44, %ecx       # imm = 0x44424F44
je 0x78985
cmpl $0x58533234, %ecx       # imm = 0x58533234
je 0x78a64
cmpl $0x444c4f43, %ecx       # imm = 0x444C4F43
je 0x789ee
cmpl $0x4450454c, %ecx       # imm = 0x4450454C
je 0x7885d
cmpl $0x4d504943, %ecx       # imm = 0x4D504943
je 0x788ce
cmpl $0x54564443, %ecx       # imm = 0x54564443
je 0x788ab
cmpl $0x4447424c, %ecx       # imm = 0x4447424C
jne 0x78f34
movq 0x40(%rax), %rax
leaq 0x38(%rsp), %rbx
movq %rax, (%rbx)
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xe3f6e
movq %rax, 0x10(%rbp)
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xe3f6e
movq %rax, 0x18(%rbp)
movq 0x10(%rbp), %rdx
leaq 0xa3d9f(%rip), %rsi     # 0x11c57b
movq %r12, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0xde896
cmpb $0x0, 0x9(%rbp)
jne 0x787f7
movups 0x10(%rbp), %xmm0
movups %xmm0, 0x20(%rbp)
movq 0x18(%r15), %rdi
leaq 0x38(%rsp), %rbx
movq %rbx, %rsi
callq 0xe3f6e
movl %eax, (%rbp)
leaq 0x93827(%rip), %rsi     # 0x10c039
movq %r12, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xe3f2a
movzbl %al, %eax
movq %rax, 0x30(%rbp)
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xe3f2a
movzbl %al, %ecx
movq %rcx, 0x38(%rbp)
movl 0x30(%rbp), %edx
leaq 0xa31c1(%rip), %rsi     # 0x11ba0f
movq %r12, %rdi
xorl %eax, %eax
callq 0xde896
jmp 0x78f29
movq 0x40(%rax), %r14
leaq 0x38(%rsp), %rsi
movq %r14, (%rsi)
addq 0x48(%rax), %r14
movb $0x1, 0xb(%rbp)
movq 0x18(%r15), %rdi
callq 0xe4071
movl %eax, %ecx
movq %rcx, 0x48(%rbp)
leaq 0xa3d1e(%rip), %rsi     # 0x11c5a5
movq %r12, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x48(%rbp), %rax
cmpq $0x8, %rax
jle 0x78a7d
andq $0x0, 0x48(%rbp)
jmp 0x78f29
movb $0x1, 0xa(%rbp)
movq 0x18(%r15), %rdi
addq $0xb4, %rbp
movq 0x40(%rax), %rdx
pushq $0x20
popq %rcx
movq %rbp, %rsi
callq 0xe3cb7
jmp 0x78f34
movq %rbp, 0x28(%rsp)
movq %r15, 0x20(%rsp)
movq %r12, %rbp
movq 0x18(%r15), %r12
movq 0x40(%rax), %rcx
movq 0x48(%rax), %rax
movq %rax, 0x30(%rsp)
leaq 0x38(%rsp), %r13
movq %rcx, 0x10(%rsp)
movq %rcx, (%r13)
movq 0x18(%rbp), %rdi
movq %r13, %rsi
callq 0xe3f6e
movq %rax, %rbx
movq 0x18(%rbp), %rdi
movq %r13, %rsi
callq 0xe3f6e
movq %rax, %r14
leaq 0xa3cf8(%rip), %rsi     # 0x11c617
movq %rbp, %rdi
movl %ebx, %edx
movl %r14d, %ecx
xorl %eax, %eax
callq 0xde896
movq %rbp, %r15
movq 0x18(%rbp), %rdi
movq %r13, %rsi
callq 0xe4071
cmpl $0x40002, %eax          # imm = 0x40002
jne 0x78967
movq %rbx, %rax
imulq %r14, %rax
shlq $0x2, %rax
addq 0x38(%rsp), %rax
movq 0x30(%rsp), %rcx
addq 0x10(%rsp), %rcx
cmpq %rcx, %rax
jle 0x78d9c
leaq 0xa3cd4(%rip), %rsi     # 0x11c642
xorl %r13d, %r13d
movq %r15, %rdi
xorl %eax, %eax
callq 0xdf05a
movq 0x20(%rsp), %rbx
jmp 0x78e7e
movl (%rbp), %edx
cmpl $0x5, %edx
ja 0x78e49
pushq $0x23
popq %rax
btl %edx, %eax
jae 0x78e49
xorl %eax, %eax
movb %al, 0x38(%rsp)
movb %al, 0xc(%rsp)
movb %al, 0xb(%rsp)
movb %al, 0xa(%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 0x78af2
leaq 0x91cab(%rip), %rsi     # 0x10a68a
movq %r12, %rdi
xorl %eax, %eax
callq 0xdf2a5
jmp 0x78f26
movq 0x40(%rax), %rax
leaq 0x38(%rsp), %rbx
movq %rax, (%rbx)
movb $0x1, 0x9(%rbp)
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xe3f6e
movq %rax, 0x20(%rbp)
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xe3f6e
movq %rax, 0x28(%rbp)
movq 0x20(%rbp), %rsi
movq %r12, %rdi
movq %rax, %rdx
callq 0xdf038
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xe4026
movq %rax, %r14
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xe4026
leaq 0xa3b43(%rip), %rsi     # 0x11c592
movq %r12, %rdi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xde896
jmp 0x78f29
movq 0x18(%r15), %rsi
movq 0x40(%rax), %rdx
movq 0x48(%rax), %rcx
movq %r12, %rdi
callq 0x76955
jmp 0x78f29
leaq 0x38(%rsp), %r13
xorl %ecx, %ecx
movl %ecx, %ebx
cmpq %rbx, %rax
jle 0x78f29
movq 0x38(%rsp), %rax
addq $0x4, %rax
cmpq %r14, %rax
jg 0x78f29
movq 0x18(%r15), %rdi
movq %r13, %rsi
callq 0xe3f6e
movl %eax, 0x74(%rbp,%rbx,4)
cmpl $0x11, %eax
je 0x78abb
cmpl $0x4, %eax
jne 0x78abf
movb $0x1, 0x51(%rbp)
movq 0x18(%r15), %rdi
movq %r13, %rsi
callq 0xe3f6e
movl %eax, 0x54(%rbp,%rbx,4)
movl 0x74(%rbp,%rbx,4), %ecx
movq %r12, %rdi
leaq 0xa3ad6(%rip), %rsi     # 0x11c5b3
movl %ebx, %edx
movl %eax, %r8d
xorl %eax, %eax
callq 0xde896
leal 0x1(%rbx), %ecx
movq 0x48(%rbp), %rax
jmp 0x78a84
xorl %ecx, %ecx
movb $0x1, %dl
leaq 0x1f(%rsp), %rsi
leaq 0xa(%rsp), %rdi
leaq 0xa2d59(%rip), %r8      # 0x11b860
leaq 0x38(%rsp), %r9
leaq 0xc(%rsp), %r10
leaq 0xb(%rsp), %r11
cmpq %rcx, %rax
je 0x78bac
movl 0x74(%rbp,%rcx,4), %ebx
leal -0x1(%rbx), %r14d
cmpl $0x3, %r14d
ja 0x78b43
movslq (%r8,%r14,4), %rbx
addq %r8, %rbx
jmpq *%rbx
andl $0x0, 0x94(%rbp,%rcx,4)
movq %r9, %rbx
jmp 0x78ba1
cmpl $0x11, %ebx
jne 0x78b5b
movl $0x3, 0x94(%rbp,%rcx,4)
movb %dl, 0x50(%rbp)
movb %dl, 0x52(%rbp)
jmp 0x78b8e
movl $0x4, 0x94(%rbp,%rcx,4)
movq %rdi, %rbx
jmp 0x78ba1
movl $0x2, 0x94(%rbp,%rcx,4)
movq %r11, %rbx
jmp 0x78ba1
movl $0x3, 0x94(%rbp,%rcx,4)
movb $0x1, 0x50(%rbp)
movb $0x0, 0x52(%rbp)
movq %rsi, %rbx
jmp 0x78ba1
movl $0x1, 0x94(%rbp,%rcx,4)
movq %r10, %rbx
movb $0x1, (%rbx)
incq %rcx
jmp 0x78b16
cmpb $0x0, 0x38(%rsp)
je 0x789d8
cmpb $0x0, 0xc(%rsp)
je 0x789d8
cmpb $0x0, 0xb(%rsp)
je 0x789d8
cmpb $0x0, 0xa(%rsp)
je 0x78be5
leaq 0xa39f3(%rip), %rsi     # 0x11c5ce
movq %r12, %rdi
xorl %eax, %eax
callq 0xdf05a
movq 0x20(%rbp), %rsi
movq 0x28(%rbp), %rdx
movq %r12, %rdi
callq 0xe6be1
testl %eax, %eax
je 0x78f26
movq 0x28(%rbp), %rsi
imulq 0x20(%rbp), %rsi
imulq 0x48(%rbp), %rsi
movq %rsi, 0x40(%rbp)
cmpl $0x0, (%rbp)
movq 0x18(%r15), %rdx
movq 0x128(%r15), %rax
movq 0x40(%rax), %r14
movq 0x48(%rax), %rbx
je 0x78e95
movq %rdx, 0x10(%rsp)
pushq $0x1
popq %rdx
movq %r12, %rdi
movl %edx, 0x30(%rsp)
callq 0xe59cd
movq %rax, %r13
cmpl $0x5, (%rbp)
je 0x78c5b
movq %r13, %rdi
callq 0xe589c
cmpl $0x5, (%rbp)
jne 0x78ed7
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rsp)
andq $0x0, 0x60(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x38(%rsp)
movq %r14, 0x40(%rsp)
addq %r14, %rbx
movq %rbx, 0x48(%rsp)
movq %r13, %rdi
callq 0xe58c4
cmpb $0x0, 0xa(%rbp)
je 0x78ebc
movq %r13, 0x10(%rsp)
movq %r12, 0x68(%rsp)
movq %rbp, %r12
movq %r15, 0x20(%rsp)
movq $0x0, 0x28(%rsp)
xorl %r13d, %r13d
movq $0x0, 0x70(%rsp)
xorl %r14d, %r14d
xorl %ebp, %ebp
leaq 0x38(%rsp), %rdi
pushq $0x4
popq %rsi
callq 0xe6a4a
cmpb $0x0, 0x50(%rsp)
jne 0x78ea8
addl %eax, %eax
movb 0xb5(%r12,%rax), %cl
testb %cl, %cl
jne 0x78cf1
movl %eax, %eax
cmpb $0x0, 0xb4(%r12,%rax)
je 0x78d38
addb %cl, %bpl
pushq $0x1
popq %rax
movl %eax, %ebx
movl %ebx, %r15d
addq %r14, %r15
subl $0x1, %ebx
jb 0x78d29
movzbl %bpl, %edx
movq 0x10(%rsp), %rdi
movq %r13, %rsi
callq 0xe5e13
addq 0x48(%r12), %r13
incq %r14
movq 0x20(%r12), %rax
cmpq %rax, %r14
jl 0x78cff
jmp 0x78d31
movq 0x20(%r12), %rax
movq %r15, %r14
cmpq %rax, %r14
jl 0x78cbe
jmp 0x78d4c
leaq 0x38(%rsp), %rdi
pushq $0x4
popq %rsi
callq 0xe6a4a
movq %rax, %rbx
incl %ebx
jmp 0x78cf9
leaq 0x38(%rsp), %rdi
callq 0xe6abe
movq 0x70(%rsp), %rax
incq %rax
movq %r12, %rbp
movq 0x48(%r12), %r13
cmpq %r13, %rax
jl 0x78d84
movq 0x28(%rsp), %rcx
incq %rcx
movq %rcx, 0x28(%rsp)
cmpq 0x28(%rbp), %rcx
jge 0x78f46
xorl %eax, %eax
imulq 0x28(%rsp), %r13
imulq 0x20(%rbp), %r13
movq %rax, 0x70(%rsp)
addq %rax, %r13
jmp 0x78cb9
pushq $0x4
popq %rcx
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0xe7437
movq %rax, %r13
movq 0x38(%rsp), %r15
xorl %ebp, %ebp
pushq $0x4
popq %r14
cmpq 0x10(%r13), %rbp
jge 0x78e1b
xorl %ebx, %ebx
cmpq 0x8(%r13), %rbx
jge 0x78e16
movq %r12, %rdi
leaq 0xc(%rsp), %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0xe3cb7
addq $0x4, %r15
movzbl 0xf(%rsp), %eax
shll $0x18, %eax
movzbl 0xc(%rsp), %ecx
shll $0x10, %ecx
orl %eax, %ecx
movzbl 0xd(%rsp), %eax
shll $0x8, %eax
orl %ecx, %eax
movzbl 0xe(%rsp), %ecx
orl %eax, %ecx
movq %r13, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0xe728c
incq %rbx
jmp 0x78dc3
incq %rbp
jmp 0x78dbb
movq 0x28(%rsp), %rcx
movb 0x8(%rcx), %al
testb %al, %al
je 0x78e5f
cmpb $0x0, 0xb(%rcx)
je 0x78e33
cmpb $0x0, 0x51(%rcx)
je 0x78e5f
cmpb $0x2, %al
movq 0x20(%rsp), %rbx
jne 0x78e6c
pushq $0x1
popq %rsi
movq %r13, %rdi
callq 0xe84da
jmp 0x78e6c
leaq 0x91cbb(%rip), %rsi     # 0x10ab0b
movq %r12, %rdi
xorl %eax, %eax
callq 0xdf2a5
jmp 0x78f26
movq %r13, %rdi
callq 0xe8472
movq 0x20(%rsp), %rbx
leaq 0xa5033(%rip), %rsi     # 0x11dea6
pushq $0x3
popq %rdx
movq %r13, %rdi
callq 0xe70b7
movq %r13, %rdi
callq 0xe7084
movl $0x1, 0x130(%rbx)
jmp 0x78f34
movq %r12, %rdi
movq %rbp, %rsi
movq %r14, %rcx
movq %rbx, %r8
callq 0x78f50
jmp 0x78f26
movq 0x20(%rsp), %r15
movq %r12, %rbp
movq 0x68(%rsp), %r12
movq 0x10(%rsp), %r13
jmp 0x78efb
leaq 0xa3741(%rip), %rsi     # 0x11c604
movl $0x0, 0x30(%rsp)
movq %r12, %rdi
xorl %eax, %eax
callq 0xdf2a5
jmp 0x78efb
movq 0x40(%rbp), %r9
movl 0x48(%rbp), %eax
movl %eax, (%rsp)
movq %r12, %rdi
movq 0x10(%rsp), %rsi
movq %r14, %rdx
movq %rbx, %rcx
movq %r13, %r8
callq 0x7755d
movl %eax, 0x30(%rsp)
movq %r13, %rdi
callq 0xe58e8
cmpl $0x0, 0x30(%rsp)
je 0x78f1e
movq 0x18(%r13), %r8
movq %r12, %rdi
movq %rbp, %rsi
movq %r13, %rdx
xorl %ecx, %ecx
callq 0x78f50
movq %r13, %rdi
callq 0xe5591
incl 0x4(%rbp)
movl $0x1, 0x130(%r15)
pushq $0x1
popq %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x20(%rsp), %r15
jmp 0x78eb0