// File: /workspace/github_c_makefile_star2_O1/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 0xe958c
movl $0x20, %esi
movq %rbx, %rdi
callq 0xe969b
movq %rax, %r14
movq 0x18(%rbx), %rax
movq 0x18(%rax), %rdx
movq %rdx, 0x8(%r14)
leaq 0xee743(%rip), %rsi     # 0x1143ca
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movl $0x1, %ebp
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0xe958c
movq 0x8(%r14), %r15
leaq -0xc(%r15), %rdx
leaq 0xee724(%rip), %rsi     # 0x1143e3
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x18(%rbx), %rdi
leaq -0x9(%r15), %rsi
callq 0xef0d5
movb %al, 0x4(%r14)
cmpb $0x2a, %al
je 0x25cf9
movzbl %al, %eax
cmpl $0x21, %eax
jne 0x2616b
xorl %ebp, %ebp
movl %ebp, (%r14)
leaq 0xee706(%rip), %rsi     # 0x114409
movq %rbx, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
addq $-0x8, %r15
movl (%r14), %edx
movq %r15, %rsi
callq 0xef614
movq %rax, 0x10(%r14)
leaq 0xee6f1(%rip), %rsi     # 0x11441e
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
leaq 0x28(%rsp), %r15
movl (%r15), %esi
movq %rbx, %rdi
callq 0xe9595
movq %rbx, %rdi
movq %r15, %rsi
callq 0xe958c
movq 0x10(%r14), %rdx
leaq 0xee6d4(%rip), %rsi     # 0x114434
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x18(%rbx), %rdi
movq 0x10(%r14), %rsi
addq $0x3, %rsi
callq 0xef0d5
movl %eax, %ebp
movb 0x4(%r14), %r12b
cmpb %r12b, %al
jne 0x25e05
movq 0x18(%rbx), %rdi
movq 0x10(%r14), %rsi
addq $0x4, %rsi
movl (%r14), %edx
callq 0xef570
movq %rax, %r15
leaq 0x110c09(%rip), %rsi    # 0x1369ba
movq %rbx, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq 0x10(%r14), %rsi
addq $0x6, %rsi
movl (%r14), %edx
callq 0xef570
movq %rax, 0x18(%r14)
leaq 0xecc37(%rip), %rsi     # 0x112a14
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
cmpl $0x2, %r15d
jb 0x25e1a
leaq 0xee676(%rip), %rsi     # 0x11446c
movq %rbx, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xe9b27
jmp 0x25e1a
movq 0x10(%r14), %rdx
leaq 0xee63c(%rip), %rsi     # 0x11444c
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9df7
movl 0x28(%rsp), %esi
movq %rbx, %rdi
callq 0xe9595
cmpb %r12b, %bpl
jne 0x26188
leaq 0x14(%rsp), %rsi
movq %rbx, %rdi
callq 0xe958c
movq 0x10(%r14), %r15
addq $0xc, %r15
leaq 0xee644(%rip), %rsi     # 0x11448f
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
cmpq $0x0, 0x18(%r14)
jle 0x26165
xorl %ebp, %ebp
leaq 0xc(%rbp), %rax
cmpq 0x8(%r14), %rax
jg 0x26165
movq %rbx, %rdi
leaq 0xecba7(%rip), %rsi     # 0x112a31
movl %ebp, %edx
movq %r15, %rcx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movl $0x40, %esi
movq %rbx, %rdi
callq 0xe969b
movq %rax, %r12
movq 0x18(%rbx), %rdi
leaq 0x10(%rax), %rdx
movq %r15, %rsi
movl $0x4, %ecx
xorl %r8d, %r8d
callq 0xf1d74
leaq 0x20(%r12), %rdx
movq %rbx, %rdi
leaq 0xee5c8(%rip), %rsi     # 0x1144a2
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movl (%r14), %edx
leaq 0x4(%r15), %rsi
callq 0xef614
movq %rax, (%r12)
movq %rbx, %rdi
leaq 0x11f4ed(%rip), %rsi    # 0x1453ec
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movl (%r14), %edx
addq $0x8, %r15
movq %r15, %rsi
callq 0xef614
movq %rax, 0x8(%r12)
movq %rbx, %rdi
leaq 0x1248e7(%rip), %rsi    # 0x14a812
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq 0x8(%r12), %r13
cmpq 0x10(%r14), %r13
jl 0x25f4e
movq (%r12), %rcx
leaq (%rcx,%r13), %rax
cmpq 0x8(%r14), %rax
jle 0x25f7c
movq %rbx, %rdi
movq %r12, %rsi
callq 0xe9752
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
incq %rbp
addq $0x4, %r15
cmpq 0x18(%r14), %rbp
jl 0x25e72
jmp 0x26165
movl 0x14(%r12), %eax
cmpl $0x50725677, %eax       # imm = 0x50725677
je 0x25fe2
cmpl $0x4e61696c, %eax       # imm = 0x4E61696C
je 0x25fe2
cmpl $0x49505443, %eax       # imm = 0x49505443
jne 0x26122
movq %rbx, %rdi
leaq 0xee507(%rip), %rsi     # 0x1144ab
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x18(%rbx), %rsi
movq (%r12), %rcx
movq 0x8(%r12), %rdx
movq %rbx, %rdi
xorl %r8d, %r8d
callq 0xf7eb8
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
jmp 0x25f4e
movq $0x0, 0x18(%rsp)
cmpq $0xa, (%r12)
jl 0x25f4e
movq 0x18(%rbx), %rdi
movl (%r14), %edx
movq %r13, %rsi
callq 0xef570
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
leaq 0xee4a5(%rip), %rsi     # 0x1144b9
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
cmpl $0x1, 0x8(%rsp)
jne 0x25f4e
leaq 0x2(%r13), %rsi
movq 0x18(%rbx), %rdi
movl (%r14), %edx
callq 0xef570
movq %rax, 0x8(%rsp)
leaq 0x4(%r13), %rsi
movq 0x18(%rbx), %rdi
movl (%r14), %edx
callq 0xef570
leaq 0x6(%r13), %rcx
movq %rcx, 0x20(%rsp)
movq %rbx, %rdi
leaq 0xee46c(%rip), %rsi     # 0x1144cc
movq 0x8(%rsp), %rdx
movl %eax, %ecx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq 0x20(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movl $0x4, %ecx
xorl %r8d, %r8d
callq 0xf1d74
leaq 0xa(%r13), %rax
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
leaq 0xee44c(%rip), %rsi     # 0x1144e8
leaq 0x38(%rsp), %rdx
xorl %eax, %eax
callq 0xe9226
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 0xee42d(%rip), %rsi     # 0x1144f9
movq 0x8(%rsp), %rcx
leaq 0x18(%rsp), %r9
callq 0xf1a9c
testl %eax, %eax
je 0x2614f
cmpl $0x50725677, 0x14(%r12) # imm = 0x50725677
leaq 0xee444(%rip), %rcx     # 0x114533
leaq 0xee42d(%rip), %rax     # 0x114523
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 0xf0321
jmp 0x25f4e
cmpl $0x2, (%rbx)
jl 0x25f4e
movq 0x18(%rbx), %rsi
movl $0x1, (%rsp)
movl $0x100, %r8d            # imm = 0x100
movq %rbx, %rdi
movq %r13, %rdx
xorl %r9d, %r9d
callq 0xe975a
jmp 0x25f4e
movq %rbx, %rdi
leaq 0xee3a4(%rip), %rsi     # 0x1144fd
xorl %eax, %eax
callq 0xe9226
jmp 0x25f4e
movl 0x14(%rsp), %esi
jmp 0x26180
leaq 0xee283(%rip), %rsi     # 0x1143f5
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9df7
movl 0x28(%rsp), %esi
movq %rbx, %rdi
callq 0xe9595
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe9752
movl 0x10(%rsp), %esi
movq %rbx, %rdi
callq 0xe9595
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop