// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/afcp.c
// Function: de_run_afcp
static void de_run_afcp(deark *c, de_module_params *mparams)
{
	struct afcpctx *d = NULL;
	int saved_indent_level;

	de_dbg_indent_save(c, &saved_indent_level);
	d = de_malloc(c, sizeof(struct afcpctx));
	d->endpos = c->infile->len;
	de_dbg(c, "AFCP data, ending at %"I64_FMT, d->endpos);
	de_dbg_indent(c, 1);

	if(!do_afcp_eofrec(c, d)) goto done;
	if(!do_afcp_starttagrec(c, d)) goto done;
	do_afcp_recordlist(c, d);

done:
	de_free(c, d);
	de_dbg_indent_restore(c, saved_indent_level);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %rsi
callq 0xe8a1c
movl $0x20, %esi
movq %rbx, %rdi
callq 0xe8b2b
movq %rax, %r14
movq 0x18(%rbx), %rax
movq 0x18(%rax), %rdx
movq %rdx, 0x8(%r14)
leaq 0xee863(%rip), %rsi     # 0x11447a
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movl $0x1, %ebp
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0xe8a1c
movq 0x8(%r14), %r15
leaq -0xc(%r15), %rdx
leaq 0xee844(%rip), %rsi     # 0x114493
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x18(%rbx), %rdi
leaq -0x9(%r15), %rsi
callq 0xeead3
movb %al, 0x4(%r14)
cmpb $0x2a, %al
je 0x25c89
movzbl %al, %eax
cmpl $0x21, %eax
jne 0x260f0
xorl %ebp, %ebp
movl %ebp, (%r14)
leaq 0xee826(%rip), %rsi     # 0x1144b9
movq %rbx, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
addq $-0x8, %r15
movl (%r14), %edx
movq %r15, %rsi
callq 0xeeff3
movq %rax, 0x10(%r14)
leaq 0xee811(%rip), %rsi     # 0x1144ce
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
leaq 0x28(%rsp), %r15
movl (%r15), %esi
movq %rbx, %rdi
callq 0xe8a25
movq %rbx, %rdi
movq %r15, %rsi
callq 0xe8a1c
movq 0x10(%r14), %rdx
leaq 0xee7f4(%rip), %rsi     # 0x1144e4
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x18(%rbx), %rdi
movq 0x10(%r14), %rsi
addq $0x3, %rsi
callq 0xeead3
cmpb 0x4(%r14), %al
jne 0x260d3
movq 0x18(%rbx), %rdi
movq 0x10(%r14), %rsi
addq $0x4, %rsi
movl (%r14), %edx
callq 0xeef43
movq %rax, %r15
leaq 0x111044(%rip), %rsi    # 0x136d84
movq %rbx, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq 0x10(%r14), %rsi
addq $0x6, %rsi
movl (%r14), %edx
callq 0xeef43
movq %rax, 0x18(%r14)
leaq 0xeccb8(%rip), %rsi     # 0x112a24
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
cmpl $0x2, %r15d
jb 0x25d92
leaq 0xee797(%rip), %rsi     # 0x11451c
movq %rbx, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xe8faa
movl 0x28(%rsp), %esi
movq %rbx, %rdi
callq 0xe8a25
leaq 0x14(%rsp), %rsi
movq %rbx, %rdi
callq 0xe8a1c
movq 0x10(%r14), %r15
addq $0xc, %r15
leaq 0xee785(%rip), %rsi     # 0x11453f
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
cmpq $0x0, 0x18(%r14)
jle 0x260ea
xorl %ebp, %ebp
leaq 0xc(%rbp), %rax
cmpq 0x8(%r14), %rax
jg 0x260ea
movq %rbx, %rdi
leaq 0xecc48(%rip), %rsi     # 0x112a41
movl %ebp, %edx
movq %r15, %rcx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movl $0x40, %esi
movq %rbx, %rdi
callq 0xe8b2b
movq %rax, %r12
movq 0x18(%rbx), %rdi
leaq 0x10(%rax), %rdx
movq %r15, %rsi
movl $0x4, %ecx
xorl %r8d, %r8d
callq 0xf1762
leaq 0x20(%r12), %rdx
movq %rbx, %rdi
leaq 0xee709(%rip), %rsi     # 0x114552
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movl (%r14), %edx
leaq 0x4(%r15), %rsi
callq 0xeeff3
movq %rax, (%r12)
movq %rbx, %rdi
leaq 0x11fa5e(%rip), %rsi    # 0x1458cc
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movl (%r14), %edx
addq $0x8, %r15
movq %r15, %rsi
callq 0xeeff3
movq %rax, 0x8(%r12)
movq %rbx, %rdi
leaq 0x124f28(%rip), %rsi    # 0x14adc2
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x8(%r12), %r13
cmpq 0x10(%r14), %r13
jl 0x25ebd
movq (%r12), %rcx
leaq (%rcx,%r13), %rax
cmpq 0x8(%r14), %rax
jle 0x25eeb
movq %rbx, %rdi
movq %r12, %rsi
callq 0xe8be2
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
incq %rbp
addq $0x4, %r15
cmpq 0x18(%r14), %rbp
jl 0x25de1
jmp 0x260ea
movl 0x14(%r12), %eax
cmpl $0x50725677, %eax       # imm = 0x50725677
je 0x25f51
cmpl $0x4e61696c, %eax       # imm = 0x4E61696C
je 0x25f51
cmpl $0x49505443, %eax       # imm = 0x49505443
jne 0x26090
movq %rbx, %rdi
leaq 0xee648(%rip), %rsi     # 0x11455b
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x18(%rbx), %rsi
movq (%r12), %rcx
movq 0x8(%r12), %rdx
movq %rbx, %rdi
xorl %r8d, %r8d
callq 0xf7a74
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
jmp 0x25ebd
movq $0x0, 0x18(%rsp)
cmpq $0xa, %rcx
jl 0x25ebd
movq 0x18(%rbx), %rdi
movl (%r14), %edx
movq %r13, %rsi
callq 0xeef43
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
leaq 0xee5e7(%rip), %rsi     # 0x114569
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
cmpl $0x1, 0x8(%rsp)
jne 0x25ebd
leaq 0x2(%r13), %rsi
movq 0x18(%rbx), %rdi
movl (%r14), %edx
callq 0xeef43
movq %rax, 0x8(%rsp)
leaq 0x4(%r13), %rsi
movq 0x18(%rbx), %rdi
movl (%r14), %edx
callq 0xeef43
leaq 0x6(%r13), %rcx
movq %rcx, 0x20(%rsp)
movq %rbx, %rdi
leaq 0xee5ae(%rip), %rsi     # 0x11457c
movq 0x8(%rsp), %rdx
movl %eax, %ecx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq 0x20(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movl $0x4, %ecx
xorl %r8d, %r8d
callq 0xf1762
leaq 0xa(%r13), %rax
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
leaq 0xee58e(%rip), %rsi     # 0x114598
leaq 0x38(%rsp), %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq (%r12), %rax
movq 0x8(%r12), %rcx
subq %r13, %rcx
leaq (%rcx,%rax), %r8
addq $-0xa, %r8
movl $0x3, %edx
leaq 0xee56f(%rip), %rsi     # 0x1145a9
movq 0x8(%rsp), %rcx
leaq 0x18(%rsp), %r9
callq 0xf149c
testl %eax, %eax
je 0x260bd
cmpl $0x50725677, 0x14(%r12) # imm = 0x50725677
leaq 0xee586(%rip), %rcx     # 0x1145e3
leaq 0xee56f(%rip), %rax     # 0x1145d3
cmoveq %rax, %rcx
movq 0x18(%rbx), %rdi
movq 0x18(%rsp), %rsi
movq 0x8(%r12), %rdx
subq %rsi, %rdx
addq (%r12), %rdx
xorl %r8d, %r8d
movl $0x1, %r9d
callq 0xefd48
jmp 0x25ebd
cmpl $0x2, (%rbx)
jl 0x25ebd
movq 0x18(%rbx), %rsi
movl $0x1, (%rsp)
movl $0x100, %r8d            # imm = 0x100
movq %rbx, %rdi
movq %r13, %rdx
xorl %r9d, %r9d
callq 0xe8bea
jmp 0x25ebd
movq %rbx, %rdi
leaq 0xee4e6(%rip), %rsi     # 0x1145ad
xorl %eax, %eax
callq 0xe8617
jmp 0x25ebd
movq 0x10(%r14), %rdx
leaq 0xee41e(%rip), %rsi     # 0x1144fc
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9295
jmp 0x26101
movl 0x14(%rsp), %esi
jmp 0x26105
leaq 0xee3ae(%rip), %rsi     # 0x1144a5
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9295
movl 0x28(%rsp), %esi
movq %rbx, %rdi
callq 0xe8a25
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe8be2
movl 0x10(%rsp), %esi
movq %rbx, %rdi
callq 0xe8a25
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop