// File: /workspace/github_cpp_makefile_star2_O1/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, 0xc(%rsp)
callq 0x27c14
testl %eax, %eax
je 0x27b83
movl 0xc(%rsp), %edi
movq %rbx, %rsi
callq 0x26ed7
testl %eax, %eax
je 0x27b83
leaq 0xc(%rsp), %rdi
movq %rbx, %rsi
callq 0x26cd5
movq 0x124695(%rip), %rbx    # 0x14b9f8
leaq 0x50(%rsp), %r14
movq %r14, %rdi
callq 0x8c960
movq %r14, %rdi
xorl %esi, %esi
callq 0x21fa0
movl $0x138, %edi            # imm = 0x138
callq 0x218b0
movq %rax, %r15
movq %rax, %rdi
callq 0x56250
movq (%r15), %rax
movq %r15, %rdi
movq %rbx, %rsi
callq *0x180(%rax)
testl %eax, %eax
je 0x2741b
cmpb $0x1, 0x12462f(%rip)    # 0x14b9d8
jne 0x27427
leaq 0xb9f36(%rip), %rdi     # 0xe12e8
movq %rbx, %rsi
xorl %eax, %eax
callq 0x21080
leaq 0x50(%rsp), %rdi
callq 0x8c9c2
leaq 0xb9f32(%rip), %rdi     # 0xe12ff
movb $0x1, %al
callq 0x21080
movl 0x34(%r15), %esi
leaq 0xb9f37(%rip), %rdi     # 0xe1316
xorl %eax, %eax
callq 0x21080
movl 0x24(%r15), %esi
leaq 0xb9f35(%rip), %rdi     # 0xe1326
xorl %eax, %eax
callq 0x21080
movl 0x14(%r15), %esi
leaq 0xb9f33(%rip), %rdi     # 0xe1336
xorl %eax, %eax
callq 0x21080
movq 0x11eb0f(%rip), %rax    # 0x145f20
movq (%rax), %rdi
callq 0x21a90
jmp 0x27427
movq (%r15), %rax
movq %r15, %rdi
callq *0x8(%rax)
xorl %r15d, %r15d
movq %r15, 0x12451a(%rip)    # 0x14b948
testq %r15, %r15
je 0x27b83
movq 0x1245a2(%rip), %r14    # 0x14b9e0
testq %r14, %r14
je 0x2796e
leaq 0xe0(%rsp), %rbx
movq %rbx, %rdi
callq 0x8c960
movq %rbx, %rdi
xorl %esi, %esi
callq 0x21fa0
movl $0x10, %edi
callq 0x218b0
movq %rax, %rbx
movq %rax, %rdi
callq 0x8cefc
movq %r14, %rdi
movl $0x2e, %esi
callq 0x219a0
testq %rax, %rax
je 0x274fb
movq %rax, %r12
leaq 0xb9ee2(%rip), %rsi     # 0xe1374
movq %rax, %rdi
callq 0x21cf0
testl %eax, %eax
je 0x27513
leaq 0xb9ef7(%rip), %rsi     # 0xe139c
movq %r12, %rdi
callq 0x21cf0
testl %eax, %eax
je 0x275d0
leaq 0xb9ee5(%rip), %rsi     # 0xe13a1
movq %r12, %rdi
callq 0x21cf0
testl %eax, %eax
je 0x276b8
leaq 0xb9ed3(%rip), %rsi     # 0xe13a6
movq %r12, %rdi
callq 0x21cf0
testl %eax, %eax
je 0x2782f
leaq 0xb9ec1(%rip), %rdi     # 0xe13ab
xorl %ebx, %ebx
movq %r12, %rsi
xorl %eax, %eax
callq 0x8fd7a
jmp 0x2795e
leaq 0xb9e47(%rip), %rdi     # 0xe1349
xorl %ebx, %ebx
movq %r14, %rsi
xorl %eax, %eax
callq 0x21080
jmp 0x2795e
leaq 0xb9e5f(%rip), %rsi     # 0xe1379
movq %r14, %rdi
callq 0x21aa0
movq %rax, %r15
testq %rax, %rax
je 0x277b7
leaq 0x50(%rsp), %rdi
movl $0x4, %esi
movl $0x6, %edx
movq %r15, %rcx
callq 0x21e30
cmpq $0x6, %rax
jne 0x277ad
leaq 0x50(%rsp), %r12
movl $0x30, %edi
callq 0x218b0
movq %rax, %r13
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movaps %xmm0, 0x20(%rax)
movq %rax, %rdi
callq 0x7aaf8
movq %r13, %rdi
addq $0x18, %rdi
callq 0x7b590
cvtps2pd 0x50(%rsp), %xmm0
movups %xmm0, (%r13)
cvtps2pd 0x58(%rsp), %xmm0
movups %xmm0, 0x10(%r13)
cvtps2pd 0x60(%rsp), %xmm0
movupd %xmm0, 0x20(%r13)
movl 0xc(%rbx), %edx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x8cf92
movl $0x4, %esi
movl $0x6, %edx
movq %r12, %rdi
movq %r15, %rcx
callq 0x21e30
cmpq $0x6, %rax
je 0x27554
jmp 0x277ad
leaq 0xc0fcc(%rip), %rsi     # 0xe85a3
movq %r14, %rdi
callq 0x21aa0
movq %rax, %r15
testq %rax, %rax
je 0x277b7
leaq 0xbc355(%rip), %rsi     # 0xe3947
leaq 0x50(%rsp), %rdx
leaq 0x20(%rsp), %rcx
leaq 0x38(%rsp), %r8
movq %r15, %rdi
xorl %eax, %eax
callq 0x22180
cmpl $0x3, %eax
jne 0x277ad
leaq 0x38(%rsp), %r12
movl $0x30, %edi
callq 0x218b0
movq %rax, %rbp
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movaps %xmm0, 0x20(%rax)
movq %rax, %rdi
callq 0x7aaf8
movq %rbp, %r13
addq $0x18, %r13
movq %r13, %rdi
callq 0x7b590
movsd 0x50(%rsp), %xmm0
movsd 0x20(%rsp), %xmm1
movsd 0x38(%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(%rbx), %edx
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x8cf92
movq %r15, %rdi
leaq 0xbc2b1(%rip), %rsi     # 0xe3947
leaq 0x50(%rsp), %rdx
leaq 0x20(%rsp), %rcx
movq %r12, %r8
xorl %eax, %eax
callq 0x22180
cmpl $0x3, %eax
je 0x27619
jmp 0x277ad
leaq 0xc0ee4(%rip), %rsi     # 0xe85a3
movq %r14, %rdi
callq 0x21aa0
movq %rax, %r15
testq %rax, %rax
je 0x277b7
leaq 0xbc26b(%rip), %rsi     # 0xe3945
leaq 0x1c(%rsp), %rdx
leaq 0x50(%rsp), %rcx
leaq 0x20(%rsp), %r8
leaq 0x38(%rsp), %r9
movq %r15, %rdi
xorl %eax, %eax
callq 0x22180
cmpl $0x4, %eax
jne 0x277ad
leaq 0x38(%rsp), %r13
movl $0x30, %edi
callq 0x218b0
movq %rax, %r12
xorpd %xmm0, %xmm0
movapd %xmm0, (%rax)
movapd %xmm0, 0x10(%rax)
movapd %xmm0, 0x20(%rax)
movq %rax, %rdi
callq 0x7aaf8
movq %r12, %rbp
addq $0x18, %rbp
movq %rbp, %rdi
callq 0x7b590
movsd 0x50(%rsp), %xmm0
movsd 0x20(%rsp), %xmm1
movsd 0x38(%rsp), %xmm2
movsd %xmm0, (%r12)
movsd %xmm1, 0x8(%r12)
movsd %xmm2, 0x10(%r12)
xorpd %xmm0, %xmm0
movupd %xmm0, (%rbp)
movq $0x0, 0x10(%rbp)
movl 0xc(%rbx), %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x8cf92
movq %r15, %rdi
leaq 0xbc1ba(%rip), %rsi     # 0xe3945
leaq 0x1c(%rsp), %rdx
leaq 0x50(%rsp), %rcx
leaq 0x20(%rsp), %r8
movq %r13, %r9
xorl %eax, %eax
callq 0x22180
cmpl $0x4, %eax
je 0x27706
movq %r15, %rdi
callq 0x218a0
jmp 0x277c8
leaq 0xb9bbe(%rip), %rdi     # 0xe137c
movq %r14, %rsi
xorl %eax, %eax
callq 0x8fd7a
testq %r15, %r15
je 0x2795c
cmpb $0x1, 0x124200(%rip)    # 0x14b9d8
jne 0x2795e
leaq 0xb9bed(%rip), %rdi     # 0xe13d2
movq %r14, %rsi
xorl %eax, %eax
callq 0x21080
leaq 0xe0(%rsp), %rdi
callq 0x8c9c2
leaq 0xb9afc(%rip), %rdi     # 0xe12ff
movb $0x1, %al
callq 0x21080
movl 0xc(%rbx), %esi
leaq 0xb9bd7(%rip), %rdi     # 0xe13eb
xorl %eax, %eax
callq 0x21080
movq 0x11e6fe(%rip), %rax    # 0x145f20
movq (%rax), %rdi
callq 0x21a90
jmp 0x2795e
leaq 0xc0d6d(%rip), %rsi     # 0xe85a3
movq %r14, %rdi
callq 0x21aa0
movq %rax, %r12
testq %rax, %rax
je 0x27942
leaq 0xc09c9(%rip), %rsi     # 0xe821a
leaq 0x50(%rsp), %rdx
movq %r12, %rdi
xorl %eax, %eax
callq 0x22180
cmpl $0x1, %eax
jne 0x27938
leaq 0xc09aa(%rip), %r13     # 0xe821a
leaq 0x50(%rsp), %rbp
movq %r12, 0x10(%rsp)
movslq 0x50(%rsp), %rax
testq %rax, %rax
js 0x2791f
cmpl 0x14(%r15), %eax
jge 0x2791f
movq 0x8(%r15), %rcx
movq (%rcx,%rax,8), %rbp
movl $0x30, %edi
callq 0x218b0
movq %rax, %r12
xorpd %xmm0, %xmm0
movapd %xmm0, (%rax)
movapd %xmm0, 0x10(%rax)
movapd %xmm0, 0x20(%rax)
movq %rax, %rdi
callq 0x7aaf8
movq %r12, %r13
addq $0x18, %r13
movq %r13, %rdi
callq 0x7b590
leaq 0x18(%rbp), %rsi
movq %r12, %rdi
callq 0x7ae68
testb $0x2, 0x78(%rbp)
jne 0x278f1
movq (%r15), %rax
movq %r15, %rdi
movq %rbp, %rsi
callq *0x2b0(%rax)
addq $0x30, %rbp
movq %r13, %rdi
movq %rbp, %rsi
callq 0x7bd3e
movl 0xc(%rbx), %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x8cf92
movq 0x10(%rsp), %r12
leaq 0xc0900(%rip), %r13     # 0xe821a
leaq 0x50(%rsp), %rbp
movq %r12, %rdi
movq %r13, %rsi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x22180
cmpl $0x1, %eax
je 0x2787a
movq %r12, %rdi
callq 0x218a0
jmp 0x27953
leaq 0xb9a33(%rip), %rdi     # 0xe137c
movq %r14, %rsi
xorl %eax, %eax
callq 0x8fd7a
testq %r12, %r12
jne 0x277d1
xorl %ebx, %ebx
movq %rbx, 0x123ff3(%rip)    # 0x14b958
testq %rbx, %rbx
je 0x27b83
movq 0x123fd3(%rip), %r15    # 0x14b948
movq 0x124084(%rip), %r14    # 0x14ba00
leaq 0x50(%rsp), %rbx
movq %rbx, %rdi
callq 0x8c960
movq %rbx, %rdi
xorl %esi, %esi
callq 0x21fa0
movl $0x18, %edi
callq 0x218b0
movq %rax, %rbx
movq %rax, %rdi
movq %r15, %rsi
callq 0x46d84
movq %rbx, %rdi
movq %r14, %rsi
callq 0x47072
testl %eax, %eax
je 0x27a22
cmpb $0x1, 0x124017(%rip)    # 0x14b9d8
jne 0x27a39
leaq 0xb9a32(%rip), %rdi     # 0xe13fc
movq %r14, %rsi
xorl %eax, %eax
callq 0x21080
leaq 0x50(%rsp), %rdi
callq 0x8c9c2
leaq 0xb991a(%rip), %rdi     # 0xe12ff
movb $0x1, %al
callq 0x21080
movl 0x14(%rbx), %esi
leaq 0xb9a23(%rip), %rdi     # 0xe1419
xorl %eax, %eax
callq 0x21080
movq (%rbx), %rax
movl 0x14(%rax), %esi
leaq 0xb992c(%rip), %rdi     # 0xe1336
xorl %eax, %eax
callq 0x21080
movq 0x11e508(%rip), %rax    # 0x145f20
movq (%rax), %rdi
callq 0x21a90
jmp 0x27a39
movq %rbx, %rdi
callq 0x46e38
movl $0x18, %esi
movq %rbx, %rdi
callq 0x218d0
xorl %ebx, %ebx
movq %rbx, 0x123f50(%rip)    # 0x14b990
testq %rbx, %rbx
je 0x27b83
movq 0x123ef8(%rip), %rbx    # 0x14b948
leaq 0xf8(%rbx), %rsi
leaq 0xe0(%rsp), %r14
movq %r14, %rdi
callq 0x7232c
movq %r14, %rdi
callq 0x729ac
mulsd 0xb95c1(%rip), %xmm0    # 0xe1038
movsd %xmm0, 0x10(%rsp)
cmpb $0x0, 0x123f6c(%rip)    # 0x14b9f0
jne 0x27ad7
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
callq 0x567dc
movsd 0xb95fd(%rip), %xmm0    # 0xe1098
mulsd 0x10(%rsp), %xmm0
leaq 0x123de8(%rip), %rsi    # 0x14b890
leaq 0x38(%rsp), %rdi
callq 0x7bf62
leaq 0x50(%rsp), %rdi
leaq 0x20(%rsp), %rsi
leaq 0x38(%rsp), %rdx
callq 0x7b521
leaq 0x123df3(%rip), %rdi    # 0x14b8c0
leaq 0x50(%rsp), %rsi
callq 0x7ae68
movsd 0xb9551(%rip), %xmm2    # 0xe1030
movsd 0x10(%rsp), %xmm3
mulsd %xmm3, %xmm2
mulsd 0xb95af(%rip), %xmm3    # 0xe10a0
leaq 0x123dc8(%rip), %rsi    # 0x14b8c0
leaq 0x123d91(%rip), %rdx    # 0x14b890
leaq 0x123da2(%rip), %rcx    # 0x14b8a8
leaq 0x50(%rsp), %rdi
movsd 0xb956d(%rip), %xmm0    # 0xe1080
movapd %xmm0, %xmm1
callq 0x29624
movl 0x11ee8e(%rip), %ecx    # 0x1469b0
movl 0x11ee83(%rip), %r8d    # 0x1469ac
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2a35a
movl $0xa8, %edi
callq 0x218b0
movq %rax, %rbx
leaq 0x50(%rsp), %rsi
leaq 0x20(%rsp), %rdx
movq %rax, %rdi
callq 0x27cd8
leaq 0xe0(%rsp), %rdi
callq 0x73184
movq %rbx, 0x123dce(%rip)    # 0x14b938
callq 0x26e66
xorl %eax, %eax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x21af0
jmp 0x27bcb
jmp 0x27be7
movq %rax, %r14
movl $0x10, %esi
jmp 0x27bb9
movq %rax, %r14
movl $0xa8, %esi
movq %rbx, %rdi
callq 0x218d0
jmp 0x27bea
jmp 0x27be7
jmp 0x27be7
movq %rax, %r14
movl $0x18, %esi
movq %rbx, %rdi
jmp 0x27c04
movq %rax, %r14
movl $0x138, %esi            # imm = 0x138
movq %r15, %rdi
jmp 0x27c04
movq %rax, %r14
movl $0x30, %esi
movq %r12, %rdi
jmp 0x27c04
jmp 0x27be7
movq %rax, %r14
movl $0x30, %esi
movq %rbp, %rdi
jmp 0x27c04
movq %rax, %r14
leaq 0xe0(%rsp), %rdi
callq 0x73184
jmp 0x27c09
movq %rax, %r14
movl $0x30, %esi
movq %r13, %rdi
callq 0x218d0
movq %r14, %rdi
callq 0x220b0
nopl (%rax)