// File: /workspace/github_c_makefile_star2_O1/darwin-on-arm[P]darwin-sdk/developer_cmds/unifdef/unifdef.c
// Function: eval_table
static Linetype
eval_table(const struct ops *ops, int *valp, const char **cpp)
{
	const struct op *op;
	const char *cp;
	int val;
	Linetype lt, rt;

	debug("eval%d", ops - eval_ops);
	cp = *cpp;
	lt = ops->inner(ops+1, valp, &cp);
	if (lt == LT_ERROR)
		return (LT_ERROR);
	for (;;) {
		cp = skipcomment(cp);
		for (op = ops->op; op->str != NULL; op++)
			if (strncmp(cp, op->str, strlen(op->str)) == 0)
				break;
		if (op->str == NULL)
			break;
		cp += strlen(op->str);
		debug("eval%d %s", ops - eval_ops, op->str);
		rt = ops->inner(ops+1, &val, &cp);
		if (rt == LT_ERROR)
			return (LT_ERROR);
		lt = op->fn(valp, lt, *valp, rt, val);
	}

	*cpp = cp;
	debug("eval%d = %d", ops - eval_ops, *valp);
	debug("eval%d lt = %s", ops - eval_ops, linetype_name[lt]);
	return (lt);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x45cf(%rip), %rax      # 0x8c70
movq %rdi, %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movabsq $0x2e8ba2e8ba2e8ba3, %r12 # imm = 0x2E8BA2E8BA2E8BA3
imulq %rcx, %r12
leaq 0x1ddb(%rip), %rdi      # 0x649b
movq %r12, %rsi
xorl %eax, %eax
callq 0x3f2f
movq (%r15), %rax
leaq 0x10(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x58(%rbx), %rdi
movq %rdi, 0x50(%rsp)
movq %r14, 0x28(%rsp)
movq %r14, %rsi
callq *(%rbx)
movl %eax, %ebp
movl $0x16, %eax
cmpl $0x16, %ebp
je 0x4872
movq %r15, 0x48(%rsp)
movq 0x10(%rsp), %rdi
callq 0x4023
movq %rax, %r13
movq %rax, 0x10(%rsp)
movq 0x8(%rbx), %r15
testq %r15, %r15
sete %r14b
je 0x4832
leaq 0x8(%rbx), %rax
movq %rbx, 0x40(%rsp)
addq $0x18, %rbx
movq %rbx, 0x30(%rsp)
movq %r12, 0x18(%rsp)
movq %rax, 0x38(%rsp)
movq 0x18(%rsp), %r12
movl %ebp, 0xc(%rsp)
movq %r15, %rdi
movq %rax, %rbp
callq 0x30d0
movq %r13, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x3070
testl %eax, %eax
je 0x4797
movq (%rbx), %r15
testq %r15, %r15
sete %r14b
je 0x4829
movq %r15, %rdi
callq 0x30d0
movq %r13, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x3070
addq $0x10, %rbx
testl %eax, %eax
jne 0x4762
addq $-0x10, %rbx
movq %rbx, %rbp
testb $0x1, %r14b
jne 0x4829
movq %r15, %rdi
callq 0x30d0
addq %rax, %r13
movq %r13, 0x10(%rsp)
leaq 0x1cea(%rip), %rdi      # 0x64a2
movq %r12, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x3f2f
movq 0x50(%rsp), %rdi
leaq 0x24(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq 0x40(%rsp), %rax
callq *(%rax)
cmpl $0x16, %eax
movl 0xc(%rsp), %esi
je 0x4881
movq 0x28(%rsp), %rdi
movl (%rdi), %edx
movl 0x24(%rsp), %r8d
movl %eax, %ecx
callq *0x8(%rbp)
movl %eax, %ebp
movq 0x10(%rsp), %rdi
callq 0x4023
movq %rax, %r13
movq %rax, 0x10(%rsp)
movq 0x38(%rsp), %rax
movq (%rax), %r15
testq %r15, %r15
sete %r14b
movq 0x30(%rsp), %rbx
jne 0x4741
jmp 0x4832
movq 0x18(%rsp), %r12
movl 0xc(%rsp), %ebp
movq 0x48(%rsp), %rax
movq %r13, (%rax)
movq 0x28(%rsp), %rax
movl (%rax), %edx
leaq 0x1c64(%rip), %rdi      # 0x64ac
movq %r12, %rsi
xorl %eax, %eax
callq 0x3f2f
movl %ebp, %eax
leaq 0x4355(%rip), %rcx      # 0x8bb0
movq (%rcx,%rax,8), %rdx
leaq 0x1c52(%rip), %rdi      # 0x64b8
movq %r12, %rsi
xorl %eax, %eax
callq 0x3f2f
movl %ebp, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x16, %eax
jmp 0x4872