// File: /workspace/github_c_makefile_star2_O2/keithnoguchi[P]pearls-in-action/0xd/set1_test.c
// Function: test_set1
int test_set1(int *i)
{
	int fail = 0;

	if (test_set1_alloc(i))
		fail++;
	if (test_set1_insert(i))
		fail++;

	return fail;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
leaq 0x2562(%rip), %rbx      # 0x38a0
xorl %r15d, %r15d
movq (%rbx), %rcx
testq %rcx, %rcx
je 0x142a
movq 0x20(%rsp), %rax
movl (%rax), %esi
incl %esi
movl %esi, (%rax)
leaq 0xd8b(%rip), %rdi       # 0x20ea
leaq 0xd96(%rip), %rdx       # 0x20fc
xorl %eax, %eax
callq 0x1070
callq 0x1060
movq %rax, %r14
movl 0x8(%rbx), %r12d
movl 0xc(%rbx), %ebp
movl %r12d, %edi
movl %ebp, %esi
callq 0x11f4
movq %rax, %r13
callq 0x1060
subq %r14, %rax
cvtsi2sd %rax, %xmm0
divsd 0xcc2(%rip), %xmm0      # 0x2060
testq %r13, %r13
movsd %xmm0, 0x8(%rsp)
je 0x13dc
movq %r13, %rdi
callq *0x8(%r13)
movq %r13, %rdi
testq %rax, %rax
je 0x1409
callq *0x8(%r13)
leaq 0xd74(%rip), %rdi       # 0x2137
movq %rax, %rsi
movsd 0x8(%rsp), %xmm0
movb $0x1, %al
callq 0x1070
movq %r13, %rdi
callq *(%r13)
jmp 0x1404
callq 0x1040
movl (%rax), %edi
callq 0x10a0
leaq 0xd1d(%rip), %rdi       # 0x210c
movl %r12d, %esi
movl %ebp, %edx
movq %rax, %rcx
movsd 0x8(%rsp), %xmm0
movb $0x1, %al
callq 0x1070
incl %r15d
jmp 0x1421
callq *(%r13)
leaq 0xd46(%rip), %rdi       # 0x215a
movsd 0x8(%rsp), %xmm0
movb $0x1, %al
callq 0x1070
addq $0x10, %rbx
jmp 0x1341
movl %r15d, 0x14(%rsp)
leaq 0x24ea(%rip), %r15      # 0x3920
leaq 0x24f3(%rip), %rbx      # 0x3930
xorl %r14d, %r14d
movq (%r15), %rcx
testq %rcx, %rcx
je 0x15d6
movq 0x20(%rsp), %rax
movl (%rax), %esi
incl %esi
movl %esi, (%rax)
leaq 0xc8c(%rip), %rdi       # 0x20ea
leaq 0xdb9(%rip), %rdx       # 0x221e
xorl %eax, %eax
callq 0x1070
movl 0x8(%r15), %r12d
movl 0xc(%r15), %ebp
movl %r12d, %edi
movl %ebp, %esi
callq 0x11f4
movq %rax, %r13
testq %rax, %rax
je 0x1523
movl %r14d, 0x10(%rsp)
movslq %r12d, %r12
callq 0x1060
movq %rax, %r14
movq %rbx, 0x18(%rsp)
movl (%rbx), %esi
cmpl %ebp, %esi
je 0x14b2
movq %r13, %rdi
callq *0x10(%r13)
addq $0x4, %rbx
jmp 0x149f
callq 0x1060
subq %r14, %rax
cvtsi2sd %rax, %xmm0
divsd 0xb99(%rip), %xmm0      # 0x2060
movsd %xmm0, 0x8(%rsp)
movq %r13, %rdi
callq *0x8(%r13)
cmpq %r12, %rax
jne 0x154a
leaq 0x4(,%r12,4), %rdi
callq 0x1090
movq %rax, %r12
movq %r13, %rdi
movq %rax, %rsi
callq *0x18(%r13)
xorl %ecx, %ecx
movq 0x18(%rsp), %rbx
movl 0x10(%rsp), %r14d
movsd 0x8(%rsp), %xmm0
movl (%r12,%rcx,4), %edx
cmpl %ebp, %edx
je 0x157a
movl 0x210(%r15,%rcx,4), %r8d
cmpl %r8d, %edx
jne 0x159f
incq %rcx
jmp 0x1505
callq 0x1040
movl (%rax), %edi
callq 0x10a0
leaq 0xcf9(%rip), %rdi       # 0x222f
movl %r12d, %esi
movl %ebp, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1070
xorl %r12d, %r12d
jmp 0x15af
movq %r13, %rdi
callq *0x8(%r13)
leaq 0xcf8(%rip), %rdi       # 0x2250
movq %rax, %rsi
movl %r12d, %edx
movsd 0x8(%rsp), %xmm0
movb $0x1, %al
callq 0x1070
xorl %r12d, %r12d
movq 0x18(%rsp), %rbx
movl 0x10(%rsp), %r14d
jmp 0x15af
movq %r12, %rdi
callq 0x1030
movq %r13, %rdi
callq *(%r13)
leaq 0xbca(%rip), %rdi       # 0x215a
movsd 0x8(%rsp), %xmm0
movb $0x1, %al
callq 0x1070
jmp 0x15c6
leaq 0xcce(%rip), %rdi       # 0x2274
movl %ecx, %esi
movb $0x1, %al
callq 0x1070
movq %r12, %rdi
callq 0x1030
testq %r13, %r13
je 0x15c3
movq %r13, %rdi
callq *(%r13)
incl %r14d
movl $0x410, %eax            # imm = 0x410
addq %rax, %r15
addq %rax, %rbx
jmp 0x1440
xorl %ecx, %ecx
cmpl $0x0, 0x14(%rsp)
setne %cl
leal 0x1(%rcx), %eax
testl %r14d, %r14d
cmovel %ecx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq