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

```asm
<gg_debug_dump>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x90,%rsp
  mov    %rdi,-0x78(%rbp)
  mov    %esi,-0x7c(%rbp)
  mov    %rdx,-0x88(%rbp)
  mov    %rcx,-0x90(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x6c(%rbp)
  jmp    L11
L125:
  mov    -0x6c(%rbp),%edx
  lea    -0x60(%rbp),%rax
  lea    D21(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  movl   $0x6,-0x64(%rbp)
  movl   $0x0,-0x68(%rbp)
  jmp    L112
L92:
  mov    -0x6c(%rbp),%edx
  mov    -0x68(%rbp),%eax
  add    %edx,%eax
  mov    %eax,%eax
  cmp    %rax,-0x90(%rbp)
  jbe    L56
  mov    -0x6c(%rbp),%edx
  mov    -0x68(%rbp),%eax
  add    %edx,%eax
  mov    %eax,%edx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    -0x64(%rbp),%edx
  movslq %edx,%rdx
  lea    -0x60(%rbp),%rcx
  add    %rdx,%rcx
  mov    %eax,%edx
  lea    D41(%rip),%rax
  mov    %rax,%rsi
  mov    %rcx,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  jmp    L2
L56:
  mov    -0x64(%rbp),%eax
  cltq
  lea    -0x60(%rbp),%rdx
  add    %rdx,%rax
  lea    D48(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
L2:
  addl   $0x3,-0x64(%rbp)
  addl   $0x1,-0x68(%rbp)
L112:
  cmpl   $0xf,-0x68(%rbp)
  jbe    L92
  mov    -0x64(%rbp),%eax
  cltq
  lea    -0x60(%rbp),%rdx
  add    %rdx,%rax
  lea    D4(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  addl   $0x2,-0x64(%rbp)
  movl   $0x0,-0x68(%rbp)
  jmp    L100
L78:
  mov    -0x6c(%rbp),%edx
  mov    -0x68(%rbp),%eax
  add    %edx,%eax
  mov    %eax,%eax
  cmp    %rax,-0x90(%rbp)
  jbe    L45
  mov    -0x6c(%rbp),%edx
  mov    -0x68(%rbp),%eax
  add    %edx,%eax
  mov    %eax,%edx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %al,-0x6d(%rbp)
  cmpb   $0x1f,-0x6d(%rbp)
  jbe    L8
  cmpb   $0x7e,-0x6d(%rbp)
  jbe    L24
L8:
  movb   $0x2e,-0x6d(%rbp)
  jmp    L24
L45:
  movb   $0x20,-0x6d(%rbp)
L24:
  mov    -0x64(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x64(%rbp)
  movzbl -0x6d(%rbp),%edx
  cltq
  mov    %dl,-0x60(%rbp,%rax,1)
  addl   $0x1,-0x68(%rbp)
L100:
  cmpl   $0xf,-0x68(%rbp)
  jbe    L78
  mov    -0x64(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x64(%rbp)
  cltq
  movb   $0xa,-0x60(%rbp,%rax,1)
  mov    -0x64(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x64(%rbp)
  cltq
  movb   $0x0,-0x60(%rbp,%rax,1)
  lea    -0x60(%rbp),%rdx
  mov    -0x7c(%rbp),%esi
  mov    -0x78(%rbp),%rax
  mov    %rdx,%rcx
  lea    D9(%rip),%rdx
  mov    %rax,%rdi
  call   <gg_debug_session@plt>
  addl   $0x10,-0x6c(%rbp)
L11:
  mov    -0x6c(%rbp),%eax
  cmp    %rax,-0x90(%rbp)
  ja     L125
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L127
  call   <__stack_chk_fail@plt>
L127:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D21
data_type: string
name: retrieve_data
arguments: data_tag: D41
data_type: string
name: retrieve_data
arguments: data_tag: D48
data_type: string
name: retrieve_data
arguments: data_tag: D4
data_type: string
name: retrieve_data
arguments: data_tag: D9
data_type: string

tool: D21: %.4x: 

tool: D41:  %02x

tool: D48:    

tool: D4:   

tool: D9: %s

assistant: ```c
void gg_debug_dump(struct gg_session *gs, int level, const char *buf, size_t len) {
  char line[80];
  unsigned int i, j;
  for (i = 0; i < len; i += 16) {
    int ofs;
    sprintf(line, "%.4x: ", i);
    ofs = 6;
    for (j = 0; j < 16; j++) {
      if (i + j < len)
        sprintf(line + ofs, " %02x", (unsigned char)buf[i + j]);
      else
        sprintf(line + ofs, "   ");
      ofs += 3;
    }
    sprintf(line + ofs, "  ");
    ofs += 2;
    for (j = 0; j < 16; j++) {
      unsigned char ch;
      if (i + j < len) {
        ch = buf[i + j];
        if (ch < 32 || ch > 126)
          ch = '.';
      } else {
        ch = ' ';
      }
      line[ofs++] = ch;
    }
    line[ofs++] = '\n';
    line[ofs++] = 0;
    gg_debug_session(gs, level, "%s", line);
  }
}
```