// File: /workspace/github_c_makefile_star2_O1/archer1357[P]Offline-Raytracer/stb_image_write.c
// Function: outfile
static int outfile(char const *filename, int rgb_dir, int vdir, int x, int y, int comp, 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);
      fclose(f);
   }
   return f != NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movl %r9d, 0xc(%rsp)
testb %al, %al
je 0x412dbd
movaps %xmm0, 0x90(%rsp)
movaps %xmm1, 0xa0(%rsp)
movaps %xmm2, 0xb0(%rsp)
movaps %xmm3, 0xc0(%rsp)
movaps %xmm4, 0xd0(%rsp)
movaps %xmm5, 0xe0(%rsp)
movaps %xmm6, 0xf0(%rsp)
movaps %xmm7, 0x100(%rsp)
movl %r8d, %eax
movl %ecx, 0x30(%rsp)
orl %ecx, %eax
js 0x4130d8
movl %r8d, %r12d
leaq 0xc2570(%rip), %rsi     # 0x4d5346
callq 0x42e3b0
movq %rax, %r14
testq %rax, %rax
je 0x4130ce
movq 0x168(%rsp), %rbx
leaq 0x60(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x170(%rsp), %rax
movq %rax, 0x18(%rsp)
movabsq $0x3000000030, %rax     # imm = 0x3000000030
movq %rax, 0x10(%rsp)
movb (%rbx), %al
testb %al, %al
je 0x412f0e
incq %rbx
leaq 0x8(%rsp), %r15
movzbl %al, %eax
cmpl $0x31, %eax
jg 0x412e5c
cmpl $0x20, %eax
je 0x412f01
cmpl $0x31, %eax
jne 0x4130ec
movl 0x10(%rsp), %ecx
cmpq $0x28, %rcx
ja 0x412ebd
movq %rcx, %rax
addq 0x20(%rsp), %rax
addl $0x8, %ecx
movl %ecx, 0x10(%rsp)
jmp 0x412ecb
cmpl $0x32, %eax
je 0x412e85
cmpl $0x34, %eax
jne 0x4130ec
movl 0x10(%rsp), %ecx
cmpq $0x28, %rcx
ja 0x412ed8
movq %rcx, %rax
addq 0x20(%rsp), %rax
addl $0x8, %ecx
movl %ecx, 0x10(%rsp)
jmp 0x412ee6
movl 0x10(%rsp), %ecx
cmpq $0x28, %rcx
ja 0x412ea0
movq %rcx, %rax
addq 0x20(%rsp), %rax
addl $0x8, %ecx
movl %ecx, 0x10(%rsp)
jmp 0x412eae
movq 0x18(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x18(%rsp)
movzwl (%rax), %eax
movw %ax, 0x8(%rsp)
movl $0x2, %esi
jmp 0x412ef1
movq 0x18(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x18(%rsp)
movzbl (%rax), %edi
movq %r14, %rsi
callq 0x4324f0
jmp 0x412f01
movq 0x18(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x18(%rsp)
movl (%rax), %eax
movl %eax, 0x8(%rsp)
movl $0x4, %esi
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rcx
callq 0x42e700
movb (%rbx), %al
incq %rbx
testb %al, %al
jne 0x412e27
movl $0x0, 0x8(%rsp)
testl %r12d, %r12d
jle 0x4130c6
movslq 0xc(%rsp), %rbp
movl %r12d, %eax
movslq 0x30(%rsp), %rcx
movl %ecx, %edx
movq %rdx, 0x58(%rsp)
leaq -0x1(%rax), %rdx
movq %rbp, %rsi
movq %rcx, 0x48(%rsp)
imulq %rcx, %rsi
imulq %rsi, %rdx
addq 0x150(%rsp), %rdx
movq %rdx, 0x38(%rsp)
negq %rsi
movq %rsi, 0x50(%rsp)
leal -0x1(%rbp), %ecx
movl %ecx, 0x34(%rsp)
leaq 0xc520a(%rip), %r8      # 0x4d8174
movq %r14, %rbx
decq %rax
movq %rax, 0x40(%rsp)
cmpl $0x0, 0x30(%rsp)
jle 0x41308b
movq 0x40(%rsp), %r15
imulq 0x48(%rsp), %r15
movq 0x38(%rsp), %r14
xorl %r12d, %r12d
leaq (%r12,%r15), %r13
imulq %rbp, %r13
addq 0x150(%rsp), %r13
cmpl $0x2, 0x34(%rsp)
jb 0x412ff3
cmpl $0x3, 0xc(%rsp)
je 0x412fc2
cmpl $0x4, 0xc(%rsp)
jne 0x413007
cmpl $0x0, 0x158(%rsp)
je 0x413039
movb 0x2(%r13), %al
movb (%r13), %cl
movb 0x1(%r13), %dl
movb %al, 0x2(%rsp)
movb %dl, 0x3(%rsp)
movb %cl, 0x4(%rsp)
movl $0x3, %esi
movl $0x1, %edx
leaq 0x2(%rsp), %rdi
movq %rbx, %rcx
callq 0x42e700
jmp 0x413000
movsbl (%r13), %edi
movq %rbx, %rsi
callq 0x4324f0
leaq 0xc516d(%rip), %r8      # 0x4d8174
cmpl $0x0, 0x158(%rsp)
jle 0x413026
movsbl -0x1(%r13,%rbp), %edi
movq %rbx, %rsi
callq 0x4324f0
leaq 0xc514e(%rip), %r8      # 0x4d8174
incq %r12
addq %rbp, %r14
cmpq 0x58(%rsp), %r12
jne 0x412f93
jmp 0x41308b
movzbl 0x3(%r13), %eax
xorl %ecx, %ecx
movzbl (%rcx,%r8), %edx
movzbl (%r14,%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, 0x5(%rsp,%rcx)
incq %rcx
cmpq $0x3, %rcx
jne 0x413040
movb 0x7(%rsp), %al
movb 0x5(%rsp), %cl
movb 0x6(%rsp), %dl
jmp 0x412fce
movl $0x1, %edx
leaq 0x8(%rsp), %rdi
movl 0x160(%rsp), %esi
movq %rbx, %r14
movq %rbx, %rcx
callq 0x42e700
leaq 0xc50c6(%rip), %r8      # 0x4d8174
movq 0x50(%rsp), %rax
addq %rax, 0x38(%rsp)
movq 0x40(%rsp), %rax
testq %rax, %rax
jne 0x412f6a
movq %r14, %rdi
callq 0x42dc80
xorl %eax, %eax
testq %r14, %r14
setne %al
jmp 0x4130da
xorl %eax, %eax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xd34f0(%rip), %rdi     # 0x4e65e3
leaq 0xc50bf(%rip), %rsi     # 0x4d81b9
leaq 0xc5173(%rip), %rcx     # 0x4d8274
movl $0x21, %edx
callq 0x41fae0