// File: /workspace/github_cpp_makefile_star2_O3/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 0x10b44
movq 0x8(%r15), %rax
cmpb $0x2d, (%rax)
jne 0x10b4a
leaq 0x91623(%rip), %rdi     # 0xa215b
callq 0xe6f0
xorl %edi, %edi
callq 0xe550
jl 0x10bf3
movq 0xd50cf(%rip), %rbp     # 0xe5c20
movq 0xd50b8(%rip), %r14     # 0xe5c10
leaq 0x914a5(%rip), %rbx     # 0xa2004
leaq 0x8(%r15), %rcx
leal -0x1(%r12), %eax
movq 0x8(%r15), %r13
cmpb $0x2d, (%r13)
jne 0x10bb5
cmpb $0x76, 0x1(%r13)
jne 0x10b81
cmpb $0x0, 0x2(%r13)
je 0x10bdb
movq %r13, %rdi
movq %rbx, %rsi
callq 0xe640
testl %eax, %eax
jne 0x110af
addl $-0x2, %r12d
movq 0x10(%r15), %rdi
addq $0x10, %r15
callq 0xe580
movsd %xmm0, 0xd506b(%rip)    # 0xe5c18
movl %r12d, %eax
movq %r15, %rcx
jmp 0x10be2
testq %r14, %r14
je 0x10bcf
testq %rbp, %rbp
jne 0x110af
movq %r13, 0xd5056(%rip)     # 0xe5c20
movq %r13, %rbp
jmp 0x10be2
movq %r13, 0xd503a(%rip)     # 0xe5c10
movq %r13, %r14
jmp 0x10be2
movb $0x1, 0xd5046(%rip)     # 0xe5c28
movq %rcx, %r15
movl %eax, %r12d
cmpl $0x1, %eax
jg 0x10b5f
jmp 0x10bfa
movq 0xd5016(%rip), %r14     # 0xe5c10
leaq 0x28(%rsp), %rbx
movq %rbx, %rdi
callq 0x6eed4
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 0x2e0b4
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3585e
testl %eax, %eax
je 0x110ca
cmpb $0x1, 0xd4fe2(%rip)     # 0xe5c28
jne 0x10e41
leaq 0x91540(%rip), %rdi     # 0xa2193
callq 0xe6f0
leaq 0x28(%rsp), %rdi
callq 0x6ef36
leaq 0x913e0(%rip), %rdi     # 0xa2049
movb $0x1, %al
callq 0xe070
movl 0x238(%rbx), %esi
movl 0x23c(%rbx), %edx
movl 0x240(%rbx), %ecx
leaq 0x913d7(%rip), %rdi     # 0xa2060
xorl %eax, %eax
callq 0xe070
leaq 0x10(%rsp), %r14
xorpd %xmm0, %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
movq %r14, %rdi
callq 0x3c196
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 0x3c196
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
movsd 0x10(%r14), %xmm2
leaq 0x88(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x35838
movsd (%r15), %xmm0
movsd 0x8(%r15), %xmm1
movsd 0x10(%r15), %xmm2
leaq 0x70(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x35838
leaq 0x38(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x26f8a
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 0x9130c(%rip), %rdi     # 0xa2079
movb $0x6, %al
callq 0xe070
movsd 0x228(%rbx), %xmm0
leaq 0x9131f(%rip), %rdi     # 0xa20a2
movb $0x1, %al
callq 0xe070
movq %rbx, %rdi
callq 0x2ed04
leaq 0x91319(%rip), %rdi     # 0xa20b2
movl %eax, %esi
xorl %eax, %eax
callq 0xe070
movsd 0x228(%rbx), %xmm0
movsd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x2ed04
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd (%rsp), %xmm1
mulsd %xmm1, %xmm0
mulsd %xmm1, %xmm0
mulsd %xmm1, %xmm0
leaq 0x912f0(%rip), %rdi     # 0xa20c6
movb $0x1, %al
callq 0xe070
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x2ec46
movsd 0x10(%rsp), %xmm0
leaq 0x912de(%rip), %rdi     # 0xa20d5
movb $0x1, %al
callq 0xe070
movsd 0x18(%rsp), %xmm0
leaq 0x912da(%rip), %rdi     # 0xa20e5
movb $0x1, %al
callq 0xe070
movq %rbx, %rdi
callq 0x2ecac
leaq 0x912d4(%rip), %rdi     # 0xa20f5
movb $0x1, %al
callq 0xe070
movq 0xd4141(%rip), %rax     # 0xe4f70
movq (%rax), %rdi
callq 0xe520
leaq 0x38(%rsp), %rdi
callq 0x27d58
movsd 0xd4dcf(%rip), %xmm0    # 0xe5c18
movsd %xmm0, (%rsp)
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x6eed4
movq %r14, %rdi
xorl %esi, %esi
callq 0xe760
movl $0x138, %edi            # imm = 0x138
callq 0xe440
movq %rax, %r14
movq %rax, %rdi
callq 0x1118c
movq %r14, %r13
movb 0x180d4dad(%rip), %al   # 0x180e5c30
testb %al, %al
je 0x110dd
leaq 0xd4d9e(%rip), %r15     # 0xe5c30
movq %rbx, %r14
movq %rbx, %rdi
movsd (%rsp), %xmm0
movq %r15, %rsi
movl $0x1000000, %edx        # imm = 0x1000000
callq 0x3a316
testl %eax, %eax
je 0x11127
movq %r13, %r12
jle 0x10f7b
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 %r14, %rsi
callq 0x35838
movq (%r12), %rax
movq %r12, %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 %r14, %rsi
callq 0x35838
movq (%r12), %rax
movq %r12, %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 %r14, %rsi
callq 0x35838
movq (%r12), %rax
movq %r12, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq *0x20(%rax)
movq (%r12), %r9
movq %r12, %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 0x10ec1
cmpb $0x0, 0xd4ca6(%rip)     # 0xe5c28
je 0x10ff0
leaq 0x91216(%rip), %rdi     # 0xa21a1
callq 0xe6f0
leaq 0x10(%rsp), %rdi
callq 0x6ef36
leaq 0x910a8(%rip), %rdi     # 0xa2049
movb $0x1, %al
callq 0xe070
movl 0x34(%r12), %esi
leaq 0x91174(%rip), %rdi     # 0xa2128
xorl %eax, %eax
callq 0xe070
movl 0x24(%r12), %esi
leaq 0x91171(%rip), %rdi     # 0xa2138
xorl %eax, %eax
callq 0xe070
movl 0x14(%r12), %esi
leaq 0x9116e(%rip), %rdi     # 0xa2148
xorl %eax, %eax
callq 0xe070
movq 0xd3f88(%rip), %rax     # 0xe4f70
movq (%rax), %rdi
callq 0xe520
movq 0xd4c29(%rip), %rbx     # 0xe5c20
leaq 0x38(%rsp), %r15
movq %r15, %rdi
callq 0x6eed4
movq %r15, %rdi
xorl %esi, %esi
callq 0xe760
movq (%r12), %rax
movq %r12, %rdi
movq %rbx, %rsi
callq *0x1d0(%rax)
testl %eax, %eax
je 0x1113a
cmpb $0x1, 0xd4bfb(%rip)     # 0xe5c28
jne 0x1109b
leaq 0x9117c(%rip), %rdi     # 0xa21b2
callq 0xe6f0
leaq 0x38(%rsp), %rdi
callq 0x6ef36
leaq 0x90ffd(%rip), %rdi     # 0xa2049
movb $0x1, %al
callq 0xe070
movl 0x34(%r12), %esi
leaq 0x910c9(%rip), %rdi     # 0xa2128
xorl %eax, %eax
callq 0xe070
movl 0x24(%r12), %esi
leaq 0x910c6(%rip), %rdi     # 0xa2138
xorl %eax, %eax
callq 0xe070
movl 0x14(%r12), %esi
leaq 0x910c3(%rip), %rdi     # 0xa2148
xorl %eax, %eax
callq 0xe070
movq 0xd3edd(%rip), %rax     # 0xe4f70
movq (%rax), %rdi
callq 0xe520
xorl %eax, %eax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x90f59(%rip), %rdi     # 0xa200f
movq %r13, %rsi
xorl %eax, %eax
callq 0x71636
movl $0x1, %edi
callq 0xe550
leaq 0x90f5c(%rip), %rdi     # 0xa202d
movq %r14, %rsi
xorl %eax, %eax
callq 0x71636
jmp 0x1113a
leaq 0x180d4b4c(%rip), %rdi  # 0x180e5c30
callq 0xe810
testl %eax, %eax
je 0x10e8b
movq %rbx, %r12
xorl %ebx, %ebx
leaq 0xd4b33(%rip), %r15     # 0xe5c30
leaq (%r15,%rbx), %rdi
callq 0x3c194
addq $0x18, %rbx
cmpq $0x18000000, %rbx       # imm = 0x18000000
jne 0x110fd
leaq 0x180d4b16(%rip), %rdi  # 0x180e5c30
callq 0xe2e0
movq %r12, %rbx
jmp 0x10e8b
leaq 0x90fd6(%rip), %rdi     # 0xa2104
movsd (%rsp), %xmm0
movb $0x1, %al
callq 0x71636
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0xe550
movq %rax, %r15
leaq 0x180d4ae2(%rip), %rdi  # 0x180e5c30
callq 0xe2d0
jmp 0x11183
jmp 0x11164
movq %rax, %r15
movl $0x138, %esi            # imm = 0x138
movq %r14, %rdi
jmp 0x1117e
movq %rax, %r15
leaq 0x38(%rsp), %rdi
callq 0x27d58
jmp 0x11183
movq %rax, %r15
movl $0x250, %esi            # imm = 0x250
movq %rbx, %rdi
callq 0xe450
movq %r15, %rdi
callq 0xe7e0
nop