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

```asm
<GetTreeI>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  lea    -0xb000(%rsp),%r11
L85:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L85
  sub    $0xba8,%rsp
  mov    %edi,-0xbba4(%rbp)
  mov    %esi,-0xbba8(%rbp)
  mov    %edx,-0xbbac(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    -0xbba8(%rbp),%eax
  lea    -0x3(%rax),%edx
  mov    -0xbbac(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0xbb94(%rbp)
  movl   $0x0,-0xbb98(%rbp)
  jmp    L103
L46:
  mov    -0xbb98(%rbp),%eax
  add    %eax,%eax
  lea    0x5(%rax),%edx
  mov    -0xbb98(%rbp),%eax
  cltq
  mov    %edx,-0xbb90(%rbp,%rax,4)
  addl   $0x1,-0xbb98(%rbp)
L103:
  mov    -0xbb94(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0xbb98(%rbp)
  jl     L46
  movl   $0x0,-0xbb98(%rbp)
  mov    -0xbb94(%rbp),%eax
  sub    $0x1,%eax
  cltq
  movl   $0x1,-0xbb90(%rbp,%rax,4)
  jmp    L26
L57:
  mov    -0xbb94(%rbp),%eax
  sub    $0x1,%eax
  sub    -0xbb98(%rbp),%eax
  sub    $0x2,%eax
  cltq
  mov    -0xbb90(%rbp,%rax,4),%edx
  mov    -0xbb94(%rbp),%eax
  sub    $0x1,%eax
  sub    -0xbb98(%rbp),%eax
  sub    $0x1,%eax
  cltq
  mov    -0xbb90(%rbp,%rax,4),%eax
  mov    -0xbb94(%rbp),%ecx
  sub    $0x1,%ecx
  sub    -0xbb98(%rbp),%ecx
  sub    $0x2,%ecx
  imul   %eax,%edx
  movslq %ecx,%rax
  mov    %edx,-0xbb90(%rbp,%rax,4)
  addl   $0x1,-0xbb98(%rbp)
L26:
  mov    -0xbb94(%rbp),%eax
  sub    $0x2,%eax
  cmp    %eax,-0xbb98(%rbp)
  jl     L57
  cmpl   $0xffffffff,-0xbba4(%rbp)
  jne    L109
  movl   $0x0,-0xbb98(%rbp)
  jmp    L105
L22:
  mov    -0xbb98(%rbp),%eax
  add    %eax,%eax
  lea    0x3(%rax),%ebx
  mov    $0x0,%eax
  call   <rndu@plt>
  imul   %eax,%ebx
  mov    %ebx,%edx
  mov    -0xbb98(%rbp),%eax
  cltq
  mov    %edx,-0x5dd0(%rbp,%rax,4)
  addl   $0x1,-0xbb98(%rbp)
L105:
  mov    -0xbb98(%rbp),%eax
  cmp    -0xbb94(%rbp),%eax
  jl     L22
  jmp    L42
L109:
  movl   $0x0,-0xbb98(%rbp)
  jmp    L13
L75:
  mov    -0xbb98(%rbp),%eax
  cltq
  mov    -0xbb90(%rbp,%rax,4),%esi
  mov    -0xbba4(%rbp),%eax
  cltd
  idiv   %esi
  mov    %eax,%edx
  mov    -0xbb98(%rbp),%eax
  cltq
  mov    %edx,-0x5dd0(%rbp,%rax,4)
  mov    -0xbb98(%rbp),%eax
  cltq
  mov    -0xbb90(%rbp,%rax,4),%ecx
  mov    -0xbba4(%rbp),%eax
  cltd
  idiv   %ecx
  mov    %edx,-0xbba4(%rbp)
  addl   $0x1,-0xbb98(%rbp)
L13:
  mov    -0xbb98(%rbp),%eax
  cmp    -0xbb94(%rbp),%eax
  jl     L75
L42:
  mov    -0xbbac(%rbp),%edx
  lea    -0x5dd0(%rbp),%rcx
  mov    -0xbba8(%rbp),%eax
  mov    %rcx,%rsi
  mov    %eax,%edi
  call   <MakeTreeIb@plt>
  mov    $0x0,%eax
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L27
  call   <__stack_chk_fail@plt>
L27:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
int GetTreeI(int itree, int ns, int rooted) {
  int i, M[6000 - 2], nM = ns - 3 + rooted, Ib[6000 - 2];
  for (i = 0; i < nM - 1; i++)
    M[i] = 2 * i + 5;
  for (i = 0, M[nM - 1] = 1; i < nM - 2; i++)
    M[nM - 1 - i - 2] *= M[nM - 1 - i - 1];
  if (itree == -1)
    for (i = 0; i < nM; i++)
      Ib[i] = (int)((2 * i + 3) * rndu());
  else
    for (i = 0; i < nM; i++) {
      Ib[i] = itree / M[i];
      itree %= M[i];
    }
  MakeTreeIb(ns, Ib, rooted);
  return (0);
}
```