// File: /workspace/github_cpp_makefile_star2_O3/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 0x2d409
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 0x2a4cc
cmpl $0x0, 0x40(%rsp)
je 0x2df86
leaq 0x3c(%rsp), %rdx
movl $0x3e7, (%rdx)          # imm = 0x3E7
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2db6c
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rax
movl $0xffffffff, 0x3c(%rsp) # imm = 0xFFFFFFFF
cmpq %rax, %rsi
je 0x2dfb2
movl $0xffffffff, (%rsi)     # imm = 0xFFFFFFFF
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x2dfc7
leaq 0x44(%rsp), %rdx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2fffc
movq 0x8(%rbx), %rsi
movq 0x50(%rsp), %rdx
cmpq 0x10(%rbx), %rsi
je 0x2dfeb
movl (%rdx), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x2dff7
leaq 0x3c(%rsp), %rdx
movq %rbx, %rdi
callq 0x2db6c
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rax
movl $0xffffffff, 0x3c(%rsp) # imm = 0xFFFFFFFF
cmpq %rax, %rsi
je 0x2dfdc
movl $0xffffffff, (%rsi)     # imm = 0xFFFFFFFF
jmp 0x2e006
leaq 0x3c(%rsp), %rdx
movq %rbx, %rdi
callq 0x2db6c
jmp 0x2e00e
movq %rbx, %rdi
callq 0x2fffc
movq 0x8(%rbx), %rsi
movq 0x48(%rsp), %rdx
cmpq 0x10(%rbx), %rsi
je 0x2e044
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 0x2d439
movq %rbx, %rax
addq $0x90, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rbx, %rdi
callq 0x2fffc
jmp 0x2e00e
jmp 0x2e054
jmp 0x2e054
jmp 0x2e054
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2e06b
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x63c0
movq %r14, %rdi
callq 0x6660