user: 请将以下的汇编代码转换成C语言代码:

```asm
<_nl_explode_name>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rsi,%rbx
  mov    %rdx,%r14
  mov    %rcx,%r13
  mov    %r8,%r12
  mov    %r9,%r15
  movq   $0x0,(%rdx)
  movq   $0x0,(%rcx)
  movq   $0x0,(%r8)
  movq   $0x0,(%r9)
  mov    %rdi,(%rsi)
  mov    $0x0,%eax
  call   <_nl_find_language@plt>
  movslq %eax,%rdi
  cmp    %rdi,(%rbx)
  je     L84
  movzbl (%rdi),%eax
  cmp    $0x40,%al
  je     L106
  cmp    $0x5f,%al
  je     L36
  mov    $0x0,%ebp
  cmp    $0x2e,%al
  jne    L212
  movl   $0x0,0x4(%rsp)
L74:
  movb   $0x0,(%rdi)
  lea    0x1(%rdi),%rax
  mov    %rax,(%r12)
  testb  $0xbf,0x1(%rdi)
  je     L42
  mov    %rax,%rbx
L81:
  mov    %rbx,%rsi
  add    $0x1,%rbx
  testb  $0xbf,(%rbx)
  jne    L81
  mov    0x4(%rsp),%ebp
  or     $0x2,%ebp
  cmp    %rbx,%rax
  je     L123
  sub    %rdi,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <_nl_normalize_codeset@plt>
  movslq %eax,%rcx
  mov    %rcx,0x8(%rsp)
  mov    %rcx,(%r15)
  test   %eax,%eax
  je     L171
  mov    %rcx,%rsi
  mov    (%r12),%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  je     L151
  mov    0x4(%rsp),%ebp
  or     $0x3,%ebp
  jmp    L123
L84:
  mov    $0x0,%esi
  mov    $0x0,%eax
  call   <__rawmemchr@plt>
  movslq %eax,%rbx
  mov    $0x0,%ebp
L123:
  mov    %rbx,%rdi
  cmpb   $0x40,(%rbx)
  je     L156
L212:
  mov    0x0(%r13),%rax
  test   %rax,%rax
  je     L139
L63:
  mov    %ebp,%edx
  and    $0xfffffffb,%edx
  cmpb   $0x0,(%rax)
  cmove  %edx,%ebp
L139:
  mov    (%r12),%rax
  test   %rax,%rax
  je     L140
  mov    %ebp,%edx
  and    $0xfffffffd,%edx
  cmpb   $0x0,(%rax)
  cmove  %edx,%ebp
L140:
  mov    %ebp,%eax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L36:
  movb   $0x0,(%rdi)
  lea    0x1(%rdi),%rax
  mov    %rax,0x0(%r13)
  movzbl 0x1(%rdi),%edx
  test   $0xbf,%dl
  je     L110
  cmp    $0x2e,%dl
  je     L110
L238:
  add    $0x1,%rax
  movzbl (%rax),%edx
  test   $0xbf,%dl
  je     L110
  cmp    $0x2e,%dl
  jne    L238
L110:
  cmpb   $0x2e,(%rax)
  je     L122
  cmpb   $0x40,(%rax)
  je     L104
  mov    0x0(%r13),%rax
  mov    $0x4,%ebp
  jmp    L63
L122:
  mov    %rax,%rdi
  movl   $0x4,0x4(%rsp)
  jmp    L74
L151:
  mov    0x8(%rsp),%rdi
  call   <free@plt>
  jmp    L123
L106:
  mov    $0x0,%ebp
L156:
  movb   $0x0,(%rdi)
  lea    0x1(%rdi),%rax
  mov    %rax,(%r14)
  cmpb   $0x0,0x1(%rdi)
  je     L212
  or     $0x8,%ebp
  jmp    L212
L104:
  mov    %rax,%rdi
  mov    $0x4,%ebp
  jmp    L156
L171:
  mov    $0xffffffff,%ebp
  jmp    L140
L42:
  mov    0x4(%rsp),%ebp
  or     $0x2,%ebp
  mov    %rax,%rbx
  jmp    L123
```

assistant: ```c
int _nl_explode_name(name, language, modifier, territory, codeset, normalized_codeset)
char *name;
const char **language;
const char **modifier;
const char **territory;
const char **codeset;
const char **normalized_codeset;
{
  char *cp;
  int mask;
  *modifier = ((void *)0);
  *territory = ((void *)0);
  *codeset = ((void *)0);
  *normalized_codeset = ((void *)0);
  mask = 0;
  *language = cp = name;
  cp = _nl_find_language(*language);
  if (*language == cp)
    cp = __rawmemchr(*language, '\0');
  else if (cp[0] != '@') {
    if (cp[0] == '_') {
      cp[0] = '\0';
      *territory = ++cp;
      while (cp[0] != '\0' && cp[0] != '.' && cp[0] != '@')
        ++cp;
      mask |= 4;
    }
    if (cp[0] == '.') {
      cp[0] = '\0';
      *codeset = ++cp;
      while (cp[0] != '\0' && cp[0] != '@')
        ++cp;
      mask |= 2;
      if (*codeset != cp && (*codeset)[0] != '\0') {
        *normalized_codeset = _nl_normalize_codeset(*codeset, cp - *codeset);
        if (*normalized_codeset == ((void *)0))
          return -1;
        else if (strcmp(*codeset, *normalized_codeset) == 0)
          free((char *)*normalized_codeset);
        else
          mask |= 1;
      }
    }
  }
  if (cp[0] == '@') {
    cp[0] = '\0';
    *modifier = ++cp;
    if (cp[0] != '\0')
      mask |= 8;
  }
  if (*territory != ((void *)0) && (*territory)[0] == '\0')
    mask &= ~4;
  if (*codeset != ((void *)0) && (*codeset)[0] == '\0')
    mask &= ~2;
  return mask;
}
```