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

```asm
<test>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  cmpl   $0x1,-0x18(%rbp)
  jle    L48
  movl   $0x1,-0x10(%rbp)
  jmp    L8
L157:
  movl   $0x1,-0xc(%rbp)
  jmp    L122
L24:
  mov    -0xc(%rbp),%eax
  add    $0x1,%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L67
  mov    -0xc(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0x4(%rbp)
  mov    $0x2,%edi
  call   <hash@plt>
  mov    -0x10(%rbp),%eax
  mov    %eax,%edi
  call   <hash@plt>
  mov    -0xc(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,%edi
  call   <hash@plt>
L67:
  addl   $0x1,-0xc(%rbp)
L122:
  cmpl   $0x2,-0xc(%rbp)
  jle    L24
  movl   $0x3,-0xc(%rbp)
  jmp    L143
L151:
  mov    -0xc(%rbp),%eax
  sub    -0x18(%rbp),%eax
  mov    $0x1,%edx
  test   %eax,%eax
  cmovle %edx,%eax
  mov    %eax,-0x8(%rbp)
  jmp    L152
L20:
  mov    -0xc(%rbp),%eax
  sub    -0x8(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  mov    $0x1,%edi
  call   <hash@plt>
  mov    -0x10(%rbp),%eax
  mov    %eax,%edi
  call   <hash@plt>
  mov    -0xc(%rbp),%eax
  sub    -0x8(%rbp),%eax
  mov    %eax,%edi
  call   <hash@plt>
  mov    -0x8(%rbp),%eax
  mov    %eax,%edi
  call   <hash@plt>
  addl   $0x1,-0x8(%rbp)
L152:
  cmpl   $0x0,-0xc(%rbp)
  jg     L159
  mov    $0x2,%eax
  sub    -0xc(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  neg    %eax
  jmp    L111
L159:
  mov    -0xc(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
L111:
  cmp    -0x8(%rbp),%eax
  jge    L20
  mov    -0xc(%rbp),%eax
  add    $0x1,%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L114
  mov    -0xc(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0x4(%rbp)
  mov    $0x2,%edi
  call   <hash@plt>
  mov    -0x10(%rbp),%eax
  mov    %eax,%edi
  call   <hash@plt>
  mov    -0xc(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,%edi
  call   <hash@plt>
L114:
  addl   $0x1,-0xc(%rbp)
L143:
  mov    -0x18(%rbp),%eax
  add    %eax,%eax
  cmp    %eax,-0xc(%rbp)
  jl     L151
  addl   $0x1,-0x10(%rbp)
L8:
  mov    -0x10(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jle    L157
L48:
  cmpl   $0x1,-0x18(%rbp)
  jne    L2
  movl   $0x1,-0x10(%rbp)
  jmp    L74
L52:
  mov    $0x2,%edi
  call   <hash@plt>
  mov    -0x10(%rbp),%eax
  mov    %eax,%edi
  call   <hash@plt>
  mov    $0x1,%edi
  call   <hash@plt>
  addl   $0x1,-0x10(%rbp)
L74:
  mov    -0x10(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jle    L52
L2:
  nop
  leave
  ret
```

assistant: ```c
void test(int M, int N) {
  int c2, c4, c6;
  int i, j, k;
  if (N >= 2) {
    for (c2 = 1; c2 <= M; c2++) {
      for (c4 = 1; c4 <= 2; c4++) {
        if ((c4 + 1) % 2 == 0) {
          j = (c4 + 1) / 2;
          {
            hash(2);
            hash(c2);
            hash((c4 + 1) / 2);
          };
        }
      }
      for (c4 = 3; c4 <= 2 * N - 1; c4++) {
        for (c6 = ((1) > (c4 - N) ? (1) : (c4 - N)); c6 <= (((c4 - 1) < 0) ? -((-(c4 - 1) + (2) - 1) / (2)) : (c4 - 1) / (2)); c6++) {
          j = c4 - c6;
          {
            hash(1);
            hash(c2);
            hash(c4 - c6);
            hash(c6);
          };
        }
        if ((c4 + 1) % 2 == 0) {
          j = (c4 + 1) / 2;
          {
            hash(2);
            hash(c2);
            hash((c4 + 1) / 2);
          };
        }
      }
    }
  }
  if (N == 1) {
    for (c2 = 1; c2 <= M; c2++) {
      {
        hash(2);
        hash(c2);
        hash(1);
      };
    }
  }
}
```