// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/apps/mshalign/mshalign.cpp
// Function: CreatePointCorrespondences(gaps::R3Mesh*, gaps::R3Point const*, int, gaps::R3Mesh*, gaps::R3Point const*, int, gaps::R3Affine const&, gaps::R3Affine const&, gaps::R3Point*, gaps::R3Point*, int)
static int
CreatePointCorrespondences(
  R3Mesh *mesh1, const R3Point *points1, int npoints1,
  R3Mesh *mesh2, const R3Point *points2, int npoints2, 
  const R3Affine& affine12, const R3Affine& affine21,
  R3Point *correspondences1, R3Point *correspondences2, 
  int max_correspondences)
{
  // Check method
  if (correspondence_method == 0) {
    return CreatePointPointCorrespondences(
      mesh1, points1, npoints1, 
      mesh2, points2, npoints2, 
      affine12, affine21, 
      correspondences1, correspondences2, max_correspondences);
  }
  else {
    return CreatePointSurfaceCorrespondences(
      mesh1, points1, npoints1, 
      mesh2, points2, npoints2, 
      affine12, affine21, 
      correspondences1, correspondences2, max_correspondences);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %r9d, %r13d
movq %r8, %r14
movl %edx, %r12d
movq %rsi, %rbp
movq %rdi, 0x58(%rsp)
movq 0xc0(%rsp), %rbx
cmpl $0x0, 0x6c07e(%rip)     # 0x7dae8
je 0x11b5e
cmpq $0x0, 0x6c088(%rip)     # 0x7db00
movl %r12d, 0x8(%rsp)
jne 0x11aa6
movq %rcx, %r15
movl $0x18, %edi
callq 0xc370
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x1294c
movq %r12, 0x6c05f(%rip)     # 0x7db00
movl 0x8(%rsp), %r12d
testl %r12d, %r12d
jle 0x11ce8
movq %r14, 0x50(%rsp)
movl %r13d, 0xc(%rsp)
movl %r12d, %r13d
movq %rbx, %r12
movq 0xc8(%rsp), %r15
leaq 0x60(%rsp), %r14
movq %r14, %rdi
movq %rbp, %rsi
callq 0x41ba2
movq %r14, %rdi
movq 0xb0(%rsp), %rsi
callq 0x424a8
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
callq 0x41b90
movq 0x6c005(%rip), %rdi     # 0x7db00
leaq 0x6bf76(%rip), %rax     # 0x7da78
movsd (%rax), %xmm1
xorps %xmm0, %xmm0
movq %r14, %rsi
leaq 0x10(%rsp), %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x14368
movq %r12, %rdi
movq %rbp, %rsi
callq 0x41efa
movq %r15, %rdi
movq %rbx, %rsi
callq 0x41efa
addq $0x18, %r15
addq $0x18, %r12
addq $0x18, %rbp
decq %r13
jne 0x11ac7
movq 0xc0(%rsp), %rbp
movl 0xc(%rsp), %r13d
movl 0x8(%rsp), %r12d
movq 0x50(%rsp), %r14
jmp 0x11cee
movl %r13d, 0xc(%rsp)
cmpq $0x0, 0x6bf85(%rip)     # 0x7daf0
jne 0x11bda
leaq 0x10(%rsp), %rdi
callq 0x55228
movl %r12d, %r13d
testl %r12d, %r12d
jle 0x11ba2
movl %r13d, %ebx
leaq 0x10(%rsp), %r15
movq %rbp, %r12
movl 0x1c(%rsp), %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x552be
addq $0x18, %r12
decq %rbx
jne 0x11b8a
movl $0x60, %edi
callq 0xc370
movq %rax, %r15
leaq 0x10(%rsp), %rsi
movq %rax, %rdi
xorl %edx, %edx
callq 0x11ec4
movq 0xc0(%rsp), %rbx
movl %r13d, %r12d
movq %r15, 0x6bf20(%rip)     # 0x7daf0
leaq 0x10(%rsp), %rdi
callq 0x55292
cmpq $0x0, 0x6bf16(%rip)     # 0x7daf8
jne 0x11c54
movl %r12d, %r13d
leaq 0x10(%rsp), %rdi
callq 0x55228
cmpl $0x0, 0xc(%rsp)
jle 0x11c1c
movl 0xc(%rsp), %ebx
leaq 0x10(%rsp), %r15
movq %r14, %r12
movl 0x1c(%rsp), %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x552be
addq $0x18, %r12
decq %rbx
jne 0x11c04
movl $0x60, %edi
callq 0xc370
movq %rax, %r15
leaq 0x10(%rsp), %rsi
movq %rax, %rdi
xorl %edx, %edx
callq 0x11ec4
movq 0xc0(%rsp), %rbx
movl %r13d, %r12d
movq %r15, 0x6beae(%rip)     # 0x7daf8
leaq 0x10(%rsp), %rdi
callq 0x55292
testl %r12d, %r12d
jle 0x11dc9
movl %r12d, 0x8(%rsp)
movq %rbx, %r15
movl %r12d, %ebx
movq 0xc8(%rsp), %r13
leaq 0x10(%rsp), %r12
movq %r12, %rdi
movq %rbp, %rsi
callq 0x41ba2
movq %r12, %rdi
movq 0xb0(%rsp), %rsi
callq 0x424a8
movq 0x6be61(%rip), %rdi     # 0x7daf8
xorps %xmm0, %xmm0
movq %r12, %rsi
movsd 0x4636b(%rip), %xmm1    # 0x58010
xorl %edx, %edx
callq 0x11ff2
movq %rax, %r12
movq %r15, %rdi
movq %rbp, %rsi
callq 0x41efa
movq %r13, %rdi
movq %r12, %rsi
callq 0x41efa
addq $0x18, %r13
addq $0x18, %r15
addq $0x18, %rbp
decq %rbx
jne 0x11c70
movl 0x8(%rsp), %r12d
movq 0xc0(%rsp), %rbx
jmp 0x11dcc
movq %rbx, %rbp
xorl %r12d, %r12d
cmpq $0x0, 0x6be12(%rip)     # 0x7db08
movq 0xc8(%rsp), %rbx
jne 0x11d21
movl $0x18, %edi
callq 0xc370
movq %rax, %r15
movq %rax, %rdi
movq 0x58(%rsp), %rsi
callq 0x1294c
movq %r15, 0x6bde7(%rip)     # 0x7db08
testl %r13d, %r13d
jle 0x11e63
movl %r12d, %edx
leaq 0x30(%rsp), %r12
movl %edx, %eax
movl %r13d, %ecx
movl %r13d, %r13d
shlq $0x3, %rax
leaq (%rax,%rax,2), %rax
addq %rax, %rbx
addq %rax, %rbp
addl %ecx, %edx
movl %edx, 0x8(%rsp)
leaq 0x60(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x41ba2
movq %r15, %rdi
movq 0xb8(%rsp), %rsi
callq 0x424a8
movq %r12, %rdi
callq 0x41b90
movq 0x6bd8b(%rip), %rdi     # 0x7db08
leaq 0x6bcf4(%rip), %rax     # 0x7da78
movsd (%rax), %xmm1
xorps %xmm0, %xmm0
movq %r15, %rsi
leaq 0x10(%rsp), %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x14368
movq %rbp, %rdi
movq %r12, %rsi
callq 0x41efa
movq %rbx, %rdi
movq %r14, %rsi
callq 0x41efa
addq $0x18, %rbx
addq $0x18, %rbp
addq $0x18, %r14
decq %r13
jne 0x11d53
jmp 0x11e5e
xorl %r12d, %r12d
movl 0xc(%rsp), %ecx
testl %ecx, %ecx
movq 0xc8(%rsp), %r13
movq 0xb8(%rsp), %rbp
jle 0x11e63
movl %r12d, %eax
movl %ecx, %r15d
shlq $0x3, %rax
leaq (%rax,%rax,2), %rax
addq %rax, %r13
addq %rax, %rbx
addl %ecx, %r12d
movl %r12d, 0x8(%rsp)
leaq 0x10(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x41ba2
movq %r12, %rdi
movq %rbp, %rsi
callq 0x424a8
movq 0x6bcce(%rip), %rdi     # 0x7daf0
xorps %xmm0, %xmm0
movq %r12, %rsi
movsd 0x461e0(%rip), %xmm1    # 0x58010
xorl %edx, %edx
callq 0x11ff2
movq %rbx, %rdi
movq %rax, %rsi
callq 0x41efa
movq %r13, %rdi
movq %r14, %rsi
callq 0x41efa
addq $0x18, %r13
addq $0x18, %rbx
addq $0x18, %r14
decq %r15
jne 0x11e05
movl 0x8(%rsp), %r12d
movl %r12d, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x11e79
jmp 0x11eae
movq %rax, %rbx
movl $0x60, %esi
movq %r15, %rdi
callq 0xc380
jmp 0x11eb1
jmp 0x11eae
movq %rax, %rbx
movl $0x18, %esi
movq %r15, %rdi
jmp 0x11ea5
movq %rax, %rbx
movl $0x18, %esi
movq %r12, %rdi
callq 0xc380
jmp 0x11ebb
jmp 0x11eae
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x55292
movq %rbx, %rdi
callq 0xc620
nop