// File: /workspace/github_cpp_makefile_star2_O2/tomfunkhouser[P]gaps/apps/grdview/grdview.cpp
// Function: main
int 
main(int argc, char **argv)
{
  // Initialize GLUT
  GLUTInit(&argc, argv);

  // Parse program arguments
  if (!ParseArgs(argc, argv)) exit(-1);

  // Read grid
  grid = ReadGrid(grid_name);
  if (!grid) exit(-1);

  // Create viewer
  viewer = CreateViewer(grid);
  if (!viewer) exit(-1);

  // Run GLUT interface
  GLUTMainLoop();

  // Return success 
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x180, %rsp            # imm = 0x180
movq %rsi, %rbx
leaq 0x64(%rsp), %r14
movl %edi, (%r14)
movq %r14, %rdi
callq 0x22cf9
movl (%r14), %r15d
cmpl $0x2, %r15d
jne 0x2321a
movq 0x8(%rbx), %rax
cmpb $0x2d, (%rax)
jne 0x2321a
leaq 0x92490(%rip), %rdi     # 0xb53b5
callq 0x1fcd0
xorl %edi, %edi
callq 0x1f950
leal -0x1(%r15), %ebp
leaq 0x8(%rbx), %r12
movq (%r12), %r14
cmpb $0x2d, (%r14)
jne 0x23040
cmpb $0x76, 0x1(%r14)
jne 0x22f59
cmpb $0x0, 0x2(%r14)
je 0x2306f
leaq 0x92267(%rip), %rsi     # 0xb51c7
movq %r14, %rdi
callq 0x1fb30
testl %eax, %eax
je 0x23057
leaq 0x9225d(%rip), %rsi     # 0xb51d4
movq %r14, %rdi
callq 0x1fb30
testl %eax, %eax
je 0x23063
leaq 0x92251(%rip), %rsi     # 0xb51df
movq %r14, %rdi
callq 0x1fb30
testl %eax, %eax
je 0x23078
leaq 0x9224b(%rip), %rsi     # 0xb51f0
movq %r14, %rdi
callq 0x1fb30
testl %eax, %eax
je 0x23084
leaq 0x9223f(%rip), %rsi     # 0xb51fb
movq %r14, %rdi
callq 0x1fb30
testl %eax, %eax
je 0x23090
leaq 0x9223e(%rip), %rsi     # 0xb5211
movq %r14, %rdi
callq 0x1fb30
testl %eax, %eax
je 0x230a2
leaq 0x92237(%rip), %rsi     # 0xb5221
movq %r14, %rdi
callq 0x1fb30
testl %eax, %eax
je 0x230c4
leaq 0x92228(%rip), %rsi     # 0xb5229
movq %r14, %rdi
callq 0x1fb30
testl %eax, %eax
je 0x231df
leaq 0x9221d(%rip), %rsi     # 0xb5235
movq %r14, %rdi
callq 0x1fb30
testl %eax, %eax
jne 0x2365b
addl $-0x2, %r15d
movq 0x10(%rbx), %rax
addq $0x10, %rbx
movq %rax, 0xf8805(%rip)     # 0x11b840
jmp 0x2321a
cmpq $0x0, 0xf8830(%rip)     # 0x11b878
jne 0x2365b
movq %r14, 0xf8823(%rip)     # 0x11b878
jmp 0x23097
movl $0x1, 0xf8747(%rip)     # 0x11b7a8
jmp 0x23097
movl $0x1, 0xf874b(%rip)     # 0x11b7b8
jmp 0x23097
movb $0x1, 0xf880a(%rip)     # 0x11b880
jmp 0x23097
movl $0x1, 0xf3802(%rip)     # 0x116884
jmp 0x23097
movl $0x1, 0xf8746(%rip)     # 0x11b7d4
jmp 0x23097
andl $0x0, 0xf37ed(%rip)     # 0x116884
movq %r12, %rbx
movl %ebp, %r15d
jmp 0x2321a
addl $-0x2, %r15d
movq 0x10(%rbx), %rdi
addq $0x10, %rbx
callq 0x1f9c0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xf37c1(%rip)    # 0x116880
jmp 0x2321a
movq 0x10(%rbx), %rdi
callq 0x1f9c0
movsd %xmm0, (%rsp)
movq 0x18(%rbx), %rdi
callq 0x1f9c0
movsd %xmm0, 0x8(%rsp)
movq 0x20(%rbx), %rdi
callq 0x1f9c0
movsd %xmm0, 0x50(%rsp)
movq 0x28(%rbx), %rdi
callq 0x1f9c0
movsd %xmm0, 0x58(%rsp)
movq 0x30(%rbx), %rdi
callq 0x1f9c0
movsd %xmm0, 0x48(%rsp)
movq 0x38(%rbx), %rdi
callq 0x1f9c0
movsd %xmm0, 0x40(%rsp)
movq 0x40(%rbx), %rdi
callq 0x1f9c0
movsd %xmm0, 0x38(%rsp)
movq 0x48(%rbx), %rdi
callq 0x1f9c0
movsd %xmm0, 0x30(%rsp)
addl $-0xa, %r15d
movq 0x50(%rbx), %rdi
addq $0x50, %rbx
callq 0x1f9c0
movsd %xmm0, 0x28(%rsp)
leaq 0xa0(%rsp), %r14
movq %r14, %rdi
movsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
movsd 0x50(%rsp), %xmm2
callq 0x3dda8
leaq 0xf85d6(%rip), %rdi     # 0x11b750
movq %r14, %rsi
callq 0x3e092
movsd 0x58(%rsp), %xmm0
movsd %xmm0, 0xf85d8(%rip)    # 0x11b768
movsd 0x48(%rsp), %xmm0
movsd %xmm0, 0xf85d2(%rip)    # 0x11b770
movsd 0x40(%rsp), %xmm0
movsd %xmm0, 0xf85cc(%rip)    # 0x11b778
movsd 0x38(%rsp), %xmm0
movsd %xmm0, 0xf85c6(%rip)    # 0x11b780
movsd 0x30(%rsp), %xmm0
movsd %xmm0, 0xf85c0(%rip)    # 0x11b788
movsd 0x28(%rsp), %xmm0
movsd %xmm0, 0xf85ba(%rip)    # 0x11b790
movb $0x1, 0xf86a7(%rip)     # 0x11b884
jmp 0x2321a
movq 0x10(%rbx), %rdi
callq 0x1f9c0
movsd %xmm0, 0xf3640(%rip)    # 0x116830
movq 0x18(%rbx), %rdi
callq 0x1f9c0
movsd %xmm0, 0xf363f(%rip)    # 0x116840
addl $-0x4, %r15d
movq 0x20(%rbx), %rdi
addq $0x20, %rbx
callq 0x1f9c0
movsd %xmm0, 0xf3636(%rip)    # 0x116850
cmpl $0x2, %r15d
jge 0x22f31
movq 0xf864d(%rip), %r14     # 0x11b878
testq %r14, %r14
je 0x23674
leaq 0x130(%rsp), %rbx
movq %rbx, %rdi
callq 0x7ae02
movq %rbx, %rdi
callq 0x237d6
movl $0x250, %edi            # imm = 0x250
callq 0x1f760
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x31478
movq %rbx, %rdi
movq %r14, %rsi
callq 0x37c10
testl %eax, %eax
je 0x23684
cmpb $0x1, 0xf85ff(%rip)     # 0x11b880
jne 0x233be
leaq 0x9213f(%rip), %rdi     # 0xb53cd
callq 0x1fcd0
leaq 0x130(%rsp), %rdi
callq 0x7ae3c
leaq 0x91fef(%rip), %rdi     # 0xb5296
movb $0x1, %al
callq 0x1f070
movl 0x238(%rbx), %esi
movl 0x23c(%rbx), %edx
movl 0x240(%rbx), %ecx
leaq 0x91fe6(%rip), %rdi     # 0xb52ad
xorl %eax, %eax
callq 0x1f070
leaq 0xa0(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x237de
movsd 0x8(%r14), %xmm0
movsd 0x10(%r14), %xmm1
movsd 0x18(%r14), %xmm2
movsd 0x20(%r14), %xmm3
movsd 0x28(%r14), %xmm4
movsd 0x30(%r14), %xmm5
leaq 0x91fba(%rip), %rdi     # 0xb52c6
movb $0x6, %al
callq 0x1f070
movsd 0x228(%rbx), %xmm0
leaq 0x91fcd(%rip), %rdi     # 0xb52ef
movb $0x1, %al
callq 0x1f070
movq %rbx, %rdi
callq 0x31f76
leaq 0x91fc7(%rip), %rdi     # 0xb52ff
movl %eax, %esi
xorl %eax, %eax
callq 0x1f070
movq %rbx, %rdi
callq 0x2387e
leaq 0x91fc3(%rip), %rdi     # 0xb5313
movb $0x1, %al
callq 0x1f070
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x31ec6
movsd 0x10(%rsp), %xmm0
leaq 0x91fb1(%rip), %rdi     # 0xb5322
movb $0x1, %al
callq 0x1f070
movsd 0x18(%rsp), %xmm0
leaq 0x91fad(%rip), %rdi     # 0xb5332
movb $0x1, %al
callq 0x1f070
movq %rbx, %rdi
callq 0x31f1e
leaq 0x91fa7(%rip), %rdi     # 0xb5342
movb $0x1, %al
callq 0x1f070
movq 0xf2b97(%rip), %rax     # 0x115f40
movq (%rax), %rdi
callq 0x1f8f0
leaq 0xa0(%rsp), %rdi
callq 0x2b9d2
movq %rbx, 0xf83eb(%rip)     # 0x11b7b0
leaq 0x80(%rsp), %r14
movq %r14, %rdi
callq 0x7ae02
movq %r14, %rdi
callq 0x237d6
leaq 0x130(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x23760
movq %r14, %rdi
callq 0x238c4
movsd %xmm0, (%rsp)
cmpb $0x0, 0xf8480(%rip)     # 0x11b884
jne 0x23461
leaq 0x10(%rsp), %rdi
leaq 0x130(%rsp), %rsi
callq 0x2b4c2
movsd 0x91c60(%rip), %xmm0    # 0xb5080
mulsd (%rsp), %xmm0
leaq 0xf833c(%rip), %rsi     # 0x11b768
leaq 0x68(%rsp), %rdi
callq 0x3ec5e
leaq 0xa0(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x68(%rsp), %rdx
callq 0x3e4f9
leaq 0xf82fc(%rip), %rdi     # 0x11b750
leaq 0xa0(%rsp), %rsi
callq 0x3e092
movsd 0x91c1f(%rip), %xmm2    # 0xb5088
movsd (%rsp), %xmm3
mulsd %xmm3, %xmm2
mulsd 0x91c16(%rip), %xmm3    # 0xb5090
leaq 0xf82cf(%rip), %rsi     # 0x11b750
leaq 0xf82e0(%rip), %rdx     # 0x11b768
leaq 0xf82f1(%rip), %rcx     # 0x11b780
leaq 0xa0(%rsp), %rdi
movsd 0x91bf9(%rip), %xmm0    # 0xb5098
movapd %xmm0, %xmm1
callq 0x251ce
movl 0xf33de(%rip), %ecx     # 0x11688c
movl 0xf33db(%rip), %r8d     # 0x116890
leaq 0x90(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x25ea0
movl $0xa8, %edi
callq 0x1f760
movq %rax, %rbx
leaq 0xa0(%rsp), %rsi
leaq 0x90(%rsp), %rdx
movq %rax, %rdi
callq 0x2393a
cmpb $0x1, 0xf838e(%rip)     # 0x11b880
jne 0x23630
leaq 0x91edc(%rip), %rdi     # 0xb53db
callq 0x1fcd0
leaq 0x80(%rsp), %rdi
callq 0x7ae3c
leaq 0x91d7e(%rip), %rdi     # 0xb5296
movb $0x1, %al
callq 0x1f070
leaq 0xe8(%rsp), %r14
movsd -0x48(%r14), %xmm0
movsd -0x40(%r14), %xmm1
movsd -0x38(%r14), %xmm2
leaq 0x91e11(%rip), %rdi     # 0xb5351
movb $0x3, %al
callq 0x1f070
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x3eece
movsd 0x10(%rsp), %xmm0
movsd %xmm0, (%rsp)
leaq 0x68(%rsp), %rdi
movq %r14, %rsi
callq 0x3eece
movsd 0x70(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
leaq 0x168(%rsp), %rdi
movq %r14, %rsi
callq 0x3eece
movsd 0x178(%rsp), %xmm2
leaq 0x91dce(%rip), %rdi     # 0xb5366
movsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
movb $0x3, %al
callq 0x1f070
movsd 0xd0(%rsp), %xmm0
movsd 0xd8(%rsp), %xmm1
movsd 0xe0(%rsp), %xmm2
leaq 0x91db0(%rip), %rdi     # 0xb537c
movb $0x3, %al
callq 0x1f070
movsd 0x100(%rsp), %xmm0
movsd 0x108(%rsp), %xmm1
leaq 0x91da1(%rip), %rdi     # 0xb538d
movb $0x2, %al
callq 0x1f070
movsd 0x110(%rsp), %xmm0
leaq 0x91d99(%rip), %rdi     # 0xb539c
movb $0x1, %al
callq 0x1f070
movsd 0x118(%rsp), %xmm0
leaq 0x91d8f(%rip), %rdi     # 0xb53a9
movb $0x1, %al
callq 0x1f070
movq 0xf2918(%rip), %rax     # 0x115f40
movq (%rax), %rdi
callq 0x1f8f0
leaq 0x130(%rsp), %rdi
callq 0x2b9d2
movq %rbx, 0xf815c(%rip)     # 0x11b7a0
callq 0x22e25
xorl %eax, %eax
addq $0x180, %rsp            # imm = 0x180
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x91bda(%rip), %rdi     # 0xb523c
movq %r14, %rsi
xorl %eax, %eax
callq 0x7d20a
pushq $0x1
popq %rdi
callq 0x1f950
leaq 0x91bde(%rip), %rdi     # 0xb5259
xorl %eax, %eax
callq 0x7d20a
jmp 0x2369d
leaq 0x91bef(%rip), %rdi     # 0xb527a
movq %r14, %rsi
xorl %eax, %eax
callq 0x7d20a
andq $0x0, 0xf8113(%rip)     # 0x11b7b0
pushq $-0x1
jmp 0x2366e
jmp 0x236e4
jmp 0x236e4
jmp 0x236e4
jmp 0x236e4
movq %rax, %r14
movl $0xa8, %esi
movq %rbx, %rdi
callq 0x1f780
jmp 0x236e7
jmp 0x236e4
jmp 0x236e4
jmp 0x236c3
jmp 0x236e4
movq %rax, %r14
leaq 0xa0(%rsp), %rdi
jmp 0x236ef
movq %rax, %r14
movl $0x250, %esi            # imm = 0x250
movq %rbx, %rdi
callq 0x1f780
jmp 0x236f4
jmp 0x236e4
movq %rax, %r14
leaq 0x130(%rsp), %rdi
callq 0x2b9d2
movq %r14, %rdi
callq 0x1fe60