// File: /workspace/github_c_makefile_star2_O1/GangZhuo[P]rbtree/test/bitmap.c
// Function: draw_circle_8
static inline int draw_circle_8(bitmap_t *bitmap, int xc, int yc, int x, int y, color_t color)
{
	int r = 0;
	if (bitmap_draw_point(bitmap, xc + x, yc + y, color) != 0)
		r = -1;
	if (bitmap_draw_point(bitmap, xc - x, yc + y, color) != 0)
		r = -1;
	if (bitmap_draw_point(bitmap, xc + x, yc - y, color) != 0)
		r = -1;
	if (bitmap_draw_point(bitmap, xc - x, yc - y, color) != 0)
		r = -1;
	if (bitmap_draw_point(bitmap, xc + y, yc + x, color) != 0)
		r = -1;
	if (bitmap_draw_point(bitmap, xc - y, yc + x, color) != 0)
		r = -1;
	if (bitmap_draw_point(bitmap, xc + y, yc - x, color) != 0)
		r = -1;
	if (bitmap_draw_point(bitmap, xc - y, yc - x, color) != 0)
		r = -1;
	return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r9d, 0xc(%rsp)
movl %edx, %r14d
movq %rdi, %r15
movq %rsi, 0x20(%rsp)
movq %rcx, 0x18(%rsp)
leal (%rcx,%rsi), %r13d
movq %r8, 0x10(%rsp)
leal (%r8,%r14), %r12d
movl (%rdi), %ecx
movl %ecx, %eax
imull %r12d, %eax
addl %r13d, %eax
js 0x2638
imull 0x4(%r15), %ecx
cmpl %ecx, %eax
jge 0x2638
movq 0x8(%r15), %rcx
movl %eax, %eax
movl 0xc(%rsp), %edx
movl %edx, (%rcx,%rax,4)
xorl %ebp, %ebp
jmp 0x2648
callq 0x1060
movl $0x22, (%rax)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq 0x20(%rsp), %rax
movl %eax, %ebx
subl 0x18(%rsp), %ebx
movl (%r15), %eax
imull %eax, %r12d
addl %ebx, %r12d
js 0x2679
imull 0x4(%r15), %eax
cmpl %eax, %r12d
jge 0x2679
movq 0x8(%r15), %rax
movl %r12d, %ecx
movl 0xc(%rsp), %edx
movl %edx, (%rax,%rcx,4)
jmp 0x2689
callq 0x1060
movl $0x22, (%rax)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %r14d, %r12d
subl 0x10(%rsp), %r12d
movl (%r15), %ecx
movl %ecx, %eax
imull %r12d, %eax
addl %r13d, %eax
js 0x26b7
imull 0x4(%r15), %ecx
cmpl %ecx, %eax
jge 0x26b7
movq 0x8(%r15), %rcx
movl %eax, %eax
movl 0xc(%rsp), %edx
movl %edx, (%rcx,%rax,4)
jmp 0x26c7
callq 0x1060
movl $0x22, (%rax)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl (%r15), %eax
imull %eax, %r12d
addl %ebx, %r12d
js 0x26ed
imull 0x4(%r15), %eax
cmpl %eax, %r12d
jge 0x26ed
movq 0x8(%r15), %rax
movl %r12d, %ecx
movl 0xc(%rsp), %edx
movl %edx, (%rax,%rcx,4)
jmp 0x26fd
callq 0x1060
movl $0x22, (%rax)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq 0x20(%rsp), %r12
movq 0x10(%rsp), %rax
leal (%rax,%r12), %r13d
movq 0x18(%rsp), %rax
leal (%rax,%r14), %ebx
movl (%r15), %ecx
movl %ecx, %eax
imull %ebx, %eax
addl %r13d, %eax
js 0x2739
imull 0x4(%r15), %ecx
cmpl %ecx, %eax
jge 0x2739
movq 0x8(%r15), %rcx
movl %eax, %eax
movl 0xc(%rsp), %edx
movl %edx, (%rcx,%rax,4)
jmp 0x2749
callq 0x1060
movl $0x22, (%rax)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
subl 0x10(%rsp), %r12d
movl (%r15), %eax
imull %eax, %ebx
addl %r12d, %ebx
js 0x2771
imull 0x4(%r15), %eax
cmpl %eax, %ebx
jge 0x2771
movq 0x8(%r15), %rax
movl %ebx, %ecx
movl 0xc(%rsp), %edx
movl %edx, (%rax,%rcx,4)
jmp 0x2781
callq 0x1060
movl $0x22, (%rax)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
subl 0x18(%rsp), %r14d
movl (%r15), %ecx
movl %ecx, %eax
imull %r14d, %eax
addl %r13d, %eax
js 0x27ae
imull 0x4(%r15), %ecx
cmpl %ecx, %eax
jge 0x27ae
movq 0x8(%r15), %rcx
movl %eax, %eax
movl 0xc(%rsp), %edx
movl %edx, (%rcx,%rax,4)
movb $0x1, %bl
jmp 0x27bb
callq 0x1060
movl $0x22, (%rax)
xorl %ebx, %ebx
movl (%r15), %eax
imull %eax, %r14d
addl %r12d, %r14d
js 0x27e3
imull 0x4(%r15), %eax
cmpl %eax, %r14d
jge 0x27e3
movq 0x8(%r15), %rax
movl %r14d, %ecx
movl 0xc(%rsp), %edx
movl %edx, (%rax,%rcx,4)
movb $0x1, %al
jmp 0x27f0
callq 0x1060
movl $0x22, (%rax)
xorl %eax, %eax
testb %al, %al
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmovel %eax, %ebp
testb %bl, %bl
cmovel %eax, %ebp
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq