user: 请从给定的汇编指令推导出C源代码:

```asm
<main>:
  endbr64
  push   %rbp
  lea    D54(%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    -0x3c(%rbp),%rcx
  mov    %rcx,-0x58(%rbp)
  lea    -0x1(%rax),%edx
  mov    %edx,-0x40(%rbp)
  test   %eax,%eax
  je     L90
  lea    D43(%rip),%r12
L85:
  mov    -0x58(%rbp),%rsi
  lea    D54(%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     L41
L7:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L7
L41:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L16
L136:
  lea    0x3(%rsp),%rdx
  pxor   %xmm0,%xmm0
  mov    %rdx,%rbx
  and    $0xfffffffffffffffc,%rdx
  shr    $0x2,%rbx
  mov    %rdx,%r14
  test   %ecx,%ecx
  jle    L34
  mov    %rdx,%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x4,%r14
  call   <scanf@plt>
  mov    $0x1,%r15d
  pxor   %xmm1,%xmm1
  movss  0x0(,%rbx,4),%xmm0
  jmp    L120
  nopl   (%rax)
L19:
  mov    %r14,%r13
  mov    %r14,%rsi
  xor    %eax,%eax
  add    $0x4,%r14
  mov    %r12,%rdi
  movss  %xmm1,-0x44(%rbp)
  lea    0x1(%r15),%ebx
  call   <scanf@plt>
  movss  -0x4(%r14),%xmm0
  ucomiss -0x4(%r13),%xmm0
  movss  -0x44(%rbp),%xmm1
  jp     L79
  je     L117
L79:
  mov    %ebx,%r15d
L120:
  addss  %xmm0,%xmm1
  cmp    %r15d,-0x3c(%rbp)
  jg     L19
  movaps %xmm1,%xmm0
  divss  D15(%rip),%xmm0
  cvttss2si %xmm0,%eax
  pxor   %xmm2,%xmm2
  lea    (%rax,%rax,2),%eax
  add    %eax,%eax
  cvtsi2ss %eax,%xmm2
  ucomiss %xmm1,%xmm2
  jp     L31
  je     L34
L31:
  lea    D18(%rip),%rdi
  call   <puts@plt>
L164:
  mov    -0x40(%rbp),%eax
  mov    -0x50(%rbp),%rsp
  lea    -0x1(%rax),%edx
  mov    %edx,-0x40(%rbp)
  test   %eax,%eax
  jne    L85
  cs nopw 0x0(%rax,%rax,1)
L90:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L4
  lea    -0x28(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L34:
  subss  D6(%rip),%xmm0
  lea    D11(%rip),%rdi
  mov    $0x1,%eax
  cvtss2sd %xmm0,%xmm0
  call   <printf@plt>
  jmp    L164
  nop
L117:
  lea    0x2(%r15),%ecx
  cmp    %ecx,-0x3c(%rbp)
  je     L62
L176:
  mov    -0x50(%rbp),%rsp
  jmp    L90
L16:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L136
L62:
  lea    D8(%rip),%rdi
  call   <puts@plt>
  jmp    L176
L4:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D54
type_guessed: string
name: retrieve_data
arguments: tag: D43
type_guessed: string
name: retrieve_data
arguments: tag: D15
type_guessed: byte[4]
name: retrieve_data
arguments: tag: D18
type_guessed: string
name: retrieve_data
arguments: tag: D6
type_guessed: byte[4]
name: retrieve_data
arguments: tag: D11
type_guessed: string
name: retrieve_data
arguments: tag: D8
type_guessed: string

tool: D54: %d

tool: D43: %f

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

tool: D18: ANGRY

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

tool: D11: %.0f


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