// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x18
popq %rsi
callq 0xdecaf
movq %rax, %r14
pushq $0x2
popq %rdx
movq %rbx, %rdi
xorl %esi, %esi
callq 0xe08d2
movq %r14, 0x8(%rsp)
movl %eax, (%r14)
pushq $0x8
popq %r13
movq 0x18(%rbx), %rax
cmpq 0x18(%rax), %r13
jge 0x1db64
andq $0x0, (%rsp)
movq %rbx, %rdi
leaq 0x111120(%rip), %rsi    # 0x12e865
movq %r13, %rdx
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movq %rbx, %rdi
callq 0xdfd1a
movq %rax, 0x28(%rsp)
movq 0x18(%rbx), %rdi
leaq 0x10(%rsp), %rsi
movq %r13, %rdx
pushq $0x10
popq %rcx
callq 0xe3cb7
movb $0x0, 0x20(%rsp)
pushq $0xf
popq %rax
movq 0x8(%rsp), %rbp
testq %rax, %rax
js 0x1d79e
cmpb $0x20, 0x10(%rsp,%rax)
jne 0x1d79e
movb $0x0, 0x10(%rsp,%rax)
decq %rax
jmp 0x1d788
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x180e0
movq %rax, %r12
movq %rbx, %rdi
callq 0xeac74
movq %rax, %r15
movl (%rbp), %r8d
movq %rax, %rdi
movq %r14, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0xeb4a9
movq %r15, 0x38(%rsp)
movq %r15, %rdi
callq 0xeb7e4
movq %rbx, %rdi
leaq 0xe77f2(%rip), %rsi     # 0x104fd6
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
leaq 0x10(%r13), %rsi
pushq $0xc
popq %rdx
pushq $0xa
popq %rbp
movl %ebp, %ecx
leaq 0x48(%rsp), %r8
callq 0xe4553
movq 0x48(%rsp), %rdi
movq 0x28(%rsp), %r15
movq %r15, %r14
addq $0x18, %r14
movq %r14, %rsi
pushq $0x1
popq %rdx
callq 0xe002e
movq %r14, %rdi
leaq 0x60(%rsp), %r14
movq %r14, %rsi
pushq $0x40
popq %rdx
xorl %ecx, %ecx
callq 0xe0644
movq 0x48(%rsp), %rdx
movq %rbx, %rdi
leaq 0xe77a4(%rip), %rsi     # 0x104fec
movq %r14, %rcx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
leaq 0x28(%r13), %rsi
pushq $0x8
popq %rdx
pushq $0x8
popq %rcx
leaq 0x40(%rsp), %r8
callq 0xe4553
movl 0x40(%rsp), %edx
movq %rbx, %rdi
leaq 0xe7787(%rip), %rsi     # 0x104fff
xorl %eax, %eax
callq 0xde896
movq 0x40(%rsp), %rax
andl $0x49, %eax
cmpq $0x1, %rax
pushq $0x2
popq %rax
sbbl $0x0, %eax
orl %eax, 0x14(%r15)
leaq 0x3c(%r13), %r15
movq 0x18(%rbx), %rdi
leaq 0x30(%r13), %rsi
pushq $0xa
popq %rdx
movl %ebp, %ecx
movq %rsp, %r8
callq 0xe4553
movq (%rsp), %rcx
movq %rbx, %rdi
leaq 0xe775a(%rip), %rsi     # 0x105016
movq %r15, %rdx
xorl %eax, %eax
callq 0xde896
testq %r12, %r12
je 0x1d8f1
movzwl 0x10(%rsp), %r14d
cmpw $0x2f, %r14w
jne 0x1d90a
xorl %r14d, %r14d
movq %rbx, %rdi
leaq 0xe7760(%rip), %rsi     # 0x105045
xorl %eax, %eax
callq 0xde896
jmp 0x1da62
xorl %r14d, %r14d
movq %rbx, %rdi
leaq 0xe7736(%rip), %rsi     # 0x105034
xorl %eax, %eax
callq 0xdf05a
jmp 0x1da62
leaq 0x10(%rsp), %rdi
leaq 0xe7747(%rip), %rsi     # 0x10505d
pushq $0x3
popq %rdx
callq 0x18230
testl %eax, %eax
je 0x1da10
movq %r15, 0x50(%rsp)
movzbl %r14b, %eax
cmpw $0x2f, %ax
movq 0x8(%rsp), %r15
jne 0x1da37
shrl $0x8, %r14d
addb $-0x30, %r14b
cmpb $0x9, %r14b
ja 0x1da37
cmpq $0x0, 0x8(%r15)
pushq $0xa
popq %rbp
je 0x1db48
movq %r15, %r14
movq 0x18(%rbx), %rdi
leaq 0x1(%r13), %rsi
pushq $0xf
popq %rdx
movl %ebp, %ecx
leaq 0x30(%rsp), %r8
callq 0xe4553
movq 0x30(%rsp), %rdx
movq 0x10(%r15), %rcx
movb $0x1, %r12b
subq %rdx, %rcx
jle 0x1db5c
movq 0x18(%rbx), %rdi
addq 0x8(%r14), %rdx
movl %ebp, %esi
leaq 0x58(%rsp), %r8
callq 0xe4b21
testl %eax, %eax
je 0x1db5c
movq 0x8(%r14), %rax
addq 0x30(%rsp), %rax
movq 0x58(%rsp), %rsi
movq %rsi, %r12
subq %rax, %r12
testq %r12, %r12
movq %r14, %r15
jle 0x1d9db
movq 0x18(%rbx), %rdi
decq %rsi
callq 0xe3eb4
xorl %ecx, %ecx
cmpb $0x2f, %al
sete %cl
subq %rcx, %r12
movq %rbx, %rdi
callq 0xeac74
movq %rax, %r14
movq 0x18(%rbx), %rdi
movq 0x30(%rsp), %rsi
addq 0x8(%r15), %rsi
movl (%r15), %r9d
movq %r12, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
callq 0xe4c9a
leaq 0xe7671(%rip), %r15     # 0x10507c
jmp 0x1daf4
xorl %r14d, %r14d
movq %rbx, %rdi
leaq 0xe764b(%rip), %rsi     # 0x105068
xorl %eax, %eax
callq 0xde896
movq 0x8(%rsp), %rcx
movq %r15, 0x8(%rcx)
movq (%rsp), %rax
movq %rax, 0x10(%rcx)
jmp 0x1da62
cmpw $0x2f, %ax
jne 0x1dac1
movq 0x38(%rsp), %rdi
callq 0xeb7e4
xorl %r14d, %r14d
movq %rbx, %rdi
leaq 0xe763c(%rip), %rsi     # 0x105094
movq %rax, %rdx
xorl %eax, %eax
callq 0xdf05a
xorl %r12d, %r12d
movq (%rsp), %rbp
movq %rbx, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
movq %rbx, %rdi
movq 0x28(%rsp), %rsi
callq 0xdfd24
movq 0x38(%rsp), %rdi
callq 0xeaf3c
movq %r14, %rdi
callq 0xeaf3c
testb %r12b, %r12b
jne 0x1db64
movl %ebp, %eax
andl $0x1, %eax
leaq (%rax,%rbp), %rcx
addq %rbp, %rax
addq $0x3c, %rax
addq %rcx, %r13
addq $0x3c, %r13
testq %rax, %rax
jg 0x1d728
jmp 0x1db64
movq %rbx, %rdi
callq 0xeac74
movq %rax, %r14
cmpb $0x2f, 0xf(%rsp,%r12)
leaq -0x1(%r12), %rdx
cmovneq %r12, %rdx
movl (%r15), %r8d
movq %rax, %rdi
leaq 0x10(%rsp), %rsi
xorl %ecx, %ecx
callq 0xeb4a9
leaq 0x110f6a(%rip), %r15    # 0x12ea5e
movq %r14, %rdi
callq 0xeb7e4
xorl %r12d, %r12d
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
movq 0x28(%rsp), %r15
movq %r15, %rsi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0xdfd55
movb $0x1, 0x8(%r15)
movq 0x18(%rbx), %rdi
movq (%rsp), %rdx
movq 0x50(%rsp), %rsi
xorl %ecx, %ecx
movq %r15, %r8
xorl %r9d, %r9d
callq 0xe4e0b
jmp 0x1da65
movq %rbx, %rdi
leaq 0xe750e(%rip), %rsi     # 0x105060
xorl %eax, %eax
callq 0xdf2a5
movb $0x1, %r12b
xorl %r14d, %r14d
jmp 0x1da65
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
callq 0xded32
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq