// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/plist.c
// Function: de_run_plist
static void de_run_plist(deark *c, de_module_params *mparams)
{
	lctx *d = NULL;

	d = de_malloc(c, sizeof(lctx));

	if(c->infile->len>0xffffffffU) {
		// We *could* support huge PLIST files, but until I learn that they
		// are valid, for efficiency I'll make sure an offset can fit in
		// 4 bytes.
		de_err(c, "PLIST too large (%"I64_FMT")", c->infile->len);
		goto done;
	}

	if(!do_header(c, d, 0)) goto done;

	if(!do_trailer(c, d, c->infile->len-32)) goto done;
	read_offset_table(c, d);

	do_one_object_by_refnum(c, d, d->top_object_refnum);

done:
	if(d) {
		de_free(c, d->objref_table);
		de_free(c, d);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x38
popq %rsi
callq 0xdecaf
movq %rax, %r14
movq 0x18(%rbx), %rax
movq 0x18(%rax), %rdx
movabsq $0x100000000, %rax      # imm = 0x100000000
cmpq %rax, %rdx
jl 0xb908b
leaq 0x73ce5(%rip), %rsi     # 0x12cd64
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdf2a5
jmp 0xb90eb
leaq 0x7335c(%rip), %rsi     # 0x12c3ee
movq %rbx, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
leaq 0x73cd1(%rip), %rdx     # 0x12cd7a
pushq $0x6
popq %rcx
xorl %esi, %esi
callq 0xe4d48
testl %eax, %eax
je 0xb90c0
leaq 0x73cc3(%rip), %rsi     # 0x12cd81
jmp 0xb90e1
movq 0x18(%rbx), %rdi
leaq 0x52260(%rip), %rdx     # 0x10b32b
pushq $0x6
popq %rsi
pushq $0x2
popq %rcx
callq 0xe4d48
testl %eax, %eax
je 0xb9116
leaq 0x73cbb(%rip), %rsi     # 0x12cd9c
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdf2a5
testq %r14, %r14
je 0xb9107
movq 0x30(%r14), %rsi
movq %rbx, %rdi
callq 0xded32
movq %rbx, %rdi
movq %r14, %rsi
callq 0xded32
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x18(%rbx), %rax
movq 0x18(%rax), %r12
leal -0x20(%r12), %edx
leaq 0x73c93(%rip), %rsi     # 0x12cdbd
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0xdeba7
addq $-0x1a, %r12
movq %rsp, %r15
movq %r12, (%r15)
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xe3f2a
movzbl %al, %edx
movl %edx, 0x10(%r14)
leaq 0x73c68(%rip), %rsi     # 0x12cdcb
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xe3f2a
movzbl %al, %edx
movl %edx, 0x14(%r14)
leaq 0x73c65(%rip), %rsi     # 0x12cdec
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq (%r15), %rsi
callq 0xe4143
movq %rax, 0x28(%r14)
leaq 0x73c60(%rip), %rsi     # 0x12ce08
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq (%r15), %rsi
addq $0x8, %rsi
movq %rsi, (%r15)
movq 0x18(%rbx), %rdi
callq 0xe4143
movq %rax, 0x18(%r14)
leaq 0x73c46(%rip), %rsi     # 0x12ce18
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq (%r15), %rsi
addq $0x8, %rsi
movq %rsi, (%r15)
movq 0x18(%rbx), %rdi
callq 0xe4143
movq %r14, %r12
addq $0x20, %r12
movq %rax, 0x20(%r14)
leaq 0x73c2c(%rip), %rsi     # 0x12ce30
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xe3c84
addq $0x8, (%r15)
movl 0x10(%r14), %eax
addl $-0x9, %eax
cmpl $-0x8, %eax
jb 0xb9239
movl 0x14(%r14), %eax
addl $-0x9, %eax
cmpl $-0x9, %eax
ja 0xb925a
leaq 0x73c08(%rip), %rsi     # 0x12ce48
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdf2a5
pushq $-0x1
popq %rsi
movq %rbx, %rdi
callq 0xdeba7
jmp 0xb90f0
movq 0x28(%r14), %rdx
cmpq $0xf4241, %rdx          # imm = 0xF4241
jb 0xb927a
leaq 0x73bfa(%rip), %rsi     # 0x12ce68
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdf2a5
jmp 0xb924a
pushq $-0x1
popq %rsi
movq %rbx, %rdi
callq 0xdeba7
movq 0x20(%r14), %r15
leaq 0x73bf5(%rip), %rsi     # 0x12ce85
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0xdeba7
movq 0x28(%r14), %rsi
pushq $0x4
popq %rdx
movq %rbx, %rdi
callq 0xdf66f
movq %rax, 0x30(%r14)
leaq 0x73bd7(%rip), %r12     # 0x12ce99
movq %rsp, %r13
xorl %ebp, %ebp
cmpq 0x28(%r14), %rbp
jge 0xb9331
movl 0x10(%r14), %edx
leaq (%r15,%rdx), %rax
movq 0x18(%rbx), %rdi
movq 0x18(%rdi), %rcx
addq $-0x20, %rcx
cmpq %rcx, %rax
jg 0xb9331
movq %r15, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0xe424b
movq %rax, (%rsp)
cmpl $0x2, (%rbx)
jl 0xb930f
movq %rbx, %rdi
movq %r12, %rsi
movq %rbp, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xe3c84
movl (%rsp), %eax
movq 0x30(%r14), %rcx
movl %eax, (%rcx,%rbp,4)
movl 0x10(%r14), %eax
addq %rax, %r15
incq %rbp
jmp 0xb92c7
pushq $-0x1
popq %rsi
movq %rbx, %rdi
callq 0xdeba7
movq 0x18(%r14), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb9372
jmp 0xb90f0