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

```asm
<anchdec>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %rcx,-0x30(%rbp)
  mov    %r8,-0x38(%rbp)
  mov    %r9,-0x40(%rbp)
  mov    0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x28(%rbp),%rax
  mov    -0x40(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x20(%rbp),%rax
  movl   $0x1,(%rax)
  mov    -0x18(%rbp),%rax
  movl   $0x1,(%rax)
L75:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  cmp    %rax,-0x8(%rbp)
  je     L166
  subq   $0x1,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <xmlc_white_space@plt>
  test   %rax,%rax
  jne    L75
  addq   $0x1,-0x8(%rbp)
  jmp    L186
L166:
  nop
L186:
  mov    -0x38(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  mov    %rdx,(%rax)
L83:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  cmp    %rax,%rdx
  je     L136
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  lea    -0x1(%rax),%rdx
  mov    -0x38(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  cmp    $0x30,%al
  je     L83
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  cmp    $0x2b,%al
  je     L83
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  je     L83
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  je     L19
  mov    -0x20(%rbp),%rax
  movl   $0x0,(%rax)
L19:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  lea    0x1(%rax),%rdx
  mov    -0x38(%rbp),%rax
  mov    %rdx,(%rax)
  jmp    L183
L136:
  nop
L183:
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,(%rax)
L30:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rax
  cmp    %rax,%rdx
  je     L0
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L114
  mov    -0x18(%rbp),%rax
  movl   $0x0,(%rax)
  jmp    L37
L114:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  cmp    $0x30,%al
  je     L37
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  cmp    $0x2b,%al
  je     L37
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <xmlc_white_space@plt>
  test   %rax,%rax
  jne    L37
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  je     L79
  mov    -0x20(%rbp),%rax
  movl   $0x0,(%rax)
L79:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  cmp    %rax,%rdx
  jne    L72
  mov    -0x38(%rbp),%rax
  mov    -0x8(%rbp),%rdx
  mov    %rdx,(%rax)
  mov    -0x38(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,(%rax)
  jmp    L200
L72:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  lea    -0x1(%rax),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  je     L148
  jmp    L79
L148:
  nop
L200:
  jmp    L204
L37:
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rax
  lea    0x1(%rax),%rdx
  mov    -0x28(%rbp),%rax
  mov    %rdx,(%rax)
  jmp    L30
L0:
  nop
L204:
  nop
  leave
  ret
```

assistant: ```c
void anchdec(int *plus, int *zero, char **beg, char **dp, char **end, char *s, int n) {
  char *end0 = s + n;
  *beg = s;
  *zero = 1;
  *plus = 1;
  for (;;) {
    if (end0 == *beg)
      break;
    --end0;
    if (!xmlc_white_space(*end0)) {
      ++end0;
      break;
    }
  }
  *end = end0;
  for (;;) {
    if (*end == *beg)
      break;
    --*end;
    if (!(**end == '0' || **end == '+' || **end == '-')) {
      if (**end != '.')
        *zero = 0;
      ++*end;
      break;
    }
  }
  *dp = *end;
  for (;;) {
    if (*beg == *end)
      break;
    if (**beg == '-')
      *plus = 0;
    else if (!(**beg == '0' || **beg == '+' || xmlc_white_space(**beg))) {
      if (**beg != '.')
        *zero = 0;
      for (;;) {
        if (*dp == *beg) {
          *dp = *end = end0;
          break;
        }
        --*dp;
        if (**dp == '.')
          break;
      }
      break;
    }
    ++*beg;
  }
}
```