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

```asm
<hash_data_print>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x140,%rsp
  mov    %rdi,-0x128(%rbp)
  mov    %esi,-0x12c(%rbp)
  mov    %rdx,-0x138(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movb   $0x1,-0x11d(%rbp)
  cmpl   $0x0,-0x12c(%rbp)
  jne    L70
  notl   -0x12c(%rbp)
L70:
  mov    -0x138(%rbp),%rax
  movb   $0x0,(%rax)
  movl   $0x0,-0x11c(%rbp)
  jmp    L47
L65:
  mov    -0x11c(%rbp),%eax
  mov    $0x1,%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %eax,-0x114(%rbp)
  mov    -0x12c(%rbp),%eax
  and    -0x114(%rbp),%eax
  test   %eax,%eax
  je     L61
  mov    -0x114(%rbp),%edx
  mov    -0x128(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <hash_data_has_checksum@plt>
  test   %rax,%rax
  je     L61
  cmpb   $0x0,-0x11d(%rbp)
  jne    L58
  mov    -0x138(%rbp),%rax
  lea    D25(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
L58:
  movb   $0x0,-0x11d(%rbp)
  mov    -0x114(%rbp),%eax
  mov    %eax,%edi
  call   <hash_function_name@plt>
  mov    %eax,%edx
  lea    -0x110(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <strcpy@plt>
  movl   $0x0,-0x118(%rbp)
  jmp    L15
L32:
  mov    -0x118(%rbp),%eax
  cltq
  movzbl -0x110(%rbp,%rax,1),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <toupper@plt>
  mov    -0x118(%rbp),%edx
  movslq %edx,%rdx
  mov    %al,-0x110(%rbp,%rdx,1)
  addl   $0x1,-0x118(%rbp)
L15:
  mov    -0x118(%rbp),%eax
  cltq
  movzbl -0x110(%rbp,%rax,1),%eax
  test   %al,%al
  jne    L32
  lea    -0x110(%rbp),%rdx
  mov    -0x138(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  mov    -0x138(%rbp),%rax
  lea    D17(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  lea    -0x110(%rbp),%rdx
  mov    -0x114(%rbp),%ecx
  mov    -0x128(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <hash_data_extract_printable_checksum@plt>
  lea    -0x110(%rbp),%rdx
  mov    -0x138(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  mov    -0x138(%rbp),%rax
  lea    D6(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
L61:
  addl   $0x1,-0x11c(%rbp)
L47:
  cmpl   $0x2,-0x11c(%rbp)
  jle    L65
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L73
  call   <__stack_chk_fail@plt>
L73:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D25
type_infered: string
name: unpack_data
arguments: data_tag: D17
type_infered: string
name: unpack_data
arguments: data_tag: D6
type_infered: string

tool: D25:  

tool: D17: (

tool: D6: )

assistant: ```c
void hash_data_print(const char *data, unsigned int functions, char *buffer) {
  int i, j;
  char first = 1;
  if (functions == 0)
    functions = ~functions;
  buffer[0] = '\0';
  for (i = 0; i < 3; i++) {
    unsigned func = 1 << i;
    if ((functions & func) && hash_data_has_checksum(data, func)) {
      char temp[256];
      if (!first)
        strcat(buffer, " ");
      first = 0;
      strcpy(temp, hash_function_name(func));
      for (j = 0; temp[j]; j++)
        temp[j] = toupper(temp[j]);
      strcat(buffer, temp);
      strcat(buffer, "(");
      hash_data_extract_printable_checksum(data, func, temp);
      strcat(buffer, temp);
      strcat(buffer, ")");
    }
  }
}
```