user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<similarity>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x27000(%rsp),%r11
L47:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L47
  sub    $0x158,%rsp
  mov    %esi,0x34(%rsp)
  mov    %ecx,%r13d
  mov    %rdi,%rbp
  xor    %esi,%esi
  mov    %rdx,0x18(%rsp)
  lea    0x40(%rsp),%rdi
  mov    $0x27100,%edx
  mov    %r8,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x27148(%rsp)
  xor    %eax,%eax
  mov    %rdi,0x20(%rsp)
  call   <memset@plt>
  movslq %r13d,%rax
  mov    %rax,0x38(%rsp)
  test   %r13d,%r13d
  jle    L42
  mov    0x18(%rsp),%rsi
  mov    0x20(%rsp),%rdi
  xor    %eax,%eax
  xor    %edx,%edx
  mov    0x38(%rsp),%r8
  nopl   0x0(%rax)
L87:
  movsbq (%rsi,%rax,1),%rcx
  add    0xb400(%rbx,%rcx,4),%edx
  mov    %edx,0x4(%rdi,%rax,4)
  add    $0x1,%rax
  cmp    %r8,%rax
  jne    L87
L42:
  mov    0x34(%rsp),%eax
  test   %eax,%eax
  jle    L66
  mov    0x34(%rsp),%eax
  mov    0x40(%rsp),%esi
  lea    0x360(%rsp),%rcx
  sub    $0x1,%eax
  lea    0x1(%rbp,%rax,1),%rdi
  mov    %rbp,%rax
  mov    %rdi,0x28(%rsp)
  nopl   (%rax)
L88:
  movsbq (%rax),%rdx
  add    $0x1,%rax
  add    $0x320,%rcx
  shl    $0xa,%rdx
  add    0xb4(%rbx,%rdx,1),%esi
  mov    %esi,-0x320(%rcx)
  cmp    %rdi,%rax
  jne    L88
  test   %r13d,%r13d
  jle    L66
  mov    0x18(%rsp),%rcx
  lea    -0x1(%r13),%eax
  mov    $0x320,%r14d
  movq   $0x0,0x8(%rsp)
  lea    0x1(%rcx,%rax,1),%rax
  mov    %rax,0x10(%rsp)
  nopl   0x0(%rax,%rax,1)
L53:
  mov    0x18(%rsp),%r15
  mov    0x20(%rsp),%r13
  sub    0x8(%rsp),%r13
  mov    %r13,%rax
  mov    %r14,%r13
  mov    %r15,%r14
  mov    %rax,%r15
  nopl   0x0(%rax,%rax,1)
L16:
  mov    0x8(%rsp),%rax
  movsbq (%r14),%rdi
  add    $0x1,%r14
  mov    (%r15),%esi
  lea    (%rax,%r15,1),%r12
  movsbq 0x0(%rbp),%rax
  add    $0x4,%r15
  shl    $0xa,%rax
  add    %rbx,%rax
  add    (%rax,%rdi,4),%esi
  mov    0xb400(%rbx,%rdi,4),%edi
  add    (%r12,%r13,1),%edi
  call   <max@plt>
  mov    (%r15),%edi
  mov    %eax,%esi
  movsbq 0x0(%rbp),%rax
  shl    $0xa,%rax
  add    0xb4(%rbx,%rax,1),%edi
  call   <max@plt>
  mov    %eax,0x4(%r12,%r13,1)
  cmp    %r14,0x10(%rsp)
  jne    L16
  subq   $0x320,0x8(%rsp)
  mov    %r13,%r14
  add    $0x1,%rbp
  add    $0x320,%r14
  cmp    0x28(%rsp),%rbp
  jne    L53
L66:
  movslq 0x34(%rsp),%rax
  mov    0x38(%rsp),%rcx
  lea    (%rax,%rax,4),%rax
  lea    (%rax,%rax,4),%rax
  lea    (%rcx,%rax,8),%rax
  mov    0x40(%rsp,%rax,4),%eax
  mov    0x27148(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L34
  add    $0x27158,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L34:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int similarity(char *a, int a_len, char *b, int b_len, int score[][256]) {
  int s[200][200] = {0};
  for (int j = 0; j < b_len; ++j) {
    s[0][j + 1] = s[0][j] + score['-'][b[j]];
  }
  for (int i = 0; i < a_len; ++i) {
    s[i + 1][0] = s[i][0] + score[a[i]]['-'];
  }
  for (int i = 0; i < a_len; ++i) {
    for (int j = 0; j < b_len; ++j) {
      s[i + 1][j + 1] = max(s[i][j + 1] + score[a[i]]['-'], max(s[i + 1][j] + score['-'][b[j]], s[i][j] + score[a[i]][b[j]]));
    }
  }
  return s[a_len][b_len];
}
```