// File: /workspace/github_cpp_makefile_star2_O3/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, 0x10(%rsp)
callq 0x27bb4
testl %eax, %eax
je 0x27b1a
movl %ebp, %edi
movq %rbx, %rsi
callq 0x26e89
testl %eax, %eax
je 0x27b1a
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x26c87
movq 0x1226dd(%rip), %rbx    # 0x1499f8
leaq 0x50(%rsp), %r14
movq %r14, %rdi
callq 0x8b780
movq %r14, %rdi
xorl %esi, %esi
callq 0x21f90
movl $0x138, %edi            # imm = 0x138
callq 0x218b0
movq %rax, %rbp
movq %rax, %rdi
callq 0x555f4
movq (%rbp), %rax
movq %rbp, %rdi
movq %rbx, %rsi
callq *0x180(%rax)
testl %eax, %eax
je 0x27ab0
cmpb $0x1, 0x122672(%rip)    # 0x1499d8
jne 0x273d3
leaq 0xb7f76(%rip), %rdi     # 0xdf2e5
movq %rbx, %rsi
xorl %eax, %eax
callq 0x21080
leaq 0x50(%rsp), %rdi
callq 0x8b7e2
leaq 0xb7f72(%rip), %rdi     # 0xdf2fc
movb $0x1, %al
callq 0x21080
movl 0x34(%rbp), %esi
leaq 0xb7f78(%rip), %rdi     # 0xdf313
xorl %eax, %eax
callq 0x21080
movl 0x24(%rbp), %esi
leaq 0xb7f77(%rip), %rdi     # 0xdf323
xorl %eax, %eax
callq 0x21080
movl 0x14(%rbp), %esi
leaq 0xb7f76(%rip), %rdi     # 0xdf333
xorl %eax, %eax
callq 0x21080
movq 0x11cb55(%rip), %rax    # 0x143f20
movq (%rax), %rdi
callq 0x21a80
movq %rbp, 0x12256e(%rip)    # 0x149948
movq 0x1225ff(%rip), %r12    # 0x1499e0
testq %r12, %r12
je 0x278bf
leaq 0xe0(%rsp), %rbx
movq %rbx, %rdi
callq 0x8b780
movq %rbx, %rdi
xorl %esi, %esi
callq 0x21f90
movl $0x10, %edi
callq 0x218b0
movq %rax, %r14
movq %rax, %rdi
callq 0x8bd1c
movq %r12, %rdi
movl $0x2e, %esi
callq 0x219a0
testq %rax, %rax
je 0x27ae9
movq %rax, %rbx
leaq 0xb7f38(%rip), %rsi     # 0xdf371
movq %rax, %rdi
callq 0x21ce0
testl %eax, %eax
movq %r12, 0x8(%rsp)
je 0x275b0
leaq 0xb7f44(%rip), %rsi     # 0xdf399
movq %rbx, %rdi
callq 0x21ce0
testl %eax, %eax
je 0x27670
leaq 0xb7f32(%rip), %rsi     # 0xdf39e
movq %rbx, %rdi
callq 0x21ce0
testl %eax, %eax
je 0x2775c
leaq 0xb7f20(%rip), %rsi     # 0xdf3a3
movq %rbx, %rdi
callq 0x21ce0
testl %eax, %eax
jne 0x27b24
leaq 0xbf129(%rip), %rsi     # 0xe65c3
movq %r12, %rdi
callq 0x21a90
testq %rax, %rax
je 0x27afc
movq %rax, %r12
leaq 0xbed85(%rip), %rsi     # 0xe623a
leaq 0x50(%rsp), %rdx
movq %rax, %rdi
xorl %eax, %eax
callq 0x22170
cmpl $0x1, %eax
jne 0x275a8
leaq 0xbed66(%rip), %rbx     # 0xe623a
leaq 0x50(%rsp), %r15
movq %r12, 0x48(%rsp)
movslq 0x50(%rsp), %rax
testq %rax, %rax
js 0x2758f
cmpl 0x14(%rbp), %eax
jge 0x2758f
movq %r14, %r15
movq %rbx, %r12
movq %rbp, %r14
movq 0x8(%rbp), %rcx
movq (%rcx,%rax,8), %r13
movl $0x30, %edi
callq 0x218b0
movq %rax, %rbp
xorpd %xmm0, %xmm0
movapd %xmm0, (%rax)
movapd %xmm0, 0x10(%rax)
movapd %xmm0, 0x20(%rax)
movq %rax, %rdi
callq 0x79b58
movq %rbp, %rbx
addq $0x18, %rbx
movq %rbx, %rdi
callq 0x7a5ec
leaq 0x18(%r13), %rsi
movq %rbp, %rdi
callq 0x79ec2
testb $0x2, 0x78(%r13)
jne 0x2755e
movq %r14, %rdi
movq (%r14), %rax
movq %r13, %rsi
callq *0x2b0(%rax)
addq $0x30, %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x7ad7a
movl 0xc(%r15), %edx
movq %r15, %rdi
movq %rbp, %rsi
callq 0x8bdb2
movq %r12, %rbx
movq 0x48(%rsp), %r12
movq %r14, %rbp
movq %r15, %r14
leaq 0x50(%rsp), %r15
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x22170
cmpl $0x1, %eax
je 0x274de
movq %r12, %rdi
jmp 0x27854
leaq 0xb7dbf(%rip), %rsi     # 0xdf376
movq %r12, %rdi
callq 0x21a90
testq %rax, %rax
je 0x27afc
movq %rax, %r15
leaq 0x50(%rsp), %rdi
movl $0x4, %esi
movl $0x6, %edx
movq %rax, %rcx
callq 0x21e20
cmpq $0x6, %rax
jne 0x27851
leaq 0x50(%rsp), %rbx
movl $0x30, %edi
callq 0x218b0
movq %rax, %r12
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movaps %xmm0, 0x20(%rax)
movq %rax, %rdi
callq 0x79b58
movq %r12, %rdi
addq $0x18, %rdi
callq 0x7a5ec
cvtps2pd 0x50(%rsp), %xmm0
movups %xmm0, (%r12)
cvtps2pd 0x58(%rsp), %xmm0
movups %xmm0, 0x10(%r12)
cvtps2pd 0x60(%rsp), %xmm0
movupd %xmm0, 0x20(%r12)
movl 0xc(%r14), %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x8bdb2
movl $0x4, %esi
movl $0x6, %edx
movq %rbx, %rdi
movq %r15, %rcx
callq 0x21e20
cmpq $0x6, %rax
je 0x275f1
jmp 0x27851
leaq 0xbef4c(%rip), %rsi     # 0xe65c3
movq %r12, %rdi
callq 0x21a90
testq %rax, %rax
je 0x27afc
movq %rax, %r15
leaq 0xba2a2(%rip), %rsi     # 0xe1934
leaq 0x50(%rsp), %rdx
leaq 0x18(%rsp), %rcx
leaq 0x30(%rsp), %r8
movq %rax, %rdi
xorl %eax, %eax
callq 0x22170
cmpl $0x3, %eax
jne 0x27851
leaq 0x18(%rsp), %r13
leaq 0x30(%rsp), %rbp
movl $0x30, %edi
callq 0x218b0
movq %rax, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movaps %xmm0, 0x20(%rax)
movq %rax, %rdi
callq 0x79b58
movq %rbx, %r12
addq $0x18, %r12
movq %r12, %rdi
callq 0x7a5ec
movsd 0x50(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
movsd 0x30(%rsp), %xmm2
movsd %xmm0, (%rbx)
movsd %xmm1, 0x8(%rbx)
movsd %xmm2, 0x10(%rbx)
xorpd %xmm0, %xmm0
movupd %xmm0, (%r12)
movq $0x0, 0x10(%r12)
movl 0xc(%r14), %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8bdb2
movq %r15, %rdi
leaq 0xba1f8(%rip), %rsi     # 0xe1934
leaq 0x50(%rsp), %rdx
movq %r13, %rcx
movq %rbp, %r8
xorl %eax, %eax
callq 0x22170
cmpl $0x3, %eax
je 0x276be
jmp 0x27851
leaq 0xbee60(%rip), %rsi     # 0xe65c3
movq %r12, %rdi
callq 0x21a90
testq %rax, %rax
je 0x27afc
movq %rax, %r15
leaq 0xba1b4(%rip), %rsi     # 0xe1932
leaq 0x14(%rsp), %rdx
leaq 0x50(%rsp), %rcx
leaq 0x18(%rsp), %r8
leaq 0x30(%rsp), %r9
movq %rax, %rdi
xorl %eax, %eax
callq 0x22170
cmpl $0x4, %eax
jne 0x27851
leaq 0x18(%rsp), %rbx
leaq 0x30(%rsp), %r12
movl $0x30, %edi
callq 0x218b0
movq %rax, %rbp
xorpd %xmm0, %xmm0
movapd %xmm0, (%rax)
movapd %xmm0, 0x10(%rax)
movapd %xmm0, 0x20(%rax)
movq %rax, %rdi
callq 0x79b58
movq %rbp, %r13
addq $0x18, %r13
movq %r13, %rdi
callq 0x7a5ec
movsd 0x50(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
movsd 0x30(%rsp), %xmm2
movsd %xmm0, (%rbp)
movsd %xmm1, 0x8(%rbp)
movsd %xmm2, 0x10(%rbp)
xorpd %xmm0, %xmm0
movupd %xmm0, (%r13)
movq $0x0, 0x10(%r13)
movl 0xc(%r14), %edx
movq %r14, %rdi
movq %rbp, %rsi
callq 0x8bdb2
movq %r15, %rdi
leaq 0xba101(%rip), %rsi     # 0xe1932
leaq 0x14(%rsp), %rdx
leaq 0x50(%rsp), %rcx
movq %rbx, %r8
movq %r12, %r9
xorl %eax, %eax
callq 0x22170
cmpl $0x4, %eax
je 0x277af
movq %r15, %rdi
callq 0x218a0
cmpb $0x1, 0x122178(%rip)    # 0x1499d8
movq 0x8(%rsp), %rsi
jne 0x278b1
leaq 0xb7b61(%rip), %rdi     # 0xdf3cf
xorl %eax, %eax
callq 0x21080
leaq 0xe0(%rsp), %rdi
callq 0x8b7e2
leaq 0xb7a73(%rip), %rdi     # 0xdf2fc
movb $0x1, %al
callq 0x21080
movl 0xc(%r14), %esi
leaq 0xb7b4d(%rip), %rdi     # 0xdf3e8
xorl %eax, %eax
callq 0x21080
movq 0x11c677(%rip), %rax    # 0x143f20
movq (%rax), %rdi
callq 0x21a80
movq %r14, 0x1220a0(%rip)    # 0x149958
movq 0x122089(%rip), %rbp    # 0x149948
movq 0x12213a(%rip), %rbx    # 0x149a00
leaq 0x50(%rsp), %r14
movq %r14, %rdi
callq 0x8b780
movq %r14, %rdi
xorl %esi, %esi
callq 0x21f90
movl $0x18, %edi
callq 0x218b0
movq %rax, %r14
movq %rax, %rdi
movq %rbp, %rsi
callq 0x4675c
movq %r14, %rdi
movq %rbx, %rsi
callq 0x46a32
testl %eax, %eax
je 0x27ac7
cmpb $0x1, 0x1220c9(%rip)    # 0x1499d8
jne 0x2796f
leaq 0xb7ae1(%rip), %rdi     # 0xdf3f9
movq %rbx, %rsi
xorl %eax, %eax
callq 0x21080
leaq 0x50(%rsp), %rdi
callq 0x8b7e2
leaq 0xb79c9(%rip), %rdi     # 0xdf2fc
movb $0x1, %al
callq 0x21080
movl 0x14(%r14), %esi
leaq 0xb7ad1(%rip), %rdi     # 0xdf416
xorl %eax, %eax
callq 0x21080
movq (%r14), %rax
movl 0x14(%rax), %esi
leaq 0xb79da(%rip), %rdi     # 0xdf333
xorl %eax, %eax
callq 0x21080
movq 0x11c5b9(%rip), %rax    # 0x143f20
movq (%rax), %rdi
callq 0x21a80
movq %r14, 0x12201a(%rip)    # 0x149990
movq 0x121fcb(%rip), %rbx    # 0x149948
leaq 0xf8(%rbx), %rsi
leaq 0xe0(%rsp), %r14
movq %r14, %rdi
callq 0x7146c
movq %r14, %rdi
callq 0x71ac0
mulsd 0xb7694(%rip), %xmm0    # 0xdf038
movsd %xmm0, 0x8(%rsp)
cmpb $0x0, 0x12203f(%rip)    # 0x1499f0
jne 0x27a04
leaq 0x18(%rsp), %rdi
movq %rbx, %rsi
callq 0x55b90
movsd 0xb76d0(%rip), %xmm0    # 0xdf098
mulsd 0x8(%rsp), %xmm0
leaq 0x121ebb(%rip), %rsi    # 0x149890
leaq 0x30(%rsp), %rdi
callq 0x7af8a
leaq 0x50(%rsp), %rdi
leaq 0x18(%rsp), %rsi
leaq 0x30(%rsp), %rdx
callq 0x7a57b
leaq 0x121ec6(%rip), %rdi    # 0x1498c0
leaq 0x50(%rsp), %rsi
callq 0x79ec2
movsd 0xb7624(%rip), %xmm2    # 0xdf030
movsd 0x8(%rsp), %xmm3
mulsd %xmm3, %xmm2
mulsd 0xb7682(%rip), %xmm3    # 0xdf0a0
leaq 0x121e9b(%rip), %rsi    # 0x1498c0
leaq 0x121e64(%rip), %rdx    # 0x149890
leaq 0x121e75(%rip), %rcx    # 0x1498a8
leaq 0x50(%rsp), %rdi
movsd 0xb7640(%rip), %xmm0    # 0xdf080
movapd %xmm0, %xmm1
callq 0x29608
movl 0x11cf61(%rip), %ecx    # 0x1449b0
movl 0x11cf56(%rip), %r8d    # 0x1449ac
leaq 0x18(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2a33e
movl $0xa8, %edi
callq 0x218b0
movq %rax, %r14
leaq 0x50(%rsp), %rsi
leaq 0x18(%rsp), %rdx
movq %rax, %rdi
callq 0x27c78
leaq 0xe0(%rsp), %rdi
callq 0x7228c
movq %r14, 0x121ea1(%rip)    # 0x149938
callq 0x26e18
xorl %eax, %eax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%rbp), %rax
movq %rbp, %rdi
callq *0x8(%rax)
movq $0x0, 0x121e83(%rip) # 0x149948
jmp 0x27b1a
movq %r14, %rdi
callq 0x46810
movl $0x18, %esi
movq %r14, %rdi
callq 0x218d0
movq $0x0, 0x121ea9(%rip) # 0x149990
jmp 0x27b1a
leaq 0xb7856(%rip), %rdi     # 0xdf346
movq %r12, %rsi
xorl %eax, %eax
callq 0x21080
jmp 0x27b0f
leaq 0xb7876(%rip), %rdi     # 0xdf379
movq 0x8(%rsp), %rsi
xorl %eax, %eax
callq 0x8e88e
movq $0x0, 0x121e3e(%rip) # 0x149958
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x21ae0
leaq 0xb787d(%rip), %rdi     # 0xdf3a8
movq %rbx, %rsi
jmp 0x27b08
jmp 0x27b6d
movq %rax, %r13
movl $0x10, %esi
jmp 0x27b5a
movq %rax, %r13
movl $0xa8, %esi
movq %r14, %rdi
callq 0x218d0
jmp 0x27b70
jmp 0x27b6d
jmp 0x27b6d
movq %rax, %r13
movl $0x18, %esi
movq %r14, %rdi
jmp 0x27ba4
movq %rax, %r13
movl $0x138, %esi            # imm = 0x138
jmp 0x27b87
jmp 0x27b6d
jmp 0x27b7f
movq %rax, %r13
leaq 0xe0(%rsp), %rdi
callq 0x7228c
jmp 0x27ba9
movq %rax, %r13
movl $0x30, %esi
movq %rbp, %rdi
jmp 0x27ba4
movq %rax, %r13
movl $0x30, %esi
movq %rbx, %rdi
jmp 0x27ba4
movq %rax, %r13
movl $0x30, %esi
movq %r12, %rdi
callq 0x218d0
movq %r13, %rdi
callq 0x220a0
nopl (%rax)