// File: /workspace/github_c_makefile_star2_O3/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 0x6760(%rip), %rax      # 0x1d9be
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
leaq 0xc0c3(%rip), %r12      # 0x23330
movq (%r12), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x82, 0xc(%rdi)
leaq 0x50c1(%rip), %rbx      # 0x1c34a
movq %rbx, 0x10(%rdi)
leaq 0xbf3c(%rip), %rcx      # 0x231d0
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x1ba26
leaq 0x67c9(%rip), %rdi      # 0x1da71
callq 0x20a0
movq %rbx, %rdi
callq 0x170ff
cmpq 0xbd04(%rip), %rax      # 0x22fc0
jne 0x173fa
leaq 0xbfd7(%rip), %rdi      # 0x232a0
callq 0x1715e
cmpb $0x0, (%rax)
jne 0x17419
leaq 0x30(%rsp), %r15
movq $0x54, (%r15)
leaq 0x524a(%rip), %rdi      # 0x1c534
callq 0x170ff
movq %rax, %r14
movq %r15, %rdi
callq 0x170ff
cmpq %rax, %r14
jne 0x17438
leaq 0x51e1(%rip), %rdi      # 0x1c4eb
callq 0x170ff
cmpq %rax, %r14
je 0x17457
movq %rax, %r15
movq $0x6c696e, 0x30(%rsp)   # imm = 0x6C696E
leaq 0x66d3(%rip), %rdi      # 0x1d9fe
callq 0x170ff
cmpq %r15, %rax
je 0x17476
movq %rax, %r14
movq %rax, %rdi
callq 0x1715e
leaq 0x66b3(%rip), %rdi      # 0x1d9fe
movq %rax, %rsi
callq 0x2170
testl %eax, %eax
jne 0x17495
leaq 0x30(%rsp), %rdi
callq 0x170ff
cmpq %rax, %r14
jne 0x174b4
leaq 0x4d4c(%rip), %rdi      # 0x1c0c1
callq 0x170ff
cmpq %r14, %rax
je 0x174d3
leaq 0xc5a6(%rip), %rax      # 0x23930
cmpl $0x0, (%rax)
je 0x173da
movq 0xc482(%rip), %r14      # 0x23818
movq (%r12), %rax
movq 0x50(%rax), %rax
movq %rbx, 0x10(%rax)
movq %rbx, %rdi
callq 0x1b188
testl %eax, %eax
je 0x173da
andq $-0x4, %r14
movq (%r12), %rax
movq 0x50(%rax), %rax
movl $0x9c, 0xc(%rax)
movq %r14, %rdi
callq 0x13c40
leaq 0x664e(%rip), %rdi      # 0x1da1e
movq %rax, %rsi
xorl %eax, %eax
callq 0x1ba97
leaq 0x8(%rsp), %rdi
movl $0x9d, 0xc(%rdi)
callq 0x1bbab
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x65d8(%rip), %rdi      # 0x1d9d9
leaq 0x6560(%rip), %rsi      # 0x1d968
leaq 0x65b9(%rip), %rcx      # 0x1d9c8
movl $0x87, %edx
callq 0x2100
leaq 0x65c0(%rip), %rdi      # 0x1d9e0
leaq 0x6541(%rip), %rsi      # 0x1d968
leaq 0x659a(%rip), %rcx      # 0x1d9c8
movl $0x88, %edx
callq 0x2100
leaq 0x659a(%rip), %rdi      # 0x1d9d9
leaq 0x6522(%rip), %rsi      # 0x1d968
leaq 0x657b(%rip), %rcx      # 0x1d9c8
movl $0x8e, %edx
callq 0x2100
leaq 0x6599(%rip), %rdi      # 0x1d9f7
leaq 0x6503(%rip), %rsi      # 0x1d968
leaq 0x655c(%rip), %rcx      # 0x1d9c8
movl $0x90, %edx
callq 0x2100
leaq 0x657a(%rip), %rdi      # 0x1d9f7
leaq 0x64e4(%rip), %rsi      # 0x1d968
leaq 0x653d(%rip), %rcx      # 0x1d9c8
movl $0x94, %edx
callq 0x2100
leaq 0x6566(%rip), %rdi      # 0x1da02
leaq 0x64c5(%rip), %rsi      # 0x1d968
leaq 0x651e(%rip), %rcx      # 0x1d9c8
movl $0x95, %edx
callq 0x2100
leaq 0x651e(%rip), %rdi      # 0x1d9d9
leaq 0x64a6(%rip), %rsi      # 0x1d968
leaq 0x64ff(%rip), %rcx      # 0x1d9c8
movl $0x97, %edx
callq 0x2100
leaq 0x651d(%rip), %rdi      # 0x1d9f7
leaq 0x6487(%rip), %rsi      # 0x1d968
leaq 0x64e0(%rip), %rcx      # 0x1d9c8
movl $0x99, %edx
callq 0x2100