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

```asm
<heap_sort_test>:
  endbr64
  push   %rbp
  mov    $0xb,%edi
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <get_rand_int_limit@plt>
  mov    %rsp,%rcx
  mov    %eax,-0x44(%rbp)
  add    $0x1,%eax
  cltq
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L53
L22:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L22
L53:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L90
L68:
  mov    -0x44(%rbp),%ebx
  xor    %eax,%eax
  lea    D67(%rip),%rdi
  mov    %rsp,%r13
  mov    %ebx,%esi
  call   <printf@plt>
  test   %ebx,%ebx
  jle    L13
  mov    $0x1,%r15d
  xor    %r12d,%r12d
  lea    D48(%rip),%rbx
  nopl   0x0(%rax,%rax,1)
L100:
  mov    $0x15,%edi
  call   <get_rand_int_limit@plt>
  mov    %rbx,%rdi
  lea    -0xa(%rax),%esi
  xor    %eax,%eax
  mov    %esi,0x0(%r13,%r15,4)
  call   <printf@plt>
  movslq 0x0(%r13,%r15,4),%rax
  add    $0x1,%r15
  add    %rax,%r12
  cmp    %r15d,-0x44(%rbp)
  jge    L100
  lea    D17(%rip),%rax
  mov    $0x1,%r14d
  xor    %r15d,%r15d
  mov    %rax,%rdi
  mov    %rax,-0x50(%rbp)
  call   <puts@plt>
  mov    -0x44(%rbp),%esi
  mov    %r13,%rdi
  call   <heap_sort@plt>
  lea    D39(%rip),%rdi
  call   <puts@plt>
  nopl   0x0(%rax)
L2:
  mov    %r15d,-0x48(%rbp)
  mov    0x0(%r13,%r14,4),%r15d
  xor    %eax,%eax
  mov    %rbx,%rdi
  mov    %r15d,%esi
  call   <printf@plt>
  cmp    $0x1,%r14d
  jle    L8
  mov    -0x48(%rbp),%r8d
  cmp    %r8d,%r15d
  jge    L8
  mov    %r15d,%edx
  mov    %r8d,%esi
  lea    D28(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <block_api@plt>
L8:
  movslq %r15d,%rax
  add    $0x1,%r14
  sub    %rax,%r12
  cmp    %r14d,-0x44(%rbp)
  jge    L2
  test   %r12,%r12
  je     L69
  mov    %r12,%rsi
  lea    D12(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <block_api@plt>
L69:
  mov    -0x50(%rbp),%rdi
  call   <puts@plt>
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L106
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopl   0x0(%rax)
L90:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L68
L13:
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  mov    %rax,-0x50(%rbp)
  call   <puts@plt>
  mov    -0x44(%rbp),%esi
  mov    %r13,%rdi
  call   <heap_sort@plt>
  lea    D39(%rip),%rdi
  call   <puts@plt>
  jmp    L69
L106:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D67
type_infered: string
name: parse_data
arguments: data_tag: D48
type_infered: string
name: parse_data
arguments: data_tag: D17
type_infered: string
name: parse_data
arguments: data_tag: D39
type_infered: string
name: parse_data
arguments: data_tag: D28
type_infered: string
name: parse_data
arguments: data_tag: D12
type_infered: string

tool: D67: Creating %d random numbers:


tool: D48: %d, 

tool: D17: 
--------------------------------------------

tool: D39: Validating Heap_sort output

tool: D28: 
Error: Sort invariant broken - %d found before %d


tool: D12: 
Error: sum(%lu) nonzero, heap gobbled something?


assistant: ```c
void heap_sort_test() {
  int i, n = get_rand_int_limit(10 + 1);
  int arr[n + 1];
  int old_val = 0;
  unsigned long sum = 0;
  printf("Creating %d random numbers:\n", n);
  for (i = 1; i <= n; i++) {
    arr[i] = get_rand_int_limit(10 * 2 + 1) + (-10);
    printf("%d, ", arr[i]);
    sum += arr[i];
  }
  printf("\n--------------------------------------------\n");
  heap_sort(arr, n);
  printf("Validating Heap_sort output\n");
  for (i = 1; i <= n; i++) {
    int val = arr[i];
    printf("%d, ", val);
    if (i > 1 && (((val)) < ((old_val)))) {
      printf("\nError: Sort invariant broken - %d found before %d\n", old_val, val);
      block_api();
    }
    sum -= val;
    old_val = val;
  }
  if (sum != 0) {
    printf("\nError: sum(%lu) nonzero, heap gobbled something?\n", sum);
    block_api();
  }
  printf("\n--------------------------------------------\n");
}
```