LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Engine/../Graphics/Tools/BitStreamReader.h
// Function: ReverseBits
static uint16_t ReverseBits(uint16_t val)
{
	val=((val>>1)&0x5555)|((val&0x5555)<<1);
	val=((val>>2)&0x3333)|((val&0x3333)<<2);
	val=((val>>4)&0x0F0F)|((val&0x0F0F)<<4);
	return (val>>8)|(val<<8);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movw %di, %ax
movw %ax, -0x2(%rbp)
movzwl -0x2(%rbp), %eax
sarl %eax
andl $0x5555, %eax           # imm = 0x5555
movzwl -0x2(%rbp), %ecx
andl $0x5555, %ecx           # imm = 0x5555
shll %ecx
orl %ecx, %eax
movw %ax, -0x2(%rbp)
movzwl -0x2(%rbp), %eax
sarl $0x2, %eax
andl $0x3333, %eax           # imm = 0x3333
movzwl -0x2(%rbp), %ecx
andl $0x3333, %ecx           # imm = 0x3333
shll $0x2, %ecx
orl %ecx, %eax
movw %ax, -0x2(%rbp)
movzwl -0x2(%rbp), %eax
sarl $0x4, %eax
andl $0xf0f, %eax            # imm = 0xF0F
movzwl -0x2(%rbp), %ecx
andl $0xf0f, %ecx            # imm = 0xF0F
shll $0x4, %ecx
orl %ecx, %eax
movw %ax, -0x2(%rbp)
movzwl -0x2(%rbp), %eax
sarl $0x8, %eax
movzwl -0x2(%rbp), %ecx
shll $0x8, %ecx
orl %ecx, %eax
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Engine/Quantize.c
// Function: H
float H(float q) {
    float value;

    if ( q > 0.008856 ) {
        value = pow ( q, 0.333333 );
        return value;
    }
    else {
        value = 7.787*q + 0.137931;
        return value;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq -0x10(%rsp), %rsp
movss %xmm0, -0x8(%rbp)
movss -0x8(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x10301(%rip), %xmm1    # 0x174d0
ucomisd %xmm1, %xmm0
jbe 0x7200
movss -0x8(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x10302(%rip), %xmm1    # 0x174e8
callq 0x1090
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0xc(%rbp)
movss -0xc(%rbp), %xmm0
movss %xmm0, -0x4(%rbp)
jmp 0x7234
movss -0x8(%rbp), %xmm0
cvtss2sd %xmm0, %xmm1
movsd 0x102cf(%rip), %xmm0    # 0x174e0
mulsd %xmm1, %xmm0
movsd 0x102bb(%rip), %xmm1    # 0x174d8
addsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0xc(%rbp)
movss -0xc(%rbp), %xmm0
movss %xmm0, -0x4(%rbp)
movss -0x4(%rbp), %xmm0
leaq 0x10(%rsp), %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Engine/Quantize.c
// Function: PixelDist
static inline const float PixelDist(Pixel a, Pixel b) {    
//     return(labDist(ExtractRed(a), ExtractGreen(a), ExtractBlue(a), ExtractRed(b), ExtractGreen(b), ExtractBlue(b)));
        
    int dr = ExtractRed(a) - ExtractRed(b);
    int dg = ExtractGreen(a) - ExtractGreen(b);
    int db = ExtractBlue(a) - ExtractBlue(b);
    
    return(sqrt(dr*dr+dg*dg+db*db));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movl -0x4(%rbp), %eax
shrl $0x0, %eax
andl $0xff, %eax
cmpl $0x0, %eax
jne 0x7d71
xorl %eax, %eax
movl %eax, -0x18(%rbp)
jmp 0x7d95
movl -0x4(%rbp), %eax
shrl $0x8, %eax
andl $0xff, %eax
imull $0xff, %eax, %eax
movl -0x4(%rbp), %ecx
shrl $0x0, %ecx
andl $0xff, %ecx
xorl %edx, %edx
divl %ecx
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x8(%rbp), %eax
shrl $0x0, %eax
andl $0xff, %eax
cmpl $0x0, %eax
jne 0x7db2
xorl %eax, %eax
movl %eax, -0x20(%rbp)
jmp 0x7dd6
movl -0x8(%rbp), %eax
shrl $0x8, %eax
andl $0xff, %eax
imull $0xff, %eax, %eax
movl -0x8(%rbp), %ecx
shrl $0x0, %ecx
andl $0xff, %ecx
xorl %edx, %edx
divl %ecx
movl %eax, -0x20(%rbp)
movl -0x1c(%rbp), %eax
movl -0x20(%rbp), %ecx
subl %ecx, %eax
movl %eax, -0xc(%rbp)
movl -0x4(%rbp), %eax
shrl $0x0, %eax
andl $0xff, %eax
cmpl $0x0, %eax
jne 0x7df8
xorl %eax, %eax
movl %eax, -0x24(%rbp)
jmp 0x7e1c
movl -0x4(%rbp), %eax
shrl $0x10, %eax
andl $0xff, %eax
imull $0xff, %eax, %eax
movl -0x4(%rbp), %ecx
shrl $0x0, %ecx
andl $0xff, %ecx
xorl %edx, %edx
divl %ecx
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x8(%rbp), %eax
shrl $0x0, %eax
andl $0xff, %eax
cmpl $0x0, %eax
jne 0x7e39
xorl %eax, %eax
movl %eax, -0x2c(%rbp)
jmp 0x7e5d
movl -0x8(%rbp), %eax
shrl $0x10, %eax
andl $0xff, %eax
imull $0xff, %eax, %eax
movl -0x8(%rbp), %ecx
shrl $0x0, %ecx
andl $0xff, %ecx
xorl %edx, %edx
divl %ecx
movl %eax, -0x2c(%rbp)
movl -0x28(%rbp), %eax
movl -0x2c(%rbp), %ecx
subl %ecx, %eax
movl %eax, -0x10(%rbp)
movl -0x4(%rbp), %eax
shrl $0x0, %eax
andl $0xff, %eax
cmpl $0x0, %eax
jne 0x7e7f
xorl %eax, %eax
movl %eax, -0x30(%rbp)
jmp 0x7ea3
movl -0x4(%rbp), %eax
shrl $0x18, %eax
andl $0xff, %eax
imull $0xff, %eax, %eax
movl -0x4(%rbp), %ecx
shrl $0x0, %ecx
andl $0xff, %ecx
xorl %edx, %edx
divl %ecx
movl %eax, -0x30(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x34(%rbp)
movl -0x8(%rbp), %eax
shrl $0x0, %eax
andl $0xff, %eax
cmpl $0x0, %eax
jne 0x7ec0
xorl %eax, %eax
movl %eax, -0x38(%rbp)
jmp 0x7ee4
movl -0x8(%rbp), %eax
shrl $0x18, %eax
andl $0xff, %eax
imull $0xff, %eax, %eax
movl -0x8(%rbp), %ecx
shrl $0x0, %ecx
andl $0xff, %ecx
xorl %edx, %edx
divl %ecx
movl %eax, -0x38(%rbp)
movl -0x34(%rbp), %eax
movl -0x38(%rbp), %ecx
subl %ecx, %eax
movl %eax, -0x14(%rbp)
movl -0xc(%rbp), %eax
imull -0xc(%rbp), %eax
movl -0x10(%rbp), %ecx
imull -0x10(%rbp), %ecx
addl %ecx, %eax
movl -0x14(%rbp), %ecx
imull -0x14(%rbp), %ecx
addl %ecx, %eax
cvtsi2sd %eax, %xmm0
sqrtsd %xmm0, %xmm0
cvtsd2ss %xmm0, %xmm0
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Engine/Random.c
// Function: SeedRandom64
void SeedRandom64(uint64_t seed)
{
	uint32_t a=seed>>32,b=(uint32_t)seed;

	s1=(a*1664525+1013904223)|0x10;
	s2=(b*1103515245+12345)|0x1000;
	s3=((a^b)*214013+2531011)|0x100000;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
shrq $0x20, %rax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rax
movl %eax, -0x10(%rbp)
imull $0x19660d, -0xc(%rbp), %eax # imm = 0x19660D
addl $0x3c6ef35f, %eax       # imm = 0x3C6EF35F
orl $0x10, %eax
movl %eax, 0x15179(%rip)     # 0x1d118
imull $0x41c64e6d, -0x10(%rbp), %eax # imm = 0x41C64E6D
addl $0x3039, %eax           # imm = 0x3039
orl $0x1000, %eax           # imm = 0x1000
movl %eax, 0x15166(%rip)     # 0x1d11c
movl -0xc(%rbp), %eax
xorl -0x10(%rbp), %eax
imull $0x343fd, %eax, %eax    # imm = 0x343FD
addl $0x269ec3, %eax         # imm = 0x269EC3
orl $0x100000, %eax         # imm = 0x100000
movl %eax, 0x1514e(%rip)     # 0x1d120
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Engine/Random.c
// Function: RandomInteger
uint32_t RandomInteger()
{
	s1=((s1&0xfffffffe)<<12)^(((s1<<13)^s1)>>19);
	s2=((s2&0xfffffff8)<<4)^(((s2<<2)^s2)>>25);
	s3=((s3&0xfffffff0)<<17)^(((s3<<3)^s3)>>11);
	return s1^s2^s3;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl 0x1512e(%rip), %eax     # 0x1d118
andl $-0x2, %eax
shll $0xc, %eax
movl 0x15122(%rip), %ecx     # 0x1d118
shll $0xd, %ecx
xorl 0x15119(%rip), %ecx     # 0x1d118
shrl $0x13, %ecx
xorl %ecx, %eax
movl %eax, 0x1510e(%rip)     # 0x1d118
movl 0x1510c(%rip), %eax     # 0x1d11c
andl $-0x8, %eax
shll $0x4, %eax
movl 0x15100(%rip), %ecx     # 0x1d11c
shll $0x2, %ecx
xorl 0x150f7(%rip), %ecx     # 0x1d11c
shrl $0x19, %ecx
xorl %ecx, %eax
movl %eax, 0x150ec(%rip)     # 0x1d11c
movl 0x150ea(%rip), %eax     # 0x1d120
andl $-0x10, %eax
shll $0x11, %eax
movl 0x150de(%rip), %ecx     # 0x1d120
shll $0x3, %ecx
xorl 0x150d5(%rip), %ecx     # 0x1d120
shrl $0xb, %ecx
xorl %ecx, %eax
movl %eax, 0x150ca(%rip)     # 0x1d120
movl 0x150bc(%rip), %eax     # 0x1d118
xorl 0x150ba(%rip), %eax     # 0x1d11c
xorl 0x150b8(%rip), %eax     # 0x1d120
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Graphics/Bitmap.c
// Function: InitializeBitmap
void InitializeBitmap(Bitmap *self,int width,int height,int bytesperrow,Pixel *pixels)
{
	self->width=width;
	self->height=height;
	self->bytesperrow=bytesperrow;
	self->pixels=pixels;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movq %r8, -0x20(%rbp)
movl -0xc(%rbp), %eax
movw %ax, %cx
movq -0x8(%rbp), %rax
movw %cx, (%rax)
movl -0x10(%rbp), %eax
movw %ax, %cx
movq -0x8(%rbp), %rax
movw %cx, 0x2(%rax)
movl -0x14(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x20(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x8(%rax)
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Graphics/Bitmap.c
// Function: InitializeSubBitmap
void InitializeSubBitmap(Bitmap *self,Bitmap *parent,int x,int y,int width,int height)
{
	if(ClipRectangle(&x,&y,&width,&height,parent->width,parent->height))
	{
		InitializeBitmap(self,width,height,parent->bytesperrow,
		BitmapPixelPointer(parent,x,y));
	}
	else
	{
		InitializeBitmap(self,0,0,0,NULL);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq -0x40(%rsp), %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movl %r8d, -0x1c(%rbp)
movl %r9d, -0x20(%rbp)
movq -0x10(%rbp), %rax
movswl (%rax), %r8d
movq -0x10(%rbp), %rax
movswl 0x2(%rax), %r9d
leaq -0x14(%rbp), %rdi
leaq -0x18(%rbp), %rsi
leaq -0x1c(%rbp), %rdx
leaq -0x20(%rbp), %rcx
callq 0x8250
testb $0x1, %al
jne 0x81eb
jmp 0x822f
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x2c(%rbp)
movl -0x20(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
callq 0x82e0
movq -0x38(%rbp), %rdi
movl -0x2c(%rbp), %esi
movl -0x28(%rbp), %edx
movl -0x24(%rbp), %ecx
movq %rax, %r8
callq 0x8150
jmp 0x8243
movq -0x8(%rbp), %rdi
xorl %ecx, %ecx
xorl %eax, %eax
movl %eax, %r8d
movl %ecx, %esi
movl %ecx, %edx
callq 0x8150
leaq 0x40(%rsp), %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Graphics/Clipping.h
// Function: ClipRectangle
static inline bool ClipRectangle(int *x,int *y,int *w,int *h,int clipw,int cliph)
{
	if(IsCompletelyOutside(*x,*y,*w,*h,clipw,cliph)) return false;
	AdjustSpan(x,w,clipw);
	AdjustSpan(y,h,cliph);
	return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq -0x30(%rsp), %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movl %r9d, -0x30(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %edi
movq -0x18(%rbp), %rax
movl (%rax), %esi
movq -0x20(%rbp), %rax
movl (%rax), %edx
movq -0x28(%rbp), %rax
movl (%rax), %ecx
movl -0x2c(%rbp), %r8d
movl -0x30(%rbp), %r9d
callq 0x8ab0
testb $0x1, %al
jne 0x829c
jmp 0x82a2
movb $0x0, -0x1(%rbp)
jmp 0x82c6
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x2c(%rbp), %edx
callq 0x8b10
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
movl -0x30(%rbp), %edx
callq 0x8b10
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
leaq 0x30(%rsp), %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Graphics/Bitmap.c
// Function: ScrollBitmap
void ScrollBitmap(Bitmap *self,int dx,int dy)
{
	if(dx==0 && dy==0) return;
	if(dx>=self->width || dx<=-self->width) return;
	if(dy>=self->height || dy<=-self->height) return;

	if(dx==0)
	{
		if(dy<=0) memmove(BitmapPixelPointer(self,0,0),BitmapPixelPointer(self,0,-dy),(self->height+dy)*self->bytesperrow);
		else memmove(BitmapPixelPointer(self,0,dy),BitmapPixelPointer(self,0,0),(self->height-dy)*self->bytesperrow);
	}
	else
	{
		if(dy<=0) for(int y=0;y<self->height+dy;y++) ScrollBitmapRow(self,dx,y,y-dy);
		else for(int y=self->height-1;y>=dy;y--) ScrollBitmapRow(self,dx,y,y-dy);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq -0x30(%rsp), %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
cmpl $0x0, -0xc(%rbp)
jne 0x8414
cmpl $0x0, -0x10(%rbp)
jne 0x8414
jmp 0x8573
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
movswl (%rcx), %ecx
cmpl %ecx, %eax
jge 0x8434
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
movswl (%rcx), %edx
xorl %ecx, %ecx
subl %edx, %ecx
cmpl %ecx, %eax
jg 0x8439
jmp 0x8573
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rcx
movswl 0x2(%rcx), %ecx
cmpl %ecx, %eax
jge 0x845b
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rcx
movswl 0x2(%rcx), %edx
xorl %ecx, %ecx
subl %edx, %ecx
cmpl %ecx, %eax
jg 0x8460
jmp 0x8573
cmpl $0x0, -0xc(%rbp)
jne 0x84f8
cmpl $0x0, -0x10(%rbp)
jg 0x84b5
movq -0x8(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x82e0
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
xorl %edx, %edx
subl -0x10(%rbp), %edx
xorl %esi, %esi
callq 0x82e0
movq -0x20(%rbp), %rdi
movq %rax, %rsi
movq -0x8(%rbp), %rax
movswl 0x2(%rax), %eax
addl -0x10(%rbp), %eax
movq -0x8(%rbp), %rcx
imull 0x4(%rcx), %eax
movslq %eax, %rdx
callq 0x11b0
jmp 0x84f6
movq -0x8(%rbp), %rdi
movl -0x10(%rbp), %edx
xorl %esi, %esi
callq 0x82e0
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x82e0
movq -0x28(%rbp), %rdi
movq %rax, %rsi
movq -0x8(%rbp), %rax
movswl 0x2(%rax), %eax
subl -0x10(%rbp), %eax
movq -0x8(%rbp), %rcx
imull 0x4(%rcx), %eax
movslq %eax, %rdx
callq 0x11b0
jmp 0x8573
cmpl $0x0, -0x10(%rbp)
jg 0x8539
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
movswl 0x2(%rcx), %ecx
addl -0x10(%rbp), %ecx
cmpl %ecx, %eax
jge 0x8537
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movl -0x14(%rbp), %edx
movl -0x14(%rbp), %ecx
subl -0x10(%rbp), %ecx
callq 0x8580
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x8505
jmp 0x8571
movq -0x8(%rbp), %rax
movswl 0x2(%rax), %eax
subl $0x1, %eax
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %eax
cmpl -0x10(%rbp), %eax
jl 0x856f
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movl -0x18(%rbp), %edx
movl -0x18(%rbp), %ecx
subl -0x10(%rbp), %ecx
callq 0x8580
movl -0x18(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x8547
jmp 0x8571
jmp 0x8573
leaq 0x30(%rsp), %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Graphics/Bitmap.c
// Function: FlipBitmapY
void FlipBitmapY(Bitmap *self) {
	Pixel tempRow[self->width];
	for(int row = 0; row < self->height/2; row++) {
		memmove(tempRow, BitmapRowPointer(self, self->height - row - 1), self->bytesperrow);
		memmove(BitmapRowPointer(self, self->height - row - 1), BitmapRowPointer(self, row), self->bytesperrow);
		memmove(BitmapRowPointer(self, row), tempRow, self->bytesperrow);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq -0x40(%rsp), %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movzwl (%rax), %edx
movl %edx, %eax
movq %rsp, %rcx
movq %rcx, -0x10(%rbp)
movl %edx, %ecx
leal 0xf(,%rcx,4), %ecx
andl $-0x10, %ecx
movl %ecx, %edx
movq %rsp, %rcx
subq %rdx, %rcx
movq %rcx, -0x28(%rbp)
movq %rcx, %rsp
movq %rax, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x2c(%rbp)
movq -0x8(%rbp), %rax
movswl 0x2(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x2c(%rbp), %eax
cmpl %ecx, %eax
jge 0x8a6a
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movswl 0x2(%rax), %esi
subl -0x1c(%rbp), %esi
subl $0x1, %esi
callq 0x8a80
movq -0x28(%rbp), %rdi
movq %rax, %rsi
movq -0x8(%rbp), %rax
movslq 0x4(%rax), %rdx
callq 0x11b0
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movswl 0x2(%rax), %esi
subl -0x1c(%rbp), %esi
subl $0x1, %esi
callq 0x8a80
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rdi
movl -0x1c(%rbp), %esi
callq 0x8a80
movq -0x38(%rbp), %rdi
movq %rax, %rsi
movq -0x8(%rbp), %rax
movslq 0x4(%rax), %rdx
callq 0x11b0
movq -0x8(%rbp), %rdi
movl -0x1c(%rbp), %esi
callq 0x8a80
movq -0x28(%rbp), %rsi
movq %rax, %rdi
movq -0x8(%rbp), %rax
movslq 0x4(%rax), %rdx
callq 0x11b0
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x89b3
movq -0x10(%rbp), %rax
movq %rax, %rsp
movq %rbp, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Graphics/ColourFont.c
// Function: WidthOfColourFontCharacter
int WidthOfColourFontCharacter(const Font *font,int c)
{
	const ColourFont *self=(const ColourFont *)font;

	if(c<self->firstglyph || c>self->lastglyph) return 0;
	if(!self->glyphs[c-self->firstglyph]) return 0;

	return self->glyphs[c-self->firstglyph]->width;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movl -0x14(%rbp), %eax
movq -0x20(%rbp), %rcx
cmpl 0x38(%rcx), %eax
jl 0x8bdb
movl -0x14(%rbp), %eax
movq -0x20(%rbp), %rcx
cmpl 0x3c(%rcx), %eax
jle 0x8be4
movl $0x0, -0x4(%rbp)
jmp 0x8c22
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
movq -0x20(%rbp), %rdx
subl 0x38(%rdx), %ecx
movslq %ecx, %rcx
cmpq $0x0, 0x40(%rax,%rcx,8)
jne 0x8c06
movl $0x0, -0x4(%rbp)
jmp 0x8c22
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
movq -0x20(%rbp), %rdx
subl 0x38(%rdx), %ecx
movslq %ecx, %rcx
movq 0x40(%rax,%rcx,8), %rax
movswl (%rax), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Graphics/ColourFont.c
// Function: DrawColourFontCharacter
void DrawColourFontCharacter(Bitmap *bitmap,const Font *font,int x,int y,Pixel col,int c)
{
	const ColourFont *self=(const ColourFont *)font;

	if(c<self->firstglyph || c>self->lastglyph) return;
	if(!self->glyphs[c-self->firstglyph]) return;

	const RLEBitmap *glyph=self->glyphs[c-self->firstglyph];
	DrawRLEBitmap(bitmap,glyph,x,y);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq -0x30(%rsp), %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movl %r8d, -0x1c(%rbp)
movl %r9d, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movl -0x20(%rbp), %eax
movq -0x28(%rbp), %rcx
cmpl 0x38(%rcx), %eax
jl 0x8c6f
movl -0x20(%rbp), %eax
movq -0x28(%rbp), %rcx
cmpl 0x3c(%rcx), %eax
jle 0x8c71
jmp 0x8cb9
movq -0x28(%rbp), %rax
movl -0x20(%rbp), %ecx
movq -0x28(%rbp), %rdx
subl 0x38(%rdx), %ecx
movslq %ecx, %rcx
cmpq $0x0, 0x40(%rax,%rcx,8)
jne 0x8c8c
jmp 0x8cb9
movq -0x28(%rbp), %rax
movl -0x20(%rbp), %ecx
movq -0x28(%rbp), %rdx
subl 0x38(%rdx), %ecx
movslq %ecx, %rcx
movq 0x40(%rax,%rcx,8), %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl -0x14(%rbp), %edx
movl -0x18(%rbp), %ecx
callq 0xb7b0
leaq 0x30(%rsp), %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Graphics/ColourFont.c
// Function: CompositeColourFontCharacter
void CompositeColourFontCharacter(Bitmap *bitmap,const Font *font,int x,int y,Pixel col,CompositionMode comp,int c)
{
	const ColourFont *self=(const ColourFont *)font;

	if(c<self->firstglyph || c>self->lastglyph) return;
	if(!self->glyphs[c-self->firstglyph]) return;

	const RLEBitmap *glyph=self->glyphs[c-self->firstglyph];
	CompositeRLEBitmap(bitmap,glyph,x,y,comp);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq -0x40(%rsp), %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movl %r8d, -0x1c(%rbp)
movq %r9, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movl 0x10(%rbp), %eax
movq -0x30(%rbp), %rcx
cmpl 0x38(%rcx), %eax
jl 0x8d02
movl 0x10(%rbp), %eax
movq -0x30(%rbp), %rcx
cmpl 0x3c(%rcx), %eax
jle 0x8d04
jmp 0x8d50
movq -0x30(%rbp), %rax
movl 0x10(%rbp), %ecx
movq -0x30(%rbp), %rdx
subl 0x38(%rdx), %ecx
movslq %ecx, %rcx
cmpq $0x0, 0x40(%rax,%rcx,8)
jne 0x8d1f
jmp 0x8d50
movq -0x30(%rbp), %rax
movl 0x10(%rbp), %ecx
movq -0x30(%rbp), %rdx
subl 0x38(%rdx), %ecx
movslq %ecx, %rcx
movq 0x40(%rax,%rcx,8), %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rdi
movq -0x38(%rbp), %rsi
movl -0x14(%rbp), %edx
movl -0x18(%rbp), %ecx
movq -0x28(%rbp), %r8
callq 0xbbd0
leaq 0x40(%rsp), %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Graphics/DrawingBitmaps.c
// Function: DrawPartialBitmapNoClip
void DrawPartialBitmapNoClip(Bitmap *dest,const Bitmap *src,int x,int y,int u,int v,int w,int h)
{
	if(x==0&&u==0&&w==dest->width&&src->bytesperrow==dest->bytesperrow) // Yes, dest->width.
	{
		// Fast path for full bitmap row copies.
		const void *srcptr=ConstBitmapPixelPointer(src,0,v);
		void *destptr=BitmapPixelPointer(dest,0,y);
		memmove(destptr,srcptr,src->bytesperrow*h);
	}
	else
	{
		// Normal copy.
		for(int i=0;i<h;i++)
		{
			const void *srcptr=ConstBitmapPixelPointer(src,u,v+i);
			void *destptr=BitmapPixelPointer(dest,x,y+i);
			memmove(destptr,srcptr,w*sizeof(Pixel));
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq -0x50(%rsp), %rsp
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movl %r8d, -0x1c(%rbp)
movl %r9d, -0x20(%rbp)
cmpl $0x0, -0x14(%rbp)
jne 0x8f60
cmpl $0x0, -0x1c(%rbp)
jne 0x8f60
movl 0x10(%rbp), %eax
movq -0x8(%rbp), %rcx
movswl (%rcx), %ecx
cmpl %ecx, %eax
jne 0x8f60
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x8(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jne 0x8f60
movq -0x10(%rbp), %rdi
movl -0x20(%rbp), %edx
xorl %esi, %esi
callq 0x9060
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movl -0x18(%rbp), %edx
xorl %esi, %esi
callq 0x90a0
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
imull 0x18(%rbp), %eax
movslq %eax, %rdx
callq 0x11b0
jmp 0x8fbd
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl 0x18(%rbp), %eax
jge 0x8fbb
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
movl -0x20(%rbp), %edx
addl -0x34(%rbp), %edx
callq 0x9060
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
addl -0x34(%rbp), %edx
callq 0x90a0
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %rsi
movslq 0x10(%rbp), %rdx
shlq $0x2, %rdx
callq 0x11b0
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x8f67
jmp 0x8fbd
leaq 0x50(%rsp), %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Graphics/Clipping.h
// Function: ClipRectangle2
static inline bool ClipRectangle2(int *x,int *y,int *u,int *v,int *w,int *h,int clipw,int cliph)
{
	if(IsCompletelyOutside(*x,*y,*w,*h,clipw,cliph)) return false;
	AdjustSpan2(x,u,w,clipw);
	AdjustSpan2(y,v,h,cliph);
	return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq -0x40(%rsp), %rsp
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %eax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %edi
movq -0x18(%rbp), %rax
movl (%rax), %esi
movq -0x30(%rbp), %rax
movl (%rax), %edx
movq -0x38(%rbp), %rax
movl (%rax), %ecx
movl 0x10(%rbp), %r8d
movl 0x18(%rbp), %r9d
callq 0x9360
testb $0x1, %al
jne 0x9022
jmp 0x9028
movb $0x0, -0x1(%rbp)
jmp 0x9054
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x30(%rbp), %rdx
movl 0x10(%rbp), %ecx
callq 0x93c0
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x38(%rbp), %rdx
movl 0x18(%rbp), %ecx
callq 0x93c0
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
leaq 0x40(%rsp), %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Graphics/DrawingBitmaps.c
// Function: CompositePartialBitmapNoClip
void CompositePartialBitmapNoClip(Bitmap *dest,const Bitmap *src,int x,int y,int u,int v,int w,int h,CompositionMode comp)
{
	for(int j=0;j<h;j++)
	for(int i=0;i<w;i++)
	{
		Pixel below=ReadPixelNoClip(dest,x+i,y+j);
		Pixel above=ReadPixelNoClip(src,u+i,v+j);
		DrawPixelNoClip(dest,x+i,y+j,comp(below,above));
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq -0x40(%rsp), %rsp
movq 0x20(%rbp), %rax
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movl %r8d, -0x1c(%rbp)
movl %r9d, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl 0x18(%rbp), %eax
jge 0x934d
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl 0x10(%rbp), %eax
jge 0x933d
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %esi
addl -0x28(%rbp), %esi
movl -0x18(%rbp), %edx
addl -0x24(%rbp), %edx
callq 0xad20
movl %eax, -0x2c(%rbp)
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
addl -0x28(%rbp), %esi
movl -0x20(%rbp), %edx
addl -0x24(%rbp), %edx
callq 0xad20
movl %eax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
movl -0x14(%rbp), %eax
addl -0x28(%rbp), %eax
movl %eax, -0x38(%rbp)
movl -0x18(%rbp), %eax
addl -0x24(%rbp), %eax
movl %eax, -0x34(%rbp)
movq 0x20(%rbp), %rax
movl -0x2c(%rbp), %edi
movl -0x30(%rbp), %esi
callq *%rax
movq -0x40(%rbp), %rdi
movl -0x38(%rbp), %esi
movl -0x34(%rbp), %edx
movl %eax, %ecx
callq 0xabc0
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x92c3
jmp 0x933f
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x92b0
leaq 0x40(%rsp), %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Graphics/DrawingLines.c
// Function: DrawLine
void DrawLine(Bitmap *bitmap,int x1,int y1,int x2,int y2,Pixel c)
{
	if(x1>=0 && y1>=0 && x1<bitmap->width && y1<bitmap->height &&
	x2>=0 && y2>=0 && x2<bitmap->width && y2<bitmap->height)
	{
		DrawLineNoClip(bitmap,x1,y1,x2,y2,c);
		return;
	}

	if(x1<0&&x2<0) return;
	if(y1<0&&y2<0) return;
	if(x1>=bitmap->width && x2>=bitmap->width) return;
	if(y1>=bitmap->height && y2>=bitmap->height) return;

	GenericDrawLine(bitmap,x1,y1,x2,y2,c,NULL,DrawPixelFunction,DrawHorizontalLineFunction,DrawVerticalLineFunction);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq -0x40(%rsp), %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movl %r8d, -0x18(%rbp)
movl %r9d, -0x1c(%rbp)
cmpl $0x0, -0xc(%rbp)
jl 0x955f
cmpl $0x0, -0x10(%rbp)
jl 0x955f
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
movswl (%rcx), %ecx
cmpl %ecx, %eax
jge 0x955f
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rcx
movswl 0x2(%rcx), %ecx
cmpl %ecx, %eax
jge 0x955f
cmpl $0x0, -0x14(%rbp)
jl 0x955f
cmpl $0x0, -0x18(%rbp)
jl 0x955f
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
movswl (%rcx), %ecx
cmpl %ecx, %eax
jge 0x955f
movl -0x18(%rbp), %eax
movq -0x8(%rbp), %rcx
movswl 0x2(%rcx), %ecx
cmpl %ecx, %eax
jge 0x955f
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movl -0x10(%rbp), %edx
movl -0x14(%rbp), %ecx
movl -0x18(%rbp), %r8d
movl -0x1c(%rbp), %r9d
callq 0x9610
jmp 0x9607
cmpl $0x0, -0xc(%rbp)
jge 0x9570
cmpl $0x0, -0x14(%rbp)
jge 0x9570
jmp 0x9607
cmpl $0x0, -0x10(%rbp)
jge 0x9581
cmpl $0x0, -0x18(%rbp)
jge 0x9581
jmp 0x9607
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
movswl (%rcx), %ecx
cmpl %ecx, %eax
jl 0x959f
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
movswl (%rcx), %ecx
cmpl %ecx, %eax
jl 0x959f
jmp 0x9607
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rcx
movswl 0x2(%rcx), %ecx
cmpl %ecx, %eax
jl 0x95bf
movl -0x18(%rbp), %eax
movq -0x8(%rbp), %rcx
movswl 0x2(%rcx), %ecx
cmpl %ecx, %eax
jl 0x95bf
jmp 0x9607
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movl -0x10(%rbp), %edx
movl -0x14(%rbp), %ecx
movl -0x18(%rbp), %r8d
movl -0x1c(%rbp), %r9d
xorl %eax, %eax
leaq 0x323(%rip), %r11       # 0x9900
leaq 0x35c(%rip), %r10       # 0x9940
leaq 0x395(%rip), %rax       # 0x9980
movq $0x0, (%rsp)
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
callq 0x9680
leaq 0x40(%rsp), %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Graphics/DrawingLines.c
// Function: CompositeLine
void CompositeLine(Bitmap *bitmap,int x1,int y1,int x2,int y2,Pixel c,CompositionMode comp)
{
	if(x1>=0 && y1>=0 && x1<bitmap->width && y1<bitmap->height &&
	x2>=0 && y2>=0 && x2<bitmap->width && y2<bitmap->height)
	{
		CompositeLineNoClip(bitmap,x1,y1,x2,y2,c,comp);
		return;
	}

	if(x1<0&&x2<0) return;
	if(y1<0&&y2<0) return;
	if(x1>=bitmap->width && x2>=bitmap->width) return;
	if(y1>=bitmap->height && y2>=bitmap->height) return;

	GenericDrawLine(bitmap,x1,y1,x2,y2,c,comp,CompositePixelFunction,CompositeHorizontalLineFunction,CompositeVerticalLineFunction);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
leaq -0x48(%rsp), %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movl %r8d, -0x20(%rbp)
movl %r9d, -0x24(%rbp)
cmpl $0x0, -0x14(%rbp)
jl 0x9b1c
cmpl $0x0, -0x18(%rbp)
jl 0x9b1c
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
movswl (%rcx), %ecx
cmpl %ecx, %eax
jge 0x9b1c
movl -0x18(%rbp), %eax
movq -0x10(%rbp), %rcx
movswl 0x2(%rcx), %ecx
cmpl %ecx, %eax
jge 0x9b1c
cmpl $0x0, -0x1c(%rbp)
jl 0x9b1c
cmpl $0x0, -0x20(%rbp)
jl 0x9b1c
movl -0x1c(%rbp), %eax
movq -0x10(%rbp), %rcx
movswl (%rcx), %ecx
cmpl %ecx, %eax
jge 0x9b1c
movl -0x20(%rbp), %eax
movq -0x10(%rbp), %rcx
movswl 0x2(%rcx), %ecx
cmpl %ecx, %eax
jge 0x9b1c
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
movl -0x1c(%rbp), %ecx
movl -0x20(%rbp), %r8d
movl -0x24(%rbp), %r9d
movq 0x10(%rbp), %rax
movq %rax, (%rsp)
callq 0x9bd0
jmp 0x9bc2
cmpl $0x0, -0x14(%rbp)
jge 0x9b2d
cmpl $0x0, -0x1c(%rbp)
jge 0x9b2d
jmp 0x9bc2
cmpl $0x0, -0x18(%rbp)
jge 0x9b3e
cmpl $0x0, -0x20(%rbp)
jge 0x9b3e
jmp 0x9bc2
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
movswl (%rcx), %ecx
cmpl %ecx, %eax
jl 0x9b5c
movl -0x1c(%rbp), %eax
movq -0x10(%rbp), %rcx
movswl (%rcx), %ecx
cmpl %ecx, %eax
jl 0x9b5c
jmp 0x9bc2
movl -0x18(%rbp), %eax
movq -0x10(%rbp), %rcx
movswl 0x2(%rcx), %ecx
cmpl %ecx, %eax
jl 0x9b7c
movl -0x20(%rbp), %eax
movq -0x10(%rbp), %rcx
movswl 0x2(%rcx), %ecx
cmpl %ecx, %eax
jl 0x9b7c
jmp 0x9bc2
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
movl -0x1c(%rbp), %ecx
movl -0x20(%rbp), %r8d
movl -0x24(%rbp), %r9d
movq 0x10(%rbp), %rbx
leaq 0xb4(%rip), %r11        # 0x9c50
leaq 0xed(%rip), %r10        # 0x9c90
leaq 0x126(%rip), %rax       # 0x9cd0
movq %rbx, (%rsp)
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
callq 0x9680
leaq 0x48(%rsp), %rsp
popq %rbx
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Graphics/DrawingPixels.c
// Function: DrawPixel
void DrawPixel(Bitmap *bitmap,int x,int y,Pixel c)
{
	if(x<0) return;
	if(y<0) return;
	if(x>=bitmap->width) return;
	if(y>=bitmap->height) return;
	DrawPixelNoClip(bitmap,x,y,c);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq -0x20(%rsp), %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
cmpl $0x0, -0xc(%rbp)
jge 0xab7e
jmp 0xabb9
cmpl $0x0, -0x10(%rbp)
jge 0xab86
jmp 0xabb9
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
movswl (%rcx), %ecx
cmpl %ecx, %eax
jl 0xab96
jmp 0xabb9
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rcx
movswl 0x2(%rcx), %ecx
cmpl %ecx, %eax
jl 0xaba7
jmp 0xabb9
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movl -0x10(%rbp), %edx
movl -0x14(%rbp), %ecx
callq 0xabc0
leaq 0x20(%rsp), %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Graphics/DrawingPixels.c
// Function: CompositePixel
void CompositePixel(Bitmap *bitmap,int x,int y,Pixel c,CompositionMode comp)
{
	if(x<0) return;
	if(y<0) return;
	if(x>=bitmap->width) return;
	if(y>=bitmap->height) return;
	CompositePixelNoClip(bitmap,x,y,c,comp);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq -0x20(%rsp), %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movq %r8, -0x20(%rbp)
cmpl $0x0, -0xc(%rbp)
jge 0xac62
jmp 0xaca1
cmpl $0x0, -0x10(%rbp)
jge 0xac6a
jmp 0xaca1
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
movswl (%rcx), %ecx
cmpl %ecx, %eax
jl 0xac7a
jmp 0xaca1
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rcx
movswl 0x2(%rcx), %ecx
cmpl %ecx, %eax
jl 0xac8b
jmp 0xaca1
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movl -0x10(%rbp), %edx
movl -0x14(%rbp), %ecx
movq -0x20(%rbp), %r8
callq 0xacb0
leaq 0x20(%rsp), %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Graphics/DrawingPixels.c
// Function: ReadPixel
Pixel ReadPixel(const Bitmap *bitmap,int x,int y)
{
	if(x<0) return 0;
	if(y<0) return 0;
	if(x>=bitmap->width) return 0;
	if(y>=bitmap->height) return 0;
	return ReadPixelNoClip(bitmap,x,y);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq -0x20(%rsp), %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
cmpl $0x0, -0x14(%rbp)
jge 0xad82
movl $0x0, -0x4(%rbp)
jmp 0xadd2
cmpl $0x0, -0x18(%rbp)
jge 0xad91
movl $0x0, -0x4(%rbp)
jmp 0xadd2
movl -0x14(%rbp), %eax
movq -0x10(%rbp), %rcx
movswl (%rcx), %ecx
cmpl %ecx, %eax
jl 0xada8
movl $0x0, -0x4(%rbp)
jmp 0xadd2
movl -0x18(%rbp), %eax
movq -0x10(%rbp), %rcx
movswl 0x2(%rcx), %ecx
cmpl %ecx, %eax
jl 0xadc0
movl $0x0, -0x4(%rbp)
jmp 0xadd2
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
callq 0xad20
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
leaq 0x20(%rsp), %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Graphics/DrawingRectangles.c
// Function: GenericDrawRectangle
static inline void GenericDrawRectangle(Bitmap *bitmap,int x,int y,int w,int h,Pixel c,CompositionMode comp,
GenericDrawHorizontalLineFunction *hlinefunc,GenericDrawVerticalLineFunction *vlinefunc)
{
	if(w==0||h==0) return;
	if(w==1) GenericDrawVerticalLine(bitmap,x,y,h,c,comp,vlinefunc);
	else if(h==1) GenericDrawHorizontalLine(bitmap,x,y,w,c,comp,hlinefunc);
	else
	{
		GenericDrawHorizontalLine(bitmap,x,y,w,c,comp,hlinefunc);
		GenericDrawHorizontalLine(bitmap,x,y+h-1,w,c,comp,hlinefunc);
		if(h<2) return;
		GenericDrawVerticalLine(bitmap,x,y+1,h-2,c,comp,vlinefunc);
		GenericDrawVerticalLine(bitmap,x+w-1,y+1,h-2,c,comp,vlinefunc);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq -0x30(%rsp), %rsp
movq 0x20(%rbp), %rax
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movl %r8d, -0x18(%rbp)
movl %r9d, -0x1c(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0xaf26
cmpl $0x0, -0x18(%rbp)
jne 0xaf2b
jmp 0xb02f
cmpl $0x1, -0x14(%rbp)
jne 0xaf58
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movl -0x10(%rbp), %edx
movl -0x18(%rbp), %ecx
movl -0x1c(%rbp), %r8d
movq 0x10(%rbp), %r9
movq 0x20(%rbp), %rax
movq %rax, (%rsp)
callq 0xb610
jmp 0xb02f
cmpl $0x1, -0x18(%rbp)
jne 0xaf85
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movl -0x10(%rbp), %edx
movl -0x14(%rbp), %ecx
movl -0x1c(%rbp), %r8d
movq 0x10(%rbp), %r9
movq 0x18(%rbp), %rax
movq %rax, (%rsp)
callq 0xb660
jmp 0xb02d
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movl -0x10(%rbp), %edx
movl -0x14(%rbp), %ecx
movl -0x1c(%rbp), %r8d
movq 0x10(%rbp), %r9
movq 0x18(%rbp), %rax
movq %rax, (%rsp)
callq 0xb660
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movl -0x10(%rbp), %edx
addl -0x18(%rbp), %edx
subl $0x1, %edx
movl -0x14(%rbp), %ecx
movl -0x1c(%rbp), %r8d
movq 0x10(%rbp), %r9
movq 0x18(%rbp), %rax
movq %rax, (%rsp)
callq 0xb660
cmpl $0x2, -0x18(%rbp)
jge 0xafd7
jmp 0xb02f
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movl -0x10(%rbp), %edx
addl $0x1, %edx
movl -0x18(%rbp), %ecx
subl $0x2, %ecx
movl -0x1c(%rbp), %r8d
movq 0x10(%rbp), %r9
movq 0x20(%rbp), %rax
movq %rax, (%rsp)
callq 0xb610
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
addl -0x14(%rbp), %esi
subl $0x1, %esi
movl -0x10(%rbp), %edx
addl $0x1, %edx
movl -0x18(%rbp), %ecx
subl $0x2, %ecx
movl -0x1c(%rbp), %r8d
movq 0x10(%rbp), %r9
movq 0x20(%rbp), %rax
movq %rax, (%rsp)
callq 0xb610
jmp 0xb02f
leaq 0x30(%rsp), %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Graphics/DrawingRLEBitmaps.c
// Function: DrawRLEBitmap
void DrawRLEBitmap(Bitmap *bitmap,const RLEBitmap *src,int x,int y)
{
	if(IsCompletelyOutside(x,y,src->width,src->height,bitmap->width,bitmap->height)) return;

	RLEBitmapSpanIterator iterator;
	InitializeRLEBitmapSpanIterator(&iterator,src);
	ClipRLEBitmapSpanIteratorRows(&iterator,bitmap,y);

	if(IsSpanCompletelyInside(x,src->width,bitmap->width)) DrawRLEBitmapSpansNoClip(bitmap,&iterator,x,y);
	else DrawRLEBitmapSpans(bitmap,&iterator,x,y);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq -0x40(%rsp), %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movl -0x14(%rbp), %edi
movl -0x18(%rbp), %esi
movq -0x10(%rbp), %rax
movswl (%rax), %edx
movq -0x10(%rbp), %rax
movswl 0x2(%rax), %ecx
movq -0x8(%rbp), %rax
movswl (%rax), %r8d
movq -0x8(%rbp), %rax
movswl 0x2(%rax), %r9d
callq 0xb870
testb $0x1, %al
jne 0xb7f8
jmp 0xb7fa
jmp 0xb85b
movq -0x10(%rbp), %rsi
leaq -0x38(%rbp), %rdi
callq 0xb8d0
movq -0x8(%rbp), %rsi
movl -0x18(%rbp), %edx
leaq -0x38(%rbp), %rdi
callq 0xb930
movl -0x14(%rbp), %edi
movq -0x10(%rbp), %rax
movswl (%rax), %esi
movq -0x8(%rbp), %rax
movswl (%rax), %edx
callq 0xb9b0
testb $0x1, %al
jne 0xb833
jmp 0xb848
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
movl -0x18(%rbp), %ecx
leaq -0x38(%rbp), %rsi
callq 0xb9f0
jmp 0xb85b
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
movl -0x18(%rbp), %ecx
leaq -0x38(%rbp), %rsi
callq 0xba80
leaq 0x40(%rsp), %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Graphics/RLEBitmap.h
// Function: InitializeRLEBitmapSpanIterator
static inline void InitializeRLEBitmapSpanIterator(RLEBitmapSpanIterator *self,const RLEBitmap *rle)
{
	self->x=0;
	self->y=0;
	self->spanlength=0;
	self->pointer=rle->codes;
	self->width=rle->width;
	self->height=rle->height;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movl $0x0, (%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x4(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x8(%rax)
movq -0x10(%rbp), %rcx
addq $0x4, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
movswl (%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x18(%rax)
movq -0x10(%rbp), %rax
movswl 0x2(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x1c(%rax)
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Graphics/RLEBitmap.h
// Function: ClipRLEBitmapSpanIteratorRows
static inline void ClipRLEBitmapSpanIteratorRows(RLEBitmapSpanIterator *self,const Bitmap *bitmap,int y)
{
	if(y+self->height>bitmap->height) self->height=bitmap->height-y;

	if(y<0)
	{
		int oldheight=self->height;
		self->height=-y;
		while(NextRLEBitmapSpan(self));
		self->height=oldheight;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq -0x20(%rsp), %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
addl 0x1c(%rcx), %eax
movq -0x10(%rbp), %rcx
movswl 0x2(%rcx), %ecx
cmpl %ecx, %eax
jle 0xb96c
movq -0x10(%rbp), %rax
movswl 0x2(%rax), %ecx
subl -0x14(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x1c(%rax)
cmpl $0x0, -0x14(%rbp)
jge 0xb9a3
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, -0x18(%rbp)
xorl %ecx, %ecx
subl -0x14(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x1c(%rax)
movq -0x8(%rbp), %rdi
callq 0xc2b0
testb $0x1, %al
jne 0xb997
jmp 0xb999
jmp 0xb988
movl -0x18(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x1c(%rax)
leaq 0x20(%rsp), %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Graphics/DrawingRLEBitmaps.c
// Function: DrawRLEBitmapSpansNoClip
static void DrawRLEBitmapSpansNoClip(Bitmap *bitmap,RLEBitmapSpanIterator *iterator,int x0,int y0)
{
	while(NextRLEBitmapSpan(iterator))
	{
		int x=RLEBitmapSpanStart(iterator);
		int y=RLEBitmapRow(iterator);
		int length=RLEBitmapSpanLength(iterator);
		const Pixel *pixels=RLEBitmapSpanPixels(iterator);
		Pixel *dest=BitmapPixelPointer(bitmap,x+x0,y+y0);

		memcpy(dest,pixels,length*sizeof(Pixel));
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq -0x40(%rsp), %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0xc2b0
testb $0x1, %al
jne 0xba16
jmp 0xba77
movq -0x10(%rbp), %rdi
callq 0xc3a0
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rdi
callq 0xc3b0
movl %eax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0xc3d0
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rdi
callq 0xc3f0
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movl -0x1c(%rbp), %esi
addl -0x14(%rbp), %esi
movl -0x20(%rbp), %edx
addl -0x18(%rbp), %edx
callq 0xc410
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rsi
movslq -0x24(%rbp), %rdx
shlq $0x2, %rdx
callq 0x1150
jmp 0xba07
leaq 0x40(%rsp), %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Graphics/DrawingRLEBitmaps.c
// Function: DrawRLEBitmapSpans
static void DrawRLEBitmapSpans(Bitmap *bitmap,RLEBitmapSpanIterator *iterator,int x0,int y0)
{
	while(NextRLEBitmapSpan(iterator))
	{
		int x=RLEBitmapSpanStart(iterator);
		int y=RLEBitmapRow(iterator);
		int length=RLEBitmapSpanLength(iterator);
		const Pixel *pixels=RLEBitmapSpanPixels(iterator);
		Pixel *dest=BitmapPixelPointer(bitmap,x+x0,y+y0);

		int start=0;
		if(x+x0+length>bitmap->width) length=bitmap->width-(x+x0);

		if(x+x0<0)
		{
			int skippixels=-(x+x0);
			start=skippixels;
			length-=skippixels;
		}

		if(length>0) memcpy(&dest[start],&pixels[start],length*sizeof(Pixel));
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq -0x40(%rsp), %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0xc2b0
testb $0x1, %al
jne 0xbaa9
jmp 0xbb7f
movq -0x10(%rbp), %rdi
callq 0xc3a0
movl %eax, -0x1c(%rbp)
movq -0x10(%rbp), %rdi
callq 0xc3b0
movl %eax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0xc3d0
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rdi
callq 0xc3f0
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movl -0x1c(%rbp), %esi
addl -0x14(%rbp), %esi
movl -0x20(%rbp), %edx
addl -0x18(%rbp), %edx
callq 0xc410
movq %rax, -0x38(%rbp)
movl $0x0, -0x3c(%rbp)
movl -0x1c(%rbp), %eax
addl -0x14(%rbp), %eax
addl -0x24(%rbp), %eax
movq -0x8(%rbp), %rcx
movswl (%rcx), %ecx
cmpl %ecx, %eax
jle 0xbb20
movq -0x8(%rbp), %rax
movswl (%rax), %eax
movl -0x1c(%rbp), %ecx
addl -0x14(%rbp), %ecx
subl %ecx, %eax
movl %eax, -0x24(%rbp)
movl -0x1c(%rbp), %eax
addl -0x14(%rbp), %eax
cmpl $0x0, %eax
jge 0xbb49
movl -0x1c(%rbp), %ecx
addl -0x14(%rbp), %ecx
xorl %eax, %eax
subl %ecx, %eax
movl %eax, -0x40(%rbp)
movl -0x40(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x40(%rbp), %ecx
movl -0x24(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x24(%rbp)
cmpl $0x0, -0x24(%rbp)
jle 0xbb7a
movq -0x38(%rbp), %rdi
movslq -0x3c(%rbp), %rax
shlq $0x2, %rax
addq %rax, %rdi
movq -0x30(%rbp), %rsi
movslq -0x3c(%rbp), %rax
shlq $0x2, %rax
addq %rax, %rsi
movslq -0x24(%rbp), %rdx
shlq $0x2, %rdx
callq 0x1150
jmp 0xba97
leaq 0x40(%rsp), %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Graphics/DrawingRLEBitmaps.c
// Function: CompositeRLEBitmap
void CompositeRLEBitmap(Bitmap *bitmap,const RLEBitmap *src,int x,int y,CompositionMode mode)
{
	if(IsCompletelyOutside(x,y,src->width,src->height,bitmap->width,bitmap->height)) return;

	RLEBitmapSpanIterator iterator;
	InitializeRLEBitmapSpanIterator(&iterator,src);
	ClipRLEBitmapSpanIteratorRows(&iterator,bitmap,y);

	if(IsSpanCompletelyInside(x,src->width,bitmap->width)) CompositeRLEBitmapSpansNoClip(bitmap,&iterator,x,y,mode);
	else CompositeRLEBitmapSpans(bitmap,&iterator,x,y,mode);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq -0x40(%rsp), %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movq %r8, -0x20(%rbp)
movl -0x14(%rbp), %edi
movl -0x18(%rbp), %esi
movq -0x10(%rbp), %rax
movswl (%rax), %edx
movq -0x10(%rbp), %rax
movswl 0x2(%rax), %ecx
movq -0x8(%rbp), %rax
movswl (%rax), %r8d
movq -0x8(%rbp), %rax
movswl 0x2(%rax), %r9d
callq 0xb870
testb $0x1, %al
jne 0xbc1c
jmp 0xbc1e
jmp 0xbc87
movq -0x10(%rbp), %rsi
leaq -0x40(%rbp), %rdi
callq 0xb8d0
movq -0x8(%rbp), %rsi
movl -0x18(%rbp), %edx
leaq -0x40(%rbp), %rdi
callq 0xb930
movl -0x14(%rbp), %edi
movq -0x10(%rbp), %rax
movswl (%rax), %esi
movq -0x8(%rbp), %rax
movswl (%rax), %edx
callq 0xb9b0
testb $0x1, %al
jne 0xbc57
jmp 0xbc70
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
movl -0x18(%rbp), %ecx
movq -0x20(%rbp), %r8
leaq -0x40(%rbp), %rsi
callq 0xbc90
jmp 0xbc87
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
movl -0x18(%rbp), %ecx
movq -0x20(%rbp), %r8
leaq -0x40(%rbp), %rsi
callq 0xbd40
leaq 0x40(%rsp), %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Graphics/DrawingRLEBitmaps.c
// Function: CompositeRLEBitmapSpansNoClip
static void CompositeRLEBitmapSpansNoClip(Bitmap *bitmap,RLEBitmapSpanIterator *iterator,int x0,int y0,CompositionMode mode)
{
	while(NextRLEBitmapSpan(iterator))
	{
		int x=RLEBitmapSpanStart(iterator);
		int y=RLEBitmapRow(iterator);
		int length=RLEBitmapSpanLength(iterator);
		const Pixel *pixels=RLEBitmapSpanPixels(iterator);

		for(int i=0;i<length;i++) CompositePixelNoClip(bitmap,x+x0+i,y+y0,pixels[i],mode);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq -0x40(%rsp), %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movq %r8, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0xc2b0
testb $0x1, %al
jne 0xbcba
jmp 0xbd31
movq -0x10(%rbp), %rdi
callq 0xc3a0
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rdi
callq 0xc3b0
movl %eax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
callq 0xc3d0
movl %eax, -0x2c(%rbp)
movq -0x10(%rbp), %rdi
callq 0xc3f0
movq %rax, -0x38(%rbp)
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jge 0xbd2c
movq -0x8(%rbp), %rdi
movl -0x24(%rbp), %esi
addl -0x14(%rbp), %esi
addl -0x3c(%rbp), %esi
movl -0x28(%rbp), %edx
addl -0x18(%rbp), %edx
movq -0x38(%rbp), %rax
movslq -0x3c(%rbp), %rcx
movl (%rax,%rcx,4), %ecx
movq -0x20(%rbp), %r8
callq 0xacb0
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0xbcf2
jmp 0xbcab
leaq 0x40(%rsp), %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/halcy[P]quasi_crystals_bot/Graphics/DrawingRLEBitmaps.c
// Function: CompositeRLEBitmapSpans
static void CompositeRLEBitmapSpans(Bitmap *bitmap,RLEBitmapSpanIterator *iterator,int x0,int y0,CompositionMode mode)
{
	while(NextRLEBitmapSpan(iterator))
	{
		int x=RLEBitmapSpanStart(iterator);
		int y=RLEBitmapRow(iterator);
		int length=RLEBitmapSpanLength(iterator);
		const Pixel *pixels=RLEBitmapSpanPixels(iterator);

		// TODO: Is it worth checking the span and using NoClip?
		for(int i=0;i<length;i++) CompositePixel(bitmap,x+x0+i,y+y0,pixels[i],mode);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq -0x40(%rsp), %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movq %r8, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0xc2b0
testb $0x1, %al
jne 0xbd6a
jmp 0xbde1
movq -0x10(%rbp), %rdi
callq 0xc3a0
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rdi
callq 0xc3b0
movl %eax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
callq 0xc3d0
movl %eax, -0x2c(%rbp)
movq -0x10(%rbp), %rdi
callq 0xc3f0
movq %rax, -0x38(%rbp)
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jge 0xbddc
movq -0x8(%rbp), %rdi
movl -0x24(%rbp), %esi
addl -0x14(%rbp), %esi
addl -0x3c(%rbp), %esi
movl -0x28(%rbp), %edx
addl -0x18(%rbp), %edx
movq -0x38(%rbp), %rax
movslq -0x3c(%rbp), %rcx
movl (%rax,%rcx,4), %ecx
movq -0x20(%rbp), %r8
callq 0xac40
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0xbda2
jmp 0xbd5b
leaq 0x40(%rsp), %rsp
popq %rbp
retq
nopl (%rax,%rax)