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

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

  // Create isosurface
  R3Mesh *mesh = CreateMesh(grid, threshold);
  if (!mesh) exit(-1);

  // Write mesh
  int status = WriteMesh(mesh, mesh_name);
  if (!status) exit(-1);

  // Return success 
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rsi, %r15
movl %edi, %r12d
cmpl $0x2, %edi
jne 0x10b65
movq 0x8(%r15), %rax
cmpb $0x2d, (%rax)
je 0x11188
cmpl $0x2, %r12d
jl 0x10c1f
movq 0xd50aa(%rip), %rax     # 0xe5c20
movq %rax, (%rsp)
movq 0xd508f(%rip), %rbp     # 0xe5c10
leaq 0x8(%r15), %r14
leal -0x1(%r12), %ebx
movq 0x8(%r15), %r13
cmpb $0x2d, (%r13)
jne 0x10be0
movq %r13, %rdi
leaq 0x91465(%rip), %rsi     # 0xa2004
callq 0xe640
testl %eax, %eax
je 0x10bfd
movq %r13, %rdi
leaq 0x91455(%rip), %rsi     # 0xa2007
callq 0xe640
testl %eax, %eax
jne 0x11113
addl $-0x2, %r12d
movq 0x10(%r15), %rdi
addq $0x10, %r15
callq 0xe580
movsd %xmm0, 0xd5040(%rip)    # 0xe5c18
movl %r12d, %ebx
movq %r15, %r14
jmp 0x10c10
testq %rbp, %rbp
je 0x10c06
cmpq $0x0, (%rsp)
jne 0x11113
movq %r13, 0xd5029(%rip)     # 0xe5c20
movq %r13, (%rsp)
jmp 0x10c10
movb $0x1, 0xd5024(%rip)     # 0xe5c28
jmp 0x10c10
movq %r13, 0xd5003(%rip)     # 0xe5c10
movq %r13, %rbp
movq %r14, %r15
movl %ebx, %r12d
cmpl $0x1, %ebx
jg 0x10b81
movq 0xd4fea(%rip), %r14     # 0xe5c10
leaq 0x28(%rsp), %rbx
movq %rbx, %rdi
callq 0x6fcbc
movq %rbx, %rdi
xorl %esi, %esi
callq 0xe760
movl $0x250, %edi            # imm = 0x250
callq 0xe440
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x2e3b8
movq %rbx, %rdi
movq %r14, %rsi
callq 0x35a60
testl %eax, %eax
je 0x10e6f
cmpb $0x1, 0xd4fb6(%rip)     # 0xe5c28
jne 0x10e82
leaq 0x91517(%rip), %rdi     # 0xa2196
callq 0xe6f0
leaq 0x28(%rsp), %rdi
callq 0x6fd1e
leaq 0x913b7(%rip), %rdi     # 0xa204c
movb $0x1, %al
callq 0xe070
movl 0x238(%rbx), %esi
movl 0x23c(%rbx), %edx
movl 0x240(%rbx), %ecx
leaq 0x913ae(%rip), %rdi     # 0xa2063
xorl %eax, %eax
callq 0xe070
leaq 0x10(%rsp), %r14
xorpd %xmm0, %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
movq %r14, %rdi
callq 0x3c692
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 0xa0(%rsp), %r15
movq %r15, %rdi
callq 0x3c692
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
movsd 0x10(%r14), %xmm2
leaq 0x88(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x35a3a
movsd (%r15), %xmm0
movsd 0x8(%r15), %xmm1
movsd 0x10(%r15), %xmm2
leaq 0x70(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x35a3a
leaq 0x38(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x271ae
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 0x912e3(%rip), %rdi     # 0xa207c
movb $0x6, %al
callq 0xe070
movsd 0x228(%rbx), %xmm0
leaq 0x912f6(%rip), %rdi     # 0xa20a5
movb $0x1, %al
callq 0xe070
movq %rbx, %rdi
callq 0x2eff2
leaq 0x912f0(%rip), %rdi     # 0xa20b5
movl %eax, %esi
xorl %eax, %eax
callq 0xe070
movsd 0x228(%rbx), %xmm0
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x2eff2
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd (%rsp), %xmm1
mulsd %xmm1, %xmm0
mulsd %xmm1, %xmm0
mulsd %xmm1, %xmm0
leaq 0x912c7(%rip), %rdi     # 0xa20c9
movb $0x1, %al
callq 0xe070
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x2ef34
movsd 0x10(%rsp), %xmm0
leaq 0x912b5(%rip), %rdi     # 0xa20d8
movb $0x1, %al
callq 0xe070
movsd 0x18(%rsp), %xmm0
leaq 0x912b1(%rip), %rdi     # 0xa20e8
movb $0x1, %al
callq 0xe070
movq %rbx, %rdi
callq 0x2ef9a
leaq 0x912ab(%rip), %rdi     # 0xa20f8
movb $0x1, %al
callq 0xe070
movq 0xd4115(%rip), %rax     # 0xe4f70
movq (%rax), %rdi
callq 0xe520
leaq 0x38(%rsp), %rdi
callq 0x27fb4
jmp 0x10e82
leaq 0x911ba(%rip), %rdi     # 0xa2030
xorl %ebx, %ebx
movq %r14, %rsi
xorl %eax, %eax
callq 0x7268a
testq %rbx, %rbx
je 0x1112e
movsd 0xd4d85(%rip), %xmm0    # 0xe5c18
movsd %xmm0, (%rsp)
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x6fcbc
movq %r14, %rdi
xorl %esi, %esi
callq 0xe760
movl $0x138, %edi            # imm = 0x138
callq 0xe440
movq %rax, %r14
movq %rax, %rdi
callq 0x111e4
movb 0x180d4d66(%rip), %al   # 0x180e5c30
testb %al, %al
je 0x11138
leaq 0xd4d57(%rip), %r15     # 0xe5c30
movq %rbx, %rdi
movsd (%rsp), %xmm0
movq %r15, %rsi
movl $0x1000000, %edx        # imm = 0x1000000
callq 0x3a776
testl %eax, %eax
je 0x11033
jle 0x10fbb
movq %rbx, %r12
xorl %ebp, %ebp
movl %eax, 0xc(%rsp)
movsd (%r15), %xmm0
movsd 0x8(%r15), %xmm1
movsd 0x10(%r15), %xmm2
leaq 0x38(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x35a3a
movq (%r14), %rax
movq %r14, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq *0x20(%rax)
movq %rax, (%rsp)
movsd 0x18(%r15), %xmm0
movsd 0x20(%r15), %xmm1
movsd 0x28(%r15), %xmm2
movq %r13, %rdi
movq %r12, %rsi
callq 0x35a3a
movq (%r14), %rax
movq %r14, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq *0x20(%rax)
movq %rax, %rbx
movsd 0x30(%r15), %xmm0
movsd 0x38(%r15), %xmm1
movsd 0x40(%r15), %xmm2
movq %r13, %rdi
movq %r12, %rsi
callq 0x35a3a
movq (%r14), %rax
movq %r14, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq *0x20(%rax)
movq (%r14), %r9
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
movq (%rsp), %rcx
xorl %r8d, %r8d
callq *0x48(%r9)
movl 0xc(%rsp), %eax
addl $0x3, %ebp
addq $0x48, %r15
cmpl %eax, %ebp
jl 0x10f05
cmpb $0x0, 0xd4c66(%rip)     # 0xe5c28
je 0x11049
leaq 0x911d5(%rip), %rdi     # 0xa21a4
callq 0xe6f0
leaq 0x10(%rsp), %rdi
callq 0x6fd1e
leaq 0x91067(%rip), %rdi     # 0xa204c
movb $0x1, %al
callq 0xe070
movl 0x34(%r14), %esi
leaq 0x91134(%rip), %rdi     # 0xa212b
xorl %eax, %eax
callq 0xe070
movl 0x24(%r14), %esi
leaq 0x91132(%rip), %rdi     # 0xa213b
xorl %eax, %eax
callq 0xe070
movl 0x14(%r14), %esi
leaq 0x91130(%rip), %rdi     # 0xa214b
xorl %eax, %eax
callq 0xe070
movq 0xd3f47(%rip), %rax     # 0xe4f70
movq (%rax), %rdi
callq 0xe520
jmp 0x11049
leaq 0x910cd(%rip), %rdi     # 0xa2107
movsd (%rsp), %xmm0
movb $0x1, %al
callq 0x7268a
xorl %r14d, %r14d
testq %r14, %r14
je 0x1112e
movq 0xd4bc7(%rip), %rbx     # 0xe5c20
leaq 0x38(%rsp), %r15
movq %r15, %rdi
callq 0x6fcbc
movq %r15, %rdi
xorl %esi, %esi
callq 0xe760
movq (%r14), %rax
movq %r14, %rdi
movq %rbx, %rsi
callq *0x1d0(%rax)
testl %eax, %eax
je 0x1112e
movl %eax, %ebx
cmpb $0x1, 0xd4b98(%rip)     # 0xe5c28
jne 0x110fb
leaq 0x9111c(%rip), %rdi     # 0xa21b5
callq 0xe6f0
leaq 0x38(%rsp), %rdi
callq 0x6fd1e
leaq 0x90f9d(%rip), %rdi     # 0xa204c
movb $0x1, %al
callq 0xe070
movl 0x34(%r14), %esi
leaq 0x9106a(%rip), %rdi     # 0xa212b
xorl %eax, %eax
callq 0xe070
movl 0x24(%r14), %esi
leaq 0x91068(%rip), %rdi     # 0xa213b
xorl %eax, %eax
callq 0xe070
movl 0x14(%r14), %esi
leaq 0x91066(%rip), %rdi     # 0xa214b
xorl %eax, %eax
callq 0xe070
movq 0xd3e7d(%rip), %rax     # 0xe4f70
movq (%rax), %rdi
callq 0xe520
testl %ebx, %ebx
je 0x1112e
xorl %eax, %eax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x90ef8(%rip), %rdi     # 0xa2012
movq %r13, %rsi
xorl %eax, %eax
callq 0x7268a
movl $0x1, %edi
callq 0xe550
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0xe550
leaq 0x180d4af1(%rip), %rdi  # 0x180e5c30
callq 0xe810
testl %eax, %eax
je 0x10ed2
movq %r14, %r12
movq %rbx, %r14
xorl %ebx, %ebx
leaq 0xd4ad5(%rip), %r15     # 0xe5c30
leaq (%r15,%rbx), %rdi
callq 0x3c690
addq $0x18, %rbx
cmpq $0x18000000, %rbx       # imm = 0x18000000
jne 0x1115b
leaq 0x180d4ab8(%rip), %rdi  # 0x180e5c30
callq 0xe2e0
movq %r14, %rbx
movq %r12, %r14
jmp 0x10ed2
leaq 0x90fcf(%rip), %rdi     # 0xa215e
callq 0xe6f0
xorl %edi, %edi
callq 0xe550
movq %rax, %r15
leaq 0x180d4a8b(%rip), %rdi  # 0x180e5c30
callq 0xe2d0
jmp 0x111da
jmp 0x111ae
movq %rax, %r15
leaq 0x38(%rsp), %rdi
callq 0x27fb4
jmp 0x111da
movq %rax, %r15
movl $0x138, %esi            # imm = 0x138
movq %r14, %rdi
jmp 0x111d5
movq %rax, %r15
movl $0x250, %esi            # imm = 0x250
movq %rbx, %rdi
callq 0xe450
movq %r15, %rdi
callq 0xe7e0
nop