// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/arcfs.c
// Function: de_run_arcfs
static void de_run_arcfs(deark *c, de_module_params *mparams)
{
	lctx *d = NULL;
	i64 pos;

	d = de_malloc(c, sizeof(lctx));
	pos = 0;
	if(!do_arcfs_file_header(c, d, pos)) goto done;
	pos += 96;

	d->curpath = de_strarray_create(c, MAX_NESTING_LEVEL+10);
	d->crco = de_crcobj_create(c, DE_CRCOBJ_CRC16_ARC);
	do_arcfs_members(c, d, pos);

done:
	if(d) {
		de_crcobj_destroy(d->crco);
		de_strarray_destroy(d->curpath);
		de_free(c, d);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %rdi, %rbx
pushq $0x28
popq %rsi
callq 0xdecaf
movq %rax, %r14
leaq 0xe2e8d(%rip), %rsi     # 0x107037
movq %rbx, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0xdeba7
leaq 0xd8(%rsp), %r15
movq $0x8, (%r15)
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xe40bf
movq %rax, %rcx
pushq $0x24
popq %rsi
cqto
idivq %rsi
movq %rax, 0x8(%r14)
leaq 0xe2e57(%rip), %rsi     # 0x107049
movq %rbx, %rdi
movl %ecx, %edx
movl %eax, %ecx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xe40bf
movq %rax, 0x10(%r14)
leaq 0xede88(%rip), %rsi     # 0x11209f
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xe40bf
pushq $0x64
popq %rbp
xorl %edx, %edx
divl %ebp
movl %edx, %ecx
leaq 0xe2e26(%rip), %rsi     # 0x107065
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xe40bf
xorl %edx, %edx
divl %ebp
movl %edx, %ecx
leaq 0xe2e21(%rip), %rsi     # 0x107085
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xe40bf
movq %rax, %r15
leaq 0xe2e31(%rip), %rsi     # 0x1070b7
movq %rbx, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xde896
testl %r15d, %r15d
je 0x242e6
leaq 0xe2e0c(%rip), %rsi     # 0x1070ab
movq %rbx, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xdf2a5
pushq $-0x1
popq %rsi
movq %rbx, %rdi
callq 0xdeba7
movq 0x18(%r14), %rdi
callq 0xe0e8d
movq 0x20(%r14), %rdi
callq 0xeb97e
movq %rbx, %rdi
movq %r14, %rsi
callq 0xded32
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $-0x1
popq %r13
movq %rbx, %rdi
movl %r13d, %esi
callq 0xdeba7
pushq $0x2a
popq %rsi
movq %rbx, %rdi
callq 0xeb95d
movq %rax, 0x20(%r14)
pushq $0x21
popq %rsi
movq %rbx, %rdi
callq 0xe0ae9
movq %rax, 0x18(%r14)
movl $0x80, %ecx
xorl %edx, %edx
movq %r14, 0x10(%rsp)
cmpq 0x8(%r14), %rdx
jge 0x242b7
leaq -0x20(%rcx), %r12
movq 0x18(%rbx), %rax
cmpq 0x18(%rax), %r12
jge 0x242b7
movq %rcx, 0x20(%rsp)
movq %rbx, %rdi
leaq 0xe2d88(%rip), %rsi     # 0x1070ca
movq %rdx, 0x40(%rsp)
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
pushq $0x1
popq %rbp
movl %ebp, %esi
callq 0xdeba7
movq %r12, 0x8(%rsp)
movq %rbx, %rdi
leaq 0x1c(%rsp), %rsi
callq 0xdebae
movq %rbx, %rdi
pushq $0x70
popq %rsi
callq 0xdecaf
movq %rax, %r15
movq %rbx, %rdi
leaq 0xf1e3a(%rip), %rsi     # 0x1161bf
movq %r12, %rdx
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
movl %ebp, %esi
callq 0xdeba7
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0xe3f2a
movzbl %al, %r12d
leal -0x82(%r12), %eax
cmpl $0x7, %eax
ja 0x243db
leaq 0xe2c09(%rip), %rcx     # 0x106fc8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
leaq 0xe2dca(%rip), %rcx     # 0x107197
jmpq *%rax
leaq 0xe2dc8(%rip), %rcx     # 0x10719e
jmp 0x24471
cmpl $0xff, %r12d
je 0x2446a
cmpl $0x1, %r12d
je 0x24446
testl %r12d, %r12d
jne 0x2442b
leaq 0xe2d7c(%rip), %rcx     # 0x107176
movq %rcx, 0x60(%r15)
movq %rbx, %rdi
leaq 0xe2ccd(%rip), %rsi     # 0x1070d5
xorl %edx, %edx
xorl %eax, %eax
callq 0xde896
movl (%r14), %eax
testl %eax, %eax
jle 0x2441d
decl %eax
movl %eax, (%r14)
movq 0x20(%r14), %rdi
callq 0xeb9bd
jmp 0x24aa8
leaq 0xfaaaf(%rip), %rcx     # 0x11eee1
jmp 0x24471
leaq 0xe2d79(%rip), %rcx     # 0x1071b4
jmp 0x24471
leaq 0xe2d67(%rip), %rcx     # 0x1071ab
jmp 0x24471
leaq 0xe2d3b(%rip), %rcx     # 0x107188
movq %rcx, 0x60(%r15)
movq %rbx, %rdi
leaq 0xe2c7a(%rip), %rsi     # 0x1070d5
pushq $0x1
popq %rdx
xorl %eax, %eax
callq 0xde896
jmp 0x24aa8
leaq 0xf14a8(%rip), %rcx     # 0x115919
movq %rcx, 0x60(%r15)
movq %rbx, %rdi
leaq 0xe2c56(%rip), %rsi     # 0x1070d5
movl %r12d, %edx
xorl %eax, %eax
callq 0xde896
movb %r12b, 0x38(%r15)
movq 0x18(%rbx), %rdi
movq 0x20(%rsp), %rsi
callq 0xe409f
movq %rax, %r12
xorl %eax, %eax
testl %r12d, %r12d
setns %al
movl %r12d, %ecx
shrl $0x1f, %ecx
movl %ecx, 0x30(%r15)
movl %eax, 0x34(%r15)
movq %rbx, %rdi
callq 0xeac74
movq %rax, 0x68(%r15)
movq 0x18(%rbx), %rdi
movq 0x8(%rsp), %rsi
pushq $0xb
popq %rdx
movq %rax, %rcx
pushq $0x1
popq %r8
pushq $0x14
popq %r9
callq 0xe4c9a
movq 0x68(%r15), %rdi
callq 0xeb877
movq %rbx, %rdi
leaq 0x10a56f(%rip), %rsi    # 0x12ea5e
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
cmpl $0x0, 0x30(%r15)
je 0x2451e
movl (%r14), %eax
cmpl $0x20, %eax
jge 0x24afc
incl %eax
movl %eax, (%r14)
movq 0x20(%r14), %rdi
movq 0x68(%r15), %rsi
callq 0xeb9f5
addq $0xb, 0x8(%rsp)
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0xe40bf
movq %rax, 0x50(%r15)
cmpl $0x0, 0x34(%r15)
je 0x24551
movq %rbx, %rdi
leaq 0xe2bc3(%rip), %rsi     # 0x10710a
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rsi
movq 0x8(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rdx
callq 0xed922
movq 0x8(%rsp), %rcx
addq $0x8, %rcx
movq %rcx, 0x8(%rsp)
xorl %r8d, %r8d
cmpl $0x0, 0x34(%r15)
setne %r8b
movzbl 0x38(%r15), %eax
cmpl $0xff, %eax
je 0x24592
cmpl $0x88, %eax
jne 0x24596
orl $0x2, %r8d
movq 0x18(%rbx), %rsi
movq %rbx, %rdi
movq %r15, %rdx
callq 0xeda08
addq $0x4, 0x8(%rsp)
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0xe40bf
movq %rax, 0x58(%r15)
cmpl $0x0, 0x34(%r15)
je 0x245d8
movq %rbx, %rdi
leaq 0xe2b52(%rip), %rsi     # 0x107120
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
leaq 0xe2b55(%rip), %rsi     # 0x107137
movl %r12d, %edx
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movl 0x30(%r15), %edx
movq %rbx, %rdi
leaq 0xe2b44(%rip), %rsi     # 0x107149
xorl %eax, %eax
callq 0xde896
cmpl $0x0, 0x34(%r15)
je 0x24637
movl %r12d, %ecx
movq %rcx, 0x40(%r15)
movq 0x10(%r14), %rdx
leaq (%rdx,%rcx), %rax
movq %rax, 0x48(%r15)
movq %rbx, %rdi
leaq 0xe2b2a(%rip), %rsi     # 0x10715a
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
movl %r13d, %esi
callq 0xdeba7
movq %rbx, %rdi
movl %r13d, %esi
callq 0xdeba7
movq %rbx, %rdi
callq 0xdfd1a
movq %rax, %r13
movb $0x1, 0x8(%rax)
cmpb $0x0, 0x20(%r15)
je 0x24672
movq %r15, %rax
addq $0x20, %rax
movups (%rax), %xmm0
movups %xmm0, 0x18(%r13)
movb $0x1, 0x10(%r13)
movl 0xc(%r15), %eax
movl %eax, 0xa0(%r13)
movq 0x4(%r15), %rax
movq %rax, 0xa4(%r13)
cmpl $0x0, 0x34(%r15)
je 0x246ce
movq %rbx, %rdi
leaq 0x48(%rsp), %rsi
leaq 0x28(%rsp), %rdx
leaq 0xd8(%rsp), %rcx
callq 0xee7ee
movq 0x48(%r15), %rdx
movq 0x58(%r15), %rcx
leaq (%rcx,%rdx), %rax
movq 0x18(%rbx), %rsi
cmpq 0x18(%rsi), %rax
jle 0x24733
xorl %ebp, %ebp
xorl %r12d, %r12d
jmp 0x24a89
cmpl $0x0, 0x30(%r15)
je 0x24a99
movq %rbx, %rdi
callq 0xeac74
movq %rax, %r14
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rdi
movq %r14, %rsi
pushq $0x1
popq %rbp
movl %ebp, %edx
callq 0xeba55
movb $0x1, 0x9(%r13)
movq %rbx, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %ebp, %ecx
callq 0xdfd55
movq %rbx, %rdi
xorl %esi, %esi
movq %r13, %rdx
xorl %ecx, %ecx
callq 0xe4e62
movq %rax, %rdi
callq 0xe5591
movq %r14, %rdi
movq 0x10(%rsp), %r14
jmp 0x24a94
movq %rbx, %rdi
leaq 0x10605e(%rip), %rsi    # 0x12a79b
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
callq 0xeac74
movq %rax, %r12
movq 0x20(%r14), %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0xeba55
movq 0x68(%r15), %rsi
movq %r12, %rdi
callq 0xead71
movl 0x30(%r15), %r8d
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %r15, %rcx
xorl %r9d, %r9d
callq 0xeda93
movzbl 0x38(%r15), %edx
leal -0x82(%rdx), %eax
cmpl $0x6, %eax
ja 0x24799
pushq $0x43
popq %rcx
btl %eax, %ecx
jb 0x247a5
cmpl $0xff, %edx
jne 0x2486e
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
pushq $0x1
popq %rcx
callq 0xdfd55
movq %rbx, %rdi
xorl %esi, %esi
movq %r13, %rdx
xorl %ecx, %ecx
callq 0xe4e62
movq %rax, %rbp
movq %rax, %rdi
callq 0xe589c
movq 0x18(%r14), %rdx
movq %rbp, %rdi
leaq 0xc1ae3(%rip), %rsi     # 0xe62c1
callq 0xe629a
movq 0x18(%r14), %rdi
callq 0xe0e44
movq 0x18(%rbx), %rax
movq %rax, 0x48(%rsp)
movq 0x48(%r15), %rax
movq %rax, 0x50(%rsp)
movq 0x58(%r15), %rax
movq %rax, 0x58(%rsp)
movq %rbp, 0x28(%rsp)
movb $0x1, 0x30(%rsp)
movq 0x50(%r15), %rax
movq %rax, 0x38(%rsp)
movzbl 0x38(%r15), %eax
cmpl $0xff, %eax
je 0x24963
cmpl $0x83, %eax
je 0x2488a
cmpl $0x88, %eax
je 0x248ac
cmpl $0x82, %eax
movl $0x0, %r14d
jne 0x249ac
xorl %r14d, %r14d
movq %rbx, %rdi
leaq 0x48(%rsp), %rsi
leaq 0x28(%rsp), %rdx
leaq 0xd8(%rsp), %rcx
xorl %r8d, %r8d
callq 0xeea8f
jmp 0x249ac
movq 0x60(%r15), %rcx
movq %rbx, %rdi
leaq 0xe326a(%rip), %rsi     # 0x107ae6
xorl %eax, %eax
callq 0xdf2a5
xorl %ebp, %ebp
jmp 0x24a89
movq %rbx, %rdi
leaq 0x48(%rsp), %rsi
leaq 0x28(%rsp), %rdx
leaq 0xd8(%rsp), %rcx
xorl %r8d, %r8d
callq 0xeee2c
jmp 0x249a9
leaq 0x74(%rsp), %rax
andl $0x0, 0x8(%rax)
andq $0x0, (%rax)
movl $0x1, 0x6c(%rsp)
movl 0x14(%r15), %eax
movl %eax, 0x78(%rsp)
movl $0x4, 0x70(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x80(%rsp)
movaps %xmm0, 0x90(%rsp)
movaps %xmm0, 0xa0(%rsp)
movaps %xmm0, 0xb0(%rsp)
movaps %xmm0, 0xc0(%rsp)
leaq 0xd1b64(%rip), %rax     # 0xf6467
movq %rax, 0x88(%rsp)
leaq 0x6c(%rsp), %rax
movq %rax, 0x90(%rsp)
leaq 0xca524(%rip), %rax     # 0xeee43
movq %rax, 0x98(%rsp)
leaq 0x48(%rsp), %rax
movq %rax, 0xa8(%rsp)
leaq 0x28(%rsp), %rax
movq %rax, 0xb0(%rsp)
leaq 0xd8(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq %rbx, %rdi
leaq 0x80(%rsp), %rsi
callq 0xef577
jmp 0x249a9
leaq 0x84(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movl $0x1, 0x80(%rsp)
movl 0x14(%r15), %eax
movl %eax, 0x8c(%rsp)
movq %rbx, %rdi
leaq 0x48(%rsp), %rsi
leaq 0x28(%rsp), %rdx
leaq 0xd8(%rsp), %rcx
leaq 0x80(%rsp), %r8
callq 0xf644c
movb $0x1, %r14b
movq 0x28(%rsp), %rdi
callq 0xe58e8
testb %r14b, %r14b
je 0x249fd
cmpl $0x0, 0xd8(%rsp)
je 0x249fd
movq 0x68(%r15), %rdi
callq 0xeb877
movq %rax, %r14
movq %rbx, %rdi
leaq 0xd8(%rsp), %rsi
callq 0xee7bc
movq %rbx, %rdi
leaq 0xe27d2(%rip), %rsi     # 0x1071bd
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xdf2a5
jmp 0x24a84
movq 0x18(%rbp), %rax
cmpq 0x50(%r15), %rax
jne 0x24a5f
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0xe0e95
movl %eax, %r14d
movq %rbx, %rdi
leaq 0xe3835(%rip), %rsi     # 0x108257
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movl 0x18(%r15), %eax
cmpl %eax, %r14d
je 0x24a84
movq 0x68(%r15), %rdi
movl %eax, %r14d
callq 0xeb877
movq %rbx, %rdi
testl %r14d, %r14d
je 0x24ae9
leaq 0xe27e0(%rip), %rsi     # 0x107233
movq %rax, %rdx
xorl %eax, %eax
callq 0xdf2a5
jmp 0x24a84
movq 0x68(%r15), %rdi
callq 0xeb877
movq 0x50(%r15), %rcx
movq 0x18(%rbp), %r8
movq %rbx, %rdi
leaq 0xe2760(%rip), %rsi     # 0x1071da
movq %rax, %rdx
xorl %eax, %eax
callq 0xdf2a5
movq 0x10(%rsp), %r14
movq %rbp, %rdi
callq 0xe5591
movq %r12, %rdi
callq 0xeaf3c
movq %rbx, %rdi
movq %r13, %rsi
callq 0xdfd24
pushq $-0x1
popq %r13
movq 0x68(%r15), %rdi
callq 0xeaf3c
movq %rbx, %rdi
movq %r15, %rsi
callq 0xded32
movl 0x1c(%rsp), %esi
movq %rbx, %rdi
callq 0xdebb7
movq %rbx, %rdi
movl %r13d, %esi
callq 0xdeba7
movq 0x40(%rsp), %rdx
incq %rdx
movq 0x20(%rsp), %rcx
addq $0x24, %rcx
jmp 0x2431f
leaq 0xe271f(%rip), %rsi     # 0x10720f
movq %rax, %rdx
xorl %eax, %eax
callq 0xdf05a
jmp 0x24a84
leaq 0xe25e9(%rip), %rsi     # 0x1070ec
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdf2a5
movq 0x68(%r15), %rdi
callq 0xeaf3c
movq %rbx, %rdi
movq %r15, %rsi
callq 0xded32
movl 0x1c(%rsp), %esi
movq %rbx, %rdi
callq 0xdebb7
jmp 0x242ac