user: Converte this assembly snippet into its equivalent C code:

```asm
<varbprec_Newton_Laurent_step>:
  endbr64
  push   %rbp
  mov    %edx,%r11d
  mov    %ecx,%edx
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movslq %r8d,%rax
  mov    %rsp,%r10
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%r10
  and    $0xfffffffffffffff0,%rcx
  cmp    %r10,%rsp
  je     L45
L167:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %r10,%rsp
  jne    L167
L45:
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  jne    L194
L225:
  movd   %esi,%xmm1
  movd   %r11d,%xmm6
  movd   %edi,%xmm0
  mov    %edx,-0x10(%rbp)
  movd   %r8d,%xmm7
  punpckldq %xmm6,%xmm1
  mov    %rsp,%r10
  punpckldq %xmm7,%xmm0
  punpcklqdq %xmm1,%xmm0
  movaps %xmm0,-0x20(%rbp)
  test   %r8d,%r8d
  jle    L127
  lea    -0x1(%r8),%eax
  cmp    $0xe,%eax
  jbe    L218
  mov    %r8d,%ecx
  mov    %r9,%rdx
  pxor   %xmm5,%xmm5
  mov    %r10,%rax
  shr    $0x4,%ecx
  pxor   %xmm3,%xmm3
  sub    $0x1,%ecx
  shl    $0x4,%rcx
  lea    0x10(%r9,%rcx,1),%rcx
  nopl   0x0(%rax,%rax,1)
L201:
  movdqu (%rdx),%xmm0
  movdqa %xmm5,%xmm2
  add    $0x10,%rdx
  add    $0x40,%rax
  pcmpgtb %xmm0,%xmm2
  movdqa %xmm0,%xmm1
  punpcklbw %xmm2,%xmm1
  punpckhbw %xmm2,%xmm0
  movdqa %xmm3,%xmm2
  pcmpgtw %xmm1,%xmm2
  movdqa %xmm1,%xmm4
  punpckhwd %xmm2,%xmm1
  punpcklwd %xmm2,%xmm4
  movdqa %xmm0,%xmm2
  movups %xmm1,-0x30(%rax)
  movdqa %xmm3,%xmm1
  pcmpgtw %xmm0,%xmm1
  movups %xmm4,-0x40(%rax)
  punpcklwd %xmm1,%xmm2
  punpckhwd %xmm1,%xmm0
  movups %xmm2,-0x20(%rax)
  movups %xmm0,-0x10(%rax)
  cmp    %rdx,%rcx
  jne    L201
  mov    %r8d,%eax
  and    $0xfffffff0,%eax
  test   $0xf,%r8b
  je     L127
L53:
  movslq %eax,%rcx
  lea    (%r10,%rcx,4),%rdx
  movsbl (%r9,%rcx,1),%ecx
  mov    %ecx,(%rdx)
  lea    0x1(%rax),%ecx
  cmp    %ecx,%r8d
  jle    L127
  movslq %ecx,%rcx
  movsbl (%r9,%rcx,1),%ecx
  mov    %ecx,0x4(%rdx)
  lea    0x2(%rax),%ecx
  cmp    %ecx,%r8d
  jle    L127
  movslq %ecx,%rcx
  movsbl (%r9,%rcx,1),%ecx
  mov    %ecx,0x8(%rdx)
  lea    0x3(%rax),%ecx
  cmp    %ecx,%r8d
  jle    L127
  movslq %ecx,%rcx
  movsbl (%r9,%rcx,1),%ecx
  mov    %ecx,0xc(%rdx)
  lea    0x4(%rax),%ecx
  cmp    %ecx,%r8d
  jle    L127
  movslq %ecx,%rcx
  movsbl (%r9,%rcx,1),%ecx
  mov    %ecx,0x10(%rdx)
  lea    0x5(%rax),%ecx
  cmp    %ecx,%r8d
  jle    L127
  movslq %ecx,%rcx
  movsbl (%r9,%rcx,1),%ecx
  mov    %ecx,0x14(%rdx)
  lea    0x6(%rax),%ecx
  cmp    %ecx,%r8d
  jle    L127
  movslq %ecx,%rcx
  movsbl (%r9,%rcx,1),%ecx
  mov    %ecx,0x18(%rdx)
  lea    0x7(%rax),%ecx
  cmp    %ecx,%r8d
  jle    L127
  movslq %ecx,%rcx
  movsbl (%r9,%rcx,1),%ecx
  mov    %ecx,0x1c(%rdx)
  lea    0x8(%rax),%ecx
  cmp    %ecx,%r8d
  jle    L127
  movslq %ecx,%rcx
  movsbl (%r9,%rcx,1),%ecx
  mov    %ecx,0x20(%rdx)
  lea    0x9(%rax),%ecx
  cmp    %ecx,%r8d
  jle    L127
  movslq %ecx,%rcx
  movsbl (%r9,%rcx,1),%ecx
  mov    %ecx,0x24(%rdx)
  lea    0xa(%rax),%ecx
  cmp    %ecx,%r8d
  jle    L127
  movslq %ecx,%rcx
  movsbl (%r9,%rcx,1),%ecx
  mov    %ecx,0x28(%rdx)
  lea    0xb(%rax),%ecx
  cmp    %ecx,%r8d
  jle    L127
  movslq %ecx,%rcx
  movsbl (%r9,%rcx,1),%ecx
  mov    %ecx,0x2c(%rdx)
  lea    0xc(%rax),%ecx
  cmp    %ecx,%r8d
  jle    L127
  movslq %ecx,%rcx
  movsbl (%r9,%rcx,1),%ecx
  mov    %ecx,0x30(%rdx)
  lea    0xd(%rax),%ecx
  cmp    %ecx,%r8d
  jle    L127
  movslq %ecx,%rcx
  add    $0xe,%eax
  movsbl (%r9,%rcx,1),%ecx
  mov    %ecx,0x34(%rdx)
  cmp    %eax,%r8d
  jle    L127
  cltq
  movsbl (%r9,%rax,1),%eax
  mov    %eax,0x38(%rdx)
L127:
  xor    %ecx,%ecx
  mov    %r10,%rdx
  lea    -0x20(%rbp),%rsi
  mov    $0xb3,%edi
  call   <_ada_use_c2phc@plt>
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  jne    L39
  leave
  ret
  nopl   0x0(%rax)
L194:
  orq    $0x0,-0x8(%rsp,%rcx,1)
  jmp    L225
L218:
  xor    %eax,%eax
  jmp    L53
L39:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int varbprec_Newton_Laurent_step(int dim, int wanted, int maxitr, int maxprc, int ns, char *s) {
  int i, fail;
  int a[5];
  int b[ns];
  double *c;
  a[0] = dim;
  a[1] = ns;
  a[2] = wanted;
  a[3] = maxitr;
  a[4] = maxprc;
  for (i = 0; i < ns; i++)
    b[i] = (int)s[i];
  fail = _ada_use_c2phc(179, a, b, c);
  return fail;
}
```