// File: /workspace/github_c_makefile_star2_O0/rsa9000[P]regfanalysistools/regftree.c
// Function: regf_parse_lst_lf
static int regf_parse_lst_lf(const char *pref, unsigned off, int have_vals)
{
#define LF_PR_WARN(__fmt, ...)	PR_WARN(off, "lf", __fmt, ##__VA_ARGS__)
	const struct regf_cell *rc = st.data + off;
	const struct regf_lst *lst = (void *)rc->data;
	const struct regf_lf_elem *elems = (void *)lst->data;
	size_t pref_len = strlen(pref);
	char __pref[pref_len + 4];
	struct cell *cell;
	int i, res, ret = 0;

	for (i = 0; i < lst->nelem; ++i) {
		cell = cache_cell_find(elems[i].off);
		if (!cell) {
			LF_PR_WARN("could not find key cell 0x%08X\n",
				   elems[i].off);
			ret = -1;
			continue;
		}
		cache_cell_updref(cell, CT_NK);
		if (i == lst->nelem - 1 && !have_vals) {
			printf("%s '-", pref);
			snprintf(__pref, sizeof(__pref), "%s   ", pref);
		} else {
			printf("%s +-", pref);
			snprintf(__pref, sizeof(__pref), "%s | ", pref);
		}
		res = regf_parse_nk(__pref, elems[i].off);
		if (res) {
			LF_PR_WARN("could not parse subkey in cell 0x%08X\n",
				   elems[i].off);
			ret = -1;
			continue;
		}
	}

	return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq 0x5b97(%rip), %rax      # 0x8100
movl -0xc(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rdi
callq 0x1080
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdx
movq %rdx, %rax
addq $0x4, %rax
movq %rax, -0x68(%rbp)
movq %rsp, %rcx
movq %rcx, -0x38(%rbp)
addq $0x13, %rdx
andq $-0x10, %rdx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x60(%rbp)
movq %rcx, %rsp
movq %rax, -0x40(%rbp)
movl $0x0, -0x54(%rbp)
movl $0x0, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
movq -0x20(%rbp), %rcx
movzwl 0x2(%rcx), %ecx
cmpl %ecx, %eax
jge 0x270b
movq -0x28(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movl (%rax,%rcx,8), %edi
callq 0x1c20
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
jne 0x2632
movl -0xc(%rbp), %esi
movq -0x28(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movl (%rax,%rcx,8), %ecx
leaq 0x2f2d(%rip), %rdi      # 0x5545
leaq 0x2ef0(%rip), %rdx      # 0x550f
movb $0x0, %al
callq 0x4760
movl $0xffffffff, -0x54(%rbp) # imm = 0xFFFFFFFF
jmp 0x26fd
movq -0x48(%rbp), %rdi
movl $0x2, %esi
callq 0x1c80
movl -0x4c(%rbp), %eax
movq -0x20(%rbp), %rcx
movzwl 0x2(%rcx), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x2686
cmpl $0x0, -0x10(%rbp)
jne 0x2686
movq -0x8(%rbp), %rsi
leaq 0x2f12(%rip), %rdi      # 0x5575
movb $0x0, %al
callq 0x10a0
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rsi
movq -0x8(%rbp), %rcx
leaq 0x2efe(%rip), %rdx      # 0x557b
movb $0x0, %al
callq 0x10c0
jmp 0x26b2
movq -0x8(%rbp), %rsi
leaq 0x2ef0(%rip), %rdi      # 0x5581
movb $0x0, %al
callq 0x10a0
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rsi
movq -0x8(%rbp), %rcx
leaq 0x2edc(%rip), %rdx      # 0x5587
movb $0x0, %al
callq 0x10c0
movq -0x60(%rbp), %rdi
movq -0x28(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movl (%rax,%rcx,8), %esi
callq 0x1cb0
movl %eax, -0x50(%rbp)
cmpl $0x0, -0x50(%rbp)
je 0x26fb
movl -0xc(%rbp), %esi
movq -0x28(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movl (%rax,%rcx,8), %ecx
leaq 0x2ea9(%rip), %rdi      # 0x558d
leaq 0x2e24(%rip), %rdx      # 0x550f
movb $0x0, %al
callq 0x4760
movl $0xffffffff, -0x54(%rbp) # imm = 0xFFFFFFFF
jmp 0x26fd
jmp 0x26fd
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x25d5
movl -0x54(%rbp), %eax
movq -0x38(%rbp), %rcx
movq %rcx, %rsp
movq %rbp, %rsp
popq %rbp
retq
nopw (%rax,%rax)