// File: /workspace/github_c_makefile_star2_O2/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 0x191fb
movq %rax, %rdi
callq 0x1175b
movq %rax, %r14
movq 0x30(%rbx), %rdi
callq 0x19306
movq %rax, %r12
leaq 0xfeef(%rip), %rax      # 0x1ca77
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x17799(%rip), %r15     # 0x24330
movq (%r15), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x8c1, 0xc(%rdi)       # imm = 0x8C1
leaq 0xf798(%rip), %rcx      # 0x1c34a
movq %rcx, 0x10(%rdi)
leaq 0x17593(%rip), %rcx     # 0x24150
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x1b079
cmpq 0x173ef(%rip), %r14     # 0x23fc0
je 0xcd3b
testq %r14, %r14
je 0xcd3b
movl %r14d, %eax
andl $0x3, %eax
jne 0xcd3b
movq %r14, %rdi
callq 0x191fb
movq %rax, %r14
andl $0x3, %eax
cmpl $0x1, %eax
jne 0xcd9f
movq 0x1777e(%rip), %r13     # 0x24388
cmpq 0x173af(%rip), %r12     # 0x23fc0
je 0xce09
testq %r12, %r12
je 0xce09
movl %r12d, %eax
andl $0x3, %eax
jne 0xce09
movq %r13, 0x8(%rsp)
movq %r14, (%rsp)
movq %r12, %rdi
callq 0x191fb
movq %rax, %r13
leaq 0x17ce9(%rip), %rax     # 0x24930
cmpl $0x0, (%rax)
je 0xcc8e
movq (%r15), %rax
movq 0x50(%rax), %rax
leaq 0xfaa3(%rip), %rdi      # 0x1c6fd
movq %rdi, 0x10(%rax)
callq 0x1a7f4
testl %eax, %eax
je 0xcc8e
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x8c9, 0xc(%rax)       # imm = 0x8C9
movq %r13, %rdi
callq 0x13708
leaq 0x108b0(%rip), %rdi     # 0x1d534
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b0f0
leaq 0x1760b(%rip), %r14     # 0x242a0
leaq 0xfa67(%rip), %rbp      # 0x1c703
movq %r12, %rdi
callq 0x19306
cmpq %r14, %rax
je 0xce00
movq %rax, %r12
testq %rax, %rax
je 0xce00
movl %r12d, %eax
andl $0x3, %eax
jne 0xce00
leaq 0x17c64(%rip), %rax     # 0x24930
cmpl $0x0, (%rax)
je 0xcd0f
movq (%r15), %rax
movq 0x50(%rax), %rax
movq %rbp, 0x10(%rax)
movq %rbp, %rdi
callq 0x1a7f4
testl %eax, %eax
je 0xcd0f
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x8cc, 0xc(%rax)       # imm = 0x8CC
movq %r12, %rdi
callq 0x13708
leaq 0x1082f(%rip), %rdi     # 0x1d534
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b0f0
movq %r12, %rdi
callq 0x191fb
movq %r13, %rdi
movq %rax, %rsi
callq 0x1942d
testq %rax, %rax
jne 0xcc9c
movq 0x1764e(%rip), %r13     # 0x24380
movq (%rsp), %r14
jmp 0xce09
leaq -0x7776(%rip), %rsi     # 0x55cc
leaq 0x17557(%rip), %rdx     # 0x242a0
movq %rbx, %rdi
callq 0x123b7
movq %rax, %r14
leaq 0xf7d8(%rip), %rdi      # 0x1c533
callq 0x1691f
movq %rax, %r15
leaq 0xf2b2(%rip), %rdi      # 0x1c01c
callq 0x1691f
movl $0x230b, %esi           # imm = 0x230B
movq %rax, %rdi
callq 0x19164
movq %r15, %rdi
movq %rax, %rsi
callq 0x19164
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x12494
movl $0x8c2, %eax            # imm = 0x8C2
jmp 0xce6a
leaq -0x77da(%rip), %rsi     # 0x55cc
leaq 0x174f3(%rip), %rdx     # 0x242a0
movq %rbx, %rdi
callq 0x123b7
movq %rax, %r14
leaq 0xf774(%rip), %rdi      # 0x1c533
callq 0x1691f
movq %rax, %r15
leaq 0xf24e(%rip), %rdi      # 0x1c01c
callq 0x1691f
movl $0x2313, %esi           # imm = 0x2313
movq %rax, %rdi
callq 0x19164
movq %r15, %rdi
movq %rax, %rsi
callq 0x19164
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x12494
movl $0x8c4, %eax            # imm = 0x8C4
jmp 0xce6a
movq (%rsp), %r14
movq 0x8(%rsp), %r13
leaq 0x17b20(%rip), %rax     # 0x24930
cmpl $0x0, (%rax)
je 0xce57
movq (%r15), %rax
movq 0x50(%rax), %rax
leaq 0xfc60(%rip), %rdi      # 0x1ca83
movq %rdi, 0x10(%rax)
callq 0x1a7f4
testl %eax, %eax
je 0xce57
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x8d4, 0xc(%rax)       # imm = 0x8D4
movq %r13, %rdi
callq 0x13708
leaq 0x106e7(%rip), %rdi     # 0x1d534
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b0f0
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x12494
movl $0x8d6, %eax            # imm = 0x8D6
leaq 0x10(%rsp), %rdi
movl %eax, 0xc(%rdi)
callq 0x1b1f2
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq