user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<dns_decode_reverse_name>:
  endbr64
  sub    $0x118,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x108(%rsp)
  xor    %eax,%eax
  mov    $0x1,%edx
  mov    $0x0,%r8d
  jmp    L136
L97:
  mov    %edx,%eax
  cmp    $0x2,%r8d
  setle  %sil
  cmp    $0xfd,%edx
  setle  %cl
  add    $0x1,%rdx
  test   %cl,%sil
  je     L66
L136:
  cmpb   $0x2e,-0x1(%rdi,%rdx,1)
  jne    L97
  add    $0x1,%r8d
  jmp    L97
L66:
  movslq %eax,%rsi
  movzbl (%rdi,%rsi,1),%ecx
  cmp    $0xfe,%eax
  jg     L225
  cmp    $0x2e,%cl
  je     L225
  add    $0x1,%eax
  cltq
  mov    $0x0,%edx
  mov    %rsp,%r9
  sub    %rsi,%r9
L114:
  mov    %edx,%r10d
  add    $0x1,%edx
  mov    %cl,-0x1(%r9,%rax,1)
  lea    (%rdi,%rax,1),%r11
  movzbl (%rdi,%rax,1),%ecx
  cmp    $0xfe,%eax
  setle  %r8b
  cmp    $0x2e,%cl
  setne  %sil
  add    $0x1,%rax
  test   %sil,%r8b
  jne    L114
  test   %edx,%edx
  je     L225
  lea    0x2(%r10),%esi
  movslq %edx,%rdx
  movb   $0x2e,(%rsp,%rdx,1)
  movb   $0x0,(%r11)
  mov    $0x1,%eax
  mov    $0x0,%ecx
  jmp    L5
L149:
  mov    %eax,%edx
  add    $0x1,%rax
  cmp    $0x1,%ecx
  jg     L168
L5:
  cmpb   $0x2e,-0x1(%rdi,%rax,1)
  jne    L149
  add    $0x1,%ecx
  jmp    L149
L168:
  movslq %edx,%rax
  movzbl (%rdi,%rax,1),%ecx
  cmp    $0x2e,%cl
  je     L205
  lea    0x3(%r10),%edx
  movslq %edx,%rdx
  lea    -0x1(%rsp),%r8
  movslq %r10d,%r10
  sub    %r10,%rax
  add    %rdi,%rax
L132:
  mov    %edx,%esi
  mov    %cl,(%r8,%rdx,1)
  add    $0x1,%rdx
  movzbl -0x3(%rax,%rdx,1),%ecx
  cmp    $0x2e,%cl
  jne    L132
L205:
  lea    0x1(%rsi),%r8d
  movslq %esi,%rax
  movb   $0x2e,(%rsp,%rax,1)
  mov    $0x1,%eax
  mov    $0x0,%ecx
  jmp    L105
L110:
  mov    %eax,%edx
  add    $0x1,%rax
  test   %ecx,%ecx
  jg     L89
L105:
  cmpb   $0x2e,-0x1(%rdi,%rax,1)
  jne    L110
  add    $0x1,%ecx
  jmp    L110
L89:
  movslq %edx,%rcx
  movzbl (%rdi,%rcx,1),%edx
  cmp    $0x2e,%dl
  je     L161
  lea    0x2(%rsi),%eax
  cltq
  lea    -0x1(%rsp),%r9
  movslq %esi,%rsi
  sub    %rsi,%rcx
  add    %rdi,%rcx
L215:
  mov    %eax,%r8d
  mov    %dl,(%r9,%rax,1)
  add    $0x1,%rax
  movzbl -0x2(%rcx,%rax,1),%edx
  cmp    $0x2e,%dl
  jne    L215
L161:
  lea    0x1(%r8),%ecx
  movslq %r8d,%rax
  movb   $0x2e,(%rsp,%rax,1)
  movzbl (%rdi),%edx
  cmp    $0x2e,%dl
  je     L17
  lea    0x2(%r8),%eax
  cltq
  lea    -0x1(%rsp),%r9
  movslq %r8d,%r8
  mov    %rdi,%rsi
  sub    %r8,%rsi
L99:
  mov    %eax,%ecx
  mov    %dl,(%r9,%rax,1)
  add    $0x1,%rax
  movzbl -0x2(%rsi,%rax,1),%edx
  cmp    $0x2e,%dl
  jne    L99
L17:
  movslq %ecx,%rcx
  movb   $0x0,(%rsp,%rcx,1)
  mov    %rsp,%rsi
  call   <strcpy@plt>
L225:
  mov    0x108(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L210
  add    $0x118,%rsp
  ret
L210:
  call   <__stack_chk_fail@plt>
```

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