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

```asm
<main>:
  endbr64
  push   %r15
  lea    D14(%rip),%r15
  push   %r14
  lea    D128(%rip),%r14
  push   %r13
  lea    D113(%rip),%r13
  push   %r12
  lea    D71(%rip),%r12
  push   %rbp
  lea    D7(%rip),%rbp
  push   %rbx
  lea    D5(%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)
L49:
  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    D69(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rsi
  lea    D81(%rip),%rdi
  call   <scanf@plt>
  cmpl   $0x5,0x2c(%rsp)
  ja     L32
  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    D95(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
L3:
  mov    0x2c(%rsp),%eax
  test   %eax,%eax
  jne    L49
  mov    0x1c8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L17
  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    D87(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L3
  nopl   0x0(%rax)
  lea    0x30(%rsp),%rdi
  mov    $0x64,%esi
  call   <printArray@plt>
  jmp    L3
  nopl   0x0(%rax)
  lea    0x30(%rsp),%rdi
  mov    $0x64,%esi
  call   <getRandomArray@plt>
  jmp    L3
  nopl   0x0(%rax)
  lea    D51(%rip),%rdi
  call   <puts@plt>
  jmp    L3
  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    D47(%rip),%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L3
L32:
  lea    D12(%rip),%rdi
  call   <puts@plt>
  jmp    L3
L17:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D14
type: string
name: read_data
arguments: tag: D128
type: string
name: read_data
arguments: tag: D113
type: string
name: read_data
arguments: tag: D71
type: string
name: read_data
arguments: tag: D7
type: string
name: read_data
arguments: tag: D69
type: string
name: read_data
arguments: tag: D81
type: string
name: read_data
arguments: tag: D95
type: string
name: read_data
arguments: tag: D87
type: string
name: read_data
arguments: tag: D51
type: string
name: read_data
arguments: tag: D47
type: string
name: read_data
arguments: tag: D12
type: string

tool: D14: 1. Fill array randomly

tool: D128: 2. Print array

tool: D113: 3. Get amount of array elements

tool: D71: 4. Get average

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

tool: D69: 0. Exit
: 

tool: D81: %d

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


tool: D87: The amount is %d.


tool: D51: The end.

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


tool: D12: 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;
}
```