// File: /workspace/github_c_makefile_star2_O3/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
movl $0x38, %esi
callq 0xe8b2b
movq %rax, %r14
movq 0x18(%rbx), %rax
movq 0x18(%rax), %rdx
movabsq $0x100000000, %rax      # imm = 0x100000000
cmpq %rax, %rdx
jl 0xc0961
leaq 0x79703(%rip), %rsi     # 0x13a058
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9295
jmp 0xc09c7
leaq 0x78d86(%rip), %rsi     # 0x1396ee
movq %rbx, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
leaq 0x796ef(%rip), %rdx     # 0x13a06e
movl $0x6, %ecx
xorl %esi, %esi
callq 0xefc85
testl %eax, %eax
je 0xc0998
leaq 0x796df(%rip), %rsi     # 0x13a075
jmp 0xc09bd
movq 0x18(%rbx), %rdi
leaq 0x57a78(%rip), %rdx     # 0x11841b
movl $0x6, %esi
movl $0x2, %ecx
callq 0xefc85
testl %eax, %eax
je 0xc09f2
leaq 0x796d3(%rip), %rsi     # 0x13a090
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9295
testq %r14, %r14
je 0xc09e3
movq 0x30(%r14), %rsi
movq %rbx, %rdi
callq 0xe8be2
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe8be2
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 0x796ab(%rip), %rsi     # 0x13a0b1
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
addq $-0x1a, %r12
movq %rsp, %r15
movq %r12, (%r15)
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xeeb4b
movzbl %al, %edx
movl %edx, 0x10(%r14)
leaq 0x7967e(%rip), %rsi     # 0x13a0bf
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xeeb4b
movzbl %al, %edx
movl %edx, 0x14(%r14)
leaq 0x7967b(%rip), %rsi     # 0x13a0e0
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq (%r15), %rsi
callq 0xeee96
movq %rax, 0x28(%r14)
leaq 0x79676(%rip), %rsi     # 0x13a0fc
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq (%r15), %rsi
addq $0x8, %rsi
movq %rsi, (%r15)
movq 0x18(%rbx), %rdi
callq 0xeee96
movq %rax, 0x18(%r14)
leaq 0x7965c(%rip), %rsi     # 0x13a10c
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq (%r15), %rsi
addq $0x8, %rsi
movq %rsi, (%r15)
movq 0x18(%rbx), %rdi
callq 0xeee96
movq %r14, %r12
addq $0x20, %r12
movq %rax, 0x20(%r14)
leaq 0x79642(%rip), %rsi     # 0x13a124
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xee89c
addq $0x8, (%r15)
movl 0x10(%r14), %eax
addl $-0x9, %eax
cmpl $-0x8, %eax
jb 0xc0b17
movl 0x14(%r14), %eax
addl $-0x9, %eax
cmpl $-0x9, %eax
ja 0xc0b3a
leaq 0x7961e(%rip), %rsi     # 0x13a13c
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9295
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
jmp 0xc09cc
movq 0x28(%r14), %rdx
cmpq $0xf4241, %rdx          # imm = 0xF4241
jb 0xc0b5a
leaq 0x7960e(%rip), %rsi     # 0x13a15c
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9295
jmp 0xc0b28
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq 0x20(%r14), %r15
leaq 0x79607(%rip), %rsi     # 0x13a179
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x28(%r14), %rsi
movl $0x4, %edx
movq %rbx, %rdi
callq 0xe96f7
movq %rax, 0x30(%r14)
cmpq $0x0, 0x28(%r14)
jle 0xc0c1d
movl 0x10(%r14), %edx
leaq 0x795da(%rip), %r12     # 0x13a18d
movq %rsp, %r13
xorl %ebp, %ebp
movl %edx, %eax
addq %r15, %rax
movq 0x18(%rbx), %rdi
movq 0x18(%rdi), %rcx
addq $-0x20, %rcx
cmpq %rcx, %rax
jg 0xc0c1d
movq %r15, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0xef0f6
movq %rax, (%rsp)
cmpl $0x2, (%rbx)
jl 0xc0bf7
movq %rbx, %rdi
movq %r12, %rsi
movq %rbp, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xee89c
movl (%rsp), %eax
movq 0x30(%r14), %rcx
movl %eax, (%rcx,%rbp,4)
movl 0x10(%r14), %edx
addq %rdx, %r15
incq %rbp
cmpq 0x28(%r14), %rbp
jl 0xc0bb8
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq 0x18(%r14), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xc0c64
jmp 0xc09cc