// File: /workspace/github_cpp_makefile_star2_O2/tomfunkhouser[P]gaps/apps/prpview/prpview.cpp
// Function: main
int main(int argc, char **argv)
{
  // Initialize gaps
  if (!R3InitGraphics()) exit(-1);
  
  // Parse program arguments
  if (!ParseArgs(argc, argv)) exit(-1);

  // Initialize GLUT
  GLUTInit(&argc, argv);

  // Read mesh
  mesh = ReadMesh(mesh_name);
  if (!mesh) exit(-1);

  // Read points
  if (points_name) {
    points = ReadPoints(mesh, points_name);
    if (!points) exit(-1);
  }

  // Read properties
  properties = ReadProperties(mesh, properties_name);
  if (!properties) exit(-1);

  // Create viewer
  viewer = CreateBirdsEyeViewer(mesh);
  if (!viewer) exit(-1);

  // Run GLUT interface
  GLUTMainLoop();

  // Return success 
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rsi, %rbx
movl %edi, %ebp
movl %edi, 0x14(%rsp)
callq 0x26aa8
testl %eax, %eax
je 0x26940
movl %ebp, %edi
movq %rbx, %rsi
callq 0x25dad
testl %eax, %eax
je 0x26940
leaq 0x14(%rsp), %rdi
movq %rbx, %rsi
callq 0x25bb2
movq 0x1137e0(%rip), %rbx    # 0x139a18
leaq 0x50(%rsp), %r14
movq %r14, %rdi
callq 0x7fad6
movq %r14, %rdi
callq 0x26a28
movl $0x138, %edi            # imm = 0x138
callq 0x218c0
movq %rax, %r15
movq %rax, %rdi
callq 0x4e888
movq (%r15), %rax
movq %r15, %rdi
movq %rbx, %rsi
callq *0x180(%rax)
testl %eax, %eax
je 0x268ca
cmpb $0x1, 0x113778(%rip)    # 0x1399f8
jne 0x262f0
leaq 0xa305c(%rip), %rdi     # 0xc92e5
movq %rbx, %rsi
xorl %eax, %eax
callq 0x21080
leaq 0x50(%rsp), %rdi
callq 0x7fb10
leaq 0xa3058(%rip), %rdi     # 0xc92fc
movb $0x1, %al
callq 0x21080
movl 0x34(%r15), %esi
leaq 0xa305d(%rip), %rdi     # 0xc9313
xorl %eax, %eax
callq 0x21080
movl 0x24(%r15), %esi
leaq 0xa305b(%rip), %rdi     # 0xc9323
xorl %eax, %eax
callq 0x21080
movl 0x14(%r15), %esi
leaq 0xa3059(%rip), %rdi     # 0xc9333
xorl %eax, %eax
callq 0x21080
movq 0x10dc58(%rip), %rax    # 0x133f40
movq (%rax), %rdi
callq 0x21a80
movq %r15, 0x113671(%rip)    # 0x139968
movq 0x113702(%rip), %r14    # 0x139a00
testq %r14, %r14
je 0x266e8
leaq 0xe0(%rsp), %rbx
movq %rbx, %rdi
callq 0x7fad6
movq %rbx, %rdi
callq 0x26a28
pushq $0x10
popq %rdi
callq 0x218c0
movq %rax, (%rsp)
movq %rax, %rdi
callq 0x8001e
pushq $0x2e
popq %rsi
movq %r14, %rdi
callq 0x219b0
testq %rax, %rax
je 0x268fa
movq %rax, %rbx
leaq 0xa3020(%rip), %rsi     # 0xc9371
movq %rax, %rdi
callq 0x21d10
testl %eax, %eax
je 0x2645f
leaq 0xa3031(%rip), %rsi     # 0xc9399
movq %rbx, %rdi
callq 0x21d10
testl %eax, %eax
je 0x2650a
leaq 0xa301f(%rip), %rsi     # 0xc939e
movq %rbx, %rdi
callq 0x21d10
testl %eax, %eax
je 0x265c1
leaq 0xa300d(%rip), %rsi     # 0xc93a3
movq %rbx, %rdi
callq 0x21d10
testl %eax, %eax
jne 0x26927
leaq 0xa9f46(%rip), %rsi     # 0xd02f3
movq %r14, 0x8(%rsp)
movq %r14, %rdi
callq 0x21a90
testq %rax, %rax
je 0x2690d
movq %rax, %r12
leaq 0xa9b9d(%rip), %r13     # 0xcff6a
leaq 0x50(%rsp), %rbp
movq %r12, %rdi
movq %r13, %rsi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x22190
cmpl $0x1, %eax
jne 0x264f8
movslq 0x50(%rsp), %rax
testq %rax, %rax
js 0x263d2
cmpl 0x14(%r15), %eax
jge 0x263d2
movq 0x8(%r15), %rcx
movq (%rcx,%rax,8), %r14
pushq $0x30
popq %rdi
callq 0x218c0
movq %rax, %rbx
xorpd %xmm0, %xmm0
movapd %xmm0, (%rax)
movapd %xmm0, 0x10(%rax)
movapd %xmm0, 0x20(%rax)
movq %rax, %rdi
callq 0x26a8a
leaq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x6f9b6
movq %r15, %rdi
movq %r14, %rsi
callq 0x269de
movq %rbx, %rdi
addq $0x18, %rdi
movq %rax, %rsi
callq 0x703fc
movq (%rsp), %rdi
movq %rbx, %rsi
callq 0x26aa0
jmp 0x263d2
leaq 0xa2f10(%rip), %rsi     # 0xc9376
movq %r14, 0x8(%rsp)
movq %r14, %rdi
callq 0x21a90
testq %rax, %rax
je 0x2690d
movq %rax, %rbx
leaq 0x50(%rsp), %r15
pushq $0x4
popq %r12
pushq $0x6
popq %r13
pushq $0x30
popq %rbp
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x21e40
cmpq $0x6, %rax
jne 0x264f3
movq %rbp, %rdi
callq 0x218c0
movq %rax, %r14
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movaps %xmm0, 0x20(%rax)
movq %rax, %rdi
callq 0x26a8a
cvtps2pd 0x50(%rsp), %xmm0
movups %xmm0, (%r14)
cvtps2pd 0x58(%rsp), %xmm0
movups %xmm0, 0x10(%r14)
cvtps2pd 0x60(%rsp), %xmm0
movupd %xmm0, 0x20(%r14)
movq (%rsp), %rdi
movq %r14, %rsi
callq 0x26aa0
jmp 0x2648f
movq %rbx, %rdi
jmp 0x264fb
movq %r12, %rdi
callq 0x218b0
movq 0x8(%rsp), %r14
jmp 0x2667d
leaq 0xa9de2(%rip), %rsi     # 0xd02f3
movq %r14, %rdi
callq 0x21a90
testq %rax, %rax
je 0x2691b
movq %rax, %rbx
leaq 0x18(%rsp), %r13
leaq 0x30(%rsp), %rbp
pushq $0x30
popq %r15
movq %rbx, %rdi
leaq 0xa5397(%rip), %rsi     # 0xcb8d4
leaq 0x50(%rsp), %rdx
movq %r13, %rcx
movq %rbp, %r8
xorl %eax, %eax
callq 0x22190
cmpl $0x3, %eax
jne 0x26675
movq %r15, %rdi
callq 0x218c0
movq %rax, %r12
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movaps %xmm0, 0x20(%rax)
movq %rax, %rdi
callq 0x26a8a
movsd 0x50(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
movsd 0x30(%rsp), %xmm2
movsd %xmm0, (%r12)
movsd %xmm1, 0x8(%r12)
movsd %xmm2, 0x10(%r12)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x18(%r12)
andq $0x0, 0x28(%r12)
movq (%rsp), %rdi
movq %r12, %rsi
callq 0x26aa0
jmp 0x26533
leaq 0xa9d2b(%rip), %rsi     # 0xd02f3
movq %r14, %rdi
callq 0x21a90
testq %rax, %rax
je 0x2691b
movq %rax, %rbx
leaq 0x18(%rsp), %rbp
leaq 0x30(%rsp), %r15
pushq $0x30
popq %r12
movq %rbx, %rdi
leaq 0xa52de(%rip), %rsi     # 0xcb8d2
leaq 0x4c(%rsp), %rdx
leaq 0x50(%rsp), %rcx
movq %rbp, %r8
movq %r15, %r9
xorl %eax, %eax
callq 0x22190
cmpl $0x4, %eax
jne 0x26675
movq %r12, %rdi
callq 0x218c0
movq %rax, %r13
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movaps %xmm0, 0x20(%rax)
movq %rax, %rdi
callq 0x26a8a
movsd 0x50(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
movsd 0x30(%rsp), %xmm2
movsd %xmm0, (%r13)
movsd %xmm1, 0x8(%r13)
movsd %xmm2, 0x10(%r13)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x18(%r13)
andq $0x0, 0x28(%r13)
movq (%rsp), %rdi
movq %r13, %rsi
callq 0x26aa0
jmp 0x265ea
movq %rbx, %rdi
callq 0x218b0
cmpb $0x1, 0x113374(%rip)    # 0x1399f8
jne 0x266d6
leaq 0xa2d42(%rip), %rdi     # 0xc93cf
movq %r14, %rsi
xorl %eax, %eax
callq 0x21080
leaq 0xe0(%rsp), %rdi
callq 0x7fb10
leaq 0xa2c51(%rip), %rdi     # 0xc92fc
movb $0x1, %al
callq 0x21080
movq (%rsp), %rax
movl 0xc(%rax), %esi
leaq 0xa2d28(%rip), %rdi     # 0xc93e8
xorl %eax, %eax
callq 0x21080
movq 0x10d872(%rip), %rax    # 0x133f40
movq (%rax), %rdi
callq 0x21a80
movq (%rsp), %rax
movq %rax, 0x113297(%rip)    # 0x139978
movq 0x113280(%rip), %r15    # 0x139968
movq 0x113331(%rip), %rbx    # 0x139a20
leaq 0x50(%rsp), %r14
movq %r14, %rdi
callq 0x7fad6
movq %r14, %rdi
callq 0x26a28
pushq $0x18
popq %rdi
callq 0x218c0
movq %rax, %r14
movq %rax, %rdi
movq %r15, %rsi
callq 0x41298
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4151a
testl %eax, %eax
je 0x268dd
cmpb $0x1, 0x1132c4(%rip)    # 0x1399f8
jne 0x26794
leaq 0xa2cbc(%rip), %rdi     # 0xc93f9
movq %rbx, %rsi
xorl %eax, %eax
callq 0x21080
leaq 0x50(%rsp), %rdi
callq 0x7fb10
leaq 0xa2ba4(%rip), %rdi     # 0xc92fc
movb $0x1, %al
callq 0x21080
movl 0x14(%r14), %esi
leaq 0xa2cac(%rip), %rdi     # 0xc9416
xorl %eax, %eax
callq 0x21080
movq (%r14), %rax
movl 0x14(%rax), %esi
leaq 0xa2bb5(%rip), %rdi     # 0xc9333
xorl %eax, %eax
callq 0x21080
movq 0x10d7b4(%rip), %rax    # 0x133f40
movq (%rax), %rdi
callq 0x21a80
movq %r14, 0x113215(%rip)    # 0x1399b0
movq 0x1131c6(%rip), %rbx    # 0x139968
leaq 0xf8(%rbx), %rsi
leaq 0xe0(%rsp), %r14
movq %r14, %rdi
callq 0x67b3a
movq %r14, %rdi
callq 0x269fe
movsd %xmm0, (%rsp)
cmpb $0x0, 0x113243(%rip)    # 0x139a10
jne 0x2681f
leaq 0x18(%rsp), %rdi
movq %rbx, %rsi
callq 0x4edce
movsd 0xa28ac(%rip), %xmm0    # 0xc9090
mulsd (%rsp), %xmm0
leaq 0x1130c0(%rip), %rsi    # 0x1398b0
leaq 0x30(%rsp), %rdi
callq 0x70582
leaq 0x50(%rsp), %rdi
leaq 0x18(%rsp), %rsi
leaq 0x30(%rsp), %rdx
callq 0x6fe1d
leaq 0x1130cb(%rip), %rdi    # 0x1398e0
leaq 0x50(%rsp), %rsi
callq 0x6f9b6
movsd 0xa2821(%rip), %xmm2    # 0xc9048
movsd (%rsp), %xmm3
mulsd %xmm3, %xmm2
mulsd 0xa2860(%rip), %xmm3    # 0xc9098
leaq 0x1130a1(%rip), %rsi    # 0x1398e0
leaq 0x11306a(%rip), %rdx    # 0x1398b0
leaq 0x11307b(%rip), %rcx    # 0x1398c8
leaq 0x50(%rsp), %rdi
movsd 0xa281e(%rip), %xmm0    # 0xc9078
movapd %xmm0, %xmm1
callq 0x283e6
movl 0x10e167(%rip), %ecx    # 0x1349d0
movl 0x10e15c(%rip), %r8d    # 0x1349cc
leaq 0x18(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x290c0
movl $0xa8, %edi
callq 0x218c0
movq %rax, %rbx
leaq 0x50(%rsp), %rsi
leaq 0x18(%rsp), %rdx
movq %rax, %rdi
callq 0x26b6a
leaq 0xe0(%rsp), %rdi
callq 0x687f2
movq %rbx, 0x1130a7(%rip)    # 0x139958
callq 0x25d3c
xorl %eax, %eax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%r15), %rax
movq %r15, %rdi
callq *0x8(%rax)
andq $0x0, 0x11308d(%rip)    # 0x139968
jmp 0x26940
movq %r14, %rdi
callq 0x4133a
pushq $0x18
popq %rsi
movq %r14, %rdi
callq 0x218e0
andq $0x0, 0x1130b8(%rip)    # 0x1399b0
jmp 0x26940
leaq 0xa2a45(%rip), %rdi     # 0xc9346
movq %r14, %rsi
xorl %eax, %eax
callq 0x21080
jmp 0x26938
leaq 0xa2a65(%rip), %rdi     # 0xc9379
movq 0x8(%rsp), %rsi
jmp 0x26931
leaq 0xa2a57(%rip), %rdi     # 0xc9379
movq %r14, %rsi
jmp 0x26931
leaq 0xa2a7a(%rip), %rdi     # 0xc93a8
movq %rbx, %rsi
xorl %eax, %eax
callq 0x82696
andq $0x0, 0x113038(%rip)    # 0x139978
pushq $-0x1
popq %rdi
callq 0x21ae0
jmp 0x2698d
movq %rax, %rbp
pushq $0x10
popq %rsi
movq (%rsp), %rdi
jmp 0x269be
movq %rax, %rbp
movl $0xa8, %esi
movq %rbx, %rdi
callq 0x218e0
jmp 0x26990
jmp 0x2698d
jmp 0x2698d
movq %rax, %rbp
pushq $0x18
jmp 0x269ba
movq %rax, %rbp
movl $0x138, %esi            # imm = 0x138
movq %r15, %rdi
jmp 0x269be
movq %rax, %rbp
pushq $0x30
popq %rsi
movq %rbx, %rdi
jmp 0x269be
jmp 0x2698d
movq %rax, %rbp
leaq 0xe0(%rsp), %rdi
callq 0x687f2
jmp 0x269c3
movq %rax, %rbp
pushq $0x30
popq %rsi
movq %r13, %rdi
jmp 0x269be
movq %rax, %rbp
pushq $0x30
popq %rsi
movq %r12, %rdi
jmp 0x269be
movq %rax, %rbp
pushq $0x30
popq %rsi
movq %r14, %rdi
callq 0x218e0
movq %rbp, %rdi
callq 0x220c0