user: 下面的汇编指令对应的C源代码是什么:

```asm
<narrowbandUnitCostDistanceNoEndPenaltySeq2LowMem>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,0x8(%rsp)
  mov    %rsi,0x10(%rsp)
  mov    %edx,0x44(%rsp)
  mov    %ecx,0x28(%rsp)
  mov    %r8d,0x40(%rsp)
  cmp    %ecx,%edx
  jg     L44
  lea    0x1(%rdx),%ebx
  mov    $0x8,%esi
  mov    %edx,%r14d
  movslq %ebx,%rdi
  call   <calloc@plt>
  mov    %rax,0x38(%rsp)
  test   %r14d,%r14d
  js     L352
  mov    0x40(%rsp),%eax
  mov    0x44(%rsp),%ecx
  mov    %ebx,0x18(%rsp)
  xor    %ebp,%ebp
  mov    0x38(%rsp),%r15
  mov    %eax,%r13d
  sub    %eax,%ecx
  neg    %r13d
  lea    0x1(%rcx),%r12d
  mov    %r15,%rbx
  mov    %eax,%r15d
  mov    %r13d,%r14d
  mov    %r12d,%r13d
  mov    0x28(%rsp),%r12d
  xchg   %ax,%ax
L298:
  xor    %esi,%esi
  mov    %ebp,%edi
  test   %r14d,%r14d
  mov    %r15d,%eax
  cmovg  %r14d,%edi
  setg   %sil
  xor    %ecx,%ecx
  cmp    %r15d,%r12d
  cmovle %r12d,%eax
  setg   %cl
  add    $0x1,%r14d
  add    $0x1,%r15d
  add    $0x8,%rbx
  sub    %edi,%eax
  lea    0x1(%rsi,%rax,1),%edi
  mov    $0x4,%esi
  add    %ecx,%edi
  movslq %edi,%rdi
  call   <calloc@plt>
  mov    %rax,-0x8(%rbx)
  cmp    %r13d,%r14d
  jne    L298
  mov    0x18(%rsp),%ebx
L352:
  mov    0x40(%rsp),%esi
  test   %esi,%esi
  js     L339
  mov    0x40(%rsp),%ecx
  cmp    %ecx,0x28(%rsp)
  jg     L101
  mov    0x28(%rsp),%eax
  xor    %esi,%esi
  xor    %r15d,%r15d
  lea    0x1(%rax),%edx
  test   %edx,%edx
  jg     L157
  jmp    L170
L101:
  mov    0x40(%rsp),%eax
  mov    $0x1,%esi
  lea    0x1(%rax),%edx
L157:
  mov    0x38(%rsp),%rax
  mov    (%rax),%rcx
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L162:
  mov    %eax,(%rcx,%rax,4)
  add    $0x1,%rax
  cmp    %eax,%edx
  jg     L162
  xor    %r15d,%r15d
L99:
  test   %esi,%esi
  je     L170
  lea    0x1(%rdx),%eax
  cltq
  movl   $0x3e8,-0x4(%rcx,%rax,4)
L170:
  mov    0x44(%rsp),%ecx
  test   %ecx,%ecx
  jle    L262
  mov    0x40(%rsp),%ecx
  mov    $0x1,%r10d
  lea    0x1(%rcx,%rcx,1),%eax
  lea    0x1(%rcx),%r12d
  mov    %eax,0x48(%rsp)
  mov    $0x1,%eax
  sub    %ecx,%eax
  mov    %eax,0x18(%rsp)
  mov    0x38(%rsp),%rax
  lea    0x8(%rax),%r14
  mov    %ebx,%eax
  mov    %rax,0x30(%rsp)
  mov    0x28(%rsp),%eax
  add    $0x1,%eax
  mov    %eax,0x4c(%rsp)
  mov    %r12d,%eax
  nopw   0x0(%rax,%rax,1)
L113:
  mov    0x18(%rsp),%ebx
  mov    %r10d,%r13d
  mov    %ebx,%ebp
  test   %ebx,%ebx
  jle    L227
  mov    0x28(%rsp),%ecx
  cmp    %eax,%ecx
  jg     L55
  sub    0x18(%rsp),%ecx
  movl   $0x0,0x24(%rsp)
  mov    %ecx,%edx
  add    $0x1,%edx
L349:
  mov    (%r14),%rcx
  lea    0x1(%rdx),%ebx
  add    $0x1,%eax
  mov    $0x1,%r12d
  mov    %ebx,0x1c(%rsp)
  movl   $0x3e8,(%rcx)
  mov    %eax,0x20(%rsp)
  cmp    $0x1,%ebx
  jle    L92
L142:
  mov    0x1c(%rsp),%ebx
  movslq %r12d,%rcx
  sub    %r15d,%ebp
  mov    %r12d,0x2c(%rsp)
  mov    (%r14),%r9
  shl    $0x2,%rcx
  lea    (%r15,%r12,1),%eax
  sub    %r12d,%ebp
  add    %r15d,%ebx
  jmp    L321
  cs nopw 0x0(%rax,%rax,1)
L40:
  add    $0x1,%eax
  mov    %r13d,(%r9)
  add    $0x4,%rcx
  cmp    %eax,%ebx
  je     L32
L321:
  cmp    %eax,%r15d
  je     L40
  mov    -0x8(%r14),%r11
  movslq %eax,%rdx
  mov    -0x4(%r9,%rcx,1),%edi
  lea    0x0(%rbp,%rax,1),%esi
  mov    0x10(%rsp),%r8
  mov    0x8(%rsp),%r12
  movslq %esi,%rsi
  mov    (%r11,%rdx,4),%edx
  add    $0x1,%edi
  movzbl -0x1(%r12,%r10,1),%r12d
  add    $0x1,%edx
  cmp    %r12b,-0x1(%r8,%rsi,1)
  lea    -0x1(%rax),%r8d
  setne  %sil
  movslq %r8d,%r8
  movzbl %sil,%esi
  add    (%r11,%r8,4),%esi
  cmp    %esi,%edx
  mov    %esi,%r8d
  cmovle %edx,%r8d
  cmp    %edi,%edx
  cmovg  %edi,%edx
  cmp    %esi,%edi
  cmovge %r8d,%edx
  add    $0x1,%eax
  mov    %edx,(%r9,%rcx,1)
  add    $0x4,%rcx
  cmp    %eax,%ebx
  jne    L321
L32:
  mov    0x2c(%rsp),%r12d
L92:
  mov    0x24(%rsp),%edx
  test   %edx,%edx
  je     L334
L198:
  mov    0x1c(%rsp),%eax
  mov    (%r14),%rdx
  add    $0x1,%eax
  cltq
  movl   $0x3e8,-0x4(%rdx,%rax,4)
L334:
  mov    %r12d,%r15d
L335:
  addl   $0x1,0x18(%rsp)
  mov    0x20(%rsp),%eax
  add    $0x1,%r10
  add    $0x8,%r14
  cmp    0x30(%rsp),%r10
  jne    L113
L262:
  mov    0x44(%rsp),%ecx
  mov    0x40(%rsp),%ebx
  mov    $0x1,%r8d
  mov    %ecx,%eax
  sub    %ebx,%eax
  add    %ecx,%ebx
  mov    %ebx,%edx
  test   %eax,%eax
  jg     L21
  xor    %r8d,%r8d
  xor    %eax,%eax
L21:
  xor    %edi,%edi
  cmp    %edx,0x28(%rsp)
  jle    L322
  mov    %edx,0x28(%rsp)
  mov    $0x1,%edi
L322:
  mov    0x28(%rsp),%edx
  movslq 0x44(%rsp),%rsi
  mov    0x38(%rsp),%rcx
  sub    %eax,%edx
  mov    (%rcx,%rsi,8),%rcx
  lea    0x1(%r8,%rdx,1),%edx
  add    %edi,%edx
  mov    (%rcx),%r12d
  cmp    $0x1,%edx
  jle    L336
  sub    $0x2,%edx
  lea    0x4(%rcx),%rax
  lea    0x8(%rcx,%rdx,4),%rcx
  nopw   0x0(%rax,%rax,1)
L22:
  mov    (%rax),%edx
  cmp    %edx,%r12d
  cmovg  %edx,%r12d
  add    $0x4,%rax
  cmp    %rax,%rcx
  jne    L22
L336:
  mov    0x44(%rsp),%eax
  test   %eax,%eax
  js     L224
  mov    0x38(%rsp),%rax
  mov    %rax,%rbx
  lea    0x8(%rax,%rsi,8),%rbp
  nopw   0x0(%rax,%rax,1)
L175:
  mov    (%rbx),%rdi
  add    $0x8,%rbx
  call   <free@plt>
  cmp    %rbp,%rbx
  jne    L175
L224:
  mov    0x38(%rsp),%rdi
  call   <free@plt>
L148:
  add    $0x58,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L227:
  cmp    %eax,0x28(%rsp)
  jle    L342
  add    $0x1,%eax
  movl   $0x1,0x24(%rsp)
  xor    %ebp,%ebp
  xor    %r12d,%r12d
  mov    %eax,0x20(%rsp)
  mov    %eax,0x1c(%rsp)
  test   %eax,%eax
  jg     L142
  jmp    L198
  nopl   0x0(%rax,%rax,1)
L55:
  movl   $0x1,0x24(%rsp)
  mov    0x48(%rsp),%edx
  jmp    L349
  nopl   0x0(%rax)
L342:
  mov    0x4c(%rsp),%ebx
  mov    %ebx,0x1c(%rsp)
  test   %ebx,%ebx
  jle    L102
  add    $0x1,%eax
  movl   $0x0,0x24(%rsp)
  xor    %ebp,%ebp
  xor    %r12d,%r12d
  mov    %eax,0x20(%rsp)
  jmp    L142
L339:
  mov    0x40(%rsp),%ecx
  cmp    %ecx,0x28(%rsp)
  jg     L83
  mov    0x28(%rsp),%eax
  mov    0x40(%rsp),%ecx
  xor    %esi,%esi
  lea    0x1(%rax,%rcx,1),%edx
L345:
  mov    0x38(%rsp),%rax
  add    $0x1,%edx
  mov    $0x1,%r15d
  mov    (%rax),%rcx
  movl   $0x3e8,(%rcx)
  jmp    L99
L83:
  mov    0x40(%rsp),%eax
  mov    $0x1,%esi
  lea    0x1(%rax,%rax,1),%edx
  jmp    L345
L102:
  add    $0x1,%eax
  xor    %r15d,%r15d
  mov    %eax,0x20(%rsp)
  jmp    L335
L44:
  mov    $0xffffffff,%r12d
  jmp    L148
```

assistant: ```c
int narrowbandUnitCostDistanceNoEndPenaltySeq2LowMem(char *seq1, char *seq2, int len1, int len2, int maxerr) {
  int **S;
  int score;
  int row, col;
  int match;
  int left, up, diagonal;
  int from, to;
  int rowlength;
  int leftboundary, rightboundary;
  int previousleftboundary;
  if (len1 > len2) {
    return (-1);
  }
  S = (int **)calloc((len1 + 1), sizeof(int *));
  for (row = 0; row <= len1; row++) {
    from = row - maxerr;
    to = row + maxerr;
    leftboundary = 0;
    if (from <= 0)
      from = 0;
    else
      leftboundary = 1;
    rightboundary = 0;
    if (to >= len2)
      to = len2;
    else
      rightboundary = 1;
    rowlength = to - from + 1;
    S[row] = (int *)calloc(leftboundary + rowlength + rightboundary, sizeof(int));
  }
  row = 0;
  from = row - maxerr;
  to = row + maxerr;
  leftboundary = 0;
  if (from <= 0)
    from = 0;
  else
    leftboundary = 1;
  rightboundary = 0;
  if (to >= len2)
    to = len2;
  else
    rightboundary = 1;
  rowlength = to - from + 1;
  if (leftboundary) {
    S[row][0] = 1000;
  }
  for (col = leftboundary; col <= leftboundary + rowlength - 1; col++) {
    S[row][col] = col;
  }
  if (rightboundary) {
    S[row][leftboundary + rowlength + rightboundary - 1] = 1000;
  }
  previousleftboundary = leftboundary;
  for (row = 1; row <= len1; row++) {
    from = row - maxerr;
    to = row + maxerr;
    leftboundary = 0;
    if (from <= 0)
      from = 0;
    else
      leftboundary = 1;
    rightboundary = 0;
    if (to >= len2)
      to = len2;
    else
      rightboundary = 1;
    rowlength = to - from + 1;
    if (leftboundary) {
      S[row][0] = 1000;
    }
    for (col = leftboundary; col <= leftboundary + rowlength - 1; col++) {
      if (col == 0)
        S[row][0] = row;
      else {
        match = (seq1[row - 1] == seq2[from + col - leftboundary - 1]) ? 0 : 1;
        up = S[row - 1][col + previousleftboundary] + 1;
        left = S[row][col - 1] + 1;
        diagonal = S[row - 1][col - (1 - previousleftboundary)] + match;
        S[row][col] = ((diagonal <= left) ? ((diagonal <= up) ? diagonal : up) : ((left <= up) ? left : up));
      }
    }
    if (rightboundary) {
      S[row][leftboundary + rowlength + rightboundary - 1] = 1000;
    }
    previousleftboundary = leftboundary;
  }
  row = len1;
  from = row - maxerr;
  to = row + maxerr;
  leftboundary = 0;
  if (from <= 0)
    from = 0;
  else
    leftboundary = 1;
  rightboundary = 0;
  if (to >= len2)
    to = len2;
  else
    rightboundary = 1;
  rowlength = to - from + 1;
  score = S[row][0];
  for (col = 1; col <= leftboundary + rowlength + rightboundary - 1; col++) {
    if (S[row][col] < score) {
      score = S[row][col];
    }
  }
  for (row = 0; row <= len1; row++) {
    free(S[row]);
  }
  free(S);
  return (score);
}
```