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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    -0x68(%rbp),%rax
  mov    %rax,%rsi
  lea    D20(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  jmp    L1
L46:
  mov    %rsp,%rax
  mov    %rax,%rbx
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x60(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x54(%rbp)
  movl   $0x0,-0x5c(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x50(%rbp)
  lea    -0x64(%rbp),%rax
  mov    %rax,%rsi
  lea    D20(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x64(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x48(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L109:
  cmp    %rdx,%rsp
  je     L113
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L109
L113:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L27
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L27:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0x58(%rbp)
  jmp    L81
L41:
  addl   $0x1,-0x5c(%rbp)
  mov    -0x58(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D63(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  cmpl   $0x0,-0x58(%rbp)
  jle    L85
  mov    -0x58(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x40(%rbp),%rax
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm0
  mov    -0x40(%rbp),%rax
  mov    -0x58(%rbp),%edx
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm1
  ucomiss %xmm1,%xmm0
  jp     L85
  ucomiss %xmm1,%xmm0
  jne    L85
  addl   $0x1,-0x5c(%rbp)
  mov    -0x64(%rbp),%eax
  cmp    %eax,-0x5c(%rbp)
  jne    L155
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L155:
  mov    $0x0,%eax
  mov    %rbx,%rsp
  jmp    L125
L85:
  mov    -0x40(%rbp),%rax
  mov    -0x58(%rbp),%edx
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm0
  movss  -0x60(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x60(%rbp)
  addl   $0x1,-0x58(%rbp)
L81:
  mov    -0x64(%rbp),%eax
  cmp    %eax,-0x58(%rbp)
  jl     L41
  movss  -0x60(%rbp),%xmm0
  movss  D77(%rip),%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x50(%rbp)
  movss  -0x50(%rbp),%xmm0
  cvttss2si %xmm0,%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,-0x4c(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2ssl -0x4c(%rbp),%xmm0
  ucomiss -0x60(%rbp),%xmm0
  jp     L79
  ucomiss -0x60(%rbp),%xmm0
  jne    L79
  movss  -0x50(%rbp),%xmm0
  movss  D19(%rip),%xmm1
  subss  %xmm1,%xmm0
  pxor   %xmm2,%xmm2
  cvtss2sd %xmm0,%xmm2
  movq   %xmm2,%rax
  movq   %rax,%xmm0
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L68
L79:
  lea    D24(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L68:
  mov    %rbx,%rsp
L1:
  mov    -0x68(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x68(%rbp)
  test   %eax,%eax
  jne    L46
  mov    $0x0,%eax
L125:
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L8
  call   <__stack_chk_fail@plt>
L8:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D20
data_type: string
name: disassemble_data
arguments: data_label: D63
data_type: string
name: disassemble_data
arguments: data_label: D11
data_type: string
name: disassemble_data
arguments: data_label: D77
data_type: byte[4]
name: disassemble_data
arguments: data_label: D19
data_type: byte[4]
name: disassemble_data
arguments: data_label: D17
data_type: string
name: disassemble_data
arguments: data_label: D24
data_type: string

tool: D20: %d

tool: D63: %f

tool: D11: 0

tool: {"D77": [0x00,0x00,0xc0,0x40]}

tool: {"D19": [0x00,0x00,0x80,0x3f]}

tool: D17: %.0f


tool: D24: ANGRY

assistant: ```c
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    float sum = 0, x1 = 0;
    int a, c = 0;
    float x = 0;
    scanf("%d", &a);
    float n[a];
    int i, xx;
    for (i = 0; i < a; i++) {
      c++;
      scanf("%f", &n[i]);
      if (i > 0)
        if (n[i - 1] == n[i]) {
          c++;
          if (c == a)
            printf("0\n");
          return 0;
        }
      sum += n[i];
    }
    x = (float)(sum / 6);
    xx = (int)(x)*6;
    if (xx == sum)
      printf("%.0f\n", x - 1);
    else
      printf("ANGRY\n");
  }
  return 0;
}
```