// File: /workspace/github_c_makefile_star2_O3/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 0xe8b2b
movq %rax, %r14
movq %rbx, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0xeb220
movq %r14, (%rsp)
movl %eax, (%r14)
movq 0x18(%rbx), %rax
cmpq $0x9, 0x18(%rax)
jl 0x1e020
movl $0x8, %r15d
leaq 0x10(%rsp), %r13
movq $0x0, 0x8(%rsp)
movq %rbx, %rdi
leaq 0x11df6d(%rip), %rsi    # 0x13bb55
movq %r15, %rdx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq %rbx, %rdi
callq 0xea504
movq %rax, 0x30(%rsp)
movq 0x18(%rbx), %rdi
movl $0x10, %ecx
movq %r13, %rsi
movq %r15, %rdx
callq 0xee8d4
movb $0x0, 0x20(%rsp)
movl $0xf, %eax
cmpb $0x20, 0x10(%rsp,%rax)
jne 0x1dc3c
movb $0x0, 0x10(%rsp,%rax)
addq $-0x1, %rax
jb 0x1dc2a
movq %r13, %rdi
callq 0x180e0
movq %rax, %r14
movq %rbx, %rdi
callq 0xf6410
movq %rax, %rbp
movq (%rsp), %rax
movl (%rax), %r8d
movq %rbp, %rdi
movq %r13, %rsi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0xf6cdd
movq %rbp, %rdi
callq 0xf705c
movq %rbx, %rdi
leaq 0xf437b(%rip), %rsi     # 0x111ff6
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
leaq 0x10(%r15), %rsi
movl $0xc, %edx
movl $0xa, %ecx
leaq 0x50(%rsp), %r8
callq 0xef3d9
movq 0x50(%rsp), %rdi
movq 0x30(%rsp), %r12
movq %r12, %r13
addq $0x18, %r13
movq %r13, %rsi
movl $0x1, %edx
callq 0xea7f5
movl $0x40, %edx
movq %r13, %rdi
leaq 0x60(%rsp), %r13
movq %r13, %rsi
xorl %ecx, %ecx
callq 0xeaf46
movq 0x50(%rsp), %rdx
movq %rbx, %rdi
leaq 0xf4327(%rip), %rsi     # 0x11200c
movq %r13, %rcx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
leaq 0x28(%r15), %rsi
movl $0x8, %edx
movl $0x8, %ecx
leaq 0x48(%rsp), %r8
callq 0xef3d9
movl 0x48(%rsp), %edx
movq %rbx, %rdi
leaq 0xf4306(%rip), %rsi     # 0x11201f
xorl %eax, %eax
callq 0xe8617
movq 0x48(%rsp), %rax
andl $0x49, %eax
cmpq $0x1, %rax
movl $0x2, %eax
sbbl $0x0, %eax
orl %eax, 0x14(%r12)
leaq 0x3c(%r15), %r12
movq 0x18(%rbx), %rdi
leaq 0x30(%r15), %rsi
movl $0xa, %edx
movl $0xa, %ecx
leaq 0x8(%rsp), %r8
callq 0xef3d9
movq 0x8(%rsp), %rcx
movq %rbx, %rdi
leaq 0xf42ce(%rip), %rsi     # 0x112036
movq %r12, %rdx
xorl %eax, %eax
callq 0xe8617
testq %r14, %r14
je 0x1dd9b
movzwl 0x10(%rsp), %eax
cmpw $0x2f, %ax
jne 0x1ddb4
xorl %r13d, %r13d
movq %rbx, %rdi
leaq 0xf42d6(%rip), %rsi     # 0x112065
xorl %eax, %eax
callq 0xe8617
jmp 0x1df07
xorl %r13d, %r13d
movq %rbx, %rdi
leaq 0xf42ac(%rip), %rsi     # 0x112054
xorl %eax, %eax
callq 0xe8faa
jmp 0x1df07
movl 0x10(%rsp), %ecx
movl $0x2f2f, %edx           # imm = 0x2F2F
xorl %edx, %ecx
movzbl 0x12(%rsp), %edx
orw %cx, %dx
je 0x1deb7
movzbl %al, %ecx
cmpw $0x2f, %cx
jne 0x1dede
shrl $0x8, %eax
addb $-0x30, %al
cmpb $0x9, %al
ja 0x1dede
movq %r12, 0x40(%rsp)
movq (%rsp), %r12
cmpq $0x0, 0x8(%r12)
je 0x1e004
movq 0x18(%rbx), %rdi
leaq 0x1(%r15), %rsi
movl $0xf, %edx
movl $0xa, %ecx
leaq 0x38(%rsp), %r8
callq 0xef3d9
movq 0x38(%rsp), %rdx
movq 0x10(%r12), %rcx
movb $0x1, %r14b
subq %rdx, %rcx
jle 0x1e018
movq 0x18(%rbx), %rdi
addq 0x8(%r12), %rdx
movl $0xa, %esi
leaq 0x58(%rsp), %r8
callq 0xefa77
testl %eax, %eax
je 0x1e018
movq 0x8(%r12), %rax
addq 0x38(%rsp), %rax
movq 0x58(%rsp), %rsi
movq %rsi, %r14
subq %rax, %r14
testq %r14, %r14
jle 0x1de7e
movq 0x18(%rbx), %rdi
decq %rsi
callq 0xeead3
xorl %ecx, %ecx
cmpb $0x2f, %al
sete %cl
subq %rcx, %r14
movq %rbx, %rdi
callq 0xf6410
movq %rax, %r13
movq 0x18(%rbx), %rdi
movq 0x38(%rsp), %rsi
movq (%rsp), %rax
addq 0x8(%rax), %rsi
movl (%rax), %r9d
movq %r14, %rdx
movq %r13, %rcx
xorl %r8d, %r8d
callq 0xefbd7
leaq 0xf41ea(%rip), %r12     # 0x11209c
jmp 0x1dfae
xorl %r13d, %r13d
movq %rbx, %rdi
leaq 0xf41c4(%rip), %rsi     # 0x112088
xorl %eax, %eax
callq 0xe8617
movq (%rsp), %rcx
movq %r12, 0x8(%rcx)
movq 0x8(%rsp), %rax
movq %rax, 0x10(%rcx)
jmp 0x1df07
cmpw $0x2f, %cx
jne 0x1df73
movq %rbp, %rdi
callq 0xf705c
xorl %r13d, %r13d
movq %rbx, %rdi
leaq 0xf41b7(%rip), %rsi     # 0x1120b4
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8faa
xorl %r14d, %r14d
movq 0x8(%rsp), %r12
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
callq 0xea50e
movq %rbp, %rdi
callq 0xf6753
movq %r13, %rdi
callq 0xf6753
testb %r14b, %r14b
leaq 0x10(%rsp), %r13
jne 0x1e020
movl %r12d, %eax
andl $0x1, %eax
addq %r12, %rax
addq $0x3c, %rax
testq %rax, %rax
jle 0x1e020
addq %rax, %r15
movq 0x18(%rbx), %rax
cmpq 0x18(%rax), %r15
jl 0x1dbd5
jmp 0x1e020
movq %r12, 0x40(%rsp)
movq %rbx, %rdi
callq 0xf6410
movq %rax, %r13
cmpb $0x2f, 0xf(%rsp,%r14)
leaq -0x1(%r14), %rdx
cmovneq %r14, %rdx
movq (%rsp), %rax
movl (%rax), %r8d
movq %r13, %rdi
leaq 0x10(%rsp), %rsi
xorl %ecx, %ecx
callq 0xf6cdd
leaq 0x11dda0(%rip), %r12    # 0x13bd4e
movq %r13, %rdi
callq 0xf705c
xorl %r14d, %r14d
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movq 0x30(%rsp), %r12
movq %r12, %rsi
movq %r13, %rdx
xorl %ecx, %ecx
callq 0xea53f
movb $0x1, 0x8(%r12)
movq 0x18(%rbx), %rdi
movq 0x8(%rsp), %rdx
movq 0x40(%rsp), %rsi
xorl %ecx, %ecx
movq %r12, %r8
xorl %r9d, %r9d
callq 0xefd48
jmp 0x1df0a
movq %rbx, %rdi
leaq 0xf4072(%rip), %rsi     # 0x112080
xorl %eax, %eax
callq 0xe9295
movb $0x1, %r14b
xorl %r13d, %r13d
jmp 0x1df0a
movq %rbx, %rdi
movq (%rsp), %rsi
callq 0xe8be2
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq