// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/misc3.c
// Function: de_run_hit
static void de_run_hit(deark *c, de_module_params *mparams)
{
	de_arch_lctx *d = NULL;
	struct de_arch_member_data *md = NULL;
	i64 pos;

	d = de_arch_create_lctx(c);
	d->is_le = 1;
	d->input_encoding = de_get_input_encoding(c, NULL, DE_ENCODING_CP437);

	pos = 2;

	while(1) {
		if(pos+HIT_MINHEADERLEN > c->infile->len) goto done;

		if(md) {
			de_arch_destroy_md(c, md);
			md = NULL;
		}
		md = de_arch_create_md(c, d);
		md->member_hdr_pos = pos;

		if(!do_BUhit_member(c, d, md)) goto done;
		if(md->member_total_size<=0) goto done;
		pos += md->member_total_size;
	}

done:
	if(md) {
		de_arch_destroy_md(c, md);
	}
	de_arch_destroy_lctx(c, d);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
callq 0xf16ce
movq %rax, %r13
movl $0x1, 0x10(%rax)
pushq $0xd
popq %rdx
movq %rbx, %rdi
xorl %esi, %esi
callq 0xe08d2
movl %eax, 0x18(%r13)
pushq $0x2
popq %r14
movq %rsp, %r12
xorl %ebp, %ebp
leaq 0x14(%r14), %rax
movq 0x18(%rbx), %rcx
cmpq 0x18(%rcx), %rax
jg 0x6c9e0
testq %rbp, %rbp
je 0x6c78f
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xf167c
movq %rbx, %rdi
movq %r13, %rsi
callq 0xf1630
movq %rax, %rbp
movq %r14, 0x18(%rax)
movq %r14, (%rsp)
movq %rbx, %rdi
leaq 0xc(%rsp), %rsi
callq 0xdebae
movq 0x18(%rbp), %rdx
movq %rbx, %rdi
leaq 0xc20ad(%rip), %rsi     # 0x12e86d
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xe3fc4
movq %rax, 0x20(%rbp)
movq %rbx, %rdi
leaq 0xac98c(%rip), %rsi     # 0x119178
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
cmpq $0x14, 0x20(%rbp)
jl 0x6c9e7
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xe3f2a
movzbl %al, %edx
movq %rbx, %rdi
leaq 0xacbca(%rip), %rsi     # 0x1193e4
xorl %eax, %eax
callq 0xde896
movq (%rbp), %rdi
pushq $0x30
popq %rsi
callq 0xe0ae9
movq %r14, 0x10(%rsp)
movq %r12, %r14
movq %r13, %r12
movq %rax, %r13
movq 0x8(%rbp), %rax
movq 0x18(%rbp), %rdx
movq 0x8(%rax), %rsi
movq %r13, %rdi
pushq $0x2
popq %rcx
callq 0xe0f33
movq 0x8(%rbp), %rax
movq 0x18(%rbp), %rdx
movq 0x8(%rax), %rsi
addq $0x3, %rdx
movq 0x20(%rbp), %rcx
addq $-0x3, %rcx
movq %r13, %rdi
callq 0xe0f33
movq %r13, %rdi
callq 0xe0e95
movzbl %al, %r15d
movq %r13, %rdi
movq %r12, %r13
movq %r14, %r12
movq 0x10(%rsp), %r14
callq 0xe0e8d
movq %rbx, %rdi
leaq 0xacb6c(%rip), %rsi     # 0x119407
movl %r15d, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xe3f2a
andb $0x1f, %al
movzbl %al, %edx
movl %edx, 0x90(%rbp)
movq %rbx, %rdi
leaq 0xac3e6(%rip), %rsi     # 0x118cac
xorl %eax, %eax
callq 0xde896
incq (%rsp)
movq %rbp, %rdi
movq %r12, %rsi
callq 0xf17ab
movq %rbp, %rdi
movq %r12, %rsi
callq 0xf1766
movq 0x18(%rbp), %rax
addq $0xd, %rax
movq %rax, (%rsp)
movq 0x50(%rbp), %rsi
addq $0x18, %rsi
movq %r13, %rdi
leaq 0x9e7e1(%rip), %rdx     # 0x10b0e6
pushq $0x4
popq %rcx
movq %r12, %r8
callq 0xf1866
movq %rbp, %rdi
movq %r12, %rsi
callq 0xf1849
addq $0x2, (%rsp)
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xe40bf
movl %eax, 0x48(%rbp)
movq %rbx, %rdi
leaq 0xca4dc(%rip), %rsi     # 0x136e15
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xe3f2a
movzbl %al, %r15d
movq 0x18(%rbx), %rdi
movq (%rsp), %rsi
movq 0x58(%rbp), %rcx
movl 0x18(%r13), %r9d
movq %r15, %rdx
xorl %r8d, %r8d
callq 0xe4c9a
movq 0x58(%rbp), %rdi
callq 0xeb877
movq %rbx, %rdi
leaq 0xc20de(%rip), %rsi     # 0x12ea5e
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
addq %r15, (%rsp)
movq 0x20(%rbp), %rdx
addq 0x18(%rbp), %rdx
movq %rdx, 0x40(%rbp)
movq %rbx, %rdi
leaq 0xaca88(%rip), %rsi     # 0x11942c
xorl %eax, %eax
callq 0xde896
movq 0x30(%rbp), %rax
addq 0x20(%rbp), %rax
movq %rax, 0x28(%rbp)
movq %rbx, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
movl 0xc(%rsp), %esi
movq %rbx, %rdi
callq 0xdebb7
movq 0x28(%rbp), %rax
addq %rax, %r14
testq %rax, %rax
jg 0x6c76d
jmp 0x6c9f3
testq %rbp, %rbp
jne 0x6c9f3
jmp 0x6c9fe
movl 0xc(%rsp), %esi
movq %rbx, %rdi
callq 0xdebb7
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xf167c
movq %rbx, %rdi
movq %r13, %rsi
callq 0xf16e7
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq