// File: /workspace/github_c_makefile_star2_O3/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
movl $0x28, %esi
callq 0xe8b2b
movq %rax, %r15
leaq 0xef68f(%rip), %rsi     # 0x114097
movq %rbx, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
leaq 0xd8(%rsp), %r14
movq $0x8, (%r14)
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xeed83
movq %rax, %r8
movabsq $0xe38e38e38e38e39, %rcx # imm = 0xE38E38E38E38E39
imulq %rcx
movq %rdx, %rcx
shrq $0x3f, %rcx
sarq %rdx
addq %rdx, %rcx
movq %rcx, 0x8(%r15)
leaq 0xef645(%rip), %rsi     # 0x1140a9
movq %rbx, %rdi
movl %r8d, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xeed83
movq %rax, 0x10(%r15)
leaq 0xfa6e7(%rip), %rsi     # 0x11f16f
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xeed83
movl %eax, %ecx
imulq $0x51eb851f, %rcx, %rdx # imm = 0x51EB851F
shrq $0x25, %rdx
imull $0x64, %edx, %ecx
subl %ecx, %eax
leaq 0xef60c(%rip), %rsi     # 0x1140c5
movq %rbx, %rdi
movl %eax, %ecx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xeed83
movl %eax, %ecx
imulq $0x51eb851f, %rcx, %rdx # imm = 0x51EB851F
shrq $0x25, %rdx
imull $0x64, %edx, %ecx
subl %ecx, %eax
leaq 0xef5fb(%rip), %rsi     # 0x1140e5
movq %rbx, %rdi
movl %eax, %ecx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xeed83
movq %rax, %r14
leaq 0xef60b(%rip), %rsi     # 0x114117
movq %rbx, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0xe8617
testl %r14d, %r14d
je 0x24b6e
leaq 0xef5e6(%rip), %rsi     # 0x11410b
movq %rbx, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0xe9295
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq 0x18(%r15), %rdi
callq 0xeb858
movq 0x20(%r15), %rdi
callq 0xf7228
movq %rbx, %rdi
movq %r15, %rsi
callq 0xe8be2
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movl $0x2a, %esi
movq %rbx, %rdi
callq 0xf7205
movq %rax, 0x20(%r15)
movq %rbx, %rdi
movl $0x21, %esi
callq 0xeb499
movq %rax, 0x18(%r15)
cmpq $0x0, 0x8(%r15)
jle 0x24b3f
movl $0x80, %r12d
xorl %r13d, %r13d
movq %r15, 0x20(%rsp)
leaq -0x20(%r12), %r14
movq 0x18(%rbx), %rax
cmpq 0x18(%rax), %r14
jge 0x24b3f
movq %rbx, %rdi
leaq 0xef55b(%rip), %rsi     # 0x11412a
movl %r13d, %edx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq %r14, 0x8(%rsp)
movq %rbx, %rdi
leaq 0x2c(%rsp), %rsi
callq 0xe8a1c
movl $0x70, %esi
movq %rbx, %rdi
callq 0xe8b2b
movq %rax, %rbp
movq %rbx, %rdi
leaq 0xfe76d(%rip), %rsi     # 0x12337f
movq %r14, %rdx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0xeeb4b
movzbl %al, %r14d
cmpl $0x81, %r14d
jle 0x24c70
leal -0x82(%r14), %eax
cmpl $0x7, %eax
ja 0x24ca5
leaq 0xef3d1(%rip), %rcx     # 0x114028
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
leaq 0xef592(%rip), %rcx     # 0x1141f7
jmpq *%rax
leaq 0xef590(%rip), %rcx     # 0x1141fe
jmp 0x24cd0
testl %r14d, %r14d
je 0x250d6
cmpl $0x1, %r14d
jne 0x24cb7
leaq 0xef562(%rip), %rcx     # 0x1141e8
movq %rcx, 0x60(%rbp)
movq %rbx, %rdi
leaq 0xef4a1(%rip), %rsi     # 0x114135
movl $0x1, %edx
xorl %eax, %eax
callq 0xe8617
jmp 0x25386
cmpl $0xff, %r14d
jne 0x24cb7
leaq 0xfde24(%rip), %rcx     # 0x122ad9
jmp 0x24cd0
leaq 0x107493(%rip), %rcx    # 0x12c151
jmp 0x24cd0
leaq 0xef544(%rip), %rcx     # 0x11420b
jmp 0x24cd0
leaq 0xef544(%rip), %rcx     # 0x114214
movq %rcx, 0x60(%rbp)
movq %rbx, %rdi
leaq 0xef457(%rip), %rsi     # 0x114135
movl %r14d, %edx
xorl %eax, %eax
callq 0xe8617
movb %r14b, 0x38(%rbp)
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xeed61
movq %rax, %r14
xorl %eax, %eax
testl %r14d, %r14d
setns %al
movl %r14d, %ecx
shrl $0x1f, %ecx
movl %ecx, 0x30(%rbp)
movl %eax, 0x34(%rbp)
movq %rbx, %rdi
callq 0xf6410
movq %rax, 0x68(%rbp)
movq 0x18(%rbx), %rdi
movq 0x8(%rsp), %rsi
movl $0xb, %edx
movq %rax, %rcx
movl $0x1, %r8d
movl $0x14, %r9d
callq 0xefbd7
movq 0x68(%rbp), %rdi
callq 0xf70f6
movq %rbx, %rdi
leaq 0x116ffe(%rip), %rsi    # 0x13bd4e
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
cmpl $0x0, 0x30(%rbp)
je 0x24d7e
movl (%r15), %eax
cmpl $0x20, %eax
jge 0x253e1
incl %eax
movl %eax, (%r15)
movq 0x20(%r15), %rdi
movq 0x68(%rbp), %rsi
callq 0xf72a4
addq $0xb, 0x8(%rsp)
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0xeed83
movq %rax, 0x50(%rbp)
cmpl $0x0, 0x34(%rbp)
je 0x24db0
movq %rbx, %rdi
leaq 0xef3c4(%rip), %rsi     # 0x11416a
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rsi
movq 0x8(%rsp), %rcx
movq %rbx, %rdi
movq %rbp, %rdx
callq 0xf9284
movq 0x8(%rsp), %rcx
addq $0x8, %rcx
movq %rcx, 0x8(%rsp)
xorl %r8d, %r8d
cmpl $0x0, 0x34(%rbp)
setne %r8b
movzbl 0x38(%rbp), %eax
cmpl $0xff, %eax
je 0x24def
cmpl $0x88, %eax
jne 0x24df3
orl $0x2, %r8d
movq 0x18(%rbx), %rsi
movq %rbx, %rdi
movq %rbp, %rdx
callq 0xf9370
addq $0x4, 0x8(%rsp)
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0xeed83
movq %rax, 0x58(%rbp)
cmpl $0x0, 0x34(%rbp)
je 0x24e34
movq %rbx, %rdi
leaq 0xef356(%rip), %rsi     # 0x114180
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
leaq 0xef359(%rip), %rsi     # 0x114197
movl %r14d, %edx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movl 0x30(%rbp), %edx
movq %rbx, %rdi
leaq 0xef347(%rip), %rsi     # 0x1141a9
xorl %eax, %eax
callq 0xe8617
cmpl $0x0, 0x34(%rbp)
je 0x24e93
movl %r14d, %ecx
movq %rcx, 0x40(%rbp)
movq 0x10(%r15), %rdx
leaq (%rdx,%rcx), %rax
movq %rax, 0x48(%rbp)
movq %rbx, %rdi
leaq 0xef32e(%rip), %rsi     # 0x1141ba
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq %rbx, %rdi
callq 0xea504
movq %rax, %r15
movb $0x1, 0x8(%rax)
cmpb $0x0, 0x20(%rbp)
je 0x24ed1
movq %rbp, %rax
addq $0x20, %rax
movups (%rax), %xmm0
movups %xmm0, 0x18(%r15)
movb $0x1, 0x10(%r15)
movl 0xc(%rbp), %eax
movl %eax, 0xa0(%r15)
movq 0x4(%rbp), %rax
movq %rax, 0xa4(%r15)
cmpl $0x0, 0x34(%rbp)
je 0x24f2b
movq %rbx, %rdi
leaq 0x50(%rsp), %rsi
leaq 0x38(%rsp), %rdx
leaq 0xd8(%rsp), %rcx
callq 0xfa1dc
movq 0x48(%rbp), %rdx
movq 0x58(%rbp), %rcx
leaq (%rcx,%rdx), %rax
movq 0x18(%rbx), %rsi
cmpq 0x18(%rsi), %rax
jle 0x24f85
xorl %edi, %edi
xorl %r14d, %r14d
jmp 0x25369
cmpl $0x0, 0x30(%rbp)
je 0x25376
movq %rbx, %rdi
callq 0xf6410
movq %rax, %r14
movq 0x20(%rsp), %rax
movq 0x20(%rax), %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0xf730d
movb $0x1, 0x9(%r15)
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl $0x1, %ecx
callq 0xea53f
movq %rbx, %rdi
xorl %esi, %esi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0xefda1
movq %rax, %rdi
jmp 0x25369
movq %rbx, %rdi
leaq 0x112aec(%rip), %rsi    # 0x137a7b
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
callq 0xf6410
movq %rax, %r14
movq 0x20(%rsp), %rax
movq 0x20(%rax), %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xf730d
movq 0x68(%rbp), %rsi
movq %r14, %rdi
callq 0xf6509
movl 0x30(%rbp), %r8d
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbp, %rcx
xorl %r9d, %r9d
callq 0xf93ff
movzbl 0x38(%rbp), %edx
leal -0x82(%rdx), %eax
cmpl $0x6, %eax
ja 0x24ff1
movl $0x43, %ecx
btl %eax, %ecx
jb 0x24ffd
cmpl $0xff, %edx
jne 0x25170
movq %r12, 0x30(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, 0x10(%rsp)
movq %r14, %rdx
movl $0x1, %ecx
callq 0xea53f
movq %rbx, %rdi
xorl %esi, %esi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0xefda1
movq %rax, %r12
movq %rax, %rdi
callq 0xf0855
movq 0x20(%rsp), %r14
movq 0x18(%r14), %rdx
movq %r12, %rdi
leaq 0xcc40a(%rip), %rsi     # 0xf1451
callq 0xf1412
movq 0x18(%r14), %rdi
callq 0xeb7fe
movq 0x18(%rbx), %rax
movq %rax, 0x50(%rsp)
movq 0x48(%rbp), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rbp), %rax
movq %rax, 0x60(%rsp)
movq %r12, 0x18(%rsp)
movq %r12, 0x38(%rsp)
movb $0x1, 0x40(%rsp)
movq 0x50(%rbp), %rax
movq %rax, 0x48(%rsp)
movzbl 0x38(%rbp), %eax
cmpl $0x87, %eax
jg 0x2510e
cmpl $0x82, %eax
je 0x2518c
cmpl $0x83, %eax
movq 0x10(%rsp), %r14
movl $0x0, %r12d
jne 0x25275
movq %rbx, %rdi
leaq 0x50(%rsp), %rsi
leaq 0x38(%rsp), %rdx
leaq 0xd8(%rsp), %rcx
xorl %r8d, %r8d
callq 0xfa8e2
jmp 0x25168
leaq 0xef0f9(%rip), %rcx     # 0x1141d6
movq %rcx, 0x60(%rbp)
movq %rbx, %rdi
leaq 0xef04a(%rip), %rsi     # 0x114135
xorl %edx, %edx
xorl %eax, %eax
callq 0xe8617
movl (%r15), %eax
testl %eax, %eax
jle 0x25100
decl %eax
movl %eax, (%r15)
movq 0x20(%r15), %rdi
callq 0xf7267
jmp 0x25386
cmpl $0x88, %eax
je 0x251b1
cmpl $0xff, %eax
movq 0x10(%rsp), %r14
movl $0x0, %r12d
jne 0x25275
movl 0x14(%rbp), %eax
leaq 0x74(%rsp), %rcx
xorps %xmm0, %xmm0
movups %xmm0, (%rcx)
movl $0x1, 0x70(%rsp)
movl %eax, 0x7c(%rsp)
movq %rbx, %rdi
leaq 0x50(%rsp), %rsi
leaq 0x38(%rsp), %rdx
leaq 0xd8(%rsp), %rcx
leaq 0x70(%rsp), %r8
callq 0x102400
movb $0x1, %r12b
jmp 0x25275
movq 0x60(%rbp), %rcx
movq %rbx, %rdi
leaq 0xef9f3(%rip), %rsi     # 0x114b71
xorl %eax, %eax
callq 0xe9295
xorl %edi, %edi
jmp 0x25369
xorl %r12d, %r12d
movq %rbx, %rdi
leaq 0x50(%rsp), %rsi
leaq 0x38(%rsp), %rdx
leaq 0xd8(%rsp), %rcx
xorl %r8d, %r8d
callq 0xfa510
jmp 0x25270
movl 0x14(%rbp), %eax
leaq 0xcc(%rsp), %rcx
movl $0x0, 0x8(%rcx)
movq $0x0, (%rcx)
movabsq $0x400000001, %rcx      # imm = 0x400000001
movq %rcx, 0xc4(%rsp)
movl %eax, 0xd0(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
movaps %xmm0, 0x80(%rsp)
movaps %xmm0, 0x90(%rsp)
movaps %xmm0, 0xa0(%rsp)
movaps %xmm0, 0xb0(%rsp)
leaq 0xdd209(%rip), %rax     # 0x10241b
movq %rax, 0x78(%rsp)
leaq 0xc4(%rsp), %rax
movq %rax, 0x80(%rsp)
leaq 0xd56cb(%rip), %rax     # 0xfa8f9
movq %rax, 0x88(%rsp)
leaq 0x50(%rsp), %rax
movq %rax, 0x98(%rsp)
leaq 0x38(%rsp), %rax
movq %rax, 0xa0(%rsp)
leaq 0xd8(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq %rbx, %rdi
leaq 0x70(%rsp), %rsi
callq 0xfb10b
movb $0x1, %r12b
movq 0x10(%rsp), %r14
movq 0x38(%rsp), %rdi
callq 0xf08ba
testb %r12b, %r12b
je 0x252cb
cmpl $0x0, 0xd8(%rsp)
je 0x252cb
movq 0x68(%rbp), %rdi
callq 0xf70f6
movq %rax, %r12
movq %rbx, %rdi
leaq 0xd8(%rsp), %rsi
callq 0xfa1a4
movq %rbx, %rdi
leaq 0xeef69(%rip), %rsi     # 0x11421d
movq %r12, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xe9295
movq 0x18(%rsp), %rdi
jmp 0x25364
movq 0x18(%rsp), %r12
movq 0x18(%r12), %rax
cmpq 0x50(%rbp), %rax
jne 0x2533b
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0xeb865
movl %eax, 0x10(%rsp)
movq %rbx, %rdi
leaq 0xeffec(%rip), %rsi     # 0x1152e3
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movl 0x18(%rbp), %r12d
cmpl %r12d, 0x10(%rsp)
je 0x252c1
movq 0x68(%rbp), %rdi
callq 0xf70f6
testl %r12d, %r12d
movq 0x30(%rsp), %r12
movq %rbx, %rdi
je 0x253c9
leaq 0xeef67(%rip), %rsi     # 0x114293
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9295
jmp 0x253da
movq 0x68(%rbp), %rdi
callq 0xf70f6
movq 0x50(%rbp), %rcx
movq 0x18(%r12), %r8
movq %rbx, %rdi
leaq 0xeeee3(%rip), %rsi     # 0x11423a
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9295
movq %r12, %rdi
movq 0x30(%rsp), %r12
callq 0xf052b
movq %r14, %rdi
callq 0xf6753
movq %rbx, %rdi
movq %r15, %rsi
callq 0xea50e
movq 0x20(%rsp), %r15
movq 0x68(%rbp), %rdi
callq 0xf6753
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xe8be2
movl 0x2c(%rsp), %esi
movq %rbx, %rdi
callq 0xe8a25
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
incq %r13
addq $0x24, %r12
cmpq 0x8(%r15), %r13
jl 0x24bb2
jmp 0x24b3f
leaq 0xeee9f(%rip), %rsi     # 0x11426f
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8faa
movq 0x18(%rsp), %rdi
jmp 0x25369
leaq 0xeed64(%rip), %rsi     # 0x11414c
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9295
movq 0x68(%rbp), %rdi
callq 0xf6753
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xe8be2
movl 0x2c(%rsp), %esi
movq %rbx, %rdi
callq 0xe8a25
jmp 0x24b32