user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %r15
  lea    D33(%rip),%r15
  push   %r14
  lea    D108(%rip),%r14
  push   %r13
  lea    D67(%rip),%r13
  push   %r12
  lea    D72(%rip),%r12
  push   %rbp
  lea    D2(%rip),%rbp
  push   %rbx
  lea    D60(%rip),%rbx
  sub    $0x1d8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x1c8(%rsp)
  xor    %eax,%eax
  lea    0x2c(%rsp),%rax
  movl   $0xffffffff,0x2c(%rsp)
  mov    %rax,0x8(%rsp)
  nopl   0x0(%rax)
L17:
  mov    %r15,%rdi
  call   <puts@plt>
  mov    %r14,%rdi
  call   <puts@plt>
  mov    %r13,%rdi
  call   <puts@plt>
  mov    %r12,%rdi
  call   <puts@plt>
  mov    %rbp,%rdi
  call   <puts@plt>
  lea    D118(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rsi
  lea    D27(%rip),%rdi
  call   <scanf@plt>
  cmpl   $0x5,0x2c(%rsp)
  ja     L21
  mov    0x2c(%rsp),%eax
  movslq (%rbx,%rax,4),%rax
  add    %rbx,%rax
  notrack jmp *%rax
  nopl   0x0(%rax,%rax,1)
  lea    0x30(%rsp),%rdi
  mov    $0x64,%esi
  call   <getAverageArray@plt>
  lea    D48(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
L34:
  mov    0x2c(%rsp),%eax
  test   %eax,%eax
  jne    L17
  mov    0x1c8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L49
  add    $0x1d8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
  lea    0x30(%rsp),%rdi
  mov    $0x64,%esi
  call   <getAmountArray@plt>
  lea    D21(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L34
  nopl   0x0(%rax)
  lea    0x30(%rsp),%rdi
  mov    $0x64,%esi
  call   <printArray@plt>
  jmp    L34
  nopl   0x0(%rax)
  lea    0x30(%rsp),%rdi
  mov    $0x64,%esi
  call   <getRandomArray@plt>
  jmp    L34
  nopl   0x0(%rax)
  lea    D121(%rip),%rdi
  call   <puts@plt>
  jmp    L34
  nopl   0x0(%rax)
  lea    0x30(%rsp),%rdi
  mov    $0x64,%esi
  mov    %rdi,0x18(%rsp)
  call   <getMostDifferentFromAverage@plt>
  mov    0x18(%rsp),%rdi
  mov    $0x64,%esi
  mov    0x30(%rsp,%rax,4),%edx
  mov    %edx,0x14(%rsp)
  call   <getMostDifferentFromAverage@plt>
  mov    0x14(%rsp),%edx
  lea    D94(%rip),%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L34
L21:
  lea    D19(%rip),%rdi
  call   <puts@plt>
  jmp    L34
L49:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D33
data_type: string
name: retrieve_data
arguments: data_label: D108
data_type: string
name: retrieve_data
arguments: data_label: D67
data_type: string
name: retrieve_data
arguments: data_label: D72
data_type: string
name: retrieve_data
arguments: data_label: D2
data_type: string
name: retrieve_data
arguments: data_label: D118
data_type: string
name: retrieve_data
arguments: data_label: D27
data_type: string
name: retrieve_data
arguments: data_label: D48
data_type: string
name: retrieve_data
arguments: data_label: D21
data_type: string
name: retrieve_data
arguments: data_label: D121
data_type: string
name: retrieve_data
arguments: data_label: D94
data_type: string
name: retrieve_data
arguments: data_label: D19
data_type: string

tool: D33: 1. Fill array randomly

tool: D108: 2. Print array

tool: D67: 3. Get amount of array elements

tool: D72: 4. Get average

tool: D2: 5. Get the number of element which the most different from the average

tool: D118: 0. Exit
: 

tool: D27: %d

tool: D48: The average is %.2f.


tool: D21: The amount is %d.


tool: D121: The end.

tool: D94: The element a[ %d ] = %d is the most differen from average.


tool: D19: Wrong number, try again

assistant: ```c
int main() {
  int a[100];
  int choice = -1;
  while (choice != 0) {
    printf("1. Fill array randomly\n");
    printf("2. Print array\n");
    printf("3. Get amount of array elements\n");
    printf("4. Get average\n");
    printf("5. Get the number of element which the most different from the average\n");
    printf("0. Exit\n: ");
    scanf("%d", &choice);
    switch (choice) {
    case 1:
      getRandomArray(a, 100);
      break;
    case 2:
      printArray(a, 100);
      break;
    case 3:
      printf("The amount is %d.\n", getAmountArray(a, 100));
      break;
    case 4:
      printf("The average is %.2f.\n", getAverageArray(a, 100));
      break;
    case 5:
      printf("The element a[ %d ] = %d is the most differen from average.\n", getMostDifferentFromAverage(a, 100), a[getMostDifferentFromAverage(a, 100)]);
      break;
    case 0:
      printf("The end.\n");
      break;
    default:
      printf("Wrong number, try again\n");
    }
  }
  return 0;
}
```