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

```asm
<main>:
  endbr64
  push   %rbp
  lea    D3(%rip),%rdi
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  lea    -0x40(%rbp),%rsi
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <scanf@plt>
  mov    -0x40(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x40(%rbp)
  test   %eax,%eax
  je     L173
  lea    -0x3c(%rbp),%rax
  lea    D70(%rip),%r12
  mov    %rax,-0x58(%rbp)
L117:
  mov    -0x58(%rbp),%rsi
  lea    D3(%rip),%rdi
  xor    %eax,%eax
  mov    %rsp,-0x50(%rbp)
  call   <scanf@plt>
  movslq -0x3c(%rbp),%rax
  mov    %rsp,%rsi
  mov    %rax,%rcx
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rsi
  and    $0xfffffffffffffff0,%rdx
  cmp    %rsi,%rsp
  je     L177
L40:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L40
L177:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L65
L36:
  mov    %rsp,%r14
  pxor   %xmm0,%xmm0
  test   %ecx,%ecx
  jle    L135
  mov    %r14,%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x4,%r14
  call   <scanf@plt>
  mov    $0x1,%r15d
  pxor   %xmm1,%xmm1
  jmp    L166
  nopl   0x0(%rax)
L77:
  mov    %r14,%rsi
  xor    %eax,%eax
  mov    %r12,%rdi
  add    $0x4,%r14
  movss  %xmm1,-0x44(%rbp)
  lea    0x1(%r15),%ebx
  call   <scanf@plt>
  movss  -0x4(%r13),%xmm0
  ucomiss -0x4(%r14),%xmm0
  movss  -0x44(%rbp),%xmm1
  jp     L28
  je     L51
L28:
  mov    %ebx,%r15d
L166:
  addss  -0x4(%r14),%xmm1
  mov    %r14,%r13
  cmp    %r15d,-0x3c(%rbp)
  jg     L77
  movaps %xmm1,%xmm0
  divss  D43(%rip),%xmm0
  cvttss2si %xmm0,%eax
  pxor   %xmm2,%xmm2
  lea    (%rax,%rax,2),%eax
  add    %eax,%eax
  cvtsi2ss %eax,%xmm2
  ucomiss %xmm1,%xmm2
  jp     L48
  je     L135
L48:
  lea    D17(%rip),%rdi
  call   <puts@plt>
L162:
  mov    -0x40(%rbp),%eax
  mov    -0x50(%rbp),%rsp
  lea    -0x1(%rax),%edx
  mov    %edx,-0x40(%rbp)
  test   %eax,%eax
  jne    L117
L173:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L110
  lea    -0x28(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L135:
  subss  D25(%rip),%xmm0
  lea    D20(%rip),%rdi
  mov    $0x1,%eax
  cvtss2sd %xmm0,%xmm0
  call   <printf@plt>
  jmp    L162
  nop
L51:
  lea    0x2(%r15),%ecx
  cmp    %ecx,-0x3c(%rbp)
  je     L13
L46:
  mov    -0x50(%rbp),%rsp
  jmp    L173
L65:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L36
L13:
  lea    D55(%rip),%rdi
  call   <puts@plt>
  jmp    L46
L110:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D3
data_type: string
name: disassemble_data
arguments: data_tag: D70
data_type: string
name: disassemble_data
arguments: data_tag: D43
data_type: byte[4]
name: disassemble_data
arguments: data_tag: D17
data_type: string
name: disassemble_data
arguments: data_tag: D25
data_type: byte[4]
name: disassemble_data
arguments: data_tag: D20
data_type: string
name: disassemble_data
arguments: data_tag: D55
data_type: string

tool: D3: %d

tool: D70: %f

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

tool: D17: ANGRY

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

tool: D20: %.0f


tool: D55: 0

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;
}
```