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

```asm
<parhash>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%rbp
  mov    %rsi,%rbx
  cmp    $0x3,%edx
  je     L3
  cmp    $0x4,%edx
  je     L22
  mov    $0x1,%eax
  cmp    $0x2,%edx
  je     L109
L100:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L109:
  lea    0x9(%rsi),%r12
  mov    $0x8,%edx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jle    L39
  mov    %rbx,%rcx
  mov    %r12,%rdx
  lea    D39(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    $0x0,%eax
  jmp    L100
L39:
  mov    %r12,%rcx
  mov    %rbx,%rdx
  lea    D39(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    $0x0,%eax
  jmp    L100
L3:
  lea    0x12(%rsi),%r12
  mov    $0x8,%edx
  mov    %r12,%rsi
  mov    %rbx,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jle    L131
  lea    0x9(%rbx),%rcx
  mov    %rbx,%r8
  mov    %r12,%rdx
  lea    D13(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    $0x0,%eax
  jmp    L100
L131:
  lea    0x9(%rbx),%rcx
  mov    %r12,%r8
  mov    %rbx,%rdx
  lea    D13(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    $0x0,%eax
  jmp    L100
L22:
  lea    0x12(%rsi),%r13
  lea    0x9(%rsi),%r12
  mov    $0x8,%edx
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L55
L126:
  test   %eax,%eax
  jle    L10
  lea    0x1b(%rbx),%rdx
  mov    %rbx,%r9
  mov    %r12,%r8
  mov    %r13,%rcx
  lea    D30(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    $0x0,%eax
  jmp    L100
L55:
  lea    0x1b(%rbx),%rsi
  mov    $0x8,%edx
  mov    %rbx,%rdi
  call   <strncmp@plt>
  jmp    L126
L10:
  lea    0x1b(%rbx),%r9
  mov    %r13,%r8
  mov    %r12,%rcx
  mov    %rbx,%rdx
  lea    D30(%rip),%rsi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    $0x0,%eax
  jmp    L100
```

tool_calls: name: unpack_data
arguments: data_tag: D39
datatype: string
name: unpack_data
arguments: data_tag: D13
datatype: string
name: unpack_data
arguments: data_tag: D30
datatype: string

tool: D39: %-8s %-8s

tool: D13: %-8s %-8s %-8s

tool: D30: %-8s %-8s %-8s %-8s

assistant: ```c
bool parhash(char *hash, char att[][8 + 1], int nat) {
  int i;
  switch (nat) {
  case 2:
    if (strncmp(att[0], att[1], 8) > 0)
      sprintf(hash,
              "%-"
              "8s"
              " %-"
              "8s",
              att[1], att[0]);
    else
      sprintf(hash,
              "%-"
              "8s"
              " %-"
              "8s",
              att[0], att[1]);
    return false;
  case 3:
    if (strncmp(att[0], att[2], 8) > 0)
      sprintf(hash,
              "%-"
              "8s"
              " %-"
              "8s"
              " %-"
              "8s",
              att[2], att[1], att[0]);
    else
      sprintf(hash,
              "%-"
              "8s"
              " %-"
              "8s"
              " %-"
              "8s",
              att[0], att[1], att[2]);
    return false;
  case 4:
    if (!(i = strncmp(att[1], att[2], 8)))
      i = strncmp(att[0], att[3], 8);
    if (i > 0)
      sprintf(hash,
              "%-"
              "8s"
              " %-"
              "8s"
              " %-"
              "8s"
              " %-"
              "8s",
              att[3], att[2], att[1], att[0]);
    else
      sprintf(hash,
              "%-"
              "8s"
              " %-"
              "8s"
              " %-"
              "8s"
              " %-"
              "8s",
              att[0], att[1], att[2], att[3]);
    return false;
  default:
    return true;
  }
}
```