// File: /workspace/github_cpp_makefile_star2_O2/BartMassey[P]ancient-raytracer/render.cc
// Function: main
int main( int argc, char **argv ) {
  char *imgtype = (char *)"-ppm";
  int x, y;

  object *scene = generate();
  if( argc == 4 && argv[1][1] == '-' ) {
    imgtype = argv[1];
    argv++;
    argc--;
  }
  if( argc == 3 && (x = atoi( argv[1] )) && (y = atoi( argv[2] )) ) {
    render( scene, imgtype, x, y );
    // all done
    return 0;
  }
  fprintf( stderr, "usage: render [-oldppm|-ppm] x y\n" );
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
movq %rsi, %r15
movl %edi, %ebx
callq 0x5464
movq %rax, 0x10(%rsp)
cmpl $0x3, %ebx
je 0x24c2
cmpl $0x4, %ebx
jne 0x27a5
movq 0x8(%r15), %rbx
cmpb $0x2d, 0x1(%rbx)
jne 0x27a5
addq $0x8, %r15
jmp 0x24c9
leaq 0x3b9f(%rip), %rbx      # 0x6068
movq 0x8(%r15), %rdi
callq 0x2140
testl %eax, %eax
je 0x27a5
movl %eax, %r13d
movq 0x10(%r15), %rdi
callq 0x2140
movl %eax, 0xc(%rsp)
testl %eax, %eax
je 0x27a5
leaq 0x734f(%rip), %r14      # 0x9848
leaq 0xf8(%rsp), %rsi
movq %r14, (%rsi)
pushq $0x3
popq %rbp
movl %ebp, 0x8(%rsi)
movsd 0x3afe(%rip), %xmm0     # 0x6010
movsd %xmm0, 0xc(%rsi)
andl $0x0, 0x14(%rsi)
leaq 0xd8(%rsp), %rdx
movq %r14, (%rdx)
movl %ebp, 0x8(%rdx)
movsd 0x3aef(%rip), %xmm0     # 0x6020
movsd %xmm0, 0xc(%rdx)
movl $0x3f933333, 0x14(%rdx) # imm = 0x3F933333
leaq 0x1a8(%rsp), %r15
movq %r15, %rdi
callq 0x2f1c
leaq 0x50(%rsp), %r12
movq %r14, (%r12)
movl %ebp, 0x8(%r12)
movss 0x3aa5(%rip), %xmm0     # 0x6008
movlps %xmm0, 0xc(%r12)
andl $0x0, 0x14(%r12)
leaq 0x1f0(%rsp), %rdi
pushq $0x4
popq %rsi
movss 0x3a8a(%rip), %xmm0     # 0x600c
callq 0x3d3a
leaq 0xb8(%rsp), %r8
movq %r14, (%r8)
movl %ebp, 0x8(%r8)
movsd 0x3a92(%rip), %xmm0     # 0x6030
movsd %xmm0, 0xc(%r8)
movl $0x3e4ccccd, 0x14(%r8)  # imm = 0x3E4CCCCD
leaq 0x70(%rsp), %rdi
movq %r12, %rsi
movq %r15, %rdx
movq 0x10(%rsp), %rcx
callq 0x2f50
leaq 0x3c80(%rip), %rsi      # 0x6248
movq %rbx, %rdi
callq 0x2120
testl %eax, %eax
je 0x260e
leaq 0x3a8d(%rip), %rsi      # 0x6068
movq %rbx, %rdi
callq 0x2120
testl %eax, %eax
jne 0x27c6
pushq $0x28
popq %rdi
callq 0x20d0
movq %rax, %r14
leaq 0x3c53(%rip), %rsi      # 0x6250
movq %rax, %rdi
movl %r13d, %edx
movl 0xc(%rsp), %ecx
callq 0x4d74
jmp 0x262f
pushq $0x28
popq %rdi
callq 0x20d0
movq %rax, %r14
leaq 0x3c30(%rip), %rsi      # 0x6250
movq %rax, %rdi
movl %r13d, %edx
movl 0xc(%rsp), %ecx
callq 0x4fa4
movl 0xc(%rsp), %ecx
cvtsi2sd %ecx, %xmm0
movsd %xmm0, 0x20(%rsp)
cvtsi2sd %r13d, %xmm0
movsd %xmm0, 0x28(%rsp)
xorl %eax, %eax
testl %r13d, %r13d
cmovlel %eax, %r13d
movl %r13d, 0x10(%rsp)
leaq 0x30(%rsp), %r13
leaq 0x118(%rsp), %rbx
movl %ecx, %eax
testl %eax, %eax
jle 0x277f
leal -0x1(%rax), %ecx
movl %ecx, 0x18(%rsp)
cvtsi2sd %ecx, %xmm0
mulsd 0x39d0(%rip), %xmm0     # 0x6050
divsd 0x20(%rsp), %xmm0
addsd 0x39ca(%rip), %xmm0     # 0x6058
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x1c(%rsp)
movl 0xc(%rsp), %ebp
subl %eax, %ebp
xorl %r15d, %r15d
cmpl %r15d, 0x10(%rsp)
je 0x2766
cvtsi2sd %r15d, %xmm0
mulsd 0x3997(%rip), %xmm0     # 0x6050
divsd 0x28(%rsp), %xmm0
addsd 0x3991(%rip), %xmm0     # 0x6058
cvtsd2ss %xmm0, %xmm0
leaq 0x7176(%rip), %rax      # 0x9848
movq %rax, 0x30(%rsp)
movl $0x3, 0x38(%rsp)
movss 0x1c(%rsp), %xmm1
movss %xmm1, 0x3c(%rsp)
movss %xmm0, 0x40(%rsp)
movl $0x41200000, 0x44(%rsp) # imm = 0x41200000
movq %r13, %rdi
leaq 0x1f0(%rsp), %rsi
callq 0x2b76
leaq 0x160(%rsp), %r12
movq %r12, %rdi
leaq 0x50(%rsp), %rsi
movq %r13, %rdx
callq 0x2f96
movq %rbx, %r13
movq %rbx, %rdi
movq %r12, %rsi
callq 0x286e
leaq 0x98(%rsp), %r12
movq %r12, %rdi
movq %r13, %rsi
leaq 0x70(%rsp), %rdx
xorl %ecx, %ecx
callq 0x22cc
movq (%r14), %rax
movq %r14, %rdi
movl %r15d, %esi
movl %ebp, %edx
movq %r12, %rcx
callq *(%rax)
incl %r15d
leaq 0x30(%rsp), %r13
jmp 0x26a1
movq (%r14), %rax
movq %r14, %rdi
movl %ebp, %esi
callq *0x8(%rax)
leaq 0x30(%rsp), %r13
movl 0x18(%rsp), %eax
jmp 0x2665
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
movq (%r14), %rax
movq %r14, %rdi
callq *0x20(%rax)
xorl %eax, %eax
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x7834(%rip), %rax      # 0x9fe0
movq (%rax), %rcx
leaq 0x38b7(%rip), %rdi      # 0x606d
pushq $0x21
popq %rsi
pushq $0x1
popq %rdx
callq 0x21c0
pushq $0x1
popq %rax
jmp 0x2793
leaq 0x3b16(%rip), %rdi      # 0x62e3
leaq 0x3a87(%rip), %rsi      # 0x625b
leaq 0x3a8a(%rip), %rcx      # 0x6265
pushq $0x51
popq %rdx
callq 0x2070
jmp 0x27e5
movq %rax, %rbx
pushq $0x28
popq %rsi
movq %r14, %rdi
callq 0x20e0
jmp 0x2800
jmp 0x27fd
jmp 0x27fd
jmp 0x27fd
jmp 0x27fd
movq %rax, %rbx
movq %rbx, %rdi
callq 0x2180