// File: /workspace/github_c_makefile_star2_O2/dalnefre[P]kernel_abe/atom.c
// Function: test_atom
void
test_atom()
{
	CONS* p;
	CONS* q;
	char* s;
	char buf[256];

	DBUG_ENTER("test_atom");
	TRACE(printf("--test_atom--\n"));
	p = ATOM(NULL);
	q = ATOM("");
	assert(nilp(p));
	assert(p == q);
	assert(atom_str(q)[0] == '\0');
	
	s = "T";
	strncpy(buf, s, sizeof(buf - 1));
	p = ATOM(s);
	q = ATOM(buf);
	assert(p == q);
	q = ATOM("n");
	assert(p != q);
	s = "nil";
	strncpy(buf, s, sizeof(buf - 1));
	p = ATOM(s);
	assert(p != q);
	assert(strcmp(s, atom_str(p)) == 0);
	q = ATOM(buf);
	assert(p == q);
	p = ATOM("F");
	assert(p != q);
	
	p = MK_CONS(lu_atom_root);
	DBUG_PRINT("", ("lu_atom_root=%s", cons_to_str(p)));
	DBUG_RETURN;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
leaq 0x6f43(%rip), %rax      # 0x1d99e
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
leaq 0xd8c6(%rip), %r12      # 0x24330
movq (%r12), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x82, 0xc(%rdi)
leaq 0x58c4(%rip), %rbx      # 0x1c34a
movq %rbx, 0x10(%rdi)
leaq 0xd73f(%rip), %rcx      # 0x241d0
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x1b079
leaq 0x6fac(%rip), %rdi      # 0x1da51
callq 0x20a0
movq %rbx, %rdi
callq 0x1691f
cmpq 0xd507(%rip), %rax      # 0x23fc0
jne 0x16bf7
leaq 0xd7da(%rip), %rdi      # 0x242a0
callq 0x1697e
cmpb $0x0, (%rax)
jne 0x16c16
leaq 0x30(%rsp), %r15
movq $0x54, (%r15)
leaq 0x5a4d(%rip), %rdi      # 0x1c534
callq 0x1691f
movq %rax, %r14
movq %r15, %rdi
callq 0x1691f
cmpq %rax, %r14
jne 0x16c35
leaq 0x59e4(%rip), %rdi      # 0x1c4eb
callq 0x1691f
cmpq %rax, %r14
je 0x16c54
movq %rax, %r15
movq $0x6c696e, 0x30(%rsp)   # imm = 0x6C696E
leaq 0x6eb6(%rip), %rdi      # 0x1d9de
callq 0x1691f
cmpq %r15, %rax
je 0x16c73
movq %rax, %r14
movq %rax, %rdi
callq 0x1697e
leaq 0x6e96(%rip), %rdi      # 0x1d9de
movq %rax, %rsi
callq 0x2170
testl %eax, %eax
jne 0x16c92
leaq 0x30(%rsp), %rdi
callq 0x1691f
cmpq %rax, %r14
jne 0x16cb1
leaq 0x554f(%rip), %rdi      # 0x1c0c1
callq 0x1691f
cmpq %r14, %rax
je 0x16cd0
leaq 0xdda9(%rip), %rax      # 0x24930
cmpl $0x0, (%rax)
je 0x16bd7
movq 0xdc85(%rip), %r14      # 0x24818
movq (%r12), %rax
movq 0x50(%rax), %rax
movq %rbx, 0x10(%rax)
movq %rbx, %rdi
callq 0x1a7f4
testl %eax, %eax
je 0x16bd7
andq $-0x4, %r14
movq (%r12), %rax
movq 0x50(%rax), %rax
movl $0x9c, 0xc(%rax)
movq %r14, %rdi
callq 0x13708
leaq 0x6e31(%rip), %rdi      # 0x1d9fe
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b0f0
leaq 0x8(%rsp), %rdi
movl $0x9d, 0xc(%rdi)
callq 0x1b1f2
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x6dbb(%rip), %rdi      # 0x1d9b9
leaq 0x6d43(%rip), %rsi      # 0x1d948
leaq 0x6d9c(%rip), %rcx      # 0x1d9a8
movl $0x87, %edx
callq 0x2100
leaq 0x6da3(%rip), %rdi      # 0x1d9c0
leaq 0x6d24(%rip), %rsi      # 0x1d948
leaq 0x6d7d(%rip), %rcx      # 0x1d9a8
movl $0x88, %edx
callq 0x2100
leaq 0x6d7d(%rip), %rdi      # 0x1d9b9
leaq 0x6d05(%rip), %rsi      # 0x1d948
leaq 0x6d5e(%rip), %rcx      # 0x1d9a8
movl $0x8e, %edx
callq 0x2100
leaq 0x6d7c(%rip), %rdi      # 0x1d9d7
leaq 0x6ce6(%rip), %rsi      # 0x1d948
leaq 0x6d3f(%rip), %rcx      # 0x1d9a8
movl $0x90, %edx
callq 0x2100
leaq 0x6d5d(%rip), %rdi      # 0x1d9d7
leaq 0x6cc7(%rip), %rsi      # 0x1d948
leaq 0x6d20(%rip), %rcx      # 0x1d9a8
movl $0x94, %edx
callq 0x2100
leaq 0x6d49(%rip), %rdi      # 0x1d9e2
leaq 0x6ca8(%rip), %rsi      # 0x1d948
leaq 0x6d01(%rip), %rcx      # 0x1d9a8
movl $0x95, %edx
callq 0x2100
leaq 0x6d01(%rip), %rdi      # 0x1d9b9
leaq 0x6c89(%rip), %rsi      # 0x1d948
leaq 0x6ce2(%rip), %rcx      # 0x1d9a8
movl $0x97, %edx
callq 0x2100
leaq 0x6d00(%rip), %rdi      # 0x1d9d7
leaq 0x6c6a(%rip), %rsi      # 0x1d948
leaq 0x6cc3(%rip), %rcx      # 0x1d9a8
movl $0x99, %edx
callq 0x2100