// File: /workspace/github_c_makefile_star2_O3/zhiyb[P]png2tlg/./stb_image.h
// 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 0x10634
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 0x7fa1(%rip), %xmm9     # 0x180c0
pcmpeqd %xmm10, %xmm10
testl %r8d, %r8d
jle 0x10623
movb (%rsi,%r10), %r11b
xorl %ebx, %ebx
movdqa 0x7f74(%rip), %xmm12    # 0x180b0
movdqa 0x7f5b(%rip), %xmm13    # 0x180a0
movdqa 0x7f42(%rip), %xmm14    # 0x18090
movdqa 0x7f29(%rip), %xmm15    # 0x18080
movdqa 0x7f11(%rip), %xmm4     # 0x18070
movdqa 0x7ef9(%rip), %xmm3     # 0x18060
movdqa 0x7ee1(%rip), %xmm2     # 0x18050
movdqa 0x7ec9(%rip), %xmm1     # 0x18040
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 0x101de
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 0x1020a
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 0x10263
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 0x1029a
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 0x102fc
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 0x10329
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 0x10380
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 0x103b8
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 0x1041a
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 0x10447
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 0x1049d
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 0x104d5
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 0x10536
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 0x10563
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 0x105b4
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 0x105ea
movb %r11b, (%r9,%rbx)
addq $0x10, %rbx
movdqa 0x7c0a(%rip), %xmm0     # 0x18200
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 0x10177
incq %r10
addq %rdx, %r9
cmpq %rcx, %r10
jne 0x10124
popq %rbx
popq %rbp
retq