// File: /workspace/github_cpp_makefile_star2_O1/VanAndelInstitute[P]intent/src/seq_tools.cpp
// Function: getEnds(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::vector<int> getEnds(std::string s1, std::string s2) {
  std::vector<int> res;
  EdlibAlignResult result = edlibAlign(s1.c_str(),
                                       s1.length(),
                                       s2.c_str(),
                                       s2.length(),
                                       edlibNewAlignConfig(-1,
                                                           EDLIB_MODE_HW,
                                                           EDLIB_TASK_PATH,
                                                           NULL,
                                                           0));
  if (result.status == EDLIB_STATUS_OK) {
    res.push_back(result.editDistance);
    res.push_back(result.startLocations[0]);
    res.push_back(result.endLocations[0]);
  } else {
    res.push_back(999);
    res.push_back(-1);
    res.push_back(-1);
  }
  edlibFreeAlignResult(result);
  return(res);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x90, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq (%rsi), %r14
movq 0x8(%rsi), %r15
movq (%rdx), %r12
movq 0x8(%rdx), %r13
leaq 0x70(%rsp), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0x2, %edx
movl $0x2, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x2d61b
movups 0x70(%rsp), %xmm0
movups 0x80(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
movl %r15d, %edx
movq %r12, %rcx
movl %r13d, %r8d
callq 0x2a568
cmpl $0x0, 0x40(%rsp)
je 0x2db8a
movl $0x3e7, 0x3c(%rsp)      # imm = 0x3E7
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2dba4
movl $0x3e7, (%rsi)          # imm = 0x3E7
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x2dbb1
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2dc09
movl 0x44(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x2dc16
leaq 0x3c(%rsp), %rdx
movq %rbx, %rdi
callq 0x2d782
movl $0xffffffff, 0x3c(%rsp) # imm = 0xFFFFFFFF
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2dbd3
movl $0xffffffff, (%rsi)     # imm = 0xFFFFFFFF
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x2dbe0
leaq 0x3c(%rsp), %rdx
movq %rbx, %rdi
callq 0x2d782
movl $0xffffffff, 0x3c(%rsp) # imm = 0xFFFFFFFF
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2dbfa
movl $0xffffffff, (%rsi)     # imm = 0xFFFFFFFF
jmp 0x2dc4e
leaq 0x3c(%rsp), %rdx
movq %rbx, %rdi
callq 0x2d782
jmp 0x2dc56
leaq 0x44(%rsp), %rdx
movq %rbx, %rdi
callq 0x2fc3c
movq 0x50(%rsp), %rdx
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2dc33
movl (%rdx), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x2dc3b
movq %rbx, %rdi
callq 0x2fc3c
movq 0x48(%rsp), %rdx
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2dc8c
movl (%rdx), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
movups 0x40(%rsp), %xmm0
movups 0x50(%rsp), %xmm1
movups 0x60(%rsp), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x2d64b
movq %rbx, %rax
addq $0x90, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rbx, %rdi
callq 0x2fc3c
jmp 0x2dc56
jmp 0x2dc9c
jmp 0x2dc9c
jmp 0x2dc9c
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2dcb3
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x63c0
movq %r14, %rdi
callq 0x6660