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

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

  // Create grid from mesh
  R3Grid *grid = CreateGrid(mesh);
  if (!grid) exit(-1);

  // Write grid
  int status = WriteGrid(grid, grid_name);
  if (!status) exit(-1);

  // Return success
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x318, %rsp            # imm = 0x318
movq 0xd50f4(%rip), %rax     # 0xe5c18
movq %rax, (%rsp)
movq 0xd50f1(%rip), %r15     # 0xe5c20
cmpl $0x2, %edi
jl 0x10c57
movq %rsi, %rbp
movl %edi, %r13d
leaq 0x8(%rbp), %r12
leal -0x1(%r13), %r14d
movq 0x8(%rbp), %rbx
cmpb $0x2d, (%rbx)
jne 0x10bd4
cmpb $0x76, 0x1(%rbx)
jne 0x10b63
cmpb $0x0, 0x2(%rbx)
je 0x10c21
movq %rbx, %rdi
leaq 0x914e3(%rip), %rsi     # 0xa2050
callq 0xe640
testl %eax, %eax
je 0x10bfd
movq %rbx, %rdi
leaq 0x914d1(%rip), %rsi     # 0xa2055
callq 0xe640
testl %eax, %eax
je 0x10c06
movq %rbx, %rdi
leaq 0x914c7(%rip), %rsi     # 0xa205e
callq 0xe640
testl %eax, %eax
je 0x10c2a
movq %rbx, %rdi
leaq 0x914c0(%rip), %rsi     # 0xa206e
callq 0xe640
testl %eax, %eax
jne 0x114a4
addl $-0x2, %r13d
movq 0x10(%rbp), %rdi
addq $0x10, %rbp
callq 0xe700
movl %eax, 0xd48ca(%rip)     # 0xe549c
jmp 0x10c41
cmpq $0x0, (%rsp)
je 0x10bf0
testq %r15, %r15
jne 0x114a4
movq %rbx, 0xd5035(%rip)     # 0xe5c20
movq %rbx, %r15
jmp 0x10c47
movq %rbx, 0xd5021(%rip)     # 0xe5c18
movq %rbx, (%rsp)
jmp 0x10c47
movb $0x1, 0xd5028(%rip)     # 0xe5c2c
jmp 0x10c47
addl $-0x2, %r13d
movq 0x10(%rbp), %rdi
addq $0x10, %rbp
callq 0xe580
movsd %xmm0, 0xd4871(%rip)    # 0xe5490
jmp 0x10c41
movb $0x1, 0xd5000(%rip)     # 0xe5c28
jmp 0x10c47
addl $-0x2, %r13d
movq 0x10(%rbp), %rdi
addq $0x10, %rbp
callq 0xe700
movl %eax, 0xd4857(%rip)     # 0xe5498
movl %r13d, %r14d
movq %rbp, %r12
movq %r12, %rbp
movl %r14d, %r13d
cmpl $0x1, %r14d
jg 0x10b3e
cmpq $0x0, (%rsp)
je 0x114bf
testq %r15, %r15
je 0x114bf
leaq 0xc0(%rsp), %rbx
movq %rbx, %rdi
callq 0x6f270
movq %rbx, %rdi
xorl %esi, %esi
callq 0xe760
movl $0x138, %edi            # imm = 0x138
callq 0xe440
movq %rax, %r14
movq %rax, %rdi
callq 0x11528
movq (%r14), %rax
movq %r14, %rdi
movq (%rsp), %rsi
callq *0x180(%rax)
testl %eax, %eax
je 0x114cf
cmpb $0x1, 0xd4f6f(%rip)     # 0xe5c28
jne 0x10d27
leaq 0x914e1(%rip), %rdi     # 0xa21a3
callq 0xe6f0
leaq 0xc0(%rsp), %rdi
callq 0x6f2d2
leaq 0x913e4(%rip), %rdi     # 0xa20bf
movb $0x1, %al
callq 0xe070
movl 0x34(%r14), %esi
leaq 0x913e9(%rip), %rdi     # 0xa20d6
xorl %eax, %eax
callq 0xe070
movl 0x24(%r14), %esi
leaq 0x913e7(%rip), %rdi     # 0xa20e6
xorl %eax, %eax
callq 0xe070
movl 0x14(%r14), %esi
leaq 0x913e5(%rip), %rdi     # 0xa20f6
xorl %eax, %eax
callq 0xe070
movq 0xd4251(%rip), %rax     # 0xe4f70
movq (%rax), %rdi
callq 0xe520
leaq 0xb0(%rsp), %rbx
movq %rbx, %rdi
callq 0x6f270
movq %rbx, %rdi
xorl %esi, %esi
callq 0xe760
movl $0x250, %edi            # imm = 0x250
callq 0xe440
movq %rax, %rbx
movq %r14, %rsi
addq $0xf8, %rsi
movsd 0xd4730(%rip), %xmm0    # 0xe5490
movl 0xd4732(%rip), %edx     # 0xe5498
movl 0xd4730(%rip), %ecx     # 0xe549c
movq %rax, %rdi
xorl %r8d, %r8d
callq 0x2e942
cmpl $0x0, 0x34(%r14)
je 0x10ec1
jle 0x10f2e
xorl %r13d, %r13d
leaq 0xa0(%rsp), %r12
movq 0x28(%r14), %rax
movq (%rax,%r13,8), %rax
movq 0x8(%rax), %rcx
movq 0x10(%rax), %rbp
movq 0x18(%rax), %r15
movsd 0x18(%rcx), %xmm0
movsd 0x20(%rcx), %xmm1
movsd 0x28(%rcx), %xmm2
leaq 0xc0(%rsp), %rdi
movq %rbx, %rsi
callq 0x2f6d4
movsd 0x18(%rbp), %xmm0
movsd 0x20(%rbp), %xmm1
movsd 0x28(%rbp), %xmm2
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x2f6d4
movsd 0x18(%r15), %xmm0
movsd 0x20(%r15), %xmm1
movsd 0x28(%r15), %xmm2
leaq 0x60(%rsp), %rdi
movq %rbx, %rsi
callq 0x2f6d4
movapd 0xc0(%rsp), %xmm0
movapd 0x911fe(%rip), %xmm1    # 0xa2010
addpd %xmm1, %xmm0
cvttpd2dq %xmm0, %xmm0
movlpd %xmm0, 0x48(%rsp)
movsd 0xd0(%rsp), %xmm0
movsd 0x911ff(%rip), %xmm2    # 0xa2030
addsd %xmm2, %xmm0
cvttsd2si %xmm0, %eax
movl %eax, 0x50(%rsp)
movsd 0x20(%rsp), %xmm0
addsd %xmm2, %xmm0
cvttsd2si %xmm0, %eax
movapd 0x10(%rsp), %xmm0
addpd %xmm1, %xmm0
cvttpd2dq %xmm0, %xmm0
movlpd %xmm0, 0x30(%rsp)
movl %eax, 0x38(%rsp)
movapd 0x60(%rsp), %xmm0
addpd %xmm1, %xmm0
cvttpd2dq %xmm0, %xmm0
movlpd %xmm0, 0xa0(%rsp)
movsd 0x70(%rsp), %xmm0
addsd %xmm2, %xmm0
cvttsd2si %xmm0, %eax
movl %eax, 0xa8(%rsp)
movq %rbx, %rdi
leaq 0x48(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %r12, %rcx
movsd 0x91191(%rip), %xmm0    # 0xa2038
xorl %r8d, %r8d
callq 0x34a44
incq %r13
movslq 0x34(%r14), %rax
cmpq %rax, %r13
jl 0x10d93
jmp 0x10f2e
cmpl $0x0, 0x14(%r14)
jle 0x10f2e
xorl %r12d, %r12d
leaq 0xc0(%rsp), %r15
movq 0x8(%r14), %rax
movq (%rax,%r12,8), %rax
movsd 0x18(%rax), %xmm0
movsd 0x20(%rax), %xmm1
movsd 0x28(%rax), %xmm2
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2f6d4
movsd 0xc0(%rsp), %xmm0
movsd 0xc8(%rsp), %xmm1
movsd 0xd0(%rsp), %xmm2
movq %rbx, %rdi
movsd 0x9111d(%rip), %xmm3    # 0xa2038
xorl %esi, %esi
callq 0x340e6
incq %r12
movslq 0x14(%r14), %rax
cmpq %rax, %r12
jl 0x10ed3
movsd 0x910fa(%rip), %xmm0    # 0xa2030
movsd 0x910fa(%rip), %xmm2    # 0xa2038
xorpd %xmm1, %xmm1
movq %rbx, %rdi
callq 0x309ac
cmpb $0x1, 0xd4cdb(%rip)     # 0xe5c2c
jne 0x112c3
movq %rbx, %rdi
callq 0x303f4
movq %rbx, %rdi
callq 0x300b6
movsd 0x228(%rbx), %xmm0
movq %rbx, %rdi
callq 0x32778
movslq 0x24c(%rbx), %r13
leaq (,%r13,4), %r15
testq %r13, %r13
movq $-0x1, %r12
cmovnsq %r15, %r12
movq %r12, %rdi
callq 0xe030
movq %rax, %rbp
movq %r12, %rdi
callq 0xe030
movq %rax, %r12
testq %r13, %r13
jle 0x10fc9
movq %rbp, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0xe260
movq %r12, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0xe260
movq %r12, 0x88(%rsp)
movq %rbp, 0x78(%rsp)
leaq 0xc0(%rsp), %r15
movq %r15, %rdi
movq %rbx, 0x80(%rsp)
movq %rbx, %rsi
callq 0x2ee42
xorpd %xmm0, %xmm0
movq %r15, %rdi
callq 0x322dc
cmpl $0x0, 0x34(%r14)
jle 0x11200
xorl %r15d, %r15d
leaq 0x10(%rsp), %rbp
leaq 0xc0(%rsp), %rbx
movq 0x28(%r14), %rax
movq (%rax,%r15,8), %r12
movq 0x20(%r12), %r13
testb $0x2, 0x38(%r13)
jne 0x1103b
movq (%r14), %rax
movq %r14, %rdi
movq %r13, %rsi
callq *0x2b8(%rax)
movsd 0x28(%r13), %xmm0
movsd %xmm0, (%rsp)
movq 0x28(%r12), %r13
testb $0x2, 0x38(%r13)
jne 0x11061
movq (%r14), %rax
movq %r14, %rdi
movq %r13, %rsi
callq *0x2b8(%rax)
movsd 0x28(%r13), %xmm0
movsd %xmm0, 0x98(%rsp)
movq 0x30(%r12), %r13
testb $0x2, 0x38(%r13)
jne 0x1108b
movq (%r14), %rax
movq %r14, %rdi
movq %r13, %rsi
callq *0x2b8(%rax)
movsd 0x28(%r13), %xmm0
movsd %xmm0, 0x90(%rsp)
movsd (%rsp), %xmm0
minsd 0x90f99(%rip), %xmm0    # 0xa2040
movsd %xmm0, (%rsp)
movsd 0xd43dc(%rip), %xmm0    # 0xe5490
movsd %xmm0, 0x8(%rsp)
leaq 0x60(%rsp), %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x11c12
testb $0x4, 0xa8(%r12)
jne 0x110e4
movq (%r14), %rax
movq %r14, %rdi
movq %r12, %rsi
callq *0x2c8(%rax)
movsd 0x98(%rsp), %xmm0
minsd (%rsp), %xmm0
movsd 0x90(%rsp), %xmm1
minsd %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
minsd %xmm1, %xmm0
leaq 0x38(%r12), %r13
movq %rbp, %rdi
movq %r13, %rsi
movsd %xmm0, 0x8(%rsp)
callq 0x3d962
leaq 0x48(%rsp), %rdi
leaq 0x60(%rsp), %rsi
movq %rbp, %rdx
callq 0x3c877
testb $0x4, 0xa8(%r12)
jne 0x1114b
movq (%r14), %rax
movq %r14, %rdi
movq %r12, %rsi
callq *0x2c8(%rax)
movq %rbp, %rdi
movq %r13, %rsi
movsd 0x8(%rsp), %xmm0
callq 0x3d962
leaq 0x30(%rsp), %rdi
leaq 0x60(%rsp), %rsi
movq %rbp, %rdx
callq 0x3cf53
movsd 0x48(%rsp), %xmm0
movsd 0x50(%rsp), %xmm1
movsd 0x58(%rsp), %xmm2
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x2f6d4
movsd 0x10(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
movsd 0x20(%rsp), %xmm2
movq %rbx, %rdi
movsd 0x90e90(%rip), %xmm3    # 0xa2038
xorl %esi, %esi
callq 0x340e6
movsd 0x30(%rsp), %xmm0
movsd 0x38(%rsp), %xmm1
movsd 0x40(%rsp), %xmm2
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x2f6d4
movsd 0x10(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
movsd 0x20(%rsp), %xmm2
movq %rbx, %rdi
movsd 0x90e5f(%rip), %xmm3    # 0xa2048
xorl %esi, %esi
callq 0x340e6
incq %r15
movslq 0x34(%r14), %rax
cmpq %rax, %r15
jl 0x11018
movq 0x80(%rsp), %rbx
movl 0x24c(%rbx), %esi
xorpd %xmm0, %xmm0
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
movq 0x88(%rsp), %r15
movq %r15, %r8
callq 0x39bb8
testl %eax, %eax
movq 0x78(%rsp), %r14
jle 0x112a6
movslq 0x24c(%rbx), %rax
testq %rax, %rax
jle 0x112a6
movq 0x2f0(%rsp), %rcx
xorl %edx, %edx
movslq (%r15,%rdx,4), %rsi
testq %rsi, %rsi
js 0x11267
xorps %xmm0, %xmm0
cvtsi2sdl (%r14,%rsi,4), %xmm0
addsd (%rcx,%rdx,8), %xmm0
cvttsd2si %xmm0, %edi
movl %edi, (%r14,%rsi,4)
incq %rdx
cmpq %rdx, %rax
jne 0x11248
xorl %ecx, %ecx
movapd 0x90da7(%rip), %xmm0    # 0xa2020
movslq (%r15,%rcx,4), %rdx
testq %rdx, %rdx
js 0x1129e
cmpl $0x0, (%r14,%rdx,4)
jns 0x1129e
movq 0x230(%rbx), %rdx
movsd (%rdx,%rcx,8), %xmm1
xorpd %xmm0, %xmm1
movlpd %xmm1, (%rdx,%rcx,8)
incq %rcx
cmpq %rcx, %rax
jne 0x11279
movq %r15, %rdi
callq 0xe5b0
movq %r14, %rdi
callq 0xe5b0
leaq 0xc0(%rsp), %rdi
callq 0x2ee9e
cmpb $0x1, 0xd495e(%rip)     # 0xe5c28
jne 0x1140a
leaq 0x90eda(%rip), %rdi     # 0xa21b1
callq 0xe6f0
leaq 0xb0(%rsp), %rdi
callq 0x6f2d2
leaq 0x90dcf(%rip), %rdi     # 0xa20bf
movb $0x1, %al
callq 0xe070
movl 0x238(%rbx), %esi
movl 0x23c(%rbx), %edx
movl 0x240(%rbx), %ecx
leaq 0x90df9(%rip), %rdi     # 0xa2109
xorl %eax, %eax
callq 0xe070
movsd 0x228(%rbx), %xmm0
leaq 0x90dfc(%rip), %rdi     # 0xa2122
movb $0x1, %al
callq 0xe070
movq %rbx, %rdi
callq 0x2f0a0
leaq 0x90df6(%rip), %rdi     # 0xa2132
movl %eax, %esi
xorl %eax, %eax
callq 0xe070
movsd 0x228(%rbx), %xmm0
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x2f0a0
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd (%rsp), %xmm1
mulsd %xmm1, %xmm0
mulsd %xmm1, %xmm0
mulsd %xmm1, %xmm0
leaq 0x90dcd(%rip), %rdi     # 0xa2146
movb $0x1, %al
callq 0xe070
leaq 0xc0(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2efe2
movsd (%r14), %xmm0
leaq 0x90db6(%rip), %rdi     # 0xa2155
movb $0x1, %al
callq 0xe070
movsd 0x8(%r14), %xmm0
leaq 0x90db2(%rip), %rdi     # 0xa2165
movb $0x1, %al
callq 0xe070
movq %rbx, %rdi
callq 0x2f048
leaq 0x90dac(%rip), %rdi     # 0xa2175
movb $0x1, %al
callq 0xe070
movq %rbx, %rdi
callq 0x2f070
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x113e8
sqrtsd %xmm0, %xmm0
jmp 0x113ed
callq 0xe340
leaq 0x90d90(%rip), %rdi     # 0xa2184
movb $0x1, %al
callq 0xe070
movq 0xd3b6e(%rip), %rax     # 0xe4f70
movq (%rax), %rdi
callq 0xe520
movq 0xd480f(%rip), %r14     # 0xe5c20
leaq 0xc0(%rsp), %r15
movq %r15, %rdi
callq 0x6f270
movq %r15, %rdi
xorl %esi, %esi
callq 0xe760
movq %rbx, %rdi
movq %r14, %rsi
callq 0x37b10
movl %eax, %ebx
cmpb $0x1, 0xd47e9(%rip)     # 0xe5c28
jne 0x1148c
leaq 0x90d7a(%rip), %rdi     # 0xa21c2
callq 0xe6f0
leaq 0xc0(%rsp), %rdi
callq 0x6f2d2
leaq 0x90c5e(%rip), %rdi     # 0xa20bf
movb $0x1, %al
callq 0xe070
leal (,%rbx,8), %esi
leaq 0x90d1d(%rip), %rdi     # 0xa2193
xorl %eax, %eax
callq 0xe070
movq 0xd3aec(%rip), %rax     # 0xe4f70
movq (%rax), %rdi
callq 0xe520
testl %ebx, %ebx
je 0x114d8
xorl %eax, %eax
addq $0x318, %rsp            # imm = 0x318
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x90bd3(%rip), %rdi     # 0xa207e
movq %rbx, %rsi
xorl %eax, %eax
callq 0x719d2
movl $0x1, %edi
callq 0xe550
leaq 0x90bd5(%rip), %rdi     # 0xa209b
xorl %eax, %eax
callq 0x719d2
jmp 0x114d8
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0xe550
jmp 0x1150d
jmp 0x1150d
movq %rax, %r15
movl $0x250, %esi            # imm = 0x250
movq %rbx, %rdi
jmp 0x114fe
movq %rax, %r15
movl $0x138, %esi            # imm = 0x138
movq %r14, %rdi
callq 0xe450
jmp 0x1151d
jmp 0x1150d
jmp 0x1150d
jmp 0x1150d
jmp 0x1150d
movq %rax, %r15
leaq 0xc0(%rsp), %rdi
callq 0x2ee9e
movq %r15, %rdi
callq 0xe7e0
nopl (%rax)