user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x1c0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x1b4(%rbp)
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x1c0(%rbp),%rax
  mov    %rax,%rsi
  lea    D73(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x1bc(%rbp)
  jmp    L5
L131:
  mov    -0x1bc(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%esi
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x1a0(%rbp),%rdx
  mov    -0x1bc(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D73(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D43(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x60(%rbp),%rdx
  mov    -0x1bc(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D73(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x1bc(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x1bc(%rbp),%eax
  cltq
  mov    %edx,-0x150(%rbp,%rax,4)
  addl   $0x1,-0x1bc(%rbp)
L5:
  mov    -0x1c0(%rbp),%eax
  cmp    %eax,-0x1bc(%rbp)
  jl     L131
  movl   $0x0,-0x1bc(%rbp)
  jmp    L3
L102:
  mov    -0x1bc(%rbp),%eax
  mov    %eax,-0x1b0(%rbp)
  mov    -0x1bc(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x1b8(%rbp)
  jmp    L66
L107:
  mov    -0x1b8(%rbp),%eax
  cltq
  mov    -0x60(%rbp,%rax,4),%edx
  mov    -0x1b0(%rbp),%eax
  cltq
  mov    -0x60(%rbp,%rax,4),%eax
  cmp    %eax,%edx
  jge    L65
  mov    -0x1b8(%rbp),%eax
  mov    %eax,-0x1b0(%rbp)
L65:
  addl   $0x1,-0x1b8(%rbp)
L66:
  mov    -0x1c0(%rbp),%eax
  cmp    %eax,-0x1b8(%rbp)
  jl     L107
  mov    -0x1bc(%rbp),%eax
  cltq
  mov    -0x60(%rbp,%rax,4),%eax
  mov    %eax,-0x1a4(%rbp)
  mov    -0x1b0(%rbp),%eax
  cltq
  mov    -0x60(%rbp,%rax,4),%edx
  mov    -0x1bc(%rbp),%eax
  cltq
  mov    %edx,-0x60(%rbp,%rax,4)
  mov    -0x1b0(%rbp),%eax
  cltq
  mov    -0x1a4(%rbp),%edx
  mov    %edx,-0x60(%rbp,%rax,4)
  mov    -0x1bc(%rbp),%eax
  cltq
  mov    -0x1a0(%rbp,%rax,4),%eax
  mov    %eax,-0x1a4(%rbp)
  mov    -0x1b0(%rbp),%eax
  cltq
  mov    -0x1a0(%rbp,%rax,4),%edx
  mov    -0x1bc(%rbp),%eax
  cltq
  mov    %edx,-0x1a0(%rbp,%rax,4)
  mov    -0x1b0(%rbp),%eax
  cltq
  mov    -0x1a4(%rbp),%edx
  mov    %edx,-0x1a0(%rbp,%rax,4)
  mov    -0x1bc(%rbp),%eax
  cltq
  mov    -0x150(%rbp,%rax,4),%eax
  mov    %eax,-0x1a4(%rbp)
  mov    -0x1b0(%rbp),%eax
  cltq
  mov    -0x150(%rbp,%rax,4),%edx
  mov    -0x1bc(%rbp),%eax
  cltq
  mov    %edx,-0x150(%rbp,%rax,4)
  mov    -0x1b0(%rbp),%eax
  cltq
  mov    -0x1a4(%rbp),%edx
  mov    %edx,-0x150(%rbp,%rax,4)
  addl   $0x1,-0x1bc(%rbp)
L3:
  mov    -0x1c0(%rbp),%eax
  cmp    %eax,-0x1bc(%rbp)
  jl     L102
  movl   $0x0,-0x100(%rbp)
  movl   $0x1,-0x1bc(%rbp)
  jmp    L44
L109:
  mov    -0x1bc(%rbp),%eax
  cltq
  movl   $0x0,-0x100(%rbp,%rax,4)
  movl   $0x0,-0x1b8(%rbp)
  jmp    L110
L120:
  mov    -0x1bc(%rbp),%eax
  cltq
  mov    -0x100(%rbp,%rax,4),%edx
  mov    -0x1b8(%rbp),%eax
  cltq
  mov    -0x1a0(%rbp,%rax,4),%eax
  add    %eax,%edx
  mov    -0x1bc(%rbp),%eax
  cltq
  mov    %edx,-0x100(%rbp,%rax,4)
  addl   $0x1,-0x1b8(%rbp)
L110:
  mov    -0x1b8(%rbp),%eax
  cmp    -0x1bc(%rbp),%eax
  jl     L120
  mov    -0x1bc(%rbp),%eax
  cltq
  mov    -0x100(%rbp,%rax,4),%eax
  add    %eax,-0x1b4(%rbp)
  addl   $0x1,-0x1bc(%rbp)
L44:
  mov    -0x1c0(%rbp),%eax
  cmp    %eax,-0x1bc(%rbp)
  jl     L109
  mov    -0x1c0(%rbp),%ecx
  mov    -0x1b4(%rbp),%eax
  cltd
  idiv   %ecx
  mov    %eax,-0x1ac(%rbp)
  movl   $0x0,-0x1b4(%rbp)
  lea    D74(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x1bc(%rbp)
  jmp    L105
L99:
  mov    -0x1bc(%rbp),%eax
  cltq
  mov    -0x1a0(%rbp,%rax,4),%edx
  mov    -0x1bc(%rbp),%eax
  cltq
  mov    -0x100(%rbp,%rax,4),%eax
  add    %eax,%edx
  mov    -0x1bc(%rbp),%eax
  cltq
  mov    %edx,-0xb0(%rbp,%rax,4)
  mov    -0x1bc(%rbp),%eax
  cltq
  mov    -0xb0(%rbp,%rax,4),%eax
  add    %eax,-0x1b4(%rbp)
  mov    -0x1bc(%rbp),%eax
  cltq
  mov    -0xb0(%rbp,%rax,4),%esi
  mov    -0x1bc(%rbp),%eax
  cltq
  mov    -0x100(%rbp,%rax,4),%ecx
  mov    -0x1bc(%rbp),%eax
  cltq
  mov    -0x1a0(%rbp,%rax,4),%edx
  mov    -0x1bc(%rbp),%eax
  cltq
  mov    -0x150(%rbp,%rax,4),%eax
  mov    %esi,%r8d
  mov    %eax,%esi
  lea    D38(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x1bc(%rbp)
L105:
  mov    -0x1c0(%rbp),%eax
  cmp    %eax,-0x1bc(%rbp)
  jl     L99
  mov    -0x1c0(%rbp),%ecx
  mov    -0x1b4(%rbp),%eax
  cltd
  idiv   %ecx
  mov    %eax,-0x1a8(%rbp)
  mov    -0x1ac(%rbp),%eax
  mov    %eax,%esi
  lea    D113(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x1a8(%rbp),%eax
  mov    %eax,%esi
  lea    D68(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L32
  call   <__stack_chk_fail@plt>
L32:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D7
type_guessed: string
name: extract_symbolic_data
arguments: tag: D73
type_guessed: string
name: extract_symbolic_data
arguments: tag: D31
type_guessed: string
name: extract_symbolic_data
arguments: tag: D23
type_guessed: string
name: extract_symbolic_data
arguments: tag: D14
type_guessed: string
name: extract_symbolic_data
arguments: tag: D43
type_guessed: string
name: extract_symbolic_data
arguments: tag: D74
type_guessed: string
name: extract_symbolic_data
arguments: tag: D38
type_guessed: string
name: extract_symbolic_data
arguments: tag: D113
type_guessed: string
name: extract_symbolic_data
arguments: tag: D68
type_guessed: string

tool: D7: Enter Total Number of Process:

tool: D73: %d

tool: D31: 
Enter Burst Time and Priority

tool: D23: 
P[%d]


tool: D14: Burst Time:

tool: D43: Priority:

tool: D74: 
Process	    Burst Time    	Waiting Time	Turnaround Time

tool: D38: 
P[%d]		  %d		    %d			%d

tool: D113: 

Average Waiting Time=%d

tool: D68: 
Average Turnaround Time=%d


assistant: ```c
int main() {
  int bt[20], p[20], wt[20], tat[20], pr[20], i, j, n, total = 0, pos, temp, avg_wt, avg_tat;
  printf("Enter Total Number of Process:");
  scanf("%d", &n);
  printf("\nEnter Burst Time and Priority\n");
  for (i = 0; i < n; i++) {
    printf("\nP[%d]\n", i + 1);
    printf("Burst Time:");
    scanf("%d", &bt[i]);
    printf("Priority:");
    scanf("%d", &pr[i]);
    p[i] = i + 1;
  }
  for (i = 0; i < n; i++) {
    pos = i;
    for (j = i + 1; j < n; j++) {
      if (pr[j] < pr[pos])
        pos = j;
    }
    temp = pr[i];
    pr[i] = pr[pos];
    pr[pos] = temp;
    temp = bt[i];
    bt[i] = bt[pos];
    bt[pos] = temp;
    temp = p[i];
    p[i] = p[pos];
    p[pos] = temp;
  }
  wt[0] = 0;
  for (i = 1; i < n; i++) {
    wt[i] = 0;
    for (j = 0; j < i; j++)
      wt[i] += bt[j];
    total += wt[i];
  }
  avg_wt = total / n;
  total = 0;
  printf("\nProcess\t    Burst Time    \tWaiting Time\tTurnaround Time");
  for (i = 0; i < n; i++) {
    tat[i] = bt[i] + wt[i];
    total += tat[i];
    printf("\nP[%d]\t\t  %d\t\t    %d\t\t\t%d", p[i], bt[i], wt[i], tat[i]);
  }
  avg_tat = total / n;
  printf("\n\nAverage Waiting Time=%d", avg_wt);
  printf("\nAverage Turnaround Time=%d\n", avg_tat);
  return 0;
}
```