// File: /workspace/github_c_makefile_star2_O1/vlenhart[P]q3bsp/./stb_image_write.h
// Function: outfile(char const*, int, int, int, int, int, int, void*, int, int, char const*, ...)
static int outfile(char const *filename, int rgb_dir, int vdir, int x, int y, int comp, int expand_mono, void *data, int alpha, int pad, const char *fmt, ...)
{
   FILE *f;
   if (y < 0 || x < 0) return 0;
   f = fopen(filename, "wb");
   if (f) {
      va_list v;
      va_start(v, fmt);
      writefv(f, fmt, v);
      va_end(v);
      write_pixels(f,rgb_dir,vdir,x,y,comp,data,alpha,pad,expand_mono);
      fclose(f);
   }
   return f != NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
testb %al, %al
je 0x439d
movaps %xmm0, -0x120(%rbp)
movaps %xmm1, -0x110(%rbp)
movaps %xmm2, -0x100(%rbp)
movaps %xmm3, -0xf0(%rbp)
movaps %xmm4, -0xe0(%rbp)
movaps %xmm5, -0xd0(%rbp)
movaps %xmm6, -0xc0(%rbp)
movaps %xmm7, -0xb0(%rbp)
movl %r8d, %eax
movl %ecx, -0x64(%rbp)
orl %ecx, %eax
js 0x46ab
movl %r9d, %r15d
movl %r8d, %r12d
leaq 0xdf0c(%rip), %rsi      # 0x122c4
callq 0x22a0
movq %rax, %r14
testq %rax, %rax
je 0x46a1
movq 0x30(%rbp), %rbx
leaq -0x150(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq 0x38(%rbp), %rax
movq %rax, -0x58(%rbp)
movabsq $0x3000000030, %rax     # imm = 0x3000000030
movq %rax, -0x60(%rbp)
movb (%rbx), %al
testb %al, %al
je 0x44d5
incq %rbx
leaq -0x34(%rbp), %r13
movzbl %al, %eax
cmpl $0x31, %eax
jg 0x4431
cmpl $0x20, %eax
je 0x44c8
cmpl $0x31, %eax
jne 0x46bf
movl -0x60(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x4489
movq %rcx, %rax
addq -0x50(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x60(%rbp)
jmp 0x4495
cmpl $0x32, %eax
je 0x4457
cmpl $0x34, %eax
jne 0x46bf
movl -0x60(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x44a2
movq %rcx, %rax
addq -0x50(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x60(%rbp)
jmp 0x44ae
movl -0x60(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x446f
movq %rcx, %rax
addq -0x50(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x60(%rbp)
jmp 0x447b
movq -0x58(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x58(%rbp)
movzwl (%rax), %eax
movw %ax, -0x34(%rbp)
movl $0x2, %esi
jmp 0x44b8
movq -0x58(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x58(%rbp)
movzbl (%rax), %edi
movq %r14, %rsi
callq 0x22e0
jmp 0x44c8
movq -0x58(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x58(%rbp)
movl (%rax), %eax
movl %eax, -0x34(%rbp)
movl $0x4, %esi
movl $0x1, %edx
movq %r13, %rdi
movq %r14, %rcx
callq 0x2410
movb (%rbx), %al
incq %rbx
testb %al, %al
jne 0x43ff
movl $0x0, -0x34(%rbp)
testl %r12d, %r12d
jle 0x4699
movslq %r15d, %rbx
movl %r12d, %eax
movslq -0x64(%rbp), %rcx
movl %ecx, %edx
movq %rdx, -0x90(%rbp)
leaq -0x1(%rax), %rdx
movq %rbx, %rsi
movq %rcx, -0x80(%rbp)
imulq %rcx, %rsi
imulq %rsi, %rdx
addq 0x18(%rbp), %rdx
movq %rdx, -0x70(%rbp)
negq %rsi
movq %rsi, -0x88(%rbp)
leal -0x1(%rbx), %r13d
leaq 0xdcac(%rip), %r8       # 0x121d4
movq %r14, -0x40(%rbp)
decq %rax
movq %rax, -0x78(%rbp)
cmpl $0x0, -0x64(%rbp)
jle 0x4662
movq -0x78(%rbp), %rax
imulq -0x80(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x70(%rbp), %r12
xorl %r15d, %r15d
movq -0x98(%rbp), %rax
leaq (%r15,%rax), %r14
imulq %rbx, %r14
addq 0x18(%rbp), %r14
cmpl $0x3, %r13d
ja 0x4633
leaq 0xdafc(%rip), %rcx      # 0x12074
movslq (%rcx,%r13,4), %rax
addq %rcx, %rax
jmpq *%rax
movsbl (%r14), %edi
jmp 0x4623
cmpl $0x0, 0x20(%rbp)
je 0x45d1
movb 0x2(%r14), %al
movb (%r14), %cl
movb 0x1(%r14), %dl
movb %al, -0x2b(%rbp)
movb %dl, -0x2a(%rbp)
movb %cl, -0x29(%rbp)
jmp 0x45b8
movb (%r14), %al
cmpl $0x0, 0x10(%rbp)
je 0x4620
movb %al, -0x2b(%rbp)
movb %al, -0x2a(%rbp)
movb %al, -0x29(%rbp)
movl $0x3, %esi
movl $0x1, %edx
leaq -0x2b(%rbp), %rdi
movq -0x40(%rbp), %rcx
callq 0x2410
jmp 0x462c
movzbl 0x3(%r14), %eax
xorl %ecx, %ecx
movzbl (%rcx,%r8), %edx
movzbl (%r12,%rcx), %esi
subl %edx, %esi
imull %eax, %esi
movslq %esi, %rsi
imulq $-0x7f7f7f7f, %rsi, %rdi # imm = 0x80808081
shrq $0x20, %rdi
addl %edi, %esi
movl %esi, %edi
shrl $0x1f, %edi
shrl $0x7, %esi
addl %edi, %esi
addb %dl, %sil
movb %sil, -0x2e(%rbp,%rcx)
incq %rcx
cmpq $0x3, %rcx
jne 0x45d8
movb -0x2c(%rbp), %al
movb -0x2e(%rbp), %cl
movb -0x2d(%rbp), %dl
jmp 0x459b
movsbl %al, %edi
movq -0x40(%rbp), %rsi
callq 0x22e0
leaq 0xdba1(%rip), %r8       # 0x121d4
cmpl $0x0, 0x20(%rbp)
jle 0x464f
movsbl -0x1(%r14,%rbx), %edi
movq -0x40(%rbp), %rsi
callq 0x22e0
leaq 0xdb85(%rip), %r8       # 0x121d4
incq %r15
addq %rbx, %r12
cmpq -0x90(%rbp), %r15
jne 0x4554
movl $0x1, %edx
leaq -0x34(%rbp), %rdi
movl 0x28(%rbp), %esi
movq -0x40(%rbp), %r14
movq %r14, %rcx
callq 0x2410
leaq 0xdb53(%rip), %r8       # 0x121d4
movq -0x88(%rbp), %rax
addq %rax, -0x70(%rbp)
movq -0x78(%rbp), %rax
testq %rax, %rax
jne 0x452c
movq %r14, %rdi
callq 0x2210
xorl %eax, %eax
testq %r14, %r14
setne %al
jmp 0x46ad
xorl %eax, %eax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xe9ad(%rip), %rdi      # 0x13073
leaq 0xdb64(%rip), %rsi      # 0x12231
leaq 0xdf82(%rip), %rcx      # 0x12656
movl $0x92, %edx
callq 0x2180