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

	snprintf(__pref, sizeof(__pref), "%s  ", pref);

	printf("%slh.nelem = %u\n", pref, lst->nelem);
	for (i = 0; i < lst->nelem; ++i) {
		printf("%slh.elem[%u]{off,hash} = 0x%08X, 0x%08X\n",
		       pref, i, elems[i].off, elems[i].hash);
		cell = cache_cell_find(elems[i].off);
		if (!cell) {
			LH_PR_WARN("could not find key cell 0x%08X\n",
				   elems[i].off);
			ret = -1;
			continue;
		}
		cache_cell_updref(cell, CT_NK);
		res = regf_parse_nk(pref, elems[i].off);
		if (res) {
			LH_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 $0x60, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq 0x65ca(%rip), %rax      # 0x9100
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), %rax
movq %rax, %rsi
addq $0x3, %rsi
movq %rsp, %rcx
movq %rcx, -0x38(%rbp)
addq $0x12, %rax
andq $-0x10, %rax
movq %rsp, %rdi
subq %rax, %rdi
movq %rdi, %rsp
movq %rsi, -0x40(%rbp)
movl $0x0, -0x54(%rbp)
movq -0x8(%rbp), %rcx
leaq 0x37bf(%rip), %rdx      # 0x635d
movb $0x0, %al
callq 0x10b0
movq -0x8(%rbp), %rsi
movq -0x20(%rbp), %rax
movzwl 0x2(%rax), %edx
leaq 0x3c93(%rip), %rdi      # 0x684b
movb $0x0, %al
callq 0x10a0
movl $0x0, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
movq -0x20(%rbp), %rcx
movzwl 0x2(%rcx), %ecx
cmpl %ecx, %eax
jge 0x2cb4
movq -0x8(%rbp), %rsi
movl -0x4c(%rbp), %edx
movq -0x28(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movl (%rax,%rcx,8), %ecx
movq -0x28(%rbp), %rax
movslq -0x4c(%rbp), %rdi
movl 0x4(%rax,%rdi,8), %r8d
leaq 0x3c5d(%rip), %rdi      # 0x685c
movb $0x0, %al
callq 0x10a0
movq -0x28(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movl (%rax,%rcx,8), %edi
callq 0x1c10
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
jne 0x2c4d
movl -0xc(%rbp), %esi
movq -0x28(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movl (%rax,%rcx,8), %ecx
leaq 0x3bae(%rip), %rdi      # 0x67e4
leaq 0x3b3b(%rip), %rdx      # 0x6778
movb $0x0, %al
callq 0x4c10
movl $0xffffffff, -0x54(%rbp) # imm = 0xFFFFFFFF
jmp 0x2ca6
movq -0x48(%rbp), %rdi
movl $0x2, %esi
callq 0x1c70
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movl (%rax,%rcx,8), %esi
callq 0x1ca0
movl %eax, -0x50(%rbp)
cmpl $0x0, -0x50(%rbp)
je 0x2ca4
movl -0xc(%rbp), %esi
movq -0x28(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movl (%rax,%rcx,8), %ecx
leaq 0x3b87(%rip), %rdi      # 0x6814
leaq 0x3ae4(%rip), %rdx      # 0x6778
movb $0x0, %al
callq 0x4c10
movl $0xffffffff, -0x54(%rbp) # imm = 0xFFFFFFFF
jmp 0x2ca6
jmp 0x2ca6
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x2bc6
movl -0x54(%rbp), %eax
movq -0x38(%rbp), %rcx
movq %rcx, %rsp
movq %rbp, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)