// File: /workspace/github_c_makefile_star2_O1/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 $0x18, %rsp
movq %rdi, 0x10(%rsp)
leaq 0xcfa(%rip), %rcx       # 0x2068
leaq 0x253b(%rip), %rbx      # 0x38b0
xorl %r15d, %r15d
movq 0x10(%rsp), %rax
movl (%rax), %esi
incl %esi
movl %esi, (%rax)
leaq 0xd60(%rip), %rdi       # 0x20ea
leaq 0xd6b(%rip), %rdx       # 0x20fc
xorl %eax, %eax
callq 0x1070
callq 0x1060
movq %rax, %r14
movl -0x8(%rbx), %r12d
movl -0x4(%rbx), %ebp
movl %r12d, %edi
movl %ebp, %esi
callq 0x1208
movq %rax, %r13
callq 0x1060
subq %r14, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0xc94(%rip), %xmm0      # 0x2060
testq %r13, %r13
movsd %xmm0, (%rsp)
je 0x1401
movq %r13, %rdi
callq *0x8(%r13)
movq %r13, %rdi
testq %rax, %rax
je 0x1439
callq *0x8(%r13)
leaq 0xd47(%rip), %rdi       # 0x2137
movq %rax, %rsi
movsd (%rsp), %xmm0
movb $0x1, %al
callq 0x1070
jmp 0x1428
callq 0x1040
movl (%rax), %edi
callq 0x10b0
leaq 0xcf8(%rip), %rdi       # 0x210c
movl %r12d, %esi
movl %ebp, %edx
movq %rax, %rcx
movsd (%rsp), %xmm0
movb $0x1, %al
callq 0x1070
testq %r13, %r13
je 0x1434
movq %r13, %rdi
callq *(%r13)
incl %r15d
jmp 0x1450
callq *(%r13)
leaq 0xd16(%rip), %rdi       # 0x215a
movsd (%rsp), %xmm0
movb $0x1, %al
callq 0x1070
movq (%rbx), %rcx
addq $0x10, %rbx
testq %rcx, %rcx
jne 0x1378
movl %r15d, 0xc(%rsp)
leaq 0x24b4(%rip), %r15      # 0x3920
leaq 0xd01(%rip), %rcx       # 0x2174
leaq 0x24ba(%rip), %r14      # 0x3934
xorl %ebx, %ebx
movq 0x10(%rsp), %rax
movl (%rax), %esi
incl %esi
movl %esi, (%rax)
leaq 0xc5c(%rip), %rdi       # 0x20ea
leaq 0xd89(%rip), %rdx       # 0x221e
xorl %eax, %eax
callq 0x1070
movl 0x8(%r15), %r12d
movl 0xc(%r15), %ebp
movl %r12d, %edi
movl %ebp, %esi
callq 0x1208
movq %rax, %r13
testq %rax, %rax
je 0x1582
movl %ebx, 0x8(%rsp)
callq 0x1060
movq %rax, (%rsp)
movl 0x10(%r15), %esi
cmpl %ebp, %esi
je 0x14e3
movq %r14, %rbx
movq %r13, %rdi
callq *0x10(%r13)
movl (%rbx), %esi
addq $0x4, %rbx
cmpl %ebp, %esi
jne 0x14d2
movslq %r12d, %r12
callq 0x1060
subq (%rsp), %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0xb61(%rip), %xmm0      # 0x2060
movsd %xmm0, (%rsp)
movq %r13, %rdi
callq *0x8(%r13)
cmpq %r12, %rax
jne 0x15a9
leaq 0x4(,%r12,4), %rdi
callq 0x10a0
movq %rax, %r12
movq %r13, %rdi
movq %rax, %rsi
callq *0x18(%r13)
movl (%r12), %edx
cmpl %ebp, %edx
movl 0x8(%rsp), %ebx
movsd (%rsp), %xmm0
je 0x155e
xorl %ecx, %ecx
movl 0x210(%r15,%rcx,4), %r8d
cmpl %r8d, %edx
jne 0x15d2
movl 0x4(%r12,%rcx,4), %edx
incq %rcx
cmpl %ebp, %edx
jne 0x1541
movq %r12, %rdi
callq 0x1030
movq %r13, %rdi
callq *(%r13)
leaq 0xbe6(%rip), %rdi       # 0x215a
movsd (%rsp), %xmm0
movb $0x1, %al
callq 0x1070
jmp 0x15fd
callq 0x1040
movl (%rax), %edi
callq 0x10b0
leaq 0xc9a(%rip), %rdi       # 0x222f
movl %r12d, %esi
movl %ebp, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1070
xorl %r12d, %r12d
jmp 0x15e2
movq %r13, %rdi
callq *0x8(%r13)
leaq 0xc99(%rip), %rdi       # 0x2250
movq %rax, %rsi
movl %r12d, %edx
movsd (%rsp), %xmm0
movb $0x1, %al
callq 0x1070
xorl %r12d, %r12d
movl 0x8(%rsp), %ebx
jmp 0x15e2
leaq 0xc9b(%rip), %rdi       # 0x2274
movl %ecx, %esi
movb $0x1, %al
callq 0x1070
testq %r12, %r12
je 0x15ef
movq %r12, %rdi
callq 0x1030
testq %r13, %r13
je 0x15fb
movq %r13, %rdi
callq *(%r13)
incl %ebx
movq 0x410(%r15), %rcx
movl $0x410, %eax            # imm = 0x410
addq %rax, %r15
addq %rax, %r14
testq %rcx, %rcx
jne 0x147c
xorl %ecx, %ecx
cmpl $0x0, 0xc(%rsp)
setne %cl
leal 0x1(%rcx), %eax
testl %ebx, %ebx
cmovel %ecx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq