// File: /workspace/github_cpp_makefile_star2_O3/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 %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
movq %rsi, %rbp
leaq 0x64(%rsp), %rbx
movl %edi, (%rbx)
movq %rbx, %rdi
callq 0x23794
movl (%rbx), %r12d
cmpl $0x2, %r12d
jne 0x23a3d
movq 0x8(%rbp), %rax
cmpb $0x2d, (%rax)
jne 0x23a43
leaq 0xa0984(%rip), %rdi     # 0xc43b5
callq 0x1fca0
xorl %edi, %edi
callq 0x1f930
jl 0x23d58
leaq 0xa077d(%rip), %rbx     # 0xc41c7
leal -0x1(%r12), %r14d
leaq 0x8(%rbp), %r15
movq 0x8(%rbp), %r13
cmpb $0x2d, (%r13)
jne 0x23b57
cmpb $0x76, 0x1(%r13)
jne 0x23a74
cmpb $0x0, 0x2(%r13)
je 0x23b8f
movq %r13, %rdi
movq %rbx, %rsi
callq 0x1fb00
testl %eax, %eax
je 0x23b71
movq %r13, %rdi
leaq 0xa0743(%rip), %rsi     # 0xc41d4
callq 0x1fb00
testl %eax, %eax
je 0x23b80
movq %r13, %rdi
leaq 0xa0737(%rip), %rsi     # 0xc41df
callq 0x1fb00
testl %eax, %eax
je 0x23b9b
movq %r13, %rdi
leaq 0xa0731(%rip), %rsi     # 0xc41f0
callq 0x1fb00
testl %eax, %eax
je 0x23baa
movq %r13, %rdi
leaq 0xa0725(%rip), %rsi     # 0xc41fb
callq 0x1fb00
testl %eax, %eax
je 0x23bb9
movq %r13, %rdi
leaq 0xa0724(%rip), %rsi     # 0xc4211
callq 0x1fb00
testl %eax, %eax
je 0x23bc8
movq %r13, %rdi
leaq 0xa071d(%rip), %rsi     # 0xc4221
callq 0x1fb00
testl %eax, %eax
je 0x23bea
movq %r13, %rdi
leaq 0xa070e(%rip), %rsi     # 0xc4229
callq 0x1fb00
testl %eax, %eax
je 0x23d07
movq %r13, %rdi
leaq 0xa0703(%rip), %rsi     # 0xc4235
callq 0x1fb00
testl %eax, %eax
jne 0x242a4
addl $-0x2, %r12d
movq 0x10(%rbp), %rax
addq $0x10, %rbp
movq %rax, 0x102cde(%rip)    # 0x126830
jmp 0x23d42
cmpq $0x0, 0x102d09(%rip)    # 0x126868
jne 0x242a4
movq %r13, 0x102cfc(%rip)    # 0x126868
jmp 0x23d48
movl $0x1, 0x102c1d(%rip)    # 0x126798
jmp 0x23d48
movl $0x1, 0x102c1e(%rip)    # 0x1267a8
jmp 0x23d48
movb $0x1, 0x102cda(%rip)    # 0x126870
jmp 0x23d48
movl $0x1, 0xfdccf(%rip)     # 0x121874
jmp 0x23d48
movl $0x1, 0x102c10(%rip)    # 0x1267c4
jmp 0x23d48
movl $0x0, 0xfdcb1(%rip)     # 0x121874
jmp 0x23d48
addl $-0x2, %r12d
movq 0x10(%rbp), %rdi
addq $0x10, %rbp
callq 0x1f9a0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xfdc8b(%rip)    # 0x121870
jmp 0x23d42
movq 0x10(%rbp), %rdi
callq 0x1f9a0
movsd %xmm0, 0x8(%rsp)
movq 0x18(%rbp), %rdi
callq 0x1f9a0
movsd %xmm0, 0x10(%rsp)
movq 0x20(%rbp), %rdi
callq 0x1f9a0
movsd %xmm0, 0x40(%rsp)
movq 0x28(%rbp), %rdi
callq 0x1f9a0
movsd %xmm0, 0x48(%rsp)
movq 0x30(%rbp), %rdi
callq 0x1f9a0
movsd %xmm0, 0x38(%rsp)
movq 0x38(%rbp), %rdi
callq 0x1f9a0
movsd %xmm0, 0x30(%rsp)
movq 0x40(%rbp), %rdi
callq 0x1f9a0
movsd %xmm0, 0x28(%rsp)
movq 0x48(%rbp), %rdi
callq 0x1f9a0
movsd %xmm0, 0x20(%rsp)
addl $-0xa, %r12d
movq 0x50(%rbp), %rdi
addq $0x50, %rbp
callq 0x1f9a0
movsd %xmm0, 0x18(%rsp)
leaq 0xf8(%rsp), %r14
movq %r14, %rdi
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
movsd 0x40(%rsp), %xmm2
callq 0x41356
leaq 0x102a9e(%rip), %rdi    # 0x126740
movq %r14, %rsi
callq 0x416be
movsd 0x48(%rsp), %xmm0
movsd %xmm0, 0x102aa0(%rip)   # 0x126758
movsd 0x38(%rsp), %xmm0
movsd %xmm0, 0x102a9a(%rip)   # 0x126760
movsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x102a94(%rip)   # 0x126768
movsd 0x28(%rsp), %xmm0
movsd %xmm0, 0x102a8e(%rip)   # 0x126770
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x102a88(%rip)   # 0x126778
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x102a82(%rip)   # 0x126780
movb $0x1, 0x102b6f(%rip)    # 0x126874
jmp 0x23d42
movq 0x10(%rbp), %rdi
callq 0x1f9a0
movsd %xmm0, 0xfdb08(%rip)    # 0x121820
movq 0x18(%rbp), %rdi
callq 0x1f9a0
movsd %xmm0, 0xfdb07(%rip)    # 0x121830
addl $-0x4, %r12d
movq 0x20(%rbp), %rdi
addq $0x20, %rbp
callq 0x1f9a0
movsd %xmm0, 0xfdafe(%rip)    # 0x121840
movq %rbp, %r15
movl %r12d, %r14d
movl %r14d, %r12d
movq %r15, %rbp
cmpl $0x1, %r14d
jg 0x23a4a
movq 0x102b09(%rip), %r14    # 0x126868
testq %r14, %r14
je 0x242bf
leaq 0x50(%rsp), %rbx
movq %rbx, %rdi
callq 0x847ec
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1fd70
movl $0x250, %edi            # imm = 0x250
callq 0x1f750
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x3321c
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3a9c6
testl %eax, %eax
je 0x242cf
cmpb $0x1, 0x102abc(%rip)    # 0x126870
jne 0x23fc4
leaq 0xa060c(%rip), %rdi     # 0xc43cd
callq 0x1fca0
leaq 0x50(%rsp), %rdi
callq 0x8484e
leaq 0xa04bf(%rip), %rdi     # 0xc4296
movb $0x1, %al
callq 0x1f070
movl 0x238(%rbx), %esi
movl 0x23c(%rbx), %edx
movl 0x240(%rbx), %ecx
leaq 0xa04b6(%rip), %rdi     # 0xc42ad
xorl %eax, %eax
callq 0x1f070
leaq 0x98(%rsp), %r14
xorps %xmm0, %xmm0
xorpd %xmm1, %xmm1
xorpd %xmm2, %xmm2
movq %r14, %rdi
callq 0x41356
movl 0x238(%rbx), %eax
decl %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movl 0x23c(%rbx), %eax
decl %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
movl 0x240(%rbx), %eax
decl %eax
xorps %xmm2, %xmm2
cvtsi2sd %eax, %xmm2
leaq 0x80(%rsp), %r15
movq %r15, %rdi
callq 0x41356
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
movsd 0x10(%r14), %xmm2
leaq 0x68(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3a9a0
movsd (%r15), %xmm0
movsd 0x8(%r15), %xmm1
movsd 0x10(%r15), %xmm2
leaq 0xd0(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x3a9a0
leaq 0xf8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2c0f2
movsd 0x8(%r12), %xmm0
movsd 0x10(%r12), %xmm1
movsd 0x18(%r12), %xmm2
movsd 0x20(%r12), %xmm3
movsd 0x28(%r12), %xmm4
movsd 0x30(%r12), %xmm5
leaq 0xa03e4(%rip), %rdi     # 0xc42c6
movb $0x6, %al
callq 0x1f070
movsd 0x228(%rbx), %xmm0
leaq 0xa03f7(%rip), %rdi     # 0xc42ef
movb $0x1, %al
callq 0x1f070
movq %rbx, %rdi
callq 0x33e6c
leaq 0xa03f1(%rip), %rdi     # 0xc42ff
movl %eax, %esi
xorl %eax, %eax
callq 0x1f070
movsd 0x228(%rbx), %xmm0
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x33e6c
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd 0x8(%rsp), %xmm1
mulsd %xmm1, %xmm0
mulsd %xmm1, %xmm0
mulsd %xmm1, %xmm0
leaq 0xa03c6(%rip), %rdi     # 0xc4313
movb $0x1, %al
callq 0x1f070
leaq 0x98(%rsp), %rdi
movq %rbx, %rsi
callq 0x33dae
movsd 0x98(%rsp), %xmm0
leaq 0xa03ae(%rip), %rdi     # 0xc4322
movb $0x1, %al
callq 0x1f070
movsd 0xa0(%rsp), %xmm0
leaq 0xa03a7(%rip), %rdi     # 0xc4332
movb $0x1, %al
callq 0x1f070
movq %rbx, %rdi
callq 0x33e14
leaq 0xa03a1(%rip), %rdi     # 0xc4342
movb $0x1, %al
callq 0x1f070
movq 0xfcf81(%rip), %rax     # 0x120f30
movq (%rax), %rdi
callq 0x1f8d0
leaq 0xf8(%rsp), %rdi
callq 0x2cec0
movq %rbx, 0x1027d5(%rip)    # 0x1267a0
leaq 0x50(%rsp), %r14
movq %r14, %rdi
callq 0x847ec
movq %r14, %rdi
xorl %esi, %esi
callq 0x1fd70
movl 0x238(%rbx), %eax
decl %eax
cvtsi2sd %eax, %xmm3
movl 0x23c(%rbx), %eax
decl %eax
cvtsi2sd %eax, %xmm4
movl 0x240(%rbx), %eax
decl %eax
cvtsi2sd %eax, %xmm5
leaq 0x98(%rsp), %rbx
xorps %xmm0, %xmm0
xorpd %xmm1, %xmm1
xorpd %xmm2, %xmm2
movq %rbx, %rdi
callq 0x2c140
movq %rbx, %rdi
callq 0x2c6f4
mulsd 0xa0027(%rip), %xmm0    # 0xc4058
movsd %xmm0, 0x8(%rsp)
cmpb $0x0, 0x102836(%rip)    # 0x126874
jne 0x240a2
leaq 0x80(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0x2c8b6
movsd 0xa0023(%rip), %xmm0    # 0xc4080
mulsd 0x8(%rsp), %xmm0
leaq 0x1026ee(%rip), %rsi    # 0x126758
leaq 0x68(%rsp), %rdi
callq 0x42786
leaq 0xf8(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0x68(%rsp), %rdx
callq 0x41d77
leaq 0x1026ab(%rip), %rdi    # 0x126740
leaq 0xf8(%rsp), %rsi
callq 0x416be
movsd 0x9ffde(%rip), %xmm2    # 0xc4088
movsd 0x8(%rsp), %xmm3
mulsd %xmm3, %xmm2
mulsd 0x9ffd4(%rip), %xmm3    # 0xc4090
leaq 0x10267d(%rip), %rsi    # 0x126740
leaq 0x10268e(%rip), %rdx    # 0x126758
leaq 0x10269f(%rip), %rcx    # 0x126770
leaq 0xf8(%rsp), %rdi
movsd 0x9ffb7(%rip), %xmm0    # 0xc4098
movapd %xmm0, %xmm1
callq 0x25d48
movl 0xfd78c(%rip), %ecx     # 0x12187c
movl 0xfd789(%rip), %r8d     # 0x121880
leaq 0xe8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x26a7e
movl $0xa8, %edi
callq 0x1f750
movq %rax, %rbx
leaq 0xf8(%rsp), %rsi
leaq 0xe8(%rsp), %rdx
movq %rax, %rdi
callq 0x243b8
cmpb $0x1, 0x10273c(%rip)    # 0x126870
jne 0x24277
leaq 0xa029a(%rip), %rdi     # 0xc43db
callq 0x1fca0
leaq 0x50(%rsp), %rdi
callq 0x8484e
leaq 0xa013f(%rip), %rdi     # 0xc4296
movb $0x1, %al
callq 0x1f070
leaq 0x140(%rsp), %r14
movsd -0x48(%r14), %xmm0
movsd -0x40(%r14), %xmm1
movsd -0x38(%r14), %xmm2
leaq 0xa01d2(%rip), %rdi     # 0xc4351
movb $0x3, %al
callq 0x1f070
leaq 0x80(%rsp), %rdi
movq %r14, %rsi
callq 0x42a24
movsd 0x80(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
leaq 0x68(%rsp), %rdi
movq %r14, %rsi
callq 0x42a24
movsd 0x70(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
leaq 0xd0(%rsp), %rdi
movq %r14, %rsi
callq 0x42a24
movsd 0xe0(%rsp), %xmm2
leaq 0xa0188(%rip), %rdi     # 0xc4366
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
movb $0x3, %al
callq 0x1f070
movsd 0x128(%rsp), %xmm0
movsd 0x130(%rsp), %xmm1
movsd 0x138(%rsp), %xmm2
leaq 0xa0169(%rip), %rdi     # 0xc437c
movb $0x3, %al
callq 0x1f070
movsd 0x158(%rsp), %xmm0
movsd 0x160(%rsp), %xmm1
leaq 0xa015a(%rip), %rdi     # 0xc438d
movb $0x2, %al
callq 0x1f070
movsd 0x168(%rsp), %xmm0
leaq 0xa0152(%rip), %rdi     # 0xc439c
movb $0x1, %al
callq 0x1f070
movsd 0x170(%rsp), %xmm0
leaq 0xa0148(%rip), %rdi     # 0xc43a9
movb $0x1, %al
callq 0x1f070
movq 0xfccc1(%rip), %rax     # 0x120f30
movq (%rax), %rdi
callq 0x1f8d0
leaq 0x98(%rsp), %rdi
callq 0x2cec0
movq %rbx, 0x102505(%rip)    # 0x126790
callq 0x238c7
xorl %eax, %eax
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x9ff91(%rip), %rdi     # 0xc423c
movq %r13, %rsi
xorl %eax, %eax
callq 0x86f4e
movl $0x1, %edi
callq 0x1f930
leaq 0x9ff93(%rip), %rdi     # 0xc4259
xorl %eax, %eax
callq 0x86f4e
jmp 0x242eb
leaq 0x9ffa4(%rip), %rdi     # 0xc427a
movq %r14, %rsi
xorl %eax, %eax
callq 0x86f4e
movq $0x0, 0x1024b5(%rip) # 0x1267a0
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x1f930
jmp 0x24338
jmp 0x24338
jmp 0x24338
jmp 0x24338
movq %rax, %r14
movl $0xa8, %esi
movq %rbx, %rdi
callq 0x1f770
jmp 0x2433b
jmp 0x24338
jmp 0x24338
jmp 0x24317
jmp 0x24338
movq %rax, %r14
leaq 0xf8(%rsp), %rdi
jmp 0x24343
movq %rax, %r14
movl $0x250, %esi            # imm = 0x250
movq %rbx, %rdi
callq 0x1f770
jmp 0x24348
jmp 0x24338
movq %rax, %r14
leaq 0x98(%rsp), %rdi
callq 0x2cec0
movq %r14, %rdi
callq 0x1fe30