// File: /workspace/github_c_makefile_star2_O1/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 0x67df(%rip), %rax      # 0x1d9be
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
leaq 0xc142(%rip), %r12      # 0x23330
movq (%r12), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x82, 0xc(%rdi)
leaq 0x5140(%rip), %rbx      # 0x1c34a
movq %rbx, 0x10(%rdi)
leaq 0xbfbb(%rip), %rcx      # 0x231d0
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x1b912
leaq 0x6848(%rip), %rdi      # 0x1da71
callq 0x20a0
movq %rbx, %rdi
callq 0x1707c
cmpq 0xbd83(%rip), %rax      # 0x22fc0
jne 0x1737a
movq %rax, %rdi
callq 0x170e9
cmpb $0x0, (%rax)
jne 0x17399
leaq 0x30(%rsp), %r15
movq $0x54, (%r15)
leaq 0x52cd(%rip), %rdi      # 0x1c534
callq 0x1707c
movq %rax, %r14
movq %r15, %rdi
callq 0x1707c
cmpq %rax, %r14
jne 0x173b8
leaq 0x5264(%rip), %rdi      # 0x1c4eb
callq 0x1707c
cmpq %rax, %r14
je 0x173d7
movq %rax, %r15
movq $0x6c696e, 0x30(%rsp)   # imm = 0x6C696E
leaq 0x6756(%rip), %rdi      # 0x1d9fe
callq 0x1707c
cmpq %r15, %rax
je 0x173f6
movq %rax, %r14
movq %rax, %rdi
callq 0x170e9
leaq 0x6736(%rip), %rdi      # 0x1d9fe
movq %rax, %rsi
callq 0x2170
testl %eax, %eax
jne 0x17415
leaq 0x30(%rsp), %rdi
callq 0x1707c
cmpq %rax, %r14
jne 0x17434
movq %rax, %r15
leaq 0x4dcc(%rip), %rdi      # 0x1c0c1
callq 0x1707c
cmpq %r15, %rax
je 0x17453
leaq 0xc626(%rip), %rax      # 0x23930
cmpl $0x0, (%rax)
je 0x1735a
movq 0xc502(%rip), %r14      # 0x23818
movq (%r12), %rax
movq 0x50(%rax), %rax
movq %rbx, 0x10(%rax)
movq %rbx, %rdi
callq 0x1b084
testl %eax, %eax
je 0x1735a
andq $-0x4, %r14
movq (%r12), %rax
movq 0x50(%rax), %rax
movl $0x9c, 0xc(%rax)
movq %r14, %rdi
callq 0x13b9c
leaq 0x66ce(%rip), %rdi      # 0x1da1e
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b983
leaq 0x8(%rsp), %rdi
movl $0x9d, 0xc(%rdi)
callq 0x1ba97
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x6658(%rip), %rdi      # 0x1d9d9
leaq 0x65e0(%rip), %rsi      # 0x1d968
leaq 0x6639(%rip), %rcx      # 0x1d9c8
movl $0x87, %edx
callq 0x2100
leaq 0x6640(%rip), %rdi      # 0x1d9e0
leaq 0x65c1(%rip), %rsi      # 0x1d968
leaq 0x661a(%rip), %rcx      # 0x1d9c8
movl $0x88, %edx
callq 0x2100
leaq 0x661a(%rip), %rdi      # 0x1d9d9
leaq 0x65a2(%rip), %rsi      # 0x1d968
leaq 0x65fb(%rip), %rcx      # 0x1d9c8
movl $0x8e, %edx
callq 0x2100
leaq 0x6619(%rip), %rdi      # 0x1d9f7
leaq 0x6583(%rip), %rsi      # 0x1d968
leaq 0x65dc(%rip), %rcx      # 0x1d9c8
movl $0x90, %edx
callq 0x2100
leaq 0x65fa(%rip), %rdi      # 0x1d9f7
leaq 0x6564(%rip), %rsi      # 0x1d968
leaq 0x65bd(%rip), %rcx      # 0x1d9c8
movl $0x94, %edx
callq 0x2100
leaq 0x65e6(%rip), %rdi      # 0x1da02
leaq 0x6545(%rip), %rsi      # 0x1d968
leaq 0x659e(%rip), %rcx      # 0x1d9c8
movl $0x95, %edx
callq 0x2100
leaq 0x659e(%rip), %rdi      # 0x1d9d9
leaq 0x6526(%rip), %rsi      # 0x1d968
leaq 0x657f(%rip), %rcx      # 0x1d9c8
movl $0x97, %edx
callq 0x2100
leaq 0x659d(%rip), %rdi      # 0x1d9f7
leaq 0x6507(%rip), %rsi      # 0x1d968
leaq 0x6560(%rip), %rcx      # 0x1d9c8
movl $0x99, %edx
callq 0x2100