// File: /workspace/github_c_makefile_star2_O3/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 0x413fe5
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 0x414300
movl %r8d, %r12d
leaq 0xc2314(%rip), %rsi     # 0x4d6312
callq 0x42f2a0
movq %rax, %r14
testq %rax, %rax
je 0x4142f6
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 0x414136
incq %rbx
leaq 0x8(%rsp), %r15
movzbl %al, %eax
cmpl $0x31, %eax
jg 0x414084
cmpl $0x20, %eax
je 0x414129
cmpl $0x31, %eax
jne 0x414314
movl 0x10(%rsp), %ecx
cmpq $0x28, %rcx
ja 0x4140e5
movq %rcx, %rax
addq 0x20(%rsp), %rax
addl $0x8, %ecx
movl %ecx, 0x10(%rsp)
jmp 0x4140f3
cmpl $0x32, %eax
je 0x4140ad
cmpl $0x34, %eax
jne 0x414314
movl 0x10(%rsp), %ecx
cmpq $0x28, %rcx
ja 0x414100
movq %rcx, %rax
addq 0x20(%rsp), %rax
addl $0x8, %ecx
movl %ecx, 0x10(%rsp)
jmp 0x41410e
movl 0x10(%rsp), %ecx
cmpq $0x28, %rcx
ja 0x4140c8
movq %rcx, %rax
addq 0x20(%rsp), %rax
addl $0x8, %ecx
movl %ecx, 0x10(%rsp)
jmp 0x4140d6
movq 0x18(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x18(%rsp)
movzwl (%rax), %eax
movw %ax, 0x8(%rsp)
movl $0x2, %esi
jmp 0x414119
movq 0x18(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x18(%rsp)
movzbl (%rax), %edi
movq %r14, %rsi
callq 0x4333e0
jmp 0x414129
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 0x42f5f0
movb (%rbx), %al
incq %rbx
testb %al, %al
jne 0x41404f
movl $0x0, 0x8(%rsp)
testl %r12d, %r12d
jle 0x4142ee
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 0xc5152(%rip), %r8      # 0x4d92e4
movq %r14, %rbx
decq %rax
movq %rax, 0x40(%rsp)
cmpl $0x0, 0x30(%rsp)
jle 0x4142b3
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 0x41421b
cmpl $0x3, 0xc(%rsp)
je 0x4141ea
cmpl $0x4, 0xc(%rsp)
jne 0x41422f
cmpl $0x0, 0x158(%rsp)
je 0x414261
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 0x42f5f0
jmp 0x414228
movsbl (%r13), %edi
movq %rbx, %rsi
callq 0x4333e0
leaq 0xc50b5(%rip), %r8      # 0x4d92e4
cmpl $0x0, 0x158(%rsp)
jle 0x41424e
movsbl -0x1(%r13,%rbp), %edi
movq %rbx, %rsi
callq 0x4333e0
leaq 0xc5096(%rip), %r8      # 0x4d92e4
incq %r12
addq %rbp, %r14
cmpq 0x58(%rsp), %r12
jne 0x4141bb
jmp 0x4142b3
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 0x414268
movb 0x7(%rsp), %al
movb 0x5(%rsp), %cl
movb 0x6(%rsp), %dl
jmp 0x4141f6
movl $0x1, %edx
leaq 0x8(%rsp), %rdi
movl 0x160(%rsp), %esi
movq %rbx, %r14
movq %rbx, %rcx
callq 0x42f5f0
leaq 0xc500e(%rip), %r8      # 0x4d92e4
movq 0x50(%rsp), %rax
addq %rax, 0x38(%rsp)
movq 0x40(%rsp), %rax
testq %rax, %rax
jne 0x414192
movq %r14, %rdi
callq 0x42eb70
xorl %eax, %eax
testq %r14, %r14
setne %al
jmp 0x414302
xorl %eax, %eax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xd34a8(%rip), %rdi     # 0x4e77c3
leaq 0xc5007(%rip), %rsi     # 0x4d9329
leaq 0xc50bb(%rip), %rcx     # 0x4d93e4
movl $0x21, %edx
callq 0x4209d0