// File: /workspace/github_c_makefile_star2_O1/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 0xc893
jp 0xc893
popq %rbp
retq
ucomiss %xmm1, %xmm3
jbe 0xca61
movss 0x18(%rdx), %xmm5
movss 0x1c(%rdx), %xmm4
ucomiss %xmm5, %xmm4
jb 0xca80
ucomiss %xmm3, %xmm5
ja 0xc891
ucomiss %xmm4, %xmm1
ja 0xc891
ucomiss %xmm1, %xmm5
jbe 0xc8e1
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 0xc8e4
movaps %xmm1, %xmm5
ucomiss %xmm4, %xmm3
jbe 0xc909
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 0xc90c
movaps %xmm3, %xmm4
xorps %xmm1, %xmm1
cvtsi2ss %esi, %xmm1
ucomiss %xmm1, %xmm0
leal 0x1(%rsi), %eax
xorps %xmm3, %xmm3
cvtsi2ss %eax, %xmm3
jne 0xc94c
jp 0xc94c
ucomiss %xmm2, %xmm3
jae 0xc9d7
leaq 0x2bfe(%rip), %rdi      # 0xf532
leaq 0x232d(%rip), %rsi      # 0xec68
leaq 0x2b44(%rip), %rcx      # 0xf486
movl $0xb76, %edx            # imm = 0xB76
callq 0x10c0
ucomiss %xmm3, %xmm0
jne 0xc977
jp 0xc977
ucomiss %xmm1, %xmm2
jae 0xc9d7
leaq 0x2b96(%rip), %rdi      # 0xf4f5
leaq 0x2302(%rip), %rsi      # 0xec68
leaq 0x2b19(%rip), %rcx      # 0xf486
movl $0xb78, %edx            # imm = 0xB78
callq 0x10c0
ucomiss %xmm0, %xmm1
jae 0xc9aa
ucomiss %xmm3, %xmm0
jae 0xc9ce
ucomiss %xmm1, %xmm2
jb 0xc98b
ucomiss %xmm2, %xmm3
jae 0xc9d7
leaq 0x2b95(%rip), %rdi      # 0xf527
leaq 0x22cf(%rip), %rsi      # 0xec68
leaq 0x2ae6(%rip), %rcx      # 0xf486
movl $0xb7e, %edx            # imm = 0xB7E
callq 0x10c0
ucomiss %xmm2, %xmm1
jae 0xc9d7
leaq 0x2b47(%rip), %rdi      # 0xf4fd
leaq 0x22ab(%rip), %rsi      # 0xec68
leaq 0x2ac2(%rip), %rcx      # 0xf486
movl $0xb7a, %edx            # imm = 0xB7A
callq 0x10c0
ucomiss %xmm3, %xmm2
jb 0xcabe
ucomiss %xmm0, %xmm1
jb 0xc9fc
ucomiss %xmm2, %xmm1
jb 0xc9fc
subss %xmm5, %xmm4
mulss 0x14(%rdx), %xmm4
movslq %esi, %rax
addss (%rdi,%rax,4), %xmm4
movss %xmm4, (%rdi,%rax,4)
jmp 0xc891
ucomiss %xmm3, %xmm0
jb 0xca0a
ucomiss %xmm3, %xmm2
jae 0xc891
ucomiss %xmm1, %xmm0
jb 0xca9f
ucomiss %xmm0, %xmm3
jb 0xca9f
ucomiss %xmm1, %xmm2
jb 0xca9f
ucomiss %xmm2, %xmm3
jb 0xca9f
subss %xmm5, %xmm4
mulss 0x14(%rdx), %xmm4
subss %xmm1, %xmm0
subss %xmm1, %xmm2
addss %xmm0, %xmm2
mulss 0x2079(%rip), %xmm2     # 0xeabc
addss 0x2041(%rip), %xmm2     # 0xea8c
mulss %xmm4, %xmm2
movslq %esi, %rax
addss (%rdi,%rax,4), %xmm2
movss %xmm2, (%rdi,%rax,4)
jmp 0xc891
leaq 0x2a16(%rip), %rdi      # 0xf47e
leaq 0x21f9(%rip), %rsi      # 0xec68
leaq 0x2a10(%rip), %rcx      # 0xf486
movl $0xb68, %edx            # imm = 0xB68
callq 0x10c0
leaq 0x2a5f(%rip), %rdi      # 0xf4e6
leaq 0x21da(%rip), %rsi      # 0xec68
leaq 0x29f1(%rip), %rcx      # 0xf486
movl $0xb69, %edx            # imm = 0xB69
callq 0x10c0
leaq 0x2a69(%rip), %rdi      # 0xf50f
leaq 0x21bb(%rip), %rsi      # 0xec68
leaq 0x29d2(%rip), %rcx      # 0xf486
movl $0xb85, %edx            # imm = 0xB85
callq 0x10c0
leaq 0x2a40(%rip), %rdi      # 0xf505
leaq 0x219c(%rip), %rsi      # 0xec68
leaq 0x29b3(%rip), %rcx      # 0xf486
movl $0xb7c, %edx            # imm = 0xB7C
callq 0x10c0