// File: /workspace/github_c_makefile_star2_O2/dalnefre[P]kernel_abe/atom.c
// Function: test_number
void
test_number()
{
	int i;
	int j;
	CONS* p;
	
	DBUG_ENTER("test_number");
	TRACE(printf("--test_number--\n"));

	j = 0;
	p = NUMBER(j);
	DBUG_PRINT("", ("NUMBER(%d)=16#%08lx", j, (ulint)p));
	assert(numberp(p));
	i = MK_INT(p);
	assert(0 == i);
	assert(!nilp(p));
	assert(!consp(p));
	assert(!atomp(p));
#if NUMBER_IS_FUNC
#if TYPETAG_USES_2LSB
	assert(funcp(p));
	assert(!boolp(p));
#endif
#else
	assert(!funcp(p));
#endif

	j = 1;
	p = NUMBER(j);
	DBUG_PRINT("", ("NUMBER(%d)=16#%08lx", j, (ulint)p));
	assert(numberp(p));
	i = MK_INT(p);
	assert(i == j);
	assert(!nilp(p));
	assert(!consp(p));
	assert(!atomp(p));
#if NUMBER_IS_FUNC
	assert(funcp(p));
#else
	assert(!funcp(p));
#endif
	assert(!boolp(p));

	j = -1;
	p = NUMBER(j);
	DBUG_PRINT("", ("NUMBER(%d)=16#%08lx", j, (ulint)p));
	assert(numberp(p));
	i = MK_INT(p);
	assert(i == j);
	assert(!nilp(p));
	assert(!consp(p));
	assert(!atomp(p));
#if NUMBER_IS_FUNC
	assert(funcp(p));
#else
	assert(!funcp(p));
#endif
	assert(!boolp(p));

	j = 0x07FFFFFF;
	p = NUMBER(j);
	DBUG_PRINT("", ("NUMBER(%d)=16#%08lx", j, (ulint)p));
	assert(numberp(p));
	i = MK_INT(p);
	assert(i == j);

	j = -j;
	p = NUMBER(j);
	DBUG_PRINT("", ("NUMBER(%d)=16#%08lx", j, (ulint)p));
	assert(numberp(p));
	i = MK_INT(p);
	assert(i == j);
	
	DBUG_RETURN;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
leaq 0x6d09(%rip), %rax      # 0x1da1e
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0xd60e(%rip), %r14      # 0x24330
movq (%r14), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0xad, 0xc(%rdi)
leaq 0x560d(%rip), %rbx      # 0x1c34a
movq %rbx, 0x10(%rdi)
leaq 0xd488(%rip), %rcx      # 0x241d0
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x1b079
leaq 0x6d03(%rip), %rdi      # 0x1da5f
callq 0x20a0
leaq 0xdbc8(%rip), %r15      # 0x24930
cmpl $0x0, (%r15)
je 0x16da6
movq (%r14), %rax
movq 0x50(%rax), %rax
movq %rbx, 0x10(%rax)
movq %rbx, %rdi
callq 0x1a7f4
testl %eax, %eax
je 0x16da6
movq (%r14), %rax
movq 0x50(%rax), %rax
movl $0xb2, 0xc(%rax)
leaq 0x6c90(%rip), %rdi      # 0x1da2a
pushq $0x3
popq %rdx
xorl %esi, %esi
xorl %eax, %eax
callq 0x1b0f0
leaq 0xd4f3(%rip), %r12      # 0x242a0
cmpq $0x3, %r12
je 0x16eea
cmpl $0x0, (%r15)
je 0x16df6
movq (%r14), %rax
movq 0x50(%rax), %rax
movq %rbx, 0x10(%rax)
movq %rbx, %rdi
callq 0x1a7f4
testl %eax, %eax
je 0x16df6
movq (%r14), %rax
movq 0x50(%rax), %rax
movl $0xc4, 0xc(%rax)
leaq 0x6c41(%rip), %rdi      # 0x1da2a
pushq $0x1
popq %rsi
pushq $0x7
popq %rdx
xorl %eax, %eax
callq 0x1b0f0
cmpq $0x7, %r12
je 0x16f09
cmpl $0x0, (%r15)
je 0x16ecf
movq (%r14), %rax
movq 0x50(%rax), %rax
movq %rbx, 0x10(%rax)
movq %rbx, %rdi
callq 0x1a7f4
testl %eax, %eax
je 0x16e43
movq (%r14), %rax
movq 0x50(%rax), %rax
movl $0xd4, 0xc(%rax)
leaq 0x6bf4(%rip), %rdi      # 0x1da2a
pushq $-0x1
popq %rsi
pushq $-0x1
popq %rdx
xorl %eax, %eax
callq 0x1b0f0
cmpl $0x0, (%r15)
je 0x16ecf
movq (%r14), %rax
movq 0x50(%rax), %rax
movq %rbx, 0x10(%rax)
movq %rbx, %rdi
callq 0x1a7f4
testl %eax, %eax
je 0x16e8a
movq (%r14), %rax
movq 0x50(%rax), %rax
movl $0xe4, 0xc(%rax)
leaq 0x6bb1(%rip), %rdi      # 0x1da2a
movl $0x1fffffff, %edx       # imm = 0x1FFFFFFF
movl $0x7ffffff, %esi        # imm = 0x7FFFFFF
xorl %eax, %eax
callq 0x1b0f0
cmpl $0x0, (%r15)
je 0x16ecf
movq (%r14), %rax
movq 0x50(%rax), %rax
movq %rbx, 0x10(%rax)
movq %rbx, %rdi
callq 0x1a7f4
testl %eax, %eax
je 0x16ecf
movq (%r14), %rax
movq 0x50(%rax), %rax
movl $0xeb, 0xc(%rax)
leaq 0x6b6e(%rip), %rdi      # 0x1da2a
movl $0xf8000001, %esi       # imm = 0xF8000001
movq $-0x1ffffff9, %rdx      # imm = 0xE0000007
xorl %eax, %eax
callq 0x1b0f0
movq %rsp, %rdi
movl $0xf0, 0xc(%rdi)
callq 0x1b1f2
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x603f(%rip), %rdi      # 0x1cf30
leaq 0x6a50(%rip), %rsi      # 0x1d948
leaq 0x6b3f(%rip), %rcx      # 0x1da3e
movl $0xb6, %edx
callq 0x2100
leaq 0x6020(%rip), %rdi      # 0x1cf30
leaq 0x6a31(%rip), %rsi      # 0x1d948
leaq 0x6b20(%rip), %rcx      # 0x1da3e
movl $0xc8, %edx
callq 0x2100