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

```asm
<dns_decode_reverse_name>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x130,%rsp
  mov    %rdi,-0x128(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x114(%rbp)
  movl   $0x0,-0x118(%rbp)
  movl   $0x0,-0x11c(%rbp)
  jmp    L178
L126:
  mov    -0x11c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x128(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L60
  addl   $0x1,-0x118(%rbp)
L60:
  addl   $0x1,-0x11c(%rbp)
L178:
  cmpl   $0x2,-0x118(%rbp)
  jg     L127
  cmpl   $0xfd,-0x11c(%rbp)
  jle    L126
  jmp    L127
L150:
  mov    -0x11c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x128(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x114(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x114(%rbp)
  movzbl (%rcx),%edx
  cltq
  mov    %dl,-0x110(%rbp,%rax,1)
  addl   $0x1,-0x11c(%rbp)
L127:
  mov    -0x11c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x128(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  je     L153
  cmpl   $0xfe,-0x11c(%rbp)
  jle    L150
L153:
  cmpl   $0x0,-0x114(%rbp)
  je     L203
  mov    -0x114(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x114(%rbp)
  cltq
  movb   $0x2e,-0x110(%rbp,%rax,1)
  mov    -0x11c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x128(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  movl   $0x0,-0x118(%rbp)
  movl   $0x0,-0x11c(%rbp)
  jmp    L209
L131:
  mov    -0x11c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x128(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L5
  addl   $0x1,-0x118(%rbp)
L5:
  addl   $0x1,-0x11c(%rbp)
L209:
  cmpl   $0x1,-0x118(%rbp)
  jle    L131
  jmp    L216
L32:
  mov    -0x11c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x128(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x114(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x114(%rbp)
  movzbl (%rcx),%edx
  cltq
  mov    %dl,-0x110(%rbp,%rax,1)
  addl   $0x1,-0x11c(%rbp)
L216:
  mov    -0x11c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x128(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L32
  mov    -0x114(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x114(%rbp)
  cltq
  movb   $0x2e,-0x110(%rbp,%rax,1)
  movl   $0x0,-0x118(%rbp)
  movl   $0x0,-0x11c(%rbp)
  jmp    L188
L219:
  mov    -0x11c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x128(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L183
  addl   $0x1,-0x118(%rbp)
L183:
  addl   $0x1,-0x11c(%rbp)
L188:
  cmpl   $0x0,-0x118(%rbp)
  jle    L219
  jmp    L176
L11:
  mov    -0x11c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x128(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x114(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x114(%rbp)
  movzbl (%rcx),%edx
  cltq
  mov    %dl,-0x110(%rbp,%rax,1)
  addl   $0x1,-0x11c(%rbp)
L176:
  mov    -0x11c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x128(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L11
  mov    -0x114(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x114(%rbp)
  cltq
  movb   $0x2e,-0x110(%rbp,%rax,1)
  movl   $0x0,-0x11c(%rbp)
  jmp    L157
L125:
  mov    -0x11c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x128(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x114(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x114(%rbp)
  movzbl (%rcx),%edx
  cltq
  mov    %dl,-0x110(%rbp,%rax,1)
  addl   $0x1,-0x11c(%rbp)
L157:
  mov    -0x11c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x128(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L125
  mov    -0x114(%rbp),%eax
  cltq
  movb   $0x0,-0x110(%rbp,%rax,1)
  lea    -0x110(%rbp),%rdx
  mov    -0x128(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  jmp    L175
L203:
  nop
L175:
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L197
  call   <__stack_chk_fail@plt>
L197:
  leave
  ret
```

assistant: ```c
void dns_decode_reverse_name(char *name) {
  char temp[256];
  int i, j, k;
  k = 0;
  for (j = 0, i = 0; j < 3 && i < 256 - 2; i++) {
    if (name[i] == '.')
      j++;
  }
  for (; name[i] != '.' && i < 256 - 1; i++) {
    temp[k++] = name[i];
  }
  if (k == 0)
    return;
  temp[k++] = '.';
  name[i] = 0;
  for (j = 0, i = 0; j < 2; i++)
    if (name[i] == '.')
      j++;
  for (; name[i] != '.'; i++)
    temp[k++] = name[i];
  temp[k++] = '.';
  for (j = 0, i = 0; j < 1; i++)
    if (name[i] == '.')
      j++;
  for (; name[i] != '.'; i++)
    temp[k++] = name[i];
  temp[k++] = '.';
  for (i = 0; name[i] != '.'; i++)
    temp[k++] = name[i];
  temp[k] = 0;
  strcpy(name, temp);
}
```