// File: /workspace/github_c_makefile_star2_O3/ggerganov[P]font-rasterizer/./stb_truetype.h
// Function: stbtt__handle_clipped_edge
static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edge *e, float x0, float y0, float x1, float y1)
{
   if (y0 == y1) return;
   STBTT_assert(y0 < y1);
   STBTT_assert(e->sy <= e->ey);
   if (y0 > e->ey) return;
   if (y1 < e->sy) return;
   if (y0 < e->sy) {
      x0 += (x1-x0) * (e->sy - y0) / (y1-y0);
      y0 = e->sy;
   }
   if (y1 > e->ey) {
      x1 += (x1-x0) * (e->ey - y1) / (y1-y0);
      y1 = e->ey;
   }

   if (x0 == x)
      STBTT_assert(x1 <= x+1);
   else if (x0 == x+1)
      STBTT_assert(x1 >= x);
   else if (x0 <= x)
      STBTT_assert(x1 <= x);
   else if (x0 >= x+1)
      STBTT_assert(x1 >= x+1);
   else
      STBTT_assert(x1 >= x && x1 <= x+1);

   if (x0 <= x && x1 <= x)
      scanline[x] += e->direction * (y1-y0);
   else if (x0 >= x+1 && x1 >= x+1)
      ;
   else {
      STBTT_assert(x0 >= x && x0 <= x+1 && x1 >= x && x1 <= x+1);
      scanline[x] += e->direction * (y1-y0) * (1-((x0-x)+(x1-x))/2); // coverage = 1 - average x position
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
ucomiss %xmm3, %xmm1
jne 0xc488
jp 0xc488
popq %rbp
retq
ucomiss %xmm1, %xmm3
jbe 0xc656
movss 0x18(%rdx), %xmm5
movss 0x1c(%rdx), %xmm4
ucomiss %xmm5, %xmm4
jb 0xc675
ucomiss %xmm3, %xmm5
ja 0xc486
ucomiss %xmm4, %xmm1
ja 0xc486
ucomiss %xmm1, %xmm5
jbe 0xc4d6
movaps %xmm2, %xmm6
subss %xmm0, %xmm6
movaps %xmm5, %xmm7
subss %xmm1, %xmm7
mulss %xmm6, %xmm7
movaps %xmm3, %xmm6
subss %xmm1, %xmm6
divss %xmm6, %xmm7
addss %xmm7, %xmm0
jmp 0xc4d9
movaps %xmm1, %xmm5
ucomiss %xmm4, %xmm3
jbe 0xc4fe
movaps %xmm2, %xmm1
subss %xmm0, %xmm1
movaps %xmm4, %xmm6
subss %xmm3, %xmm6
mulss %xmm1, %xmm6
subss %xmm5, %xmm3
divss %xmm3, %xmm6
addss %xmm6, %xmm2
jmp 0xc501
movaps %xmm3, %xmm4
xorps %xmm1, %xmm1
cvtsi2ss %esi, %xmm1
ucomiss %xmm1, %xmm0
leal 0x1(%rsi), %eax
xorps %xmm3, %xmm3
cvtsi2ss %eax, %xmm3
jne 0xc541
jp 0xc541
ucomiss %xmm2, %xmm3
jae 0xc5cc
leaq 0x2fd5(%rip), %rdi      # 0xf4fe
leaq 0x2738(%rip), %rsi      # 0xec68
leaq 0x2f1b(%rip), %rcx      # 0xf452
movl $0xb76, %edx            # imm = 0xB76
callq 0x10c0
ucomiss %xmm3, %xmm0
jne 0xc56c
jp 0xc56c
ucomiss %xmm1, %xmm2
jae 0xc5cc
leaq 0x2f6d(%rip), %rdi      # 0xf4c1
leaq 0x270d(%rip), %rsi      # 0xec68
leaq 0x2ef0(%rip), %rcx      # 0xf452
movl $0xb78, %edx            # imm = 0xB78
callq 0x10c0
ucomiss %xmm0, %xmm1
jae 0xc59f
ucomiss %xmm3, %xmm0
jae 0xc5c3
ucomiss %xmm1, %xmm2
jb 0xc580
ucomiss %xmm2, %xmm3
jae 0xc5cc
leaq 0x2f6c(%rip), %rdi      # 0xf4f3
leaq 0x26da(%rip), %rsi      # 0xec68
leaq 0x2ebd(%rip), %rcx      # 0xf452
movl $0xb7e, %edx            # imm = 0xB7E
callq 0x10c0
ucomiss %xmm2, %xmm1
jae 0xc5cc
leaq 0x2f1e(%rip), %rdi      # 0xf4c9
leaq 0x26b6(%rip), %rsi      # 0xec68
leaq 0x2e99(%rip), %rcx      # 0xf452
movl $0xb7a, %edx            # imm = 0xB7A
callq 0x10c0
ucomiss %xmm3, %xmm2
jb 0xc6b3
ucomiss %xmm0, %xmm1
jb 0xc5f1
ucomiss %xmm2, %xmm1
jb 0xc5f1
subss %xmm5, %xmm4
mulss 0x14(%rdx), %xmm4
movslq %esi, %rax
addss (%rdi,%rax,4), %xmm4
movss %xmm4, (%rdi,%rax,4)
jmp 0xc486
ucomiss %xmm3, %xmm0
jb 0xc5ff
ucomiss %xmm3, %xmm2
jae 0xc486
ucomiss %xmm1, %xmm0
jb 0xc694
ucomiss %xmm0, %xmm3
jb 0xc694
ucomiss %xmm1, %xmm2
jb 0xc694
ucomiss %xmm2, %xmm3
jb 0xc694
subss %xmm5, %xmm4
mulss 0x14(%rdx), %xmm4
subss %xmm1, %xmm0
subss %xmm1, %xmm2
addss %xmm0, %xmm2
mulss 0x247c(%rip), %xmm2     # 0xeab4
addss 0x2448(%rip), %xmm2     # 0xea88
mulss %xmm4, %xmm2
movslq %esi, %rax
addss (%rdi,%rax,4), %xmm2
movss %xmm2, (%rdi,%rax,4)
jmp 0xc486
leaq 0x2ded(%rip), %rdi      # 0xf44a
leaq 0x2604(%rip), %rsi      # 0xec68
leaq 0x2de7(%rip), %rcx      # 0xf452
movl $0xb68, %edx            # imm = 0xB68
callq 0x10c0
leaq 0x2e36(%rip), %rdi      # 0xf4b2
leaq 0x25e5(%rip), %rsi      # 0xec68
leaq 0x2dc8(%rip), %rcx      # 0xf452
movl $0xb69, %edx            # imm = 0xB69
callq 0x10c0
leaq 0x2e40(%rip), %rdi      # 0xf4db
leaq 0x25c6(%rip), %rsi      # 0xec68
leaq 0x2da9(%rip), %rcx      # 0xf452
movl $0xb85, %edx            # imm = 0xB85
callq 0x10c0
leaq 0x2e17(%rip), %rdi      # 0xf4d1
leaq 0x25a7(%rip), %rsi      # 0xec68
leaq 0x2d8a(%rip), %rcx      # 0xf452
movl $0xb7c, %edx            # imm = 0xB7C
callq 0x10c0