user: Translate the below assembly code into C programming language:

```asm
<padcon_standard_track>:
  endbr64
  push   %rbp
  mov    %ecx,%r10d
  mov    %rsp,%rbp
  push   %r12
  push   %rbx
  sub    $0x20,%rsp
  mov    0x10(%rbp),%rcx
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x30(%rbp)
  mov    %edi,-0x2c(%rbp)
  mov    %r10d,-0x28(%rbp)
  mov    %r8d,-0x24(%rbp)
  mov    %edx,-0x20(%rbp)
  mov    %r9d,-0x1c(%rbp)
  cmp    $0x1,%r8d
  jle    L203
  movslq %r9d,%rdx
  mov    %rsp,%r10
  mov    %rsp,%rbx
  lea    0xf(,%rdx,8),%rax
  mov    %rax,%r8
  and    $0xfffffffffffff000,%rax
  sub    %rax,%r10
  and    $0xfffffffffffffff0,%r8
  cmp    %r10,%rsp
  je     L170
L85:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %r10,%rsp
  jne    L85
L170:
  and    $0xfff,%r8d
  sub    %r8,%rsp
  test   %r8,%r8
  je     L35
  orq    $0x0,-0x8(%rsp,%r8,1)
L35:
  mov    %rsp,%r10
  test   %r9d,%r9d
  jle    L223
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L168:
  pxor   %xmm0,%xmm0
  cvtsi2sdl (%rcx,%rax,4),%xmm0
  movsd  %xmm0,(%r10,%rax,8)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L168
L223:
  test   %edi,%edi
  je     L82
  movslq %edi,%rdx
  mov    %rsp,%r8
  mov    %rsp,%r12
  lea    0xf(,%rdx,4),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%r8
  and    $0xfffffffffffffff0,%rcx
  cmp    %r8,%rsp
  je     L6
L45:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %r8,%rsp
  jne    L45
L6:
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  je     L88
  orq    $0x0,-0x8(%rsp,%rcx,1)
L88:
  mov    %rsp,%r9
  test   %edi,%edi
  jle    L193
  xor    %eax,%eax
L78:
  movsbl (%rsi,%rax,1),%ecx
  mov    %ecx,(%r9,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L78
L193:
  lea    -0x30(%rbp),%rsi
  xor    %r8d,%r8d
  mov    %r10,%rcx
  mov    %r9,%rdx
  mov    $0x2e3,%edi
  call   <_ada_use_c2phc4c@plt>
  mov    %r12,%rsp
L208:
  mov    %rbx,%rsp
L34:
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  jne    L104
  lea    -0x10(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L203:
  test   %edi,%edi
  je     L107
  movslq %edi,%rdx
  mov    %rsp,%r8
  mov    %rsp,%rbx
  lea    0xf(,%rdx,4),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rax
  and    $0xfffffffffffffff0,%rcx
  sub    %rax,%r8
L155:
  cmp    %r8,%rsp
  je     L192
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L155
L192:
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  jne    L58
L77:
  mov    %rsp,%r9
  test   %edi,%edi
  jle    L112
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L139:
  movsbl (%rsi,%rax,1),%ecx
  mov    %ecx,(%r9,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L139
L112:
  lea    -0x30(%rbp),%rsi
  xor    %r8d,%r8d
  xor    %ecx,%ecx
  mov    %r9,%rdx
  mov    $0x2e3,%edi
  call   <_ada_use_c2phc4c@plt>
  mov    %rbx,%rsp
  jmp    L34
  nop
L82:
  lea    -0x30(%rbp),%rsi
  xor    %r8d,%r8d
  mov    %r10,%rcx
  xor    %edx,%edx
  mov    $0x2e3,%edi
  call   <_ada_use_c2phc4c@plt>
  jmp    L208
  nopl   0x0(%rax,%rax,1)
L107:
  lea    -0x30(%rbp),%rsi
  xor    %r8d,%r8d
  xor    %ecx,%ecx
  xor    %edx,%edx
  mov    $0x2e3,%edi
  call   <_ada_use_c2phc4c@plt>
  jmp    L34
L58:
  orq    $0x0,-0x8(%rsp,%rcx,1)
  jmp    L77
L104:
  call   <__stack_chk_fail@plt>
```

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;
}
```