// File: /workspace/github_c_makefile_star2_O1/rsa9000[P]regfanalysistools/regftree.c
// Function: regf_parse_vlst
static int regf_parse_vlst(const char *pref, unsigned off, unsigned num)
{
#define VLST_PR_WARN(__fmt, ...)	PR_WARN(off, "vlst", __fmt, ##__VA_ARGS__)
	const struct regf_cell *rc = st.data + off;
	const uint32_t *vals = (void *)rc->data;
	size_t pref_len = strlen(pref);
	char __pref[pref_len + 4];
	struct cell *cell;
	unsigned i;
	int res, ret = 0;

	if (regf_cell_check_len(st.data, off, "vlst", num * sizeof(vals[0])))
		return -1;

	for (i = 0; i < num; ++i) {
		cell = cache_cell_find(vals[i]);
		if (!cell) {
			VLST_PR_WARN("could not find value cell 0x%08X\n",
				     vals[i]);
			ret = -1;
			continue;
		}
		cache_cell_updref(cell, CT_VK);
		if (i == num - 1) {
			printf("%s '-", pref);
			snprintf(__pref, sizeof(__pref), "%s   ", pref);
		} else {
			printf("%s +-", pref);
			snprintf(__pref, sizeof(__pref), "%s | ", pref);
		}
		res = regf_parse_vk(__pref, vals[i]);
		if (res) {
			VLST_PR_WARN("could not parse value key in cell 0x%08X\n",
				     vals[i]);
			ret = -1;
			continue;
		}
	}

	return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %edx, %r15d
movl %esi, %ebx
movq 0x519a(%rip), %r14      # 0x7110
movq %rdi, -0x58(%rbp)
callq 0x1090
movq %rsp, %rcx
movq %rax, -0x38(%rbp)
addq $0x13, %rax
andq $-0x10, %rax
subq %rax, %rcx
movq %rcx, -0x50(%rbp)
movq %rcx, %rsp
leal (,%r15,4), %ecx
leaq 0x265f(%rip), %rdx      # 0x4606
movq %r14, %rdi
movl %ebx, -0x30(%rbp)
movl %ebx, %esi
callq 0x31a2
movl $0xffffffff, -0x2c(%rbp) # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x20df
testl %r15d, %r15d
je 0x20d8
movl -0x30(%rbp), %eax
leaq (%r14,%rax), %rbx
addq $0x4, %rbx
addq $0x4, -0x38(%rbp)
leal -0x1(%r15), %eax
movq %rax, -0x48(%rbp)
movl %r15d, %r15d
leaq 0x513a(%rip), %r12      # 0x7128
leaq 0x513b(%rip), %r13      # 0x7130
xorl %r14d, %r14d
movl $0x0, -0x2c(%rbp)
movq %rbx, -0x40(%rbp)
movl (%rbx,%r14,4), %esi
movq %r12, %rdi
callq 0x30ad
cmpq %r13, %rax
sete %cl
testq %rax, %rax
sete %dl
orb %cl, %dl
leaq 0x25e7(%rip), %rdi      # 0x460b
jne 0x20ae
incl 0x24(%rax)
orb $0x40, 0x28(%rax)
cmpq %r14, -0x48(%rbp)
leaq 0x2510(%rip), %rdi      # 0x454c
leaq 0x24fd(%rip), %rax      # 0x4540
cmoveq %rax, %rdi
movq %r15, %rbx
leaq 0x2501(%rip), %r15      # 0x4552
leaq 0x24ee(%rip), %rax      # 0x4546
cmoveq %rax, %r15
movq -0x58(%rbp), %r12
movq %r12, %rsi
xorl %eax, %eax
callq 0x10b0
movq -0x50(%rbp), %r13
movq %r13, %rdi
movq -0x38(%rbp), %rsi
movq %r15, %rdx
movq %rbx, %r15
movq -0x40(%rbp), %rbx
movq %r12, %rcx
leaq 0x509f(%rip), %r12      # 0x7128
xorl %eax, %eax
callq 0x10d0
movl (%rbx,%r14,4), %esi
movq %r13, %rdi
leaq 0x5092(%rip), %r13      # 0x7130
callq 0x2590
leaq 0x2593(%rip), %rdi      # 0x463d
testl %eax, %eax
je 0x20ca
movl (%rbx,%r14,4), %ecx
movl -0x30(%rbp), %esi
leaq 0x254a(%rip), %rdx      # 0x4606
xorl %eax, %eax
callq 0x1359
movl $0xffffffff, -0x2c(%rbp) # imm = 0xFFFFFFFF
incq %r14
cmpq %r14, %r15
jne 0x2003
jmp 0x20df
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq