// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/kernel.c
// Function: eq_args_beh
static
BEH_DECL(eq_args_beh)
{
	CONS* state = MINE;
	CONS* cust;
	CONS* args = WHAT;
	CONS* first;
	CONS* rest;
	CONS* result;

	DBUG_ENTER("eq_args_beh");
	ENSURE(is_pr(state));
	cust = hd(state);
	ENSURE(actorp(cust));

	result = a_true;
	if (is_pr(args)) {
		first = hd(args);
		DBUG_PRINT("first", ("%s", cons_to_str(first)));
		rest = tl(args);
		while (is_pr(rest)) {
			DBUG_PRINT("rest", ("%s", cons_to_str(rest)));
			if (!equal(first, hd(rest))) {
				result = a_false;
				break;
			}
			rest = tl(rest);
		}
	}
	DBUG_PRINT("result", ("%s", cons_to_str(result)));
	SEND(cust, result);
	DBUG_RETURN;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x19ba6
movq %rax, %rdi
callq 0x11d11
movq %rax, %r14
movq 0x30(%rbx), %rdi
callq 0x19c45
movq %rax, %r13
leaq 0xf90d(%rip), %rax      # 0x1ca77
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x161b7(%rip), %r15     # 0x23330
movq (%r15), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x8c1, 0xc(%rdi)       # imm = 0x8C1
leaq 0xf1b6(%rip), %rcx      # 0x1c34a
movq %rcx, 0x10(%rdi)
leaq 0x15fb1(%rip), %rcx     # 0x23150
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x1b912
cmpq 0x15e0d(%rip), %r14     # 0x22fc0
je 0xd340
testq %r14, %r14
je 0xd340
movl %r14d, %eax
andl $0x3, %eax
jne 0xd340
movq %r14, %rdi
callq 0x19ba6
movq %rax, %r14
andl $0x3, %eax
cmpl $0x1, %eax
jne 0xd3a4
movq 0x1619c(%rip), %rbp     # 0x23388
cmpq 0x15dcd(%rip), %r13     # 0x22fc0
je 0xd410
testq %r13, %r13
je 0xd410
movl %r13d, %eax
andl $0x3, %eax
jne 0xd410
movq %r13, %rdi
callq 0x19ba6
movq %rax, %r12
leaq 0x16710(%rip), %rax     # 0x23930
cmpl $0x0, (%rax)
je 0xd267
movq (%r15), %rax
movq 0x50(%rax), %rax
leaq 0xf4ca(%rip), %rdi      # 0x1c6fd
movq %rdi, 0x10(%rax)
callq 0x1b084
testl %eax, %eax
je 0xd267
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x8c9, 0xc(%rax)       # imm = 0x8C9
movq %r12, %rdi
callq 0x13b9c
leaq 0x102f7(%rip), %rdi     # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b983
movq %r13, %rdi
callq 0x19c45
cmpq 0x15d4a(%rip), %rax     # 0x22fc0
je 0xd410
movq %rax, %r13
testq %rax, %rax
je 0xd410
movl %r13d, %eax
andl $0x3, %eax
jne 0xd410
movq %rbp, 0x8(%rsp)
movq %r14, (%rsp)
leaq 0x15ffc(%rip), %r14     # 0x232a0
leaq 0xf458(%rip), %rbp      # 0x1c703
leaq 0x1667e(%rip), %rax     # 0x23930
cmpl $0x0, (%rax)
je 0xd2f5
movq (%r15), %rax
movq 0x50(%rax), %rax
movq %rbp, 0x10(%rax)
movq %rbp, %rdi
callq 0x1b084
testl %eax, %eax
je 0xd2f5
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x8cc, 0xc(%rax)       # imm = 0x8CC
movq %r13, %rdi
callq 0x13b9c
leaq 0x10269(%rip), %rdi     # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b983
movq %r13, %rdi
callq 0x19ba6
movq %r12, %rdi
movq %rax, %rsi
callq 0x19d00
testq %rax, %rax
je 0xd405
movq %r13, %rdi
callq 0x19c45
cmpq %r14, %rax
je 0xd332
movq %rax, %r13
testq %rax, %rax
je 0xd332
movl %r13d, %eax
andl $0x3, %eax
je 0xd2ab
movq (%rsp), %r14
movq 0x8(%rsp), %rbp
jmp 0xd410
leaq -0x7752(%rip), %rsi     # 0x5bf5
leaq 0x15f52(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x1283a
movq %rax, %r14
leaq 0xf1d3(%rip), %rdi      # 0x1c533
callq 0x1707c
movq %rax, %r15
leaq 0xecad(%rip), %rdi      # 0x1c01c
callq 0x1707c
movl $0x230b, %esi           # imm = 0x230B
movq %rax, %rdi
callq 0x19b84
movq %r15, %rdi
movq %rax, %rsi
callq 0x19b84
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x12917
movl $0x8c2, %eax            # imm = 0x8C2
jmp 0xd471
leaq -0x77b6(%rip), %rsi     # 0x5bf5
leaq 0x15eee(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x1283a
movq %rax, %r14
leaq 0xf16f(%rip), %rdi      # 0x1c533
callq 0x1707c
movq %rax, %r15
leaq 0xec49(%rip), %rdi      # 0x1c01c
callq 0x1707c
movl $0x2313, %esi           # imm = 0x2313
movq %rax, %rdi
callq 0x19b84
movq %r15, %rdi
movq %rax, %rsi
callq 0x19b84
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x12917
movl $0x8c4, %eax            # imm = 0x8C4
jmp 0xd471
movq 0x15f74(%rip), %rbp     # 0x23380
movq (%rsp), %r14
leaq 0x16519(%rip), %rax     # 0x23930
cmpl $0x0, (%rax)
je 0xd45e
movq (%r15), %rax
movq 0x50(%rax), %rax
leaq 0xf659(%rip), %rdi      # 0x1ca83
movq %rdi, 0x10(%rax)
callq 0x1b084
testl %eax, %eax
je 0xd45e
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x8d4, 0xc(%rax)       # imm = 0x8D4
movq %rbp, %rdi
callq 0x13b9c
leaq 0x10100(%rip), %rdi     # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b983
movq %rbx, %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0x12917
movl $0x8d6, %eax            # imm = 0x8D6
leaq 0x10(%rsp), %rdi
movl %eax, 0xc(%rdi)
callq 0x1ba97
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq