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

```asm
<padcon_standard_track>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0xd8,%rsp
  mov    %edi,-0xa4(%rbp)
  mov    %rsi,-0xb0(%rbp)
  mov    %edx,-0xa8(%rbp)
  mov    %ecx,-0xb4(%rbp)
  mov    %r8d,-0xb8(%rbp)
  mov    %r9d,-0xbc(%rbp)
  mov    0x10(%rbp),%rax
  mov    %rax,-0xc8(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x50(%rbp)
  mov    -0xa4(%rbp),%eax
  mov    %eax,-0x4c(%rbp)
  mov    -0xb4(%rbp),%eax
  mov    %eax,-0x48(%rbp)
  mov    -0xb8(%rbp),%eax
  mov    %eax,-0x44(%rbp)
  mov    -0xa8(%rbp),%eax
  mov    %eax,-0x40(%rbp)
  mov    -0xbc(%rbp),%eax
  mov    %eax,-0x3c(%rbp)
  cmpl   $0x1,-0xb8(%rbp)
  jg     L95
  cmpl   $0x0,-0xa4(%rbp)
  jne    L4
  mov    -0x58(%rbp),%rcx
  mov    -0x70(%rbp),%rdx
  lea    -0x50(%rbp),%rax
  mov    $0x0,%r8d
  mov    %rax,%rsi
  mov    $0x2e3,%edi
  call   <_ada_use_c2phc4c@plt>
  mov    %eax,-0xa0(%rbp)
  jmp    L156
L4:
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0xa4(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x68(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0xe0(%rbp)
  movq   $0x0,-0xd8(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0xf0(%rbp)
  movq   $0x0,-0xe8(%rbp)
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L59:
  cmp    %rdx,%rsp
  je     L202
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L59
L202:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L24
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L24:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x60(%rbp)
  movl   $0x0,-0x9c(%rbp)
  jmp    L62
L52:
  mov    -0x9c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xb0(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%ecx
  mov    -0x60(%rbp),%rax
  mov    -0x9c(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  addl   $0x1,-0x9c(%rbp)
L62:
  mov    -0x9c(%rbp),%eax
  cmp    -0xa4(%rbp),%eax
  jl     L52
  mov    -0x58(%rbp),%rcx
  mov    -0x60(%rbp),%rdx
  lea    -0x50(%rbp),%rax
  mov    $0x0,%r8d
  mov    %rax,%rsi
  mov    $0x2e3,%edi
  call   <_ada_use_c2phc4c@plt>
  mov    %eax,-0xa0(%rbp)
  mov    %rbx,%rsp
  jmp    L156
L95:
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0xbc(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x90(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0x100(%rbp)
  movq   $0x0,-0xf8(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L180:
  cmp    %rdx,%rsp
  je     L18
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L180
L18:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L209
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L209:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x88(%rbp)
  movl   $0x0,-0x98(%rbp)
  jmp    L34
L135:
  mov    -0x98(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xc8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mov    -0x88(%rbp),%rax
  mov    -0x98(%rbp),%edx
  movslq %edx,%rdx
  movsd  %xmm0,(%rax,%rdx,8)
  addl   $0x1,-0x98(%rbp)
L34:
  mov    -0x98(%rbp),%eax
  cmp    -0xbc(%rbp),%eax
  jl     L135
  cmpl   $0x0,-0xa4(%rbp)
  jne    L104
  mov    -0x88(%rbp),%rcx
  mov    -0x70(%rbp),%rdx
  lea    -0x50(%rbp),%rax
  mov    $0x0,%r8d
  mov    %rax,%rsi
  mov    $0x2e3,%edi
  call   <_ada_use_c2phc4c@plt>
  mov    %eax,-0xa0(%rbp)
  jmp    L166
L104:
  mov    %rsp,%rax
  mov    %rax,%r12
  mov    -0xa4(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x80(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  movslq %eax,%rdx
  mov    %rdx,%r10
  mov    $0x0,%r11d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L201:
  cmp    %rdx,%rsp
  je     L122
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L201
L122:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L79
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L79:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x78(%rbp)
  movl   $0x0,-0x94(%rbp)
  jmp    L145
L37:
  mov    -0x94(%rbp),%eax
  movslq %eax,%rdx
  mov    -0xb0(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%ecx
  mov    -0x78(%rbp),%rax
  mov    -0x94(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  addl   $0x1,-0x94(%rbp)
L145:
  mov    -0x94(%rbp),%eax
  cmp    -0xa4(%rbp),%eax
  jl     L37
  mov    -0x88(%rbp),%rcx
  mov    -0x78(%rbp),%rdx
  lea    -0x50(%rbp),%rax
  mov    $0x0,%r8d
  mov    %rax,%rsi
  mov    $0x2e3,%edi
  call   <_ada_use_c2phc4c@plt>
  mov    %eax,-0xa0(%rbp)
  mov    %r12,%rsp
L166:
  mov    %rbx,%rsp
L156:
  mov    -0xa0(%rbp),%eax
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L97
  call   <__stack_chk_fail@plt>
L97:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

assistant: ```c
int padcon_standard_track(int nbc, char *name, int locfile, int verbose, int mhom, int nvr, int *idz) {
  int fail, idx;
  int pars[6];
  int *b;
  double *c;
  pars[0] = 0;
  pars[1] = nbc;
  pars[2] = verbose;
  pars[3] = mhom;
  pars[4] = locfile;
  pars[5] = nvr;
  if (mhom < 2) {
    if (nbc == 0)
      fail = _ada_use_c2phc4c(739, pars, b, c, 0);
    else {
      int iname[nbc];
      for (idx = 0; idx < nbc; idx++)
        iname[idx] = (int)name[idx];
      fail = _ada_use_c2phc4c(739, pars, iname, c, 0);
    }
  } else {
    double z[nvr];
    for (int idx = 0; idx < nvr; idx++)
      z[idx] = (double)idz[idx];
    if (nbc == 0)
      fail = _ada_use_c2phc4c(739, pars, b, z, 0);
    else {
      int iname[nbc];
      for (int i = 0; i < nbc; i++)
        iname[i] = (int)name[i];
      fail = _ada_use_c2phc4c(739, pars, iname, z, 0);
    }
  }
  return fail;
}
```