// File: /workspace/github_cpp_makefile_star2_O3/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 $0x258, %rsp            # imm = 0x258
movq %rsi, %r15
movl %edi, %ebx
callq 0x73d0
movq %rax, %r14
cmpl $0x3, %ebx
je 0x27a5
cmpl $0x4, %ebx
jne 0x2c32
movq 0x8(%r15), %rbx
cmpb $0x2d, 0x1(%rbx)
jne 0x2c32
addq $0x8, %r15
jmp 0x27ac
leaq 0x58cc(%rip), %rbx      # 0x8078
movq 0x8(%r15), %rdi
callq 0x2160
movl %eax, 0x4(%rsp)
testl %eax, %eax
je 0x2c32
movq 0x10(%r15), %rdi
callq 0x2160
movl %eax, (%rsp)
testl %eax, %eax
je 0x2c32
leaq 0x917c(%rip), %rax      # 0xb958
leaq 0x210(%rsp), %r12
movq %rax, (%r12)
leaq 0x9059(%rip), %r15      # 0xb848
movq %r15, 0x8(%r12)
movl $0x3, %ebp
movl %ebp, 0x10(%r12)
movsd 0x580a(%rip), %xmm0     # 0x8010
movsd %xmm0, 0x14(%r12)
xorl %eax, %eax
movl %eax, 0x1c(%r12)
movq %r15, 0x28(%r12)
movl %ebp, 0x30(%r12)
movsd 0x57fa(%rip), %xmm0     # 0x8020
movsd %xmm0, 0x34(%r12)
movl $0x3f933333, 0x3c(%r12) # imm = 0x3F933333
leaq 0xb4(%rsp), %rcx
movq %r15, -0xc(%rcx)
movl %ebp, -0x4(%rcx)
movss 0x5803(%rip), %xmm0     # 0x8050
movlps %xmm0, (%rcx)
movl %eax, 0x8(%rcx)
leaq 0x178(%rsp), %rdi
movss 0x57f1(%rip), %xmm0     # 0x8054
movl $0x4, %esi
callq 0x4902
leaq 0x158(%rsp), %rax
movq %r15, (%rax)
movl %ebp, 0x8(%rax)
movsd 0x57ad(%rip), %xmm0     # 0x8030
movsd %xmm0, 0xc(%rax)
movl $0x3e4ccccd, 0x14(%rax) # imm = 0x3E4CCCCD
leaq 0xa8(%rsp), %rcx
leaq 0x110(%rsp), %r15
movq %rcx, (%r15)
movq %r12, 0x8(%r15)
movq %r14, 0x10(%r15)
movq %rax, 0x18(%r15)
movl $0xa, 0x20(%r15)
movq (%r14), %rax
movq %r14, %rdi
movq %r15, %rsi
callq *(%rax)
movq (%r14), %rax
movq %r14, %rdi
callq *0x30(%rax)
movq %rax, %r14
testq %rax, %rax
jne 0x28b6
leaq 0x597f(%rip), %rsi      # 0x8258
movq %rbx, %rdi
callq 0x2140
testl %eax, %eax
je 0x2923
leaq 0x578c(%rip), %rsi      # 0x8078
movq %rbx, %rdi
callq 0x2140
testl %eax, %eax
jne 0x2c5d
movl $0x28, %edi
callq 0x20f0
leaq 0x5953(%rip), %rsi      # 0x8260
movq %rax, 0x8(%rsp)
movq %rax, %rdi
movl 0x4(%rsp), %edx
movl (%rsp), %ecx
callq 0x66b0
jmp 0x2948
movl $0x28, %edi
callq 0x20f0
leaq 0x592c(%rip), %rsi      # 0x8260
movq %rax, 0x8(%rsp)
movq %rax, %rdi
movl 0x4(%rsp), %edx
movl (%rsp), %ecx
callq 0x68e0
cmpl $0x0, (%rsp)
jle 0x2c07
movl (%rsp), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x70(%rsp)
xorps %xmm0, %xmm0
cvtsi2sdl 0x4(%rsp), %xmm0
movsd %xmm0, 0x80(%rsp)
leaq 0x178(%rsp), %r14
leaq 0x20(%rsp), %r13
leaq 0x91a0(%rip), %r15      # 0xbb28
addq $0x10, %r15
leaq 0x138(%rsp), %rbp
movl %eax, %ebx
leal -0x1(%rbx), %r12d
cmpl $0x0, 0x4(%rsp)
jle 0x2beb
movl %r12d, 0x18(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %r12d, %xmm0
mulsd 0x56a6(%rip), %xmm0     # 0x8060
divsd 0x70(%rsp), %xmm0
addsd 0x56a0(%rip), %xmm0     # 0x8068
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x1c(%rsp)
movl (%rsp), %eax
movq %rbx, 0x78(%rsp)
subl %ebx, %eax
movl %eax, 0x14(%rsp)
xorl %r12d, %r12d
movq %rbp, %rbx
xorps %xmm0, %xmm0
cvtsi2sd %r12d, %xmm0
mulsd 0x566a(%rip), %xmm0     # 0x8060
divsd 0x80(%rsp), %xmm0
addsd 0x5661(%rip), %xmm0     # 0x8068
cvtsd2ss %xmm0, %xmm0
movss 0x1c(%rsp), %xmm1
movss %xmm1, 0x94(%rsp)
movss %xmm0, 0x98(%rsp)
movl $0x41200000, 0x9c(%rsp) # imm = 0x41200000
leaq 0x94(%rsp), %rcx
movl 0x8(%rcx), %eax
movl %eax, 0x28(%rsp)
movq (%rcx), %rax
movq %rax, 0x20(%rsp)
movl $0x3f800000, 0x2c(%rsp) # imm = 0x3F800000
xorl %ebp, %ebp
movq 0x178(%rsp), %rax
movq %r14, %rdi
movl %ebp, %esi
movq %r13, %rdx
callq *0x20(%rax)
movss %xmm0, 0x94(%rsp,%rbp,4)
incq %rbp
cmpq $0x3, %rbp
jne 0x2a4f
movq %r15, 0x20(%rsp)
leaq 0x8dc8(%rip), %rbp      # 0xb848
movq %rbp, 0x28(%rsp)
movslq 0xb0(%rsp), %rdx
movl %edx, 0x30(%rsp)
testq %rdx, %rdx
jle 0x2aac
shlq $0x2, %rdx
leaq 0x34(%rsp), %rdi
leaq 0xb4(%rsp), %rsi
callq 0x20a0
movq %rbp, 0x48(%rsp)
movl $0x3, 0x50(%rsp)
leaq 0x94(%rsp), %rdx
movl 0x8(%rdx), %eax
leaq 0x54(%rsp), %rcx
movl %eax, 0x8(%rcx)
movq (%rdx), %rax
movq %rax, (%rcx)
xorps %xmm0, %xmm0
movl $0xd, %eax
movss 0x20(%rsp,%rax,4), %xmm1
mulss %xmm1, %xmm1
addss %xmm1, %xmm0
incq %rax
cmpq $0x10, %rax
jne 0x2ada
ucomiss 0x5564(%rip), %xmm0     # 0x805c
jb 0x2b00
sqrtss %xmm0, %xmm0
jmp 0x2b05
callq 0x21c0
xorps %xmm1, %xmm1
cvtss2sd %xmm0, %xmm1
ucomisd 0x555c(%rip), %xmm1     # 0x8070
jbe 0x2c3e
movss 0x5536(%rip), %xmm1     # 0x8058
divss %xmm0, %xmm1
movq 0x48(%rsp), %rax
leaq 0x48(%rsp), %rdi
movaps %xmm1, %xmm0
callq *0x70(%rax)
movq %r15, 0xc8(%rsp)
movq %rbp, 0xd0(%rsp)
movslq 0x30(%rsp), %rdx
movl %edx, 0xd8(%rsp)
testq %rdx, %rdx
jle 0x2b6d
shlq $0x2, %rdx
leaq 0xdc(%rsp), %rdi
leaq 0x34(%rsp), %rsi
callq 0x20a0
movq %rbp, 0xf0(%rsp)
movslq 0x50(%rsp), %rdx
movl %edx, 0xf8(%rsp)
testq %rdx, %rdx
jle 0x2b9c
shlq $0x2, %rdx
leaq 0xfc(%rsp), %rdi
leaq 0x54(%rsp), %rsi
callq 0x20a0
movq %rbx, %rbp
movq %rbx, %rdi
leaq 0xc8(%rsp), %rsi
leaq 0x110(%rsp), %rdx
xorl %ecx, %ecx
callq 0x233c
movq 0x8(%rsp), %rdi
movq (%rdi), %rax
movl %r12d, %esi
movl 0x14(%rsp), %edx
movq %rbp, %rcx
callq *(%rax)
incl %r12d
cmpl 0x4(%rsp), %r12d
jne 0x29e3
movq 0x78(%rsp), %rbx
movl 0x18(%rsp), %r12d
movl 0x14(%rsp), %esi
jmp 0x2bf0
movl (%rsp), %esi
subl %ebx, %esi
movq 0x8(%rsp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
cmpl $0x1, %ebx
movl %r12d, %ebx
jg 0x2996
movq 0x8(%rsp), %rbx
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x20(%rax)
xorl %eax, %eax
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2200
movl $0x1, %eax
jmp 0x2c20
leaq 0x5596(%rip), %rdi      # 0x81db
leaq 0x545a(%rip), %rsi      # 0x80a6
leaq 0x5591(%rip), %rcx      # 0x81e4
movl $0xc9, %edx
callq 0x2080
leaq 0x568f(%rip), %rdi      # 0x82f3
leaq 0x5600(%rip), %rsi      # 0x826b
leaq 0x5603(%rip), %rcx      # 0x8275
movl $0x51, %edx
callq 0x2080
jmp 0x2c7e
movq %rax, %rbx
movl $0x28, %esi
movq 0x8(%rsp), %rdi
callq 0x2100
jmp 0x2c9b
jmp 0x2c98
jmp 0x2c98
jmp 0x2c98
movq %rax, %rbx
movq %rbx, %rdi
callq 0x21a0
nop