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

```asm
<TestGetMaxChars>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  lea    D31(%rip),%rdi
  call   <puts@plt>
  lea    D59(%rip),%rdi
  call   <puts@plt>
  lea    D46(%rip),%r12
  mov    %r12,%rdi
  call   <puts@plt>
  mov    $0x1,%edx
  mov    $0x8,%esi
  lea    D1(%rip),%rbp
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x8,%edi
  call   <GetMaxChars@plt>
  cmp    $0x1,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  lea    D64(%rip),%rbx
  mov    %rbx,%rdi
  call   <puts@plt>
  mov    $0x2,%edx
  mov    $0x10,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x10,%edi
  call   <GetMaxChars@plt>
  cmp    $0x2,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    %rbx,%rdi
  call   <puts@plt>
  mov    $0x1,%edx
  mov    $0x9,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x9,%edi
  call   <GetMaxChars@plt>
  cmp    $0x1,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    %rbx,%rdi
  call   <puts@plt>
  mov    $0x0,%edx
  mov    $0x7,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x7,%edi
  call   <GetMaxChars@plt>
  test   %eax,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    %rbx,%rdi
  call   <puts@plt>
  mov    $0x0,%edx
  mov    $0xfffffffb,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xfffffffb,%edi
  call   <GetMaxChars@plt>
  test   %eax,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    %rbx,%rdi
  call   <puts@plt>
  mov    $0xa,%edx
  mov    $0x50,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x50,%edi
  call   <GetMaxChars@plt>
  cmp    $0xa,%eax
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    %rbx,%rdi
  call   <puts@plt>
  mov    %r12,%rdi
  call   <puts@plt>
  lea    D3(%rip),%rdi
  call   <puts@plt>
  lea    D40(%rip),%rdi
  call   <puts@plt>
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D31
type: string
name: extract_symbolic_data
arguments: tag: D59
type: string
name: extract_symbolic_data
arguments: tag: D46
type: string
name: extract_symbolic_data
arguments: tag: D1
type: string
name: extract_symbolic_data
arguments: tag: D64
type: string
name: extract_symbolic_data
arguments: tag: D3
type: string
name: extract_symbolic_data
arguments: tag: D40
type: string

tool: D31: 
----------------------------------------------------------------------------

tool: D59:   Test GetMaxChars()

tool: D46: ----------------------------------------------------------------------------

tool: D1: Get max chars %5d == %-5d: 

tool: D64: [OK]

tool: D3:   Done.

tool: D40: ----------------------------------------------------------------------------


assistant: ```c
void TestGetMaxChars() {
  printf("\n----------------------------------------------------------------------------\n");
  printf("  Test GetMaxChars()\n");
  printf("----------------------------------------------------------------------------\n");
  {
    printf("Get max chars %5d == %-5d: ", 8, 1);
    assert(GetMaxChars(8) == 1);
    printf("[OK]\n");
  };
  {
    printf("Get max chars %5d == %-5d: ", 16, 2);
    assert(GetMaxChars(16) == 2);
    printf("[OK]\n");
  };
  {
    printf("Get max chars %5d == %-5d: ", 9, 1);
    assert(GetMaxChars(9) == 1);
    printf("[OK]\n");
  };
  {
    printf("Get max chars %5d == %-5d: ", 7, 0);
    assert(GetMaxChars(7) == 0);
    printf("[OK]\n");
  };
  {
    printf("Get max chars %5d == %-5d: ", -5, 0);
    assert(GetMaxChars(-5) == 0);
    printf("[OK]\n");
  };
  {
    printf("Get max chars %5d == %-5d: ", 80, 10);
    assert(GetMaxChars(80) == 10);
    printf("[OK]\n");
  };
  printf("----------------------------------------------------------------------------\n");
  printf("  Done.\n");
  printf("----------------------------------------------------------------------------\n\n");
}
```