// File: /workspace/github_c_makefile_star2_O1/patriciogonzalezvivo[P]tprint/include/std/stb_image.h
// Function: stbi__pic_load(stbi__context*, int*, int*, int*, int)
static stbi_uc *stbi__pic_load(stbi__context *s,int *px,int *py,int *comp,int req_comp)
{
   stbi_uc *result;
   int i, x,y;

   for (i=0; i<92; ++i)
      stbi__get8(s);

   x = stbi__get16be(s);
   y = stbi__get16be(s);
   if (stbi__at_eof(s))  return stbi__errpuc("bad file","file too short (pic header)");
   if ((1 << 28) / x < y) return stbi__errpuc("too large", "Image too large to decode");

   stbi__get32be(s); //skip `ratio'
   stbi__get16be(s); //skip `fields'
   stbi__get16be(s); //skip `pad'

   // intermediate buffer is RGBA
   result = (stbi_uc *) stbi__malloc(x*y*4);
   memset(result, 0xff, x*y*4);

   if (!stbi__pic_load_core(s,x,y,comp, result)) {
      STBI_FREE(result);
      result=0;
   }
   *px = x;
   *py = y;
   if (req_comp == 0) req_comp = *comp;
   result=stbi__convert_format(result,4,req_comp,x,y);

   return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl %r8d, %r14d
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, 0x78(%rsp)
movq %rdi, %r13
leaq 0x38(%rdi), %rbp
leaq 0x39(%rdi), %rax
movq %rax, 0x28(%rsp)
movl $0x5c, %ebx
movq 0xb8(%r13), %rax
cmpq 0xc0(%r13), %rax
jb 0x17ab1
cmpl $0x0, 0x30(%r13)
je 0x17abb
movq 0x28(%r13), %rdi
movl 0x34(%r13), %edx
movq %rbp, %rsi
callq *0x10(%r13)
testl %eax, %eax
je 0x17a8a
movq %rbp, 0xb8(%r13)
cltq
addq %rbp, %rax
movq %rax, 0xc0(%r13)
jmp 0x17aaa
movl $0x0, 0x30(%r13)
movq %rbp, 0xb8(%r13)
movq 0x28(%rsp), %rax
movq %rax, 0xc0(%r13)
movb $0x0, 0x38(%r13)
movq 0xb8(%r13), %rax
incq %rax
movq %rax, 0xb8(%r13)
decl %ebx
jne 0x17a4b
movq %r13, %rdi
callq 0x1aea1
movl %eax, %ebx
movq %r13, %rdi
callq 0x1aea1
movl %eax, 0x4(%rsp)
cmpq $0x0, 0x10(%r13)
je 0x17aef
movq 0x28(%r13), %rdi
callq *0x20(%r13)
testl %eax, %eax
je 0x17aff
cmpl $0x0, 0x30(%r13)
je 0x17b1e
movq 0xb8(%r13), %rax
cmpq 0xc0(%r13), %rax
jae 0x17b1e
movl %r14d, %ecx
movl $0x10000000, %eax       # imm = 0x10000000
xorl %edx, %edx
divl %ebx
movl 0x4(%rsp), %r14d
cmpl %r14d, %eax
jae 0x17b33
leaq 0xa461(%rip), %rax      # 0x21f7d
jmp 0x17b25
leaq 0xaa72(%rip), %rax      # 0x22597
movq %rax, 0x108dc(%rip)     # 0x28408
xorl %eax, %eax
jmp 0x1828e
movq $0x0, 0x38(%rsp)
movq %r12, 0x18(%rsp)
movq %r15, 0x20(%rsp)
movl %ecx, 0x44(%rsp)
movq %r13, %rdi
callq 0x1aea1
movq %r13, %rdi
callq 0x1aea1
movq %r13, %rdi
callq 0x1aea1
movq %r13, %rdi
callq 0x1aea1
movl %ebx, 0xc(%rsp)
imull %r14d, %ebx
shll $0x2, %ebx
movq %rbx, %rdi
callq 0x8430
movq %rax, 0x10(%rsp)
movq %rax, %rdi
movl $0xff, %esi
movq %rbx, %rdx
callq 0x81d0
leaq 0xaa07(%rip), %r15      # 0x225a0
xorl %edx, %edx
movl $0x0, 0x8(%rsp)
cmpl $0xa, %edx
jne 0x17bb0
movq %r15, %rax
jmp 0x17e1a
movq 0xb8(%r13), %rax
cmpq 0xc0(%r13), %rax
jb 0x17c1f
cmpl $0x0, 0x30(%r13)
je 0x17bf1
movl %edx, %ebx
movq 0x28(%r13), %rdi
movl 0x34(%r13), %edx
movq %rbp, %rsi
callq *0x10(%r13)
testl %eax, %eax
je 0x17bf6
movq %rbp, 0xb8(%r13)
cltq
addq %rbp, %rax
movq %rax, 0xc0(%r13)
jmp 0x17c16
xorl %r12d, %r12d
jmp 0x17c2e
movl $0x0, 0x30(%r13)
movq %rbp, 0xb8(%r13)
movq 0x28(%rsp), %rax
movq %rax, 0xc0(%r13)
movb $0x0, 0x38(%r13)
movl %ebx, %edx
movq 0xb8(%r13), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r13)
movzbl (%rax), %r12d
movq 0xb8(%r13), %rax
cmpq 0xc0(%r13), %rax
jb 0x17c9c
cmpl $0x0, 0x30(%r13)
je 0x17c6f
movl %edx, %ebx
movq 0x28(%r13), %rdi
movl 0x34(%r13), %edx
movq %rbp, %rsi
callq *0x10(%r13)
testl %eax, %eax
je 0x17c73
movq %rbp, 0xb8(%r13)
cltq
addq %rbp, %rax
movq %rax, 0xc0(%r13)
jmp 0x17c93
xorl %ebx, %ebx
jmp 0x17ca9
movl $0x0, 0x30(%r13)
movq %rbp, 0xb8(%r13)
movq 0x28(%rsp), %rax
movq %rax, 0xc0(%r13)
movb $0x0, 0x38(%r13)
movq 0xb8(%r13), %rax
movl %ebx, %edx
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r13)
movb (%rax), %bl
movslq %edx, %rax
leaq (%rax,%rax,2), %rax
leaq (%rsp,%rax), %r14
addq $0x80, %r14
movb %bl, (%r14)
movq 0xb8(%r13), %rax
cmpq 0xc0(%r13), %rax
jb 0x17d35
cmpl $0x0, 0x30(%r13)
je 0x17d00
movl %edx, %r15d
movq 0x28(%r13), %rdi
movl 0x34(%r13), %edx
movq %rbp, %rsi
callq *0x10(%r13)
testl %eax, %eax
je 0x17d04
movq %rbp, 0xb8(%r13)
cltq
addq %rbp, %rax
movq %rax, 0xc0(%r13)
jmp 0x17d24
xorl %eax, %eax
jmp 0x17d42
movl $0x0, 0x30(%r13)
movq %rbp, 0xb8(%r13)
movq 0x28(%rsp), %rax
movq %rax, 0xc0(%r13)
movb $0x0, 0x38(%r13)
movl %r15d, %edx
movq 0xb8(%r13), %rax
leaq 0xa86b(%rip), %r15      # 0x225a0
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r13)
movb (%rax), %al
movb %al, 0x1(%r14)
movq 0xb8(%r13), %rax
cmpq 0xc0(%r13), %rax
jb 0x17dbd
cmpl $0x0, 0x30(%r13)
je 0x17d88
movl %edx, %r15d
movq 0x28(%r13), %rdi
movl 0x34(%r13), %edx
movq %rbp, %rsi
callq *0x10(%r13)
testl %eax, %eax
je 0x17d8c
movq %rbp, 0xb8(%r13)
cltq
addq %rbp, %rax
movq %rax, 0xc0(%r13)
jmp 0x17dac
xorl %eax, %eax
jmp 0x17dca
movl $0x0, 0x30(%r13)
movq %rbp, 0xb8(%r13)
movq 0x28(%rsp), %rax
movq %rax, 0xc0(%r13)
movb $0x0, 0x38(%r13)
movq 0xb8(%r13), %rax
movl %r15d, %edx
leaq 0xa7e3(%rip), %r15      # 0x225a0
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r13)
movb (%rax), %al
incl %edx
movb %al, 0x2(%r14)
movzbl %al, %eax
orl %eax, 0x8(%rsp)
cmpq $0x0, 0x10(%r13)
je 0x17df7
movl %edx, %r14d
movq 0x28(%r13), %rdi
callq *0x20(%r13)
movl %r14d, %edx
testl %eax, %eax
je 0x17e07
cmpl $0x0, 0x30(%r13)
je 0x17e13
movq 0xb8(%r13), %rax
cmpq 0xc0(%r13), %rax
jae 0x17e13
movb $0x1, %cl
movq %r15, %rax
cmpb $0x8, %bl
jne 0x17e1a
jmp 0x17e23
leaq 0xa77d(%rip), %rax      # 0x22597
movq %rax, 0x105e7(%rip)     # 0x28408
xorl %ecx, %ecx
testb %cl, %cl
je 0x18246
testl %r12d, %r12d
jne 0x17ba3
movl %edx, 0x40(%rsp)
movl 0x8(%rsp), %eax
andl $0x10, %eax
cmpl $0x1, %eax
movl $0x4, %eax
sbbl $0x0, %eax
movq 0x20(%rsp), %rbx
movl %eax, (%rbx)
movq 0x10(%rsp), %rdi
movq %rdi, 0x38(%rsp)
movl 0x4(%rsp), %r15d
testl %r15d, %r15d
movq 0x18(%rsp), %r14
je 0x1825a
movl 0xc(%rsp), %eax
shll $0x2, %eax
movl %eax, 0x54(%rsp)
movl %r15d, %eax
movq %rax, 0x58(%rsp)
movl 0x40(%rsp), %eax
movl %eax, %ecx
movq %rcx, 0x60(%rsp)
movq $0x0, 0x38(%rsp)
xorl %ecx, %ecx
testl %eax, %eax
jle 0x18216
movl 0x54(%rsp), %eax
imull %ecx, %eax
cltq
addq %rdi, %rax
movq %rax, 0x48(%rsp)
xorl %eax, %eax
movq %rcx, 0x68(%rsp)
movq %rax, 0x70(%rsp)
leaq (%rax,%rax,2), %rax
leaq (%rsp,%rax), %r15
addq $0x80, %r15
movzbl 0x1(%r15), %eax
testl %eax, %eax
je 0x181c0
movq 0x48(%rsp), %rbx
movl 0xc(%rsp), %r12d
cmpl $0x1, %eax
je 0x181b5
movq 0x48(%rsp), %r12
movl 0xc(%rsp), %ecx
movl %ecx, 0x8(%rsp)
cmpl $0x2, %eax
jne 0x1822f
cmpl $0x0, 0x8(%rsp)
jle 0x181ea
movq 0xb8(%r13), %rax
cmpq 0xc0(%r13), %rax
jb 0x17f76
cmpl $0x0, 0x30(%r13)
je 0x17f4b
movq 0x28(%r13), %rdi
movl 0x34(%r13), %edx
movq %rbp, %rsi
callq *0x10(%r13)
testl %eax, %eax
je 0x17f4f
movq %rbp, 0xb8(%r13)
cltq
addq %rbp, %rax
movq %rax, 0xc0(%r13)
jmp 0x17f6f
xorl %ebx, %ebx
jmp 0x17f83
movl $0x0, 0x30(%r13)
movq %rbp, 0xb8(%r13)
movq 0x28(%rsp), %rax
movq %rax, 0xc0(%r13)
movb $0x0, 0x38(%r13)
movq 0xb8(%r13), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r13)
movb (%rax), %bl
cmpq $0x0, 0x10(%r13)
je 0x17f9d
movq 0x28(%r13), %rdi
callq *0x20(%r13)
testl %eax, %eax
je 0x17fad
cmpl $0x0, 0x30(%r13)
je 0x17fe7
movq 0xb8(%r13), %rax
cmpq 0xc0(%r13), %rax
jae 0x17fe7
movzbl %bl, %r14d
testb %r14b, %r14b
js 0x18004
cmpl %r14d, 0x8(%rsp)
jle 0x17fe7
leal 0x1(%r14), %ebx
incl %r14d
movzbl 0x2(%r15), %esi
movq %r13, %rdi
movq %r12, %rdx
callq 0x1eafb
testq %rax, %rax
je 0x17ff5
addq $0x4, %r12
decl %r14d
jne 0x17fc4
jmp 0x1808f
leaq 0xa5a9(%rip), %rax      # 0x22597
movq %rax, 0x10413(%rip)     # 0x28408
xorl %eax, %eax
testb %al, %al
jne 0x17f01
jmp 0x18246
cmpl $0x80, %r14d
jne 0x18019
movq %r13, %rdi
callq 0x1aea1
movl %eax, %ebx
jmp 0x18020
addl $-0x7f, %r14d
movl %r14d, %ebx
cmpl 0x8(%rsp), %ebx
jle 0x18036
leaq 0xa56a(%rip), %rax      # 0x22597
movq %rax, 0x103d4(%rip)     # 0x28408
jmp 0x18085
movzbl 0x2(%r15), %esi
movq %r13, %rdi
leaq 0x34(%rsp), %rdx
callq 0x1eafb
testq %rax, %rax
je 0x18085
movb $0x1, %al
testl %ebx, %ebx
jle 0x18087
xorl %ecx, %ecx
movzbl 0x2(%r15), %edx
movl $0x80, %esi
xorl %edi, %edi
testl %edx, %esi
je 0x1806e
movb 0x34(%rsp,%rdi), %r8b
movb %r8b, (%r12,%rdi)
incq %rdi
shrl %esi
cmpq $0x4, %rdi
jne 0x18061
incl %ecx
addq $0x4, %r12
cmpl %ebx, %ecx
jne 0x18055
jmp 0x18087
xorl %eax, %eax
testb %al, %al
je 0x17ff5
subl %ebx, 0x8(%rsp)
movb $0x1, %al
jmp 0x17ff7
movq 0xb8(%r13), %rax
cmpq 0xc0(%r13), %rax
jb 0x18105
cmpl $0x0, 0x30(%r13)
je 0x180d9
movq 0x28(%r13), %rdi
movl 0x34(%r13), %edx
movq %rbp, %rsi
callq *0x10(%r13)
testl %eax, %eax
je 0x180de
movq %rbp, 0xb8(%r13)
cltq
addq %rbp, %rax
movq %rax, 0xc0(%r13)
jmp 0x180fe
xorl %r14d, %r14d
jmp 0x18113
movl $0x0, 0x30(%r13)
movq %rbp, 0xb8(%r13)
movq 0x28(%rsp), %rax
movq %rax, 0xc0(%r13)
movb $0x0, 0x38(%r13)
movq 0xb8(%r13), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xb8(%r13)
movb (%rax), %r14b
cmpq $0x0, 0x10(%r13)
je 0x1812d
movq 0x28(%r13), %rdi
callq *0x20(%r13)
testl %eax, %eax
je 0x1813d
cmpl $0x0, 0x30(%r13)
je 0x1819d
movq 0xb8(%r13), %rax
cmpq 0xc0(%r13), %rax
jae 0x1819d
movzbl 0x2(%r15), %esi
movq %r13, %rdi
leaq 0x34(%rsp), %rdx
callq 0x1eafb
testq %rax, %rax
je 0x181ab
movzbl %r14b, %eax
cmpl %eax, %r12d
cmovll %r12d, %eax
movzbl %al, %eax
testb %al, %al
je 0x18196
xorl %ecx, %ecx
movzbl 0x2(%r15), %edx
movl $0x80, %esi
xorl %edi, %edi
testl %edx, %esi
je 0x18181
movb 0x34(%rsp,%rdi), %r8b
movb %r8b, (%rbx,%rdi)
incq %rdi
shrl %esi
cmpq $0x4, %rdi
jne 0x18174
incl %ecx
addq $0x4, %rbx
cmpl %eax, %ecx
jne 0x18168
subl %eax, %r12d
movb $0x1, %al
jmp 0x181ad
leaq 0xa3f3(%rip), %rax      # 0x22597
movq %rax, 0x1025d(%rip)     # 0x28408
xorl %eax, %eax
testb %al, %al
je 0x18246
testl %r12d, %r12d
jg 0x1809a
jmp 0x181ea
movzbl 0x2(%r15), %ebx
movl 0xc(%rsp), %r14d
movq 0x48(%rsp), %r12
movq %r13, %rdi
movl %ebx, %esi
movq %r12, %rdx
callq 0x1eafb
testq %rax, %rax
je 0x18246
addq $0x4, %r12
decl %r14d
jne 0x181cf
movq 0x70(%rsp), %rax
incq %rax
cmpq 0x60(%rsp), %rax
movq 0x20(%rsp), %rbx
movq 0x18(%rsp), %r14
movl 0x4(%rsp), %r15d
movq 0x10(%rsp), %rdi
movq 0x68(%rsp), %rcx
jne 0x17eb7
incq %rcx
cmpq 0x58(%rsp), %rcx
movl 0x40(%rsp), %eax
jne 0x17e97
movq %rdi, 0x38(%rsp)
jmp 0x1825a
leaq 0xa36a(%rip), %rax      # 0x225a0
movq %rax, 0x101cb(%rip)     # 0x28408
movq $0x0, 0x38(%rsp)
movq 0x20(%rsp), %rbx
movq 0x18(%rsp), %r14
movl 0x4(%rsp), %r15d
movq 0x10(%rsp), %rdi
cmpq $0x0, 0x38(%rsp)
jne 0x18269
callq 0x83f0
xorl %edi, %edi
movl 0x44(%rsp), %edx
movq 0x78(%rsp), %rax
movl 0xc(%rsp), %ecx
movl %ecx, (%rax)
movl %r15d, (%r14)
testl %edx, %edx
jne 0x18281
movl (%rbx), %edx
movl $0x4, %esi
movl %r15d, %r8d
callq 0x1ce9a
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq