// File: /workspace/github_c_makefile_star2_O2/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 0x410a00
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
orl %ecx, %eax
js 0x410cb6
movl %r8d, %ebp
movl %ecx, %ebx
leaq 0xc18fb(%rip), %rsi     # 0x4d2312
callq 0x42bb40
movq %rax, %r14
testq %rax, %rax
je 0x410cac
movq 0x168(%rsp), %r15
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)
leaq 0x8(%rsp), %r12
pushq $0x1
popq %r13
movzbl (%r15), %eax
testl %eax, %eax
je 0x410b3c
incq %r15
cmpl $0x20, %eax
je 0x410a5f
cmpl $0x34, %eax
je 0x410abc
cmpl $0x32, %eax
je 0x410aa1
cmpl $0x31, %eax
jne 0x410cca
movl 0x10(%rsp), %ecx
cmpq $0x28, %rcx
ja 0x410af4
movq %rcx, %rax
addq 0x20(%rsp), %rax
addl $0x8, %ecx
movl %ecx, 0x10(%rsp)
jmp 0x410b02
movl 0x10(%rsp), %ecx
cmpq $0x28, %rcx
ja 0x410ad7
movq %rcx, %rax
addq 0x20(%rsp), %rax
addl $0x8, %ecx
movl %ecx, 0x10(%rsp)
jmp 0x410ae5
movl 0x10(%rsp), %ecx
cmpq $0x28, %rcx
ja 0x410b12
movq %rcx, %rax
addq 0x20(%rsp), %rax
addl $0x8, %ecx
movl %ecx, 0x10(%rsp)
jmp 0x410b20
movq 0x18(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x18(%rsp)
movzwl (%rax), %eax
movw %ax, 0x8(%rsp)
movq %r12, %rdi
pushq $0x2
jmp 0x410b2b
movq 0x18(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x18(%rsp)
movzbl (%rax), %edi
movq %r14, %rsi
callq 0x42fc80
jmp 0x410a5f
movq 0x18(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x18(%rsp)
movl (%rax), %eax
movl %eax, 0x8(%rsp)
movq %r12, %rdi
pushq $0x4
popq %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x42be90
jmp 0x410a5f
andl $0x0, 0x8(%rsp)
testl %ebp, %ebp
jle 0x410ca4
movslq 0xc(%rsp), %r13
movl 0x160(%rsp), %eax
movq %rax, 0x40(%rsp)
xorl %eax, %eax
testl %ebx, %ebx
cmovgl %ebx, %eax
movq %rax, 0x58(%rsp)
movl %ebp, %eax
movslq %ebx, %rcx
leaq -0x1(%rax), %r12
movq %r13, %rdx
movq %rcx, 0x38(%rsp)
imulq %rcx, %rdx
imulq %rdx, %r12
addq 0x150(%rsp), %r12
negq %rdx
movq %rdx, 0x30(%rsp)
leal -0x1(%r13), %ecx
movl %ecx, 0x2c(%rsp)
subq $0x1, %rax
jb 0x410ca4
movq %rax, 0x50(%rsp)
movq %rax, %rbx
imulq 0x38(%rsp), %rbx
movq %r12, 0x48(%rsp)
xorl %r15d, %r15d
cmpq 0x58(%rsp), %r15
je 0x410c7b
leaq (%r15,%rbx), %rbp
imulq %r13, %rbp
addq 0x150(%rsp), %rbp
cmpl $0x2, 0x2c(%rsp)
jb 0x410c07
cmpl $0x3, 0xc(%rsp)
je 0x410bf1
cmpl $0x4, 0xc(%rsp)
jne 0x410c13
cmpl $0x0, 0x158(%rsp)
je 0x410c33
movzbl 0x2(%rbp), %esi
movzbl 0x1(%rbp), %edx
movzbl (%rbp), %ecx
movq %r14, %rdi
callq 0x411cab
jmp 0x410c13
movsbl (%rbp), %edi
movq %r14, %rsi
callq 0x42fc80
cmpl $0x0, 0x158(%rsp)
jle 0x410c2b
movsbl -0x1(%rbp,%r13), %edi
movq %r14, %rsi
callq 0x42fc80
incq %r15
addq %r13, %r12
jmp 0x410bb7
movzbl 0x3(%rbp), %ecx
xorl %esi, %esi
cmpq $0x3, %rsi
je 0x410c6a
leaq 0xc450e(%rip), %rax     # 0x4d5154
movzbl (%rsi,%rax), %edi
movzbl (%r12,%rsi), %eax
subl %edi, %eax
imull %ecx, %eax
cltd
movl $0xff, %r8d
idivl %r8d
addb %dil, %al
movb %al, 0x5(%rsp,%rsi)
incq %rsi
jmp 0x410c39
movzbl 0x7(%rsp), %esi
movzbl 0x6(%rsp), %edx
movzbl 0x5(%rsp), %ecx
jmp 0x410bfd
leaq 0x8(%rsp), %rdi
movq 0x40(%rsp), %rsi
pushq $0x1
popq %rdx
movq %r14, %rcx
callq 0x42be90
movq 0x48(%rsp), %r12
addq 0x30(%rsp), %r12
movq 0x50(%rsp), %rax
jmp 0x410b97
movq %r14, %rdi
callq 0x42b410
xorl %eax, %eax
testq %r14, %r14
setne %al
jmp 0x410cb8
xorl %eax, %eax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xd2952(%rip), %rdi     # 0x4e3623
leaq 0xc44c1(%rip), %rsi     # 0x4d5199
leaq 0xc4575(%rip), %rcx     # 0x4d5254
pushq $0x21
popq %rdx
callq 0x41d270