// File: /workspace/github_cpp_makefile_star2_O3/srajangarg[P]raytracer/src/core/stb_image.hpp
// Function: stbi__resample_row_generic(unsigned char*, unsigned char*, unsigned char*, int, int)
static stbi_uc *stbi__resample_row_generic(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)
{
   // resample with nearest-neighbor
   int i,j;
   STBI_NOTUSED(in_far);
   for (i=0; i < w; ++i)
      for (j=0; j < hs; ++j)
         out[i*hs+j] = in_near[i];
   return out;
}

// Assembly:
movq %rdi, %rax
testl %ecx, %ecx
jle 0x1ee59
pushq %rbp
pushq %rbx
movl %r8d, %edx
movl %ecx, %ecx
leal 0xf(%r8), %edi
andl $-0x10, %edi
leaq -0x1(%rdx), %r9
movq %r9, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
movdqa %xmm0, -0x18(%rsp)
leaq 0xf(%rax), %r9
xorl %r10d, %r10d
movdqa 0xd31c(%rip), %xmm9     # 0x2bc60
pcmpeqd %xmm10, %xmm10
testl %r8d, %r8d
jle 0x1ee48
movb (%rsi,%r10), %r11b
xorl %ebx, %ebx
movdqa 0xd38f(%rip), %xmm12    # 0x2bcf0
movdqa 0xd376(%rip), %xmm13    # 0x2bce0
movdqa 0xd35d(%rip), %xmm14    # 0x2bcd0
movdqa 0xd344(%rip), %xmm15    # 0x2bcc0
movdqa 0xd32c(%rip), %xmm4     # 0x2bcb0
movdqa 0xd314(%rip), %xmm3     # 0x2bca0
movdqa 0xd2fc(%rip), %xmm2     # 0x2bc90
movdqa 0xd2e4(%rip), %xmm1     # 0x2bc80
movdqa -0x18(%rsp), %xmm0
pxor %xmm9, %xmm0
movdqa %xmm12, %xmm6
pxor %xmm9, %xmm6
movdqa %xmm6, %xmm8
pcmpgtd %xmm0, %xmm8
pshufd $0xa0, %xmm8, %xmm7     # xmm7 = xmm8[0,0,2,2]
pshuflw $0xe8, %xmm7, %xmm5     # xmm5 = xmm7[0,2,2,3,4,5,6,7]
pcmpeqd %xmm0, %xmm6
pshufd $0xf5, %xmm6, %xmm6     # xmm6 = xmm6[1,1,3,3]
pshuflw $0xe8, %xmm6, %xmm11    # xmm11 = xmm6[0,2,2,3,4,5,6,7]
pand %xmm5, %xmm11
pshufd $0xf5, %xmm8, %xmm8     # xmm8 = xmm8[1,1,3,3]
pshuflw $0xe8, %xmm8, %xmm5     # xmm5 = xmm8[0,2,2,3,4,5,6,7]
por %xmm11, %xmm5
pxor %xmm10, %xmm5
packssdw %xmm5, %xmm5
movd %xmm5, %ebp
testb $0x1, %bpl
je 0x1ea03
movb %r11b, -0xf(%r9,%rbx)
pand %xmm7, %xmm6
por %xmm8, %xmm6
packssdw %xmm6, %xmm6
pxor %xmm10, %xmm6
packssdw %xmm6, %xmm6
packsswb %xmm6, %xmm6
movd %xmm6, %ebp
shrl $0x8, %ebp
testb $0x1, %bpl
je 0x1ea2f
movb %r11b, -0xe(%r9,%rbx)
movdqa %xmm13, %xmm5
pxor %xmm9, %xmm5
movdqa %xmm5, %xmm8
pcmpgtd %xmm0, %xmm8
pshufd $0xa0, %xmm8, %xmm6     # xmm6 = xmm8[0,0,2,2]
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm7     # xmm7 = xmm5[1,1,3,3]
movdqa %xmm7, %xmm5
pand %xmm6, %xmm5
pshufd $0xf5, %xmm8, %xmm8     # xmm8 = xmm8[1,1,3,3]
por %xmm8, %xmm5
packssdw %xmm5, %xmm5
pxor %xmm10, %xmm5
packssdw %xmm5, %xmm5
packsswb %xmm5, %xmm5
movd %xmm5, %ebp
shrl $0x10, %ebp
testb $0x1, %bpl
je 0x1ea88
movb %r11b, -0xd(%r9,%rbx)
pshufhw $0x84, %xmm6, %xmm5     # xmm5 = xmm6[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm7, %xmm6     # xmm6 = xmm7[0,1,2,3,4,5,4,6]
pand %xmm5, %xmm6
pshufhw $0x84, %xmm8, %xmm5     # xmm5 = xmm8[0,1,2,3,4,5,4,6]
por %xmm6, %xmm5
pxor %xmm10, %xmm5
packssdw %xmm5, %xmm5
packsswb %xmm5, %xmm5
movd %xmm5, %ebp
shrl $0x18, %ebp
testb $0x1, %bpl
je 0x1eabf
movb %r11b, -0xc(%r9,%rbx)
movdqa %xmm14, %xmm5
pxor %xmm9, %xmm5
movdqa %xmm5, %xmm8
pcmpgtd %xmm0, %xmm8
pshufd $0xa0, %xmm8, %xmm7     # xmm7 = xmm8[0,0,2,2]
pshuflw $0xe8, %xmm7, %xmm11    # xmm11 = xmm7[0,2,2,3,4,5,6,7]
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm6     # xmm6 = xmm5[1,1,3,3]
pshuflw $0xe8, %xmm6, %xmm5     # xmm5 = xmm6[0,2,2,3,4,5,6,7]
pand %xmm11, %xmm5
pshufd $0xf5, %xmm8, %xmm8     # xmm8 = xmm8[1,1,3,3]
pshuflw $0xe8, %xmm8, %xmm11    # xmm11 = xmm8[0,2,2,3,4,5,6,7]
por %xmm5, %xmm11
pxor %xmm10, %xmm11
packssdw %xmm11, %xmm5
packsswb %xmm5, %xmm5
pextrw $0x2, %xmm5, %ebp
testb $0x1, %bpl
je 0x1eb21
movb %r11b, -0xb(%r9,%rbx)
pand %xmm7, %xmm6
por %xmm8, %xmm6
packssdw %xmm6, %xmm6
pxor %xmm10, %xmm6
packssdw %xmm6, %xmm5
packsswb %xmm5, %xmm5
pextrw $0x2, %xmm5, %ebp
shrl $0x8, %ebp
testb $0x1, %bpl
je 0x1eb4e
movb %r11b, -0xa(%r9,%rbx)
movdqa %xmm15, %xmm5
pxor %xmm9, %xmm5
movdqa %xmm5, %xmm8
pcmpgtd %xmm0, %xmm8
pshufd $0xa0, %xmm8, %xmm6     # xmm6 = xmm8[0,0,2,2]
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm7     # xmm7 = xmm5[1,1,3,3]
movdqa %xmm7, %xmm5
pand %xmm6, %xmm5
pshufd $0xf5, %xmm8, %xmm8     # xmm8 = xmm8[1,1,3,3]
por %xmm8, %xmm5
packssdw %xmm5, %xmm5
pxor %xmm10, %xmm5
packssdw %xmm5, %xmm5
packsswb %xmm5, %xmm5
pextrw $0x3, %xmm5, %ebp
testb $0x1, %bpl
je 0x1eba5
movb %r11b, -0x9(%r9,%rbx)
pshufhw $0x84, %xmm6, %xmm5     # xmm5 = xmm6[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm7, %xmm6     # xmm6 = xmm7[0,1,2,3,4,5,4,6]
pand %xmm5, %xmm6
pshufhw $0x84, %xmm8, %xmm5     # xmm5 = xmm8[0,1,2,3,4,5,4,6]
por %xmm6, %xmm5
pxor %xmm10, %xmm5
packssdw %xmm5, %xmm5
packsswb %xmm5, %xmm5
pextrw $0x3, %xmm5, %ebp
shrl $0x8, %ebp
testb $0x1, %bpl
je 0x1ebdd
movb %r11b, -0x8(%r9,%rbx)
movdqa %xmm4, %xmm5
pxor %xmm9, %xmm5
movdqa %xmm5, %xmm8
pcmpgtd %xmm0, %xmm8
pshufd $0xa0, %xmm8, %xmm7     # xmm7 = xmm8[0,0,2,2]
pshuflw $0xe8, %xmm7, %xmm11    # xmm11 = xmm7[0,2,2,3,4,5,6,7]
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm6     # xmm6 = xmm5[1,1,3,3]
pshuflw $0xe8, %xmm6, %xmm5     # xmm5 = xmm6[0,2,2,3,4,5,6,7]
pand %xmm11, %xmm5
pshufd $0xf5, %xmm8, %xmm8     # xmm8 = xmm8[1,1,3,3]
pshuflw $0xe8, %xmm8, %xmm11    # xmm11 = xmm8[0,2,2,3,4,5,6,7]
por %xmm5, %xmm11
pxor %xmm10, %xmm11
packssdw %xmm11, %xmm11
packsswb %xmm11, %xmm5
pextrw $0x4, %xmm5, %ebp
testb $0x1, %bpl
je 0x1ec3f
movb %r11b, -0x7(%r9,%rbx)
pand %xmm7, %xmm6
por %xmm8, %xmm6
packssdw %xmm6, %xmm6
pxor %xmm10, %xmm6
packssdw %xmm6, %xmm6
packsswb %xmm6, %xmm5
pextrw $0x4, %xmm5, %ebp
shrl $0x8, %ebp
testb $0x1, %bpl
je 0x1ec6c
movb %r11b, -0x6(%r9,%rbx)
movdqa %xmm3, %xmm5
pxor %xmm9, %xmm5
movdqa %xmm5, %xmm8
pcmpgtd %xmm0, %xmm8
pshufd $0xa0, %xmm8, %xmm6     # xmm6 = xmm8[0,0,2,2]
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm7     # xmm7 = xmm5[1,1,3,3]
movdqa %xmm7, %xmm5
pand %xmm6, %xmm5
pshufd $0xf5, %xmm8, %xmm8     # xmm8 = xmm8[1,1,3,3]
por %xmm8, %xmm5
packssdw %xmm5, %xmm5
pxor %xmm10, %xmm5
packssdw %xmm5, %xmm5
packsswb %xmm5, %xmm5
pextrw $0x5, %xmm5, %ebp
testb $0x1, %bpl
je 0x1ecc2
movb %r11b, -0x5(%r9,%rbx)
pshufhw $0x84, %xmm6, %xmm5     # xmm5 = xmm6[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm7, %xmm6     # xmm6 = xmm7[0,1,2,3,4,5,4,6]
pand %xmm5, %xmm6
pshufhw $0x84, %xmm8, %xmm5     # xmm5 = xmm8[0,1,2,3,4,5,4,6]
por %xmm6, %xmm5
pxor %xmm10, %xmm5
packssdw %xmm5, %xmm5
packsswb %xmm5, %xmm5
pextrw $0x5, %xmm5, %ebp
shrl $0x8, %ebp
testb $0x1, %bpl
je 0x1ecfa
movb %r11b, -0x4(%r9,%rbx)
movdqa %xmm2, %xmm5
pxor %xmm9, %xmm5
movdqa %xmm5, %xmm8
pcmpgtd %xmm0, %xmm8
pshufd $0xa0, %xmm8, %xmm7     # xmm7 = xmm8[0,0,2,2]
pshuflw $0xe8, %xmm7, %xmm11    # xmm11 = xmm7[0,2,2,3,4,5,6,7]
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm6     # xmm6 = xmm5[1,1,3,3]
pshuflw $0xe8, %xmm6, %xmm5     # xmm5 = xmm6[0,2,2,3,4,5,6,7]
pand %xmm11, %xmm5
pshufd $0xf5, %xmm8, %xmm8     # xmm8 = xmm8[1,1,3,3]
pshuflw $0xe8, %xmm8, %xmm11    # xmm11 = xmm8[0,2,2,3,4,5,6,7]
por %xmm5, %xmm11
pxor %xmm10, %xmm11
packssdw %xmm11, %xmm5
packsswb %xmm5, %xmm5
pextrw $0x6, %xmm5, %ebp
testb $0x1, %bpl
je 0x1ed5b
movb %r11b, -0x3(%r9,%rbx)
pand %xmm7, %xmm6
por %xmm8, %xmm6
packssdw %xmm6, %xmm6
pxor %xmm10, %xmm6
packssdw %xmm6, %xmm5
packsswb %xmm5, %xmm5
pextrw $0x6, %xmm5, %ebp
shrl $0x8, %ebp
testb $0x1, %bpl
je 0x1ed88
movb %r11b, -0x2(%r9,%rbx)
movdqa %xmm1, %xmm5
pxor %xmm9, %xmm5
movdqa %xmm5, %xmm7
pcmpgtd %xmm0, %xmm7
pshufd $0xa0, %xmm7, %xmm6     # xmm6 = xmm7[0,0,2,2]
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm0     # xmm0 = xmm5[1,1,3,3]
movdqa %xmm0, %xmm5
pand %xmm6, %xmm5
pshufd $0xf5, %xmm7, %xmm7     # xmm7 = xmm7[1,1,3,3]
por %xmm7, %xmm5
packssdw %xmm5, %xmm5
pxor %xmm10, %xmm5
packssdw %xmm5, %xmm5
packsswb %xmm5, %xmm5
pextrw $0x7, %xmm5, %ebp
testb $0x1, %bpl
je 0x1edd9
movb %r11b, -0x1(%r9,%rbx)
pshufhw $0x84, %xmm6, %xmm5     # xmm5 = xmm6[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm0, %xmm0     # xmm0 = xmm0[0,1,2,3,4,5,4,6]
pand %xmm5, %xmm0
pshufhw $0x84, %xmm7, %xmm5     # xmm5 = xmm7[0,1,2,3,4,5,4,6]
por %xmm0, %xmm5
pxor %xmm10, %xmm5
packssdw %xmm5, %xmm0
packsswb %xmm0, %xmm0
pextrw $0x7, %xmm0, %ebp
shrl $0x8, %ebp
testb $0x1, %bpl
je 0x1ee0f
movb %r11b, (%r9,%rbx)
addq $0x10, %rbx
movdqa 0xcf05(%rip), %xmm0     # 0x2bd20
paddq %xmm0, %xmm12
paddq %xmm0, %xmm13
paddq %xmm0, %xmm14
paddq %xmm0, %xmm15
paddq %xmm0, %xmm4
paddq %xmm0, %xmm3
paddq %xmm0, %xmm2
paddq %xmm0, %xmm1
cmpq %rbx, %rdi
jne 0x1e99c
incq %r10
addq %rdx, %r9
cmpq %rcx, %r10
jne 0x1e949
popq %rbx
popq %rbp
retq