// File: /workspace/github_c_makefile_star2_O1/ggerganov[P]font-rasterizer/./stb_truetype.h
// Function: stbtt__v_prefilter
static void stbtt__v_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned int kernel_width)
{
   unsigned char buffer[STBTT_MAX_OVERSAMPLE];
   int safe_h = h - kernel_width;
   int j;
   STBTT_memset(buffer, 0, STBTT_MAX_OVERSAMPLE); // suppress bogus warning from VS2013 -analyze
   for (j=0; j < w; ++j) {
      int i;
      unsigned int total;
      STBTT_memset(buffer, 0, kernel_width);

      total = 0;

      // make kernel_width a constant in common cases so compiler can optimize out the divide
      switch (kernel_width) {
         case 2:
            for (i=0; i <= safe_h; ++i) {
               total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK];
               buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes];
               pixels[i*stride_in_bytes] = (unsigned char) (total / 2);
            }
            break;
         case 3:
            for (i=0; i <= safe_h; ++i) {
               total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK];
               buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes];
               pixels[i*stride_in_bytes] = (unsigned char) (total / 3);
            }
            break;
         case 4:
            for (i=0; i <= safe_h; ++i) {
               total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK];
               buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes];
               pixels[i*stride_in_bytes] = (unsigned char) (total / 4);
            }
            break;
         case 5:
            for (i=0; i <= safe_h; ++i) {
               total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK];
               buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes];
               pixels[i*stride_in_bytes] = (unsigned char) (total / 5);
            }
            break;
         default:
            for (i=0; i <= safe_h; ++i) {
               total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK];
               buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes];
               pixels[i*stride_in_bytes] = (unsigned char) (total / kernel_width);
            }
            break;
      }

      for (; i < h; ++i) {
         STBTT_assert(pixels[i*stride_in_bytes] == 0);
         total -= buffer[i & STBTT__OVER_MASK];
         pixels[i*stride_in_bytes] = (unsigned char) (total / kernel_width);
      }

      pixels += 1;
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, -0x44(%rbp)
movq $0x0, -0x30(%rbp)
movl %esi, -0x48(%rbp)
testl %esi, %esi
jle 0x714d
movl %r8d, %ebx
movl -0x44(%rbp), %eax
subl %r8d, %eax
movl %r8d, %r9d
movslq %ecx, %r15
movq %rax, -0x40(%rbp)
leal 0x1(%rax), %r14d
xorl %eax, %eax
leal -0x2(%rbx), %r13d
movq %rdi, -0x38(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x30(%rbp), %rdi
xorl %esi, %esi
movq %r9, %r12
movq %r9, %rdx
callq 0x10d0
cmpl $0x3, %r13d
ja 0x70ac
leaq 0x612f(%rip), %rcx      # 0xd07c
movslq (%rcx,%r13,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpl $0x0, -0x40(%rbp)
movq %r12, %r9
movq -0x38(%rbp), %rdi
js 0x70a6
xorl %esi, %esi
movq %rdi, %rax
xorl %ecx, %ecx
movzbl (%rax), %edx
movl %esi, %r8d
andl $0x7, %r8d
movzbl -0x30(%rbp,%r8), %r10d
leal 0x2(%rsi), %r8d
andl $0x7, %r8d
movb %dl, -0x30(%rbp,%r8)
subl %r10d, %edx
addl %edx, %ecx
movl %ecx, %edx
shrl %edx
movb %dl, (%rax)
incq %rsi
addq %r15, %rax
cmpq %rsi, %r14
jne 0x6f6e
jmp 0x7100
cmpl $0x0, -0x40(%rbp)
movq %r12, %r9
movq -0x38(%rbp), %rdi
js 0x70a6
xorl %esi, %esi
movq %rdi, %rax
xorl %ecx, %ecx
movzbl (%rax), %edx
movl %esi, %r10d
andl $0x7, %r10d
movzbl -0x30(%rbp,%r10), %r8d
xorq $0x4, %r10
movb %dl, -0x30(%rbp,%r10)
subl %r8d, %edx
addl %edx, %ecx
movl %ecx, %edx
shrl $0x2, %edx
movb %dl, (%rax)
incq %rsi
addq %r15, %rax
cmpq %rsi, %r14
jne 0x6fbe
jmp 0x7100
cmpl $0x0, -0x40(%rbp)
movq %r12, %r9
movq -0x38(%rbp), %rdi
js 0x70a6
xorl %esi, %esi
movq %rdi, %rax
xorl %ecx, %ecx
movl $0xcccccccd, %r12d      # imm = 0xCCCCCCCD
movzbl (%rax), %edx
movl %esi, %r8d
andl $0x7, %r8d
movzbl -0x30(%rbp,%r8), %r10d
leal 0x5(%rsi), %r8d
andl $0x7, %r8d
movb %dl, -0x30(%rbp,%r8)
subl %r10d, %edx
addl %edx, %ecx
movq %rcx, %rdx
imulq %r12, %rdx
shrq $0x22, %rdx
movb %dl, (%rax)
incq %rsi
addq %r15, %rax
cmpq %rsi, %r14
jne 0x7011
jmp 0x7100
cmpl $0x0, -0x40(%rbp)
movq %r12, %r9
movq -0x38(%rbp), %rdi
js 0x70a6
xorl %esi, %esi
movq %rdi, %rax
xorl %ecx, %ecx
movl $0xaaaaaaab, %r12d      # imm = 0xAAAAAAAB
movzbl (%rax), %edx
movl %esi, %r8d
andl $0x7, %r8d
movzbl -0x30(%rbp,%r8), %r10d
leal 0x3(%rsi), %r8d
andl $0x7, %r8d
movb %dl, -0x30(%rbp,%r8)
subl %r10d, %edx
addl %edx, %ecx
movq %rcx, %rdx
imulq %r12, %rdx
shrq $0x21, %rdx
movb %dl, (%rax)
incq %rsi
addq %r15, %rax
cmpq %rsi, %r14
jne 0x706a
jmp 0x7100
xorl %esi, %esi
xorl %ecx, %ecx
jmp 0x7100
cmpl $0x0, -0x40(%rbp)
js 0x70f5
xorl %esi, %esi
movq -0x38(%rbp), %rdi
movq %rdi, %r10
xorl %ecx, %ecx
movq %r12, %r9
movzbl (%r10), %eax
movl %esi, %edx
andl $0x7, %edx
movzbl -0x30(%rbp,%rdx), %edx
leal (%r9,%rsi), %r8d
andl $0x7, %r8d
movb %al, -0x30(%rbp,%r8)
subl %edx, %eax
addl %eax, %ecx
movl %ecx, %eax
xorl %edx, %edx
divl %ebx
movb %al, (%r10)
incq %rsi
addq %r15, %r10
cmpq %rsi, %r14
jne 0x70c0
jmp 0x7100
xorl %esi, %esi
xorl %ecx, %ecx
movq %r12, %r9
movq -0x38(%rbp), %rdi
movl -0x44(%rbp), %r10d
subl %esi, %r10d
jle 0x713c
movslq %esi, %rsi
movq %r15, %r8
imulq %rsi, %r8
addq %rdi, %r8
cmpb $0x0, (%r8)
jne 0x715c
movl %esi, %eax
andl $0x7, %eax
movzbl -0x30(%rbp,%rax), %eax
subl %eax, %ecx
movl %ecx, %eax
xorl %edx, %edx
divl %ebx
movb %al, (%r8)
incq %rsi
addq %r15, %r8
decl %r10d
jne 0x7116
incq %rdi
movl -0x4c(%rbp), %eax
incl %eax
cmpl -0x48(%rbp), %eax
jne 0x6f24
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x842e(%rip), %rdi      # 0xf591
leaq 0x7afe(%rip), %rsi      # 0xec68
leaq 0x843f(%rip), %rcx      # 0xf5b0
movl $0xf6a, %edx            # imm = 0xF6A
callq 0x10c0