user: 这段汇编代码用C语言表示是什么样的?

```asm
<makeBMTable2>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x61000(%rsp),%r11
L320:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L320
  sub    $0xab8,%rsp
  mov    %esi,0xc(%rsp)
  mov    %rdi,%r14
  mov    %rdx,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x61aa8(%rsp)
  xor    %eax,%eax
  test   %esi,%esi
  jle    L342
  movslq %esi,%r12
  mov    %esi,%r15d
  mov    %rbp,%rdi
  mov    $0xff,%esi
  lea    0x0(,%r12,4),%rbx
  mov    %rbx,%rdx
  call   <memset@plt>
  lea    -0x1(%r15),%r11d
  lea    -0x4(%rbp,%rbx,1),%r8
  mov    %r12,0x10(%rsp)
  mov    %r11d,0x1c(%rsp)
  mov    (%r8),%edx
  test   %r11d,%r11d
  je     L101
  mov    0xc(%rsp),%eax
  lea    -0x3(%r12),%rcx
  lea    -0x1(%r14,%r12,1),%rdi
  movl   $0x0,0x8(%rsp)
  lea    -0x2(%rax),%r10d
  mov    %r10d,%esi
  movslq %r10d,%rax
  sub    %rsi,%rcx
  jmp    L352
  nopl   (%rax)
L42:
  cmp    $0xffffffff,%edx
  jne    L248
  mov    %r11d,%edx
  sub    %eax,%edx
  mov    %edx,(%r8)
L248:
  sub    $0x1,%rax
  cmp    %rax,%rcx
  je     L310
L352:
  movzbl (%rdi),%ebx
  cmp    %bl,(%r14,%rax,1)
  jne    L42
  movslq 0x8(%rsp),%rsi
  mov    %eax,0x20(%rsp,%rsi,4)
  lea    0x1(%rsi),%esi
  sub    $0x1,%rax
  mov    %esi,0x8(%rsp)
  cmp    %rax,%rcx
  jne    L352
L310:
  cmp    $0xffffffff,%edx
  je     L279
L149:
  movslq %r10d,%r12
  lea    0x20(%rsp),%r15
  nopl   0x0(%rax)
L331:
  mov    0xc(%rsp),%eax
  sub    %r12d,%eax
  mov    %eax,0x18(%rsp)
  mov    0x8(%rsp),%eax
  test   %eax,%eax
  je     L346
  mov    0x8(%rsp),%r13d
  xor    %ecx,%ecx
  jmp    L393
  nopl   0x0(%rax,%rax,1)
L154:
  sub    $0x1,%ebx
  mov    %eax,%ecx
  mov    %ebx,0x20(%rsp,%rdx,4)
L284:
  cmp    %ecx,%r13d
  jle    L280
L393:
  movslq %ecx,%rdx
  lea    0x1(%rcx),%eax
  mov    0x20(%rsp,%rdx,4),%ebx
  test   %ebx,%ebx
  je     L357
  movslq %ebx,%rsi
  movzbl (%r14,%r12,1),%edi
  cmp    %dil,-0x1(%r14,%rsi,1)
  je     L154
L357:
  cmp    %eax,%r13d
  jle    L290
  lea    -0x2(%r13),%edx
  cltq
  mov    %ecx,(%rsp)
  sub    %ecx,%edx
  lea    (%r15,%rax,4),%rsi
  lea    -0x4(%r15,%rax,4),%rdi
  lea    0x4(,%rdx,4),%rdx
  call   <memmove@plt>
  mov    (%rsp),%ecx
L290:
  sub    $0x1,%r13d
  cmpl   $0xffffffff,0x0(%rbp,%r12,4)
  jne    L284
  mov    0x18(%rsp),%eax
  lea    -0x1(%rbx,%rax,1),%edx
  mov    0xc(%rsp),%eax
  sub    %edx,%eax
  mov    %eax,0x0(%rbp,%r12,4)
  cmp    %ecx,%r13d
  jg     L393
  nopl   0x0(%rax,%rax,1)
L280:
  test   %r13d,%r13d
  je     L346
  test   %r12d,%r12d
  jle    L346
  mov    0x8(%rsp),%edx
  sub    $0x1,%r12
  test   %edx,%edx
  je     L346
  mov    %r13d,0x8(%rsp)
  jmp    L331
L342:
  je     L408
  movslq 0xc(%rsp),%rax
  lea    -0x1(%rax),%edi
  lea    -0x4(%rdx,%rax,4),%r8
  mov    %rax,0x10(%rsp)
  mov    %edi,0x1c(%rsp)
  mov    (%r8),%edx
L101:
  cmp    $0xffffffff,%edx
  je     L103
  nopl   0x0(%rax,%rax,1)
L346:
  cmpl   $0x1,0xc(%rsp)
  jle    L173
  mov    0x10(%rsp),%rdx
  mov    0xc(%rsp),%eax
  movl   $0xffffffff,0x8(%rsp)
  movslq 0x1c(%rsp),%r13
  sub    $0x2,%rdx
  sub    $0x2,%eax
  sub    %rax,%rdx
  mov    %rdx,(%rsp)
  jmp    L125
  nopl   0x0(%rax)
L410:
  sub    $0x1,%r13
  cmp    (%rsp),%r13
  je     L160
L125:
  cmpl   $0xffffffff,-0x4(%rbp,%r13,4)
  movslq %r13d,%rbx
  jne    L410
  mov    0xc(%rsp),%r15d
  sub    %r13d,%r15d
  test   %r15d,%r15d
  jle    L30
  lea    (%r14,%r13,1),%r12
  jmp    L117
  nopl   0x0(%rax)
L50:
  add    $0x1,%r12
  sub    $0x1,%r15d
  je     L328
L117:
  mov    %r15d,%edx
  mov    %r12,%rsi
  mov    %r14,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L50
  mov    0xc(%rsp),%eax
  sub    %r15d,%eax
L204:
  cmp    %eax,0x8(%rsp)
  je     L160
  mov    %eax,-0x4(%rbp,%r13,4)
  sub    $0x1,%r13
  mov    %eax,0x8(%rsp)
  cmp    (%rsp),%r13
  jne    L125
  nopl   (%rax)
L160:
  cmpl   $0xffffffff,-0x4(%rbp,%rbx,4)
  jne    L230
  mov    0x8(%rsp),%eax
  mov    %eax,-0x4(%rbp,%rbx,4)
L230:
  sub    $0x1,%rbx
  test   %ebx,%ebx
  jg     L160
L408:
  mov    0x61aa8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L205
  add    $0x61ab8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L328:
  mov    0xc(%rsp),%eax
  jmp    L204
L279:
  mov    0xc(%rsp),%eax
  mov    %eax,(%r8)
  jmp    L149
L30:
  mov    %r13d,%eax
  jmp    L204
L173:
  jne    L408
  movl   $0xffffffff,0x8(%rsp)
  mov    $0x1,%ebx
  jmp    L160
L103:
  mov    0xc(%rsp),%eax
  mov    %eax,(%r8)
  jmp    L346
L205:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void makeBMTable2(char *pattern, int patLen, int *bmTable) {
  int sIdx1;
  int sIdx0;
  int nextIdx[100000];
  int nextIdxSize;
  int sLen;
  int curIdx1;
  int i, j;
  for (i = 0; i < patLen; i++)
    bmTable[i] = -1;
  sIdx1 = patLen;
  if (sIdx1 == 0)
    return;
  for (nextIdxSize = 0, sIdx0 = sIdx1 - 1; sIdx0 > 0; --sIdx0) {
    if (pattern[sIdx0 - 1] == pattern[sIdx1 - 1]) {
      nextIdx[nextIdxSize++] = sIdx0 - 1;
    } else if (bmTable[sIdx1 - 1] == -1) {
      bmTable[sIdx1 - 1] = patLen - sIdx0;
    }
  }
  if (bmTable[sIdx1 - 1] == -1)
    bmTable[sIdx1 - 1] = patLen;
  sLen = 2;
  for (--sIdx1; sIdx1 > 0; --sIdx1) {
    for (i = 0; i < nextIdxSize;) {
      sIdx0 = nextIdx[i];
      if (sIdx0 == 0 || pattern[sIdx0 - 1] != pattern[sIdx1 - 1]) {
        for (j = i + 1; j < nextIdxSize; j++)
          nextIdx[j - 1] = nextIdx[j];
        --nextIdxSize;
        if (bmTable[sIdx1 - 1] == -1)
          bmTable[sIdx1 - 1] = patLen - (sIdx0 + sLen - 1);
      } else {
        --nextIdx[i];
        ++i;
      }
    }
    if (nextIdxSize == 0)
      break;
    ++sLen;
  }
  sIdx1 = patLen;
  curIdx1 = -1;
  while (sIdx1 > 1) {
    --sIdx1;
    if (bmTable[sIdx1 - 1] != -1)
      continue;
    sLen = patLen - sIdx1;
    i = 0;
    while (sLen > 0) {
      if (strncmp(pattern, pattern + sIdx1 + i, sLen) == 0)
        break;
      ++i;
      --sLen;
    }
    if (curIdx1 == patLen - sLen)
      break;
    bmTable[sIdx1 - 1] = curIdx1 = patLen - sLen;
  }
  while (sIdx1 > 0) {
    if (bmTable[sIdx1 - 1] == -1)
      bmTable[sIdx1 - 1] = curIdx1;
    --sIdx1;
  }
}
```