// File: /workspace/github_c_makefile_star2_O1/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 $0x148, %rsp            # imm = 0x148
movq %rdi, %rbx
movl $0x28, %esi
callq 0xe969b
movq %rax, %r15
leaq 0xe8(%rsp), %r14
movq $0x0, (%r14)
leaq 0xef590(%rip), %rsi     # 0x113fe7
movq %rbx, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
addq $0x8, (%r14)
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xef3a0
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 0xef551(%rip), %rsi     # 0x113ff9
movq %rbx, %rdi
movl %r8d, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xef3a0
movq %rax, 0x10(%r15)
leaq 0xfa59b(%rip), %rsi     # 0x11f067
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xef3a0
movl %eax, %ecx
imulq $0x51eb851f, %rcx, %rdx # imm = 0x51EB851F
shrq $0x25, %rdx
imull $0x64, %edx, %ecx
subl %ecx, %eax
leaq 0xef518(%rip), %rsi     # 0x114015
movq %rbx, %rdi
movl %eax, %ecx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xef3a0
movl %eax, %ecx
imulq $0x51eb851f, %rcx, %rdx # imm = 0x51EB851F
shrq $0x25, %rdx
imull $0x64, %edx, %ecx
subl %ecx, %eax
leaq 0xef507(%rip), %rsi     # 0x114035
movq %rbx, %rdi
movl %eax, %ecx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xef3a0
movq %rax, %r14
leaq 0xef517(%rip), %rsi     # 0x114067
movq %rbx, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0xe9226
testl %r14d, %r14d
je 0x24bb7
leaq 0xef4f2(%rip), %rsi     # 0x11405b
movq %rbx, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0xe9df7
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
testq %r15, %r15
je 0x24ba5
movq 0x18(%r15), %rdi
callq 0xebe1d
movq 0x20(%r15), %rdi
callq 0xf7689
movq %rbx, %rdi
movq %r15, %rsi
callq 0xe9752
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movl $0x2a, %esi
movq %rbx, %rdi
callq 0xf7666
movq %rax, 0x20(%r15)
movq %rbx, %rdi
movl $0x21, %esi
callq 0xeba56
movq %rax, 0x18(%r15)
cmpq $0x0, 0x8(%r15)
jle 0x24b83
movl $0x60, %r14d
xorl %r13d, %r13d
movq %r15, 0x10(%rsp)
movq 0x18(%rbx), %rax
cmpq 0x18(%rax), %r14
jge 0x24cbc
movq %rbx, %rdi
leaq 0xef467(%rip), %rsi     # 0x11407a
movl %r13d, %edx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movq %r14, 0x8(%rsp)
movq %rbx, %rdi
leaq 0x2c(%rsp), %rsi
callq 0xe958c
movl $0x70, %esi
movq %rbx, %rdi
callq 0xe969b
movq %rax, %rbp
movq %rbx, %rdi
leaq 0xfe549(%rip), %rsi     # 0x12319f
movq %r14, 0x30(%rsp)
movq %r14, %rdx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0xef14d
movl %eax, %r15d
movzbl %al, %r14d
cmpl $0x81, %r14d
jle 0x24cc4
leal -0x82(%r14), %eax
cmpl $0x7, %eax
ja 0x24cdf
leaq 0xef2d5(%rip), %rcx     # 0x113f78
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
leaq 0x1071b8(%rip), %rcx    # 0x12be69
jmpq *%rax
leaq 0xef48d(%rip), %rcx     # 0x114147
jmp 0x24d1a
xorl %r12d, %r12d
jmp 0x25438
testl %r14d, %r14d
je 0x24d13
leaq 0x107199(%rip), %rcx    # 0x12be69
cmpl $0x1, %r14d
jne 0x24d1a
leaq 0xef45b(%rip), %rcx     # 0x114138
jmp 0x24d1a
leaq 0x107183(%rip), %rcx    # 0x12be69
cmpl $0xff, %r14d
jne 0x24d1a
leaq 0xfdbdb(%rip), %rcx     # 0x1228d1
jmp 0x24d1a
leaq 0xef45c(%rip), %rcx     # 0x11415b
jmp 0x24d1a
leaq 0xef45c(%rip), %rcx     # 0x114164
jmp 0x24d1a
leaq 0xef43d(%rip), %rcx     # 0x11414e
jmp 0x24d1a
leaq 0xef40c(%rip), %rcx     # 0x114126
movq %rcx, 0x60(%rbp)
xorl %r12d, %r12d
movq %rbx, %rdi
leaq 0xef35a(%rip), %rsi     # 0x114085
movl %r14d, %edx
xorl %eax, %eax
callq 0xe9226
cmpb $0x1, %r15b
je 0x253ed
testl %r14d, %r14d
jne 0x24d61
movq 0x10(%rsp), %rcx
movl (%rcx), %eax
testl %eax, %eax
jle 0x24d53
decl %eax
movl %eax, (%rcx)
movq 0x20(%rcx), %rdi
callq 0xf76c8
jmp 0x253ea
movb %r15b, 0x38(%rbp)
movq 0x18(%rbx), %rdi
movq 0x30(%rsp), %rax
leaq 0x20(%rax), %rsi
callq 0xef37e
movq %rax, %r15
xorl %eax, %eax
testl %r15d, %r15d
setns %al
movl %r15d, %ecx
shrl $0x1f, %ecx
movl %ecx, 0x30(%rbp)
movl %eax, 0x34(%rbp)
movq %rbx, %rdi
callq 0xf6870
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 0xf01b0
movq 0x68(%rbp), %rdi
callq 0xf7557
movq %rbx, %rdi
leaq 0x116c05(%rip), %rsi    # 0x13b9d4
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
cmpl $0x0, 0x30(%rbp)
je 0x24e15
movq 0x10(%rsp), %rcx
movl (%rcx), %eax
cmpl $0x20, %eax
jl 0x24e04
movq %rbx, %rdi
leaq 0xef2a7(%rip), %rsi     # 0x11409c
xorl %eax, %eax
callq 0xe9df7
movb $0x1, %r12b
jmp 0x253ed
incl %eax
movl %eax, (%rcx)
movq 0x20(%rcx), %rdi
movq 0x68(%rbp), %rsi
callq 0xf7705
addq $0xb, 0x8(%rsp)
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0xef3a0
movq %rax, 0x50(%rbp)
cmpl $0x0, 0x34(%rbp)
je 0x24e47
movq %rbx, %rdi
leaq 0xef27d(%rip), %rsi     # 0x1140ba
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rsi
movq 0x8(%rsp), %rcx
movq %rbx, %rdi
movq %rbp, %rdx
callq 0xf978c
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 0x24e86
cmpl $0x88, %eax
jne 0x24e8a
orl $0x2, %r8d
movq 0x18(%rbx), %rsi
movq %rbx, %rdi
movq %rbp, %rdx
callq 0xf9878
addq $0x4, 0x8(%rsp)
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0xef3a0
movq %rax, 0x58(%rbp)
cmpl $0x0, 0x34(%rbp)
je 0x24ecb
movq %rbx, %rdi
leaq 0xef20f(%rip), %rsi     # 0x1140d0
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
leaq 0xef212(%rip), %rsi     # 0x1140e7
movl %r15d, %edx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movl 0x30(%rbp), %edx
movq %rbx, %rdi
leaq 0xef200(%rip), %rsi     # 0x1140f9
xorl %eax, %eax
callq 0xe9226
cmpl $0x0, 0x34(%rbp)
je 0x24f2f
movl %r15d, %ecx
movq %rcx, 0x40(%rbp)
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rdx
leaq (%rdx,%rcx), %rax
movq %rax, 0x48(%rbp)
movq %rbx, %rdi
leaq 0xef1e2(%rip), %rsi     # 0x11410a
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movq %rbx, %rdi
callq 0xea9a9
movq %rax, %r15
movb $0x1, 0x8(%rax)
cmpb $0x0, 0x20(%rbp)
je 0x24f6a
leaq 0x20(%rbp), %rax
movups (%rax), %xmm0
movups %xmm0, 0x18(%r15)
movb $0x1, 0x10(%r15)
movl 0xc(%rbp), %eax
movl %eax, 0xa0(%r15)
movl 0x4(%rbp), %eax
movl %eax, 0xa4(%r15)
movl 0x8(%rbp), %eax
movl %eax, 0xa8(%r15)
cmpl $0x0, 0x34(%rbp)
je 0x24fce
movq %rbx, %rdi
leaq 0x70(%rsp), %rsi
leaq 0x38(%rsp), %rdx
leaq 0xe8(%rsp), %rcx
callq 0xfa6e0
movq 0x48(%rbp), %rdx
movq 0x58(%rbp), %rcx
leaq (%rcx,%rdx), %rax
movq 0x18(%rbx), %rsi
cmpq 0x18(%rsi), %rax
jle 0x25028
xorl %r12d, %r12d
xorl %r14d, %r14d
jmp 0x253cf
cmpl $0x0, 0x30(%rbp)
je 0x253df
movq %rbx, %rdi
callq 0xf6870
movq %rax, %r14
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0xf776e
movb $0x1, 0x9(%r15)
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movl $0x1, %ecx
callq 0xea9e4
movq %rbx, %rdi
xorl %esi, %esi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0xf037a
movq %rax, %rdi
jmp 0x253d2
movq %rbx, %rdi
leaq 0x1126c1(%rip), %rsi    # 0x1376f3
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
callq 0xf6870
movq %rax, %r14
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xf776e
movq 0x68(%rbp), %rsi
movq %r14, %rdi
callq 0xf6969
movl 0x30(%rbp), %r8d
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbp, %rcx
xorl %r9d, %r9d
callq 0xf9907
movzbl 0x38(%rbp), %edx
leal -0x82(%rdx), %eax
cmpl $0x6, %eax
ja 0x25094
movl $0x43, %ecx
btl %eax, %ecx
jb 0x250a0
cmpl $0xff, %edx
jne 0x251db
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, 0x18(%rsp)
movq %r14, %rdx
movl $0x1, %ecx
callq 0xea9e4
movq %rbx, %rdi
xorl %esi, %esi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0xf037a
movq %rax, %r12
movq %rax, %rdi
callq 0xf0e3f
movq 0x10(%rsp), %r14
movq 0x18(%r14), %rdx
movq %r12, %rdi
leaq 0xcc96c(%rip), %rsi     # 0xf1a51
callq 0xf1a12
movq 0x18(%r14), %rdi
callq 0xebdc3
movq 0x18(%rbx), %rax
movq %rax, 0x70(%rsp)
movq 0x48(%rbp), %rax
movq %rax, 0x78(%rsp)
movq 0x58(%rbp), %rax
movq %rax, 0x80(%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 0x2516d
cmpl $0x82, %eax
je 0x251f8
cmpl $0x83, %eax
movl $0x0, %r14d
jne 0x252d1
movq %rbx, %rdi
leaq 0x70(%rsp), %rsi
leaq 0x38(%rsp), %rdx
leaq 0xe8(%rsp), %rcx
xorl %r8d, %r8d
callq 0xfade6
jmp 0x252ce
cmpl $0x88, %eax
je 0x2521d
cmpl $0xff, %eax
movl $0x0, %r14d
jne 0x252d1
xorps %xmm0, %xmm0
movaps %xmm0, 0x90(%rsp)
movl $0x0, 0xa0(%rsp)
movl $0x1, 0x90(%rsp)
movl 0x14(%rbp), %eax
movl %eax, 0x9c(%rsp)
movq %rbx, %rdi
leaq 0x70(%rsp), %rsi
leaq 0x38(%rsp), %rdx
leaq 0xe8(%rsp), %rcx
leaq 0x90(%rsp), %r8
callq 0x102cf0
jmp 0x252ce
movq 0x60(%rbp), %rcx
movq %rbx, %rdi
leaq 0xef8ad(%rip), %rsi     # 0x114a96
xorl %eax, %eax
callq 0xe9df7
xorl %r12d, %r12d
jmp 0x253cf
xorl %r14d, %r14d
movq %rbx, %rdi
leaq 0x70(%rsp), %rsi
leaq 0x38(%rsp), %rdx
leaq 0xe8(%rsp), %rcx
xorl %r8d, %r8d
callq 0xfaa08
jmp 0x252d1
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movl $0x0, 0x60(%rsp)
movl $0x1, 0x50(%rsp)
movl 0x14(%rbp), %eax
movl %eax, 0x5c(%rsp)
orb $0x4, 0x54(%rsp)
movaps %xmm0, 0x90(%rsp)
movaps %xmm0, 0xa0(%rsp)
movaps %xmm0, 0xb0(%rsp)
movaps %xmm0, 0xc0(%rsp)
movaps %xmm0, 0xd0(%rsp)
leaq 0xdda9b(%rip), %rax     # 0x102d0b
movq %rax, 0x98(%rsp)
leaq 0x50(%rsp), %rax
movq %rax, 0xa0(%rsp)
leaq 0xd5b71(%rip), %rax     # 0xfadfd
movq %rax, 0xa8(%rsp)
leaq 0x70(%rsp), %rax
movq %rax, 0xb8(%rsp)
leaq 0x38(%rsp), %rax
movq %rax, 0xc0(%rsp)
leaq 0xe8(%rsp), %rax
movq %rax, 0xc8(%rsp)
movq %rbx, %rdi
leaq 0x90(%rsp), %rsi
callq 0xfb662
movb $0x1, %r14b
movq 0x38(%rsp), %rdi
callq 0xf0ea4
testb %r14b, %r14b
je 0x2531f
cmpl $0x0, 0xe8(%rsp)
je 0x2531f
movq 0x68(%rbp), %rdi
callq 0xf7557
movq %rax, %r14
movq %rbx, %rdi
leaq 0xe8(%rsp), %rsi
callq 0xfa6a8
movq %rbx, %rdi
leaq 0xeee5d(%rip), %rsi     # 0x11416d
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xe9df7
jmp 0x25389
movq 0x18(%r12), %rax
cmpq 0x50(%rbp), %rax
jne 0x25363
movq %r12, 0x20(%rsp)
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0xebe2a
movl %eax, %r14d
movq %rbx, %rdi
leaq 0xefee9(%rip), %rsi     # 0x115233
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movl 0x18(%rbp), %r12d
cmpl %r12d, %r14d
jne 0x25390
movq 0x18(%rsp), %r14
jmp 0x253ca
movq 0x68(%rbp), %rdi
callq 0xf7557
movq 0x50(%rbp), %rcx
movq 0x18(%r12), %r8
movq %rbx, %rdi
leaq 0xeee0b(%rip), %rsi     # 0x11418a
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9df7
movq 0x18(%rsp), %r14
jmp 0x253cf
movq 0x68(%rbp), %rdi
callq 0xf7557
testl %r12d, %r12d
movq 0x18(%rsp), %r14
movq %rbx, %rdi
je 0x253b9
leaq 0xeee36(%rip), %rsi     # 0x1141e3
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9df7
jmp 0x253ca
leaq 0xeedff(%rip), %rsi     # 0x1141bf
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9b27
movq 0x20(%rsp), %r12
movq %r12, %rdi
callq 0xf0b13
movq %r14, %rdi
callq 0xf6bb0
movq %rbx, %rdi
movq %r15, %rsi
callq 0xea9b3
xorl %r12d, %r12d
testq %rbp, %rbp
je 0x25406
movq 0x68(%rbp), %rdi
callq 0xf6bb0
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xe9752
movl 0x2c(%rsp), %esi
movq %rbx, %rdi
callq 0xe9595
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movq 0x30(%rsp), %r14
leaq 0x24(%r14), %rax
testb %r12b, %r12b
cmoveq %rax, %r14
xorb $0x1, %r12b
movq 0x10(%rsp), %r15
testb %r12b, %r12b
je 0x24b83
incq %r13
cmpq 0x8(%r15), %r13
jl 0x24bfb
jmp 0x24b83