// File: /workspace/github_c_makefile_star2_O0/jsummers[P]deark/modules/cab.c
// Function: do_one_CFDATA
static int do_one_CFDATA(deark *c, lctx *d, struct folder_info *fldi, i64 pos1,
	i64 *bytes_consumed)
{
	u32 csum;
	i64 cbData;
	i64 cbUncomp;
	i64 pos = pos1;

	csum = (u32)de_getu32le_p(&pos);
	de_dbg(c, "csum: 0x%08x", (unsigned int)csum);

	cbData = de_getu16le_p(&pos);
	de_dbg(c, "cbData: %d", (int)cbData);

	cbUncomp = de_getu16le_p(&pos);
	de_dbg(c, "cbUncomp: %d", (int)cbUncomp);

	if((d->header_flags&0x0004) && (d->cbCFData>0)) {
		de_dbg(c, "[%d bytes of abReserve data at %d]", (int)d->cbCFData,
			(int)pos);
		de_dbg_indent(c, 1);
		de_dbg_hexdump(c, c->infile, pos, d->cbCFData, 256, NULL, 0x1);
		de_dbg_indent(c, -1);
		pos += d->cbCFData;
	}

	de_dbg(c, "[%d bytes of %scompressed data at %d]", (int)cbData,
		(fldi->cmpr_type==0)?"un":"", (int)pos);
	pos += cbData;

	*bytes_consumed = pos - pos1;
	return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x48(%rbp), %rsi
callq 0x165580
movl %eax, -0x2c(%rbp)
movq -0x8(%rbp), %rdi
movl -0x2c(%rbp), %edx
leaq 0x155440(%rip), %rsi    # 0x1a50d6
movb $0x0, %al
callq 0x15b0d0
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x48(%rbp), %rsi
callq 0x1652c0
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rdi
movq -0x38(%rbp), %rax
movl %eax, %edx
leaq 0x155420(%rip), %rsi    # 0x1a50e3
movb $0x0, %al
callq 0x15b0d0
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x48(%rbp), %rsi
callq 0x1652c0
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rdi
movq -0x40(%rbp), %rax
movl %eax, %edx
leaq 0x1553fe(%rip), %rsi    # 0x1a50ee
movb $0x0, %al
callq 0x15b0d0
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x4fd92
movq -0x10(%rbp), %rax
cmpq $0x0, 0x38(%rax)
jle 0x4fd92
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rax
movl %eax, %edx
movq -0x48(%rbp), %rax
movl %eax, %ecx
leaq 0x1551e5(%rip), %rsi    # 0x1a4f15
movb $0x0, %al
callq 0x15b0d0
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x15b560
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rsi
movq -0x48(%rbp), %rdx
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rcx
movl $0x100, %r8d            # imm = 0x100
xorl %eax, %eax
movl %eax, %r9d
movl $0x1, (%rsp)
callq 0x15b840
movq -0x8(%rbp), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x15b560
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rax
addq -0x48(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x8(%rbp), %rdi
movq -0x38(%rbp), %rax
movl %eax, %edx
movq -0x18(%rbp), %rax
movl 0x1c(%rax), %esi
leaq 0x180e26(%rip), %rcx    # 0x1d0bd0
leaq 0x14f84e(%rip), %rax    # 0x19f5ff
cmpl $0x0, %esi
cmoveq %rax, %rcx
movq -0x48(%rbp), %rax
movl %eax, %r8d
leaq 0x155335(%rip), %rsi    # 0x1a50fb
movb $0x0, %al
callq 0x15b0d0
movq -0x38(%rbp), %rax
addq -0x48(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rcx
subq -0x20(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movl $0x1, %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)