user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<InitEtaN>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %edx,-0x44(%rbp)
  movl   $0x0,-0x24(%rbp)
  jmp    L30
L80:
  mov    -0x24(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x20(%rbp)
  jmp    L134
L127:
  mov    -0x24(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x20(%rbp)
  jne    L34
  mov    -0x44(%rbp),%eax
  add    $0x1,%eax
  imul   -0x44(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,%edx
  mov    -0x24(%rbp),%eax
  add    %edx,%eax
  jmp    L82
L34:
  mov    -0x24(%rbp),%eax
  imul   -0x44(%rbp),%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%eax
  add    %eax,%edx
  mov    -0x24(%rbp),%eax
  add    $0x1,%eax
  imul   -0x24(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  neg    %eax
  add    %edx,%eax
L82:
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  lea    (%rdx,%rax,1),%rbx
  mov    $0x8,%edi
  call   <malloc@plt>
  mov    %rax,(%rbx)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movl   $0x0,(%rax)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  add    $0x4,%rax
  movl   $0xffffffff,(%rax)
  addl   $0x1,-0x20(%rbp)
L134:
  mov    -0x44(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jg     L127
  addl   $0x1,-0x24(%rbp)
L30:
  mov    -0x44(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jg     L80
  movl   $0x0,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x18(%rbp)
  jmp    L11
L55:
  movl   $0x0,-0x24(%rbp)
  jmp    L105
L52:
  mov    -0x18(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  jmp    L8
L16:
  mov    -0x24(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x20(%rbp)
  jne    L27
  mov    -0x44(%rbp),%eax
  add    $0x1,%eax
  imul   -0x44(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,%edx
  mov    -0x24(%rbp),%eax
  add    %edx,%eax
  jmp    L94
L27:
  mov    -0x24(%rbp),%eax
  imul   -0x44(%rbp),%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%eax
  add    %eax,%edx
  mov    -0x24(%rbp),%eax
  add    $0x1,%eax
  imul   -0x24(%rbp),%eax
  mov    %eax,%ecx
  shr    $0x1f,%ecx
  add    %ecx,%eax
  sar    %eax
  neg    %eax
  add    %edx,%eax
L94:
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    (%rax),%edx
  add    $0x1,%edx
  mov    %edx,(%rax)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  cmp    $0xffffffff,%eax
  jne    L58
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  lea    0x4(%rax),%rdx
  mov    -0x1c(%rbp),%eax
  mov    %eax,(%rdx)
L58:
  addl   $0x1,-0x20(%rbp)
L8:
  mov    -0x44(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jg     L16
  addl   $0x1,-0x24(%rbp)
L105:
  mov    -0x24(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  jle    L52
  addl   $0x1,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x18(%rbp)
L11:
  cmpl   $0xffffffff,-0x18(%rbp)
  jne    L55
  nop
  nop
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void InitEtaN(int **etaN, const int *nicks, int seqlength) {
  int i, j, k, nick;
  int indexE;
  for (i = 0; i <= seqlength - 1; i++) {
    for (j = i - 1; j <= seqlength - 1; j++) {
      indexE = ((j) == (i)-1 ? (seqlength) * ((seqlength) + 1) / 2 + (i) : ((i) * (seqlength) + (j) - (i) * (1 + (i)) / 2));
      etaN[indexE] = (int *)malloc(2 * sizeof(int));
      etaN[indexE][0] = 0;
      etaN[indexE][1] = -1;
    }
  }
  k = 0;
  nick = nicks[k];
  while (nick != -1) {
    for (i = 0; i <= nick; i++) {
      for (j = nick; j <= seqlength - 1; j++) {
        indexE = ((j) == (i)-1 ? (seqlength) * ((seqlength) + 1) / 2 + (i) : ((i) * (seqlength) + (j) - (i) * (1 + (i)) / 2));
        etaN[indexE][0]++;
        if (etaN[indexE][1] == -1) {
          etaN[indexE][1] = k;
        }
      }
    }
    nick = nicks[++k];
  }
}
```