// File: /workspace/github_c_makefile_star2_O0/jsummers[P]deark/modules/pif.c
// Function: do_pif_section_winvmm
static void do_pif_section_winvmm(deark *c, struct pif_ctx *d, i64 pos1, i64 len)
{
	i64 pos = pos1;
	i64 n;

	if(len<428) return;
	pos += 88;

	ucstring_empty(d->tmpstr);
	dbuf_read_to_ucstring(c->infile, pos, 80, d->tmpstr, DE_CONVFLAG_STOP_AT_NUL,
		d->input_encoding_ansi);
	de_dbg(c, "icon file: \"%s\"", ucstring_getpsz_d(d->tmpstr));
	pos += 80;

	n = de_getu16le_p(&pos);
	de_dbg(c, "icon #: %"I64_FMT, n);

	pos = pos1 + 234;
	ucstring_empty(d->tmpstr);
	dbuf_read_to_ucstring(c->infile, pos, 32, d->tmpstr, DE_CONVFLAG_STOP_AT_NUL,
		d->input_encoding_ansi);
	de_dbg(c, "raster font: \"%s\"", ucstring_getpsz_d(d->tmpstr));
	pos += 32;

	ucstring_empty(d->tmpstr);
	dbuf_read_to_ucstring(c->infile, pos, 32, d->tmpstr, DE_CONVFLAG_STOP_AT_NUL,
		d->input_encoding_ansi);
	de_dbg(c, "TrueType font: \"%s\"", ucstring_getpsz_d(d->tmpstr));

	pos = pos1 + 342;
	ucstring_empty(d->tmpstr);
	dbuf_read_to_ucstring(c->infile, pos, 80, d->tmpstr, DE_CONVFLAG_STOP_AT_NUL,
		d->input_encoding_oem);
	de_dbg(c, "BAT file: \"%s\"", ucstring_getpsz_d(d->tmpstr));

	// TODO: More fields
}

// 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 -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
cmpq $0x1ac, -0x20(%rbp)     # imm = 0x1AC
jge 0x11867f
jmp 0x118875
movq -0x28(%rbp), %rax
addq $0x58, %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x171210
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x28(%rbp), %rsi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x10(%rbp), %rax
movl 0x4(%rax), %r9d
movl $0x50, %edx
movl $0x1, %r8d
callq 0x1669f0
movq -0x8(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x172650
movq -0x50(%rbp), %rdi
movq %rax, %rdx
leaq 0xac58c(%rip), %rsi     # 0x1c4c73
movb $0x0, %al
callq 0x15b0d0
movq -0x28(%rbp), %rax
addq $0x50, %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x1652c0
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rdx
leaq 0xac565(%rip), %rsi     # 0x1c4c83
movb $0x0, %al
callq 0x15b0d0
movq -0x18(%rbp), %rax
addq $0xea, %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x171210
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x28(%rbp), %rsi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x10(%rbp), %rax
movl 0x4(%rax), %r9d
movl $0x20, %edx
movl $0x1, %r8d
callq 0x1669f0
movq -0x8(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x172650
movq -0x48(%rbp), %rdi
movq %rax, %rdx
leaq 0xac500(%rip), %rsi     # 0x1c4c8f
movb $0x0, %al
callq 0x15b0d0
movq -0x28(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x171210
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x28(%rbp), %rsi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x10(%rbp), %rax
movl 0x4(%rax), %r9d
movl $0x20, %edx
movl $0x1, %r8d
callq 0x1669f0
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x172650
movq -0x40(%rbp), %rdi
movq %rax, %rdx
leaq 0xac4a3(%rip), %rsi     # 0x1c4ca1
movb $0x0, %al
callq 0x15b0d0
movq -0x18(%rbp), %rax
addq $0x156, %rax            # imm = 0x156
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x171210
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0x28(%rbp), %rsi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x10(%rbp), %rax
movl (%rax), %r9d
movl $0x50, %edx
movl $0x1, %r8d
callq 0x1669f0
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x172650
movq -0x38(%rbp), %rdi
movq %rax, %rdx
leaq 0xac447(%rip), %rsi     # 0x1c4cb5
movb $0x0, %al
callq 0x15b0d0
addq $0x50, %rsp
popq %rbp
retq
nopl (%rax,%rax)