// File: /workspace/github_c_makefile_star2_O0/jsummers[P]deark/modules/zip.c
// Function: do_extra_data
static void do_extra_data(deark *c, lctx *d,
	struct member_data *md, struct dir_entry_data *dd,
	i64 pos1, i64 len, int is_central)
{
	i64 pos;

	de_dbg(c, "extra data at %"I64_FMT", len=%d", pos1, (int)len);
	de_dbg_indent(c, 1);

	pos = pos1;
	while(1) {
		struct extra_item_info_struct eii;

		if(pos+4 >= pos1+len) break;
		de_zeromem(&eii, sizeof(struct extra_item_info_struct));
		eii.md = md;
		eii.dd = dd;
		eii.is_central = is_central;
		eii.dpos = pos+4;

		eii.id = (u32)de_getu16le(pos);
		eii.dlen = de_getu16le(pos+2);

		eii.eiti = get_extra_item_type_info(eii.id);

		de_dbg(c, "item id=0x%04x (%s), dlen=%d", (UI)eii.id, eii.eiti->name,
			(int)eii.dlen);
		if(pos+4+eii.dlen > pos1+len) break;

		de_dbg_indent(c, 1);
		if(eii.eiti->fn) {
			eii.eiti->fn(c, d, &eii);
		}
		else if(c->debug_level>=2) {
			de_dbg_hexdump(c, c->infile, eii.dpos, eii.dlen, 256, NULL, 0x1);
		}
		de_dbg_indent(c, -1);

		pos += 4+eii.dlen;
	}

	de_dbg_indent(c, -1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rax
movl %eax, %ecx
leaq 0x8500f(%rip), %rsi     # 0x1cf6aa
movb $0x0, %al
callq 0x15b0d0
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x15b560
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
addq $0x4, %rax
movq -0x28(%rbp), %rcx
addq -0x30(%rbp), %rcx
cmpq %rcx, %rax
jl 0x14a6d2
jmp 0x14a80b
leaq -0x70(%rbp), %rdi
xorl %esi, %esi
movl $0x38, %edx
callq 0x19140
movq -0x18(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x48(%rbp)
movl 0x10(%rbp), %eax
movl %eax, -0x40(%rbp)
movq -0x38(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x68(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x38(%rbp), %rsi
callq 0x165280
movl %eax, -0x70(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x38(%rbp), %rsi
addq $0x2, %rsi
callq 0x165280
movq %rax, -0x60(%rbp)
movl -0x70(%rbp), %eax
movl %eax, %edi
callq 0x14ab50
movq %rax, -0x58(%rbp)
movq -0x8(%rbp), %rdi
movl -0x70(%rbp), %edx
movq -0x58(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x60(%rbp), %rax
movl %eax, %r8d
leaq 0x84f68(%rip), %rsi     # 0x1cf6c4
movb $0x0, %al
callq 0x15b0d0
movq -0x38(%rbp), %rax
addq $0x4, %rax
addq -0x60(%rbp), %rax
movq -0x28(%rbp), %rcx
addq -0x30(%rbp), %rcx
cmpq %rcx, %rax
jle 0x14a781
jmp 0x14a80b
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x15b560
movq -0x58(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x14a7b2
movq -0x58(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x70(%rbp), %rdx
callq *%rax
jmp 0x14a7e8
movq -0x8(%rbp), %rax
cmpl $0x2, (%rax)
jl 0x14a7e6
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rsi
movq -0x68(%rbp), %rdx
movq -0x60(%rbp), %rcx
movl $0x100, %r8d            # imm = 0x100
xorl %eax, %eax
movl %eax, %r9d
movl $0x1, (%rsp)
callq 0x15b840
jmp 0x14a7e8
movq -0x8(%rbp), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x15b560
movq -0x60(%rbp), %rax
addq $0x4, %rax
addq -0x38(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x14a6b8
movq -0x8(%rbp), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x15b560
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)