// File: /workspace/github_c_makefile_star2_O1/jsummers[P]deark/modules/ar.c
// Function: de_run_ar
static void de_run_ar(deark *c, de_module_params *mparams)
{
	lctx *d = NULL;
	i64 pos;
	i64 item_len;
	int ret;

	d = de_malloc(c, sizeof(lctx));
	d->input_encoding = de_get_input_encoding(c, NULL, DE_ENCODING_UTF8);

	pos = 8;
	while(1) {
		if(pos >= c->infile->len) break;
		ret = do_ar_item(c, d, pos, &item_len);
		if(!ret || item_len<1) break;
		pos += item_len;
	}

	de_free(c, d);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdi, %rbx
movl $0x18, %esi
callq 0xe969b
movq %rax, %r12
movq %rbx, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0xeb7d1
movl %eax, (%r12)
movq 0x18(%rbx), %rax
cmpq $0x9, 0x18(%rax)
jl 0x1df04
movl $0x8, %r15d
movq %r12, (%rsp)
movq $0x0, 0x8(%rsp)
movq %rbx, %rdi
leaq 0x11dd07(%rip), %rsi    # 0x13b7db
movq %r15, %rdx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movq %rbx, %rdi
callq 0xea9a9
movq %rax, 0x30(%rsp)
movq 0x18(%rbx), %rdi
movl $0x10, %ecx
leaq 0x10(%rsp), %rsi
movq %r15, %rdx
callq 0xeeee8
movb $0x0, 0x20(%rsp)
movl $0xf, %eax
cmpb $0x20, 0x10(%rsp,%rax)
jne 0x1db2a
movb $0x0, 0x10(%rsp,%rax)
addq $-0x1, %rax
jb 0x1db18
leaq 0x10(%rsp), %r13
movq %r13, %rdi
callq 0x180e0
movq %rax, %r14
movq %rbx, %rdi
callq 0xf6870
movq %rax, %rbp
movl (%r12), %r8d
movq %rax, %rdi
movq %r13, %rsi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0xf7131
movq %rbp, %rdi
callq 0xf74bd
movq %rbx, %rdi
leaq 0xf447b(%rip), %rsi     # 0x111fe6
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
leaq 0x10(%r15), %rsi
movl $0xc, %edx
movl $0xa, %ecx
leaq 0x50(%rsp), %r8
callq 0xefa0a
movq 0x50(%rsp), %rdi
movq 0x30(%rsp), %r13
movq %r13, %r12
addq $0x18, %r12
movq %r12, %rsi
movl $0x1, %edx
callq 0xeace2
movl $0x40, %edx
movq %r12, %rdi
leaq 0x60(%rsp), %r12
movq %r12, %rsi
xorl %ecx, %ecx
callq 0xeb4f8
movq 0x50(%rsp), %rdx
movq %rbx, %rdi
leaq 0xf4427(%rip), %rsi     # 0x111ffc
movq %r12, %rcx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
leaq 0x28(%r15), %rsi
movl $0x8, %edx
movl $0x8, %ecx
leaq 0x48(%rsp), %r8
callq 0xefa0a
movl 0x48(%rsp), %edx
movq %rbx, %rdi
leaq 0xf4406(%rip), %rsi     # 0x11200f
xorl %eax, %eax
callq 0xe9226
movq 0x48(%rsp), %rax
andl $0x49, %eax
cmpq $0x1, %rax
movl $0x2, %eax
sbbl $0x0, %eax
orl %eax, 0x14(%r13)
leaq 0x3c(%r15), %r13
movq 0x18(%rbx), %rdi
leaq 0x30(%r15), %rsi
movl $0xa, %edx
movl $0xa, %ecx
leaq 0x8(%rsp), %r8
callq 0xefa0a
movq 0x8(%rsp), %rcx
movq %rbx, %rdi
leaq 0xf43cf(%rip), %rsi     # 0x112026
movq %r13, %rdx
xorl %eax, %eax
callq 0xe9226
testq %r14, %r14
je 0x1dc87
cmpw $0x2f, 0x10(%rsp)
jne 0x1dca0
xorl %r12d, %r12d
movq %rbx, %rdi
leaq 0xf43da(%rip), %rsi     # 0x112055
xorl %eax, %eax
callq 0xe9226
jmp 0x1ddee
xorl %r12d, %r12d
movq %rbx, %rdi
leaq 0xf43b0(%rip), %rsi     # 0x112044
xorl %eax, %eax
callq 0xe9b27
jmp 0x1ddee
movl 0x10(%rsp), %eax
movl $0x2f2f, %ecx           # imm = 0x2F2F
xorl %ecx, %eax
movzbl 0x12(%rsp), %ecx
orw %ax, %cx
je 0x1dda0
movb 0x10(%rsp), %al
cmpb $0x2f, %al
jne 0x1ddc7
movb 0x11(%rsp), %cl
addb $-0x30, %cl
cmpb $0x9, %cl
ja 0x1ddc7
movq (%rsp), %r12
cmpq $0x0, 0x8(%r12)
je 0x1dee8
movq 0x18(%rbx), %rdi
leaq 0x1(%r15), %rsi
movl $0xf, %edx
movl $0xa, %ecx
leaq 0x38(%rsp), %r8
callq 0xefa0a
movq 0x38(%rsp), %rdx
movq 0x10(%r12), %rcx
movb $0x1, %r14b
subq %rdx, %rcx
jle 0x1defc
movq 0x18(%rbx), %rdi
addq 0x8(%r12), %rdx
movl $0xa, %esi
leaq 0x58(%rsp), %r8
callq 0xf0057
testl %eax, %eax
je 0x1defc
movq 0x8(%r12), %rax
addq 0x38(%rsp), %rax
movq 0x58(%rsp), %rsi
movq %rsi, %r14
subq %rax, %r14
testq %r14, %r14
jle 0x1dd67
movq 0x18(%rbx), %rdi
decq %rsi
callq 0xef0d5
xorl %ecx, %ecx
cmpb $0x2f, %al
sete %cl
subq %rcx, %r14
movq %rbx, %rdi
callq 0xf6870
movq %rax, %r12
movq 0x18(%rbx), %rdi
movq 0x38(%rsp), %rsi
movq (%rsp), %rax
addq 0x8(%rax), %rsi
movl (%rax), %r9d
movq %r14, %rdx
movq %r12, %rcx
xorl %r8d, %r8d
callq 0xf01b0
leaq 0xf42f1(%rip), %rax     # 0x11208c
jmp 0x1de8f
xorl %r12d, %r12d
movq %rbx, %rdi
leaq 0xf42cb(%rip), %rsi     # 0x112078
xorl %eax, %eax
callq 0xe9226
movq (%rsp), %rcx
movq %r13, 0x8(%rcx)
movq 0x8(%rsp), %rax
movq %rax, 0x10(%rcx)
jmp 0x1ddee
cmpb $0x2f, %al
jne 0x1de59
movq %rbp, %rdi
callq 0xf74bd
xorl %r12d, %r12d
movq %rbx, %rdi
leaq 0xf42c0(%rip), %rsi     # 0x1120a4
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9b27
xorl %r14d, %r14d
movq 0x8(%rsp), %r13
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
callq 0xea9b3
movq %rbp, %rdi
callq 0xf6bb0
movq %r12, %rdi
callq 0xf6bb0
testb %r14b, %r14b
movq (%rsp), %r12
jne 0x1df04
movl %r13d, %eax
andl $0x1, %eax
addq %r13, %rax
addq $0x3c, %rax
testq %rax, %rax
jle 0x1df04
addq %rax, %r15
movq 0x18(%rbx), %rax
cmpq 0x18(%rax), %r15
jl 0x1dac1
jmp 0x1df04
movq %rbx, %rdi
callq 0xf6870
movq %rax, %r12
cmpb $0x2f, 0xf(%rsp,%r14)
leaq -0x1(%r14), %rdx
cmovneq %r14, %rdx
movq (%rsp), %rax
movl (%rax), %r8d
movq %r12, %rdi
leaq 0x10(%rsp), %rsi
xorl %ecx, %ecx
callq 0xf7131
leaq 0x11db45(%rip), %rax    # 0x13b9d4
movq %rax, 0x40(%rsp)
movq %r12, %rdi
callq 0xf74bd
xorl %r14d, %r14d
movq %rbx, %rdi
movq 0x40(%rsp), %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0xea9e4
movq 0x30(%rsp), %r8
movb $0x1, 0x8(%r8)
movq 0x18(%rbx), %rdi
movq 0x8(%rsp), %rdx
movq %r13, %rsi
xorl %ecx, %ecx
xorl %r9d, %r9d
callq 0xf0321
jmp 0x1ddf1
movq %rbx, %rdi
leaq 0xf417e(%rip), %rsi     # 0x112070
xorl %eax, %eax
callq 0xe9df7
movb $0x1, %r14b
xorl %r12d, %r12d
jmp 0x1ddf1
movq %rbx, %rdi
movq %r12, %rsi
callq 0xe9752
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq