// File: /workspace/github_c_makefile_star2_O1/jsummers[P]deark/modules/apple2-dsk.c
// Function: my_woz_chunk_handler
static int my_woz_chunk_handler(struct de_iffctx *ictx)
{
	deark *c = ictx->c;

	switch(ictx->chunkctx->chunk4cc.id) {
	case CODE_INFO:
		ictx->handled = 1;
		do_woz_INFO(c, ictx, ictx->chunkctx);
		break;
	case CODE_META:
		ictx->handled = 1;
		do_wozmoof_META(c, ictx, ictx->chunkctx);
		break;
	}

	return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
movq (%rdi), %rbx
movq 0x128(%rdi), %rdx
movl 0x4(%rdx), %eax
cmpl $0x4d455441, %eax       # imm = 0x4D455441
je 0x2eaae
cmpl $0x494e464f, %eax       # imm = 0x494E464F
jne 0x2eac4
movl $0x1, 0x130(%r14)
movq 0x40(%rdx), %rax
movq %rax, 0x8(%rsp)
cmpq $0x25, 0x48(%rdx)
jl 0x2eac4
movq 0x10(%r14), %r13
movq 0x18(%r14), %rdi
leaq 0x8(%rsp), %r12
movq %r12, %rsi
callq 0xef14d
movzbl %al, %edx
leaq 0xe7ef0(%rip), %rsi     # 0x1167c8
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r14), %rdi
movq %r12, %rsi
callq 0xef14d
movzbl %al, %edx
cmpb $0x2, %dl
leaq 0xe8042(%rip), %rax     # 0x11693d
leaq 0xfd567(%rip), %rsi     # 0x12be69
cmoveq %rax, %rsi
cmpb $0x1, %dl
leaq 0xe8028(%rip), %rcx     # 0x116938
cmovneq %rsi, %rcx
leaq 0xe7ec4(%rip), %rsi     # 0x1167df
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r14), %rdi
movq %r12, %rsi
callq 0xef14d
movzbl %al, %edx
leaq 0xe7eb7(%rip), %rsi     # 0x1167f2
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r14), %rdi
movq %r12, %rsi
callq 0xef14d
movzbl %al, %edx
leaq 0xe7eab(%rip), %rsi     # 0x116806
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r14), %rdi
movq %r12, %rsi
callq 0xef14d
movzbl %al, %edx
leaq 0xe7f4a(%rip), %rsi     # 0x1168c5
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
callq 0xf6870
movq %rax, %r15
movq 0x18(%r14), %rdi
movq (%r12), %rsi
movl $0x20, %edx
movq %rax, %rcx
xorl %r8d, %r8d
movl $0x2, %r9d
callq 0xf01b0
movq %r15, %rdi
callq 0xf6900
movq %r15, %rdi
callq 0xf74bd
leaq 0xe7e69(%rip), %rsi     # 0x11682e
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
addq $0x20, (%r12)
cmpb $0x32, 0x1(%r13)
jb 0x2eaa4
movq 0x18(%r14), %rdi
leaq 0x8(%rsp), %r12
movq %r12, %rsi
callq 0xef14d
movzbl %al, %edx
leaq 0xe7ed4(%rip), %rsi     # 0x1168d1
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r14), %rdi
movq %r12, %rsi
callq 0xef14d
movzbl %al, %edx
leaq 0xe7ec3(%rip), %rsi     # 0x1168e0
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r14), %rdi
movq %r12, %rsi
callq 0xef14d
movzbl %al, %edx
leaq 0xe7eba(%rip), %rsi     # 0x1168f7
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r14), %rdi
movq %r12, %rsi
callq 0xef1ed
leaq 0xe7eb4(%rip), %rsi     # 0x11690e
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r14), %rdi
movq %r12, %rsi
callq 0xef1ed
leaq 0xe7ead(%rip), %rsi     # 0x116926
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r14), %rdi
movq %r12, %rsi
callq 0xef1ed
leaq 0xe7da4(%rip), %rsi     # 0x11683c
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq %r15, %rdi
callq 0xf6bb0
jmp 0x2eac4
movl $0x1, 0x130(%r14)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2ead7
movl $0x1, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq