user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %edi,-0x34(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x64,-0x30(%rbp)
  movl   $0xc8,-0x2c(%rbp)
  mov    -0x30(%rbp),%eax
  mov    %eax,%esi
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x2c(%rbp),%eax
  mov    %eax,%esi
  lea    D34(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x2c(%rbp),%edx
  mov    -0x30(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <cbv_swap@plt>
  mov    -0x30(%rbp),%eax
  mov    %eax,%esi
  lea    D102(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x2c(%rbp),%eax
  mov    %eax,%esi
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D32(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x30(%rbp),%eax
  mov    %eax,%esi
  lea    D87(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x2c(%rbp),%eax
  mov    %eax,%esi
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x2c(%rbp),%rdx
  lea    -0x30(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <cbr_swap@plt>
  mov    -0x30(%rbp),%eax
  mov    %eax,%esi
  lea    D70(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x2c(%rbp),%eax
  mov    %eax,%esi
  lea    D72(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D32(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x3e8,-0x20(%rbp)
  movl   $0x2,-0x1c(%rbp)
  movl   $0x3,-0x18(%rbp)
  movl   $0x11,-0x14(%rbp)
  movl   $0x32,-0x10(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  lea    -0x20(%rbp),%rax
  mov    $0x5,%esi
  mov    %rax,%rdi
  call   <getAverage@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  lea    D42(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L3
  call   <__stack_chk_fail@plt>
L3:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D9
type: string
name: extract_symbolic_data
arguments: data_tag: D34
type: string
name: extract_symbolic_data
arguments: data_tag: D102
type: string
name: extract_symbolic_data
arguments: data_tag: D26
type: string
name: extract_symbolic_data
arguments: data_tag: D32
type: string
name: extract_symbolic_data
arguments: data_tag: D87
type: string
name: extract_symbolic_data
arguments: data_tag: D28
type: string
name: extract_symbolic_data
arguments: data_tag: D70
type: string
name: extract_symbolic_data
arguments: data_tag: D72
type: string
name: extract_symbolic_data
arguments: data_tag: D42
type: string

tool: D9: value of a PRE cbv_swap : %d


tool: D34: value of b PRE cbv_swap : %d


tool: D102: value of a POST cbv_swap : %d


tool: D26: value of b POST cbv_swap : %d


tool: D32: ---

tool: D87: value of a PRE cbr_swap : %d


tool: D28: value of b PRE cbr_swap : %d


tool: D70: value of a POST cbr_swap : %d


tool: D72: value of b POST cbr_swap : %d


tool: D42: Average value is: %f


assistant: ```c
int main(int argc, char *argv[]) {
  int a = 100;
  int b = 200;
  printf("value of a PRE cbv_swap : %d\n", a);
  printf("value of b PRE cbv_swap : %d\n", b);
  cbv_swap(a, b);
  printf("value of a POST cbv_swap : %d\n", a);
  printf("value of b POST cbv_swap : %d\n", b);
  printf("---\n");
  printf("value of a PRE cbr_swap : %d\n", a);
  printf("value of b PRE cbr_swap : %d\n", b);
  cbr_swap(&a, &b);
  printf("value of a POST cbr_swap : %d\n", a);
  printf("value of b POST cbr_swap : %d\n", b);
  printf("---\n");
  int balance[5] = {1000, 2, 3, 17, 50};
  double avg = 0.0;
  avg = getAverage(balance, 5);
  printf("Average value is: %f\n", avg);
  return 0;
}
```