// File: /workspace/github_c_makefile_star2_O3/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 0x19c72
movq %rax, %rdi
callq 0x11d65
movq %rax, %r14
movq 0x30(%rbx), %rdi
callq 0x19d11
movq %rax, %r13
leaq 0xf90e(%rip), %rax      # 0x1ca77
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x161b8(%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 0xf1b7(%rip), %rcx      # 0x1c34a
movq %rcx, 0x10(%rdi)
leaq 0x15fb2(%rip), %rcx     # 0x23150
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x1ba26
cmpq 0x15e0e(%rip), %r14     # 0x22fc0
je 0xd33f
testq %r14, %r14
je 0xd33f
movl %r14d, %eax
andl $0x3, %eax
jne 0xd33f
movq %r14, %rdi
callq 0x19c72
movq %rax, %r14
andl $0x3, %eax
cmpl $0x1, %eax
jne 0xd3a3
movq 0x1619d(%rip), %rbp     # 0x23388
cmpq 0x15dce(%rip), %r13     # 0x22fc0
je 0xd40f
testq %r13, %r13
je 0xd40f
movl %r13d, %eax
andl $0x3, %eax
jne 0xd40f
movq %r13, %rdi
callq 0x19c72
movq %rax, %r12
leaq 0x16711(%rip), %rax     # 0x23930
cmpl $0x0, (%rax)
je 0xd266
movq (%r15), %rax
movq 0x50(%rax), %rax
leaq 0xf4cb(%rip), %rdi      # 0x1c6fd
movq %rdi, 0x10(%rax)
callq 0x1b188
testl %eax, %eax
je 0xd266
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x8c9, 0xc(%rax)       # imm = 0x8C9
movq %r12, %rdi
callq 0x13c40
leaq 0x102f8(%rip), %rdi     # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1ba97
movq %r13, %rdi
callq 0x19d11
cmpq 0x15d4b(%rip), %rax     # 0x22fc0
je 0xd40f
movq %rax, %r13
testq %rax, %rax
je 0xd40f
movl %r13d, %eax
andl $0x3, %eax
jne 0xd40f
movq %rbp, 0x8(%rsp)
movq %r14, (%rsp)
leaq 0x15ffd(%rip), %r14     # 0x232a0
leaq 0xf459(%rip), %rbp      # 0x1c703
leaq 0x1667f(%rip), %rax     # 0x23930
cmpl $0x0, (%rax)
je 0xd2f4
movq (%r15), %rax
movq 0x50(%rax), %rax
movq %rbp, 0x10(%rax)
movq %rbp, %rdi
callq 0x1b188
testl %eax, %eax
je 0xd2f4
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x8cc, 0xc(%rax)       # imm = 0x8CC
movq %r13, %rdi
callq 0x13c40
leaq 0x1026a(%rip), %rdi     # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1ba97
movq %r13, %rdi
callq 0x19c72
movq %r12, %rdi
movq %rax, %rsi
callq 0x19dcc
testq %rax, %rax
je 0xd404
movq %r13, %rdi
callq 0x19d11
cmpq %r14, %rax
je 0xd331
movq %rax, %r13
testq %rax, %rax
je 0xd331
movl %r13d, %eax
andl $0x3, %eax
je 0xd2aa
movq (%rsp), %r14
movq 0x8(%rsp), %rbp
jmp 0xd40f
leaq -0x779e(%rip), %rsi     # 0x5ba8
leaq 0x15f53(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x128be
movq %rax, %r14
leaq 0xf1d4(%rip), %rdi      # 0x1c533
callq 0x170ff
movq %rax, %r15
leaq 0xecae(%rip), %rdi      # 0x1c01c
callq 0x170ff
movl $0x230b, %esi           # imm = 0x230B
movq %rax, %rdi
callq 0x19c50
movq %r15, %rdi
movq %rax, %rsi
callq 0x19c50
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1299b
movl $0x8c2, %eax            # imm = 0x8C2
jmp 0xd470
leaq -0x7802(%rip), %rsi     # 0x5ba8
leaq 0x15eef(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x128be
movq %rax, %r14
leaq 0xf170(%rip), %rdi      # 0x1c533
callq 0x170ff
movq %rax, %r15
leaq 0xec4a(%rip), %rdi      # 0x1c01c
callq 0x170ff
movl $0x2313, %esi           # imm = 0x2313
movq %rax, %rdi
callq 0x19c50
movq %r15, %rdi
movq %rax, %rsi
callq 0x19c50
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1299b
movl $0x8c4, %eax            # imm = 0x8C4
jmp 0xd470
movq 0x15f75(%rip), %rbp     # 0x23380
movq (%rsp), %r14
leaq 0x1651a(%rip), %rax     # 0x23930
cmpl $0x0, (%rax)
je 0xd45d
movq (%r15), %rax
movq 0x50(%rax), %rax
leaq 0xf65a(%rip), %rdi      # 0x1ca83
movq %rdi, 0x10(%rax)
callq 0x1b188
testl %eax, %eax
je 0xd45d
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x8d4, 0xc(%rax)       # imm = 0x8D4
movq %rbp, %rdi
callq 0x13c40
leaq 0x10101(%rip), %rdi     # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1ba97
movq %rbx, %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0x1299b
movl $0x8d6, %eax            # imm = 0x8D6
leaq 0x10(%rsp), %rdi
movl %eax, 0xc(%rdi)
callq 0x1bbab
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq