user: 这段汇编代码用C语言表示是什么样的?

```asm
<print_graph>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %esi,-0x4c(%rbp)
  mov    %edx,-0x50(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x28(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r10
  mov    $0x0,%r11d
  movslq %eax,%rdx
  mov    %rdx,%r8
  mov    $0x0,%r9d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L99:
  cmp    %rdx,%rsp
  je     L13
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L99
L13:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L119
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L119:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x50(%rbp),%ecx
  mov    -0x20(%rbp),%rdx
  mov    -0x4c(%rbp),%esi
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <calc_bars@plt>
  movl   $0x1,-0x34(%rbp)
  jmp    L91
L107:
  movl   $0x0,-0x30(%rbp)
  jmp    L88
L84:
  mov    -0x4c(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x30(%rbp)
  jge    L111
  mov    -0x30(%rbp),%eax
  add    $0x1,%eax
  jmp    L60
L111:
  mov    $0x0,%eax
L60:
  mov    %eax,-0x2c(%rbp)
  mov    -0x20(%rbp),%rax
  mov    -0x2c(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%edx
  mov    -0x50(%rbp),%eax
  sub    %edx,%eax
  cmp    %eax,-0x34(%rbp)
  jl     L67
  mov    $0x23,%eax
  jmp    L125
L67:
  mov    $0x20,%eax
L125:
  mov    %eax,%esi
  lea    D22(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  addl   $0x1,-0x30(%rbp)
L88:
  mov    -0x30(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jl     L84
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x34(%rbp)
L91:
  mov    -0x34(%rbp),%eax
  cmp    -0x50(%rbp),%eax
  jl     L107
  movl   $0x1,-0x30(%rbp)
  jmp    L94
L97:
  mov    -0x30(%rbp),%eax
  mov    %eax,%esi
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  addl   $0x1,-0x30(%rbp)
L94:
  mov    -0x30(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jl     L97
  mov    -0x4c(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,%esi
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    %rbx,%rsp
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L139
  call   <__stack_chk_fail@plt>
L139:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D22
data_type: string
name: disassemble_data
arguments: tag: D13
data_type: string
name: disassemble_data
arguments: tag: D1
data_type: string

tool: D22:    %c

tool: D13: %4d

tool: D1:  >%2d


assistant: ```c
void print_graph(int values[], int size, int max_bar_size) {
  int bars[size];
  calc_bars(values, size, bars, max_bar_size);
  int i, j;
  for (i = 1; i < max_bar_size; i++) {
    for (j = 0; j < size; j++) {
      int idx = j < size - 1 ? j + 1 : 0;
      printf("   %c", max_bar_size - bars[idx] <= i ? '#' : ' ');
    }
    putchar('\n');
  }
  for (j = 1; j < size; j++) {
    printf("%4d", j);
  }
  printf(" >%2d\n", size - 1);
}
```