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

  // Open scene
  R3SurfelScene *scene = OpenScene(scene_name, database_name);
  if (!scene) exit(-1);

  // Create features 
  if (!CreateFeatures(scene)) exit(-1);

  // Close scene
  if (!CloseScene(scene)) exit(-1);

  // Return success 
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq 0x10f75c(%rip), %r14    # 0x124ca8
movq 0x10f75d(%rip), %r15    # 0x124cb0
addq $0x8, %rsi
cmpl $0x2, %edi
jl 0x155b1
movq (%rsi), %rax
cmpb $0x2d, (%rax)
jne 0x15587
cmpb $0x76, 0x1(%rax)
jne 0x15814
cmpb $0x0, 0x2(%rax)
jne 0x15814
movb $0x1, 0x10f739(%rip)    # 0x124cb8
addq $0x8, %rsi
decl %edi
jmp 0x15557
testq %r14, %r14
jne 0x1559a
decl %edi
movq %rax, 0x10f713(%rip)    # 0x124ca8
movq %rax, %r14
jmp 0x15553
testq %r15, %r15
jne 0x15814
decl %edi
movq %rax, 0x10f704(%rip)    # 0x124cb0
movq %rax, %r15
jmp 0x15553
testq %r14, %r14
je 0x15838
testq %r15, %r15
je 0x15838
movq %rsp, %rbx
movq %rbx, %rdi
callq 0x9a266
movq %rbx, %rdi
callq 0x15862
movl $0x1f0, %edi            # imm = 0x1F0
callq 0x134f0
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
callq 0x17854
movq (%rbx), %rax
leaq 0xb9c8d(%rip), %rcx     # 0xcf284
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rcx, %r8
callq *0xe8(%rax)
testl %eax, %eax
je 0x1582d
cmpb $0x1, 0x10f6a0(%rip)    # 0x124cb8
jne 0x15706
leaq 0xb2ae6(%rip), %rdi     # 0xc810b
callq 0x13800
movq %rsp, %rdi
callq 0x9a2a0
leaq 0xb2a19(%rip), %rdi     # 0xc8052
movb $0x1, %al
callq 0x13070
movl 0x1c(%rbx), %esi
leaq 0xb2a1f(%rip), %rdi     # 0xc8069
xorl %eax, %eax
callq 0x13070
movl 0x2c(%rbx), %esi
leaq 0xb2a20(%rip), %rdi     # 0xc807b
xorl %eax, %eax
callq 0x13070
movl 0x7c(%rbx), %esi
leaq 0xb2a20(%rip), %rdi     # 0xc808c
xorl %eax, %eax
callq 0x13070
movl 0xac(%rbx), %esi
leaq 0xb2a22(%rip), %rdi     # 0xc80a2
xorl %eax, %eax
callq 0x13070
movl 0x8c(%rbx), %esi
leaq 0xb2a21(%rip), %rdi     # 0xc80b5
xorl %eax, %eax
callq 0x13070
movl 0x9c(%rbx), %esi
leaq 0xb2a1d(%rip), %rdi     # 0xc80c5
xorl %eax, %eax
callq 0x13070
movq 0x8(%rbx), %rax
movl 0x24(%rax), %esi
leaq 0xb2a19(%rip), %rdi     # 0xc80d6
xorl %eax, %eax
callq 0x13070
movq 0x8(%rbx), %rax
movq 0x10(%rax), %rax
movl 0x4c(%rax), %esi
leaq 0xb2a10(%rip), %rdi     # 0xc80e6
xorl %eax, %eax
callq 0x13070
movq 0x8(%rbx), %rax
movq 0x10(%rax), %rax
movq 0x50(%rax), %rsi
leaq 0xb2a07(%rip), %rdi     # 0xc80f7
xorl %eax, %eax
callq 0x13070
movq 0x10e882(%rip), %rax    # 0x123f80
movq (%rax), %rdi
callq 0x135e0
movq %rbx, %rdi
callq 0x1586c
testl %eax, %eax
je 0x15846
movq %rsp, %r14
movq %r14, %rdi
callq 0x9a266
movq %r14, %rdi
callq 0x15862
cmpb $0x1, 0x10f588(%rip)    # 0x124cb8
jne 0x157f6
leaq 0xb29df(%rip), %rdi     # 0xc811c
callq 0x13800
movq %rsp, %rdi
callq 0x9a2a0
leaq 0xb2901(%rip), %rdi     # 0xc8052
movb $0x1, %al
callq 0x13070
movl 0x1c(%rbx), %esi
leaq 0xb2907(%rip), %rdi     # 0xc8069
xorl %eax, %eax
callq 0x13070
movl 0x2c(%rbx), %esi
leaq 0xb2908(%rip), %rdi     # 0xc807b
xorl %eax, %eax
callq 0x13070
movl 0x7c(%rbx), %esi
leaq 0xb2908(%rip), %rdi     # 0xc808c
xorl %eax, %eax
callq 0x13070
movl 0xac(%rbx), %esi
leaq 0xb290a(%rip), %rdi     # 0xc80a2
xorl %eax, %eax
callq 0x13070
movq 0x8(%rbx), %rax
movl 0x24(%rax), %esi
leaq 0xb2929(%rip), %rdi     # 0xc80d6
xorl %eax, %eax
callq 0x13070
movq 0x8(%rbx), %rax
movq 0x10(%rax), %rax
movl 0x4c(%rax), %esi
leaq 0xb2920(%rip), %rdi     # 0xc80e6
xorl %eax, %eax
callq 0x13070
movq 0x8(%rbx), %rax
movq 0x10(%rax), %rax
movq 0x50(%rax), %rsi
leaq 0xb2917(%rip), %rdi     # 0xc80f7
xorl %eax, %eax
callq 0x13070
movq 0x10e792(%rip), %rax    # 0x123f80
movq (%rax), %rdi
callq 0x135e0
movq (%rbx), %rax
movq %rbx, %rdi
xorl %esi, %esi
callq *0xf8(%rax)
testl %eax, %eax
je 0x1582d
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0xb27e9(%rip), %rdi     # 0xc8004
movq %rax, %rsi
xorl %eax, %eax
callq 0x9ce26
pushq $0x1
popq %rdi
callq 0x13610
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
jmp 0x15846
leaq 0xb27e2(%rip), %rdi     # 0xc8021
xorl %eax, %eax
callq 0x9ce26
pushq $-0x1
jmp 0x15827
movq %rax, %r14
movl $0x1f0, %esi            # imm = 0x1F0
movq %rbx, %rdi
callq 0x13500
movq %r14, %rdi
callq 0x138f0