// File: /workspace/github_c_makefile_star2_O2/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 0xb6b9
jp 0xb6b9
popq %rbp
retq
ucomiss %xmm1, %xmm3
jbe 0xb881
movss 0x18(%rdx), %xmm5
movss 0x1c(%rdx), %xmm4
ucomiss %xmm5, %xmm4
jb 0xb8a0
ucomiss %xmm3, %xmm5
ja 0xb6b7
ucomiss %xmm4, %xmm1
ja 0xb6b7
ucomiss %xmm1, %xmm5
jbe 0xb707
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 0xb70a
movaps %xmm1, %xmm5
ucomiss %xmm4, %xmm3
jbe 0xb72f
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 0xb732
movaps %xmm3, %xmm4
cvtsi2ss %esi, %xmm1
ucomiss %xmm1, %xmm0
leal 0x1(%rsi), %eax
cvtsi2ss %eax, %xmm3
jne 0xb76c
jp 0xb76c
ucomiss %xmm2, %xmm3
jae 0xb7f7
leaq 0x2daa(%rip), %rdi      # 0xe4fe
leaq 0x250d(%rip), %rsi      # 0xdc68
leaq 0x2cf0(%rip), %rcx      # 0xe452
movl $0xb76, %edx            # imm = 0xB76
callq 0x10c0
ucomiss %xmm3, %xmm0
jne 0xb797
jp 0xb797
ucomiss %xmm1, %xmm2
jae 0xb7f7
leaq 0x2d42(%rip), %rdi      # 0xe4c1
leaq 0x24e2(%rip), %rsi      # 0xdc68
leaq 0x2cc5(%rip), %rcx      # 0xe452
movl $0xb78, %edx            # imm = 0xB78
callq 0x10c0
ucomiss %xmm0, %xmm1
jae 0xb7ca
ucomiss %xmm3, %xmm0
jae 0xb7ee
ucomiss %xmm1, %xmm2
jb 0xb7ab
ucomiss %xmm2, %xmm3
jae 0xb7f7
leaq 0x2d41(%rip), %rdi      # 0xe4f3
leaq 0x24af(%rip), %rsi      # 0xdc68
leaq 0x2c92(%rip), %rcx      # 0xe452
movl $0xb7e, %edx            # imm = 0xB7E
callq 0x10c0
ucomiss %xmm2, %xmm1
jae 0xb7f7
leaq 0x2cf3(%rip), %rdi      # 0xe4c9
leaq 0x248b(%rip), %rsi      # 0xdc68
leaq 0x2c6e(%rip), %rcx      # 0xe452
movl $0xb7a, %edx            # imm = 0xB7A
callq 0x10c0
ucomiss %xmm3, %xmm2
jb 0xb8de
ucomiss %xmm0, %xmm1
jb 0xb81c
ucomiss %xmm2, %xmm1
jb 0xb81c
subss %xmm5, %xmm4
mulss 0x14(%rdx), %xmm4
movslq %esi, %rax
addss (%rdi,%rax,4), %xmm4
movss %xmm4, (%rdi,%rax,4)
jmp 0xb6b7
ucomiss %xmm3, %xmm0
jb 0xb82a
ucomiss %xmm3, %xmm2
jae 0xb6b7
ucomiss %xmm1, %xmm0
jb 0xb8bf
ucomiss %xmm0, %xmm3
jb 0xb8bf
ucomiss %xmm1, %xmm2
jb 0xb8bf
ucomiss %xmm2, %xmm3
jb 0xb8bf
subss %xmm5, %xmm4
mulss 0x14(%rdx), %xmm4
subss %xmm1, %xmm0
subss %xmm1, %xmm2
addss %xmm0, %xmm2
mulss 0x2259(%rip), %xmm2     # 0xdabc
addss 0x2221(%rip), %xmm2     # 0xda8c
mulss %xmm4, %xmm2
movslq %esi, %rax
addss (%rdi,%rax,4), %xmm2
movss %xmm2, (%rdi,%rax,4)
jmp 0xb6b7
leaq 0x2bc2(%rip), %rdi      # 0xe44a
leaq 0x23d9(%rip), %rsi      # 0xdc68
leaq 0x2bbc(%rip), %rcx      # 0xe452
movl $0xb68, %edx            # imm = 0xB68
callq 0x10c0
leaq 0x2c0b(%rip), %rdi      # 0xe4b2
leaq 0x23ba(%rip), %rsi      # 0xdc68
leaq 0x2b9d(%rip), %rcx      # 0xe452
movl $0xb69, %edx            # imm = 0xB69
callq 0x10c0
leaq 0x2c15(%rip), %rdi      # 0xe4db
leaq 0x239b(%rip), %rsi      # 0xdc68
leaq 0x2b7e(%rip), %rcx      # 0xe452
movl $0xb85, %edx            # imm = 0xB85
callq 0x10c0
leaq 0x2bec(%rip), %rdi      # 0xe4d1
leaq 0x237c(%rip), %rsi      # 0xdc68
leaq 0x2b5f(%rip), %rcx      # 0xe452
movl $0xb7c, %edx            # imm = 0xB7C
callq 0x10c0