user: What is the c source code of the assembly code below:

```asm
<main>:
  endbr64
  push   %rbp
  lea    D12(%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
  test   %eax,%eax
  jle    L29
  lea    -0x3c(%rbp),%rax
  movl   $0x0,-0x44(%rbp)
  lea    D5(%rip),%rbx
  mov    %rax,-0x60(%rbp)
  nopl   (%rax)
L75:
  mov    -0x60(%rbp),%rsi
  lea    D12(%rip),%rdi
  xor    %eax,%eax
  mov    %rsp,%r14
  call   <scanf@plt>
  movslq -0x3c(%rbp),%rax
  mov    %rsp,%rcx
  mov    %rax,%rsi
  lea    0xf(,%rax,8),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L96
L83:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L83
L96:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L48
  orq    $0x0,-0x8(%rsp,%rdx,1)
L48:
  lea    0x7(%rsp),%r12
  xor    %r15d,%r15d
  mov    %r12,%rax
  and    $0xfffffffffffffff8,%r12
  shr    $0x3,%rax
  mov    %r12,-0x58(%rbp)
  mov    %r12,%r13
  xor    %r12d,%r12d
  mov    %rax,-0x50(%rbp)
  test   %esi,%esi
  jle    L41
  nopw   0x0(%rax,%rax,1)
L0:
  mov    %r13,%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  add    $0x1,%r12d
  call   <scanf@plt>
  mov    -0x3c(%rbp),%esi
  add    0x0(%r13),%r15
  add    $0x8,%r13
  cmp    %r12d,%esi
  jg     L0
  test   %esi,%esi
  jle    L41
  mov    -0x50(%rbp),%rax
  mov    0x0(,%rax,8),%rcx
  mov    %r15,%rax
  sub    %rcx,%rax
  je     L76
  mov    -0x58(%rbp),%rdi
  lea    0x8(%rdi),%rdx
  lea    (%rdi,%rsi,8),%rdi
  xor    %esi,%esi
  jmp    L77
  nopl   0x0(%rax)
L18:
  mov    (%rdx),%rcx
  add    $0x8,%rdx
  sub    %rcx,%rax
  cmp    %rsi,%rax
  je     L76
L77:
  add    %rcx,%rsi
  cmp    %rdx,%rdi
  jne    L18
L41:
  lea    D8(%rip),%rdi
  call   <printf@plt>
L62:
  mov    %r14,%rsp
  addl   $0x1,-0x44(%rbp)
  mov    -0x44(%rbp),%eax
  cmp    %eax,-0x40(%rbp)
  jg     L75
L29:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L31
  lea    -0x28(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  xchg   %ax,%ax
L76:
  lea    D31(%rip),%rdi
  call   <printf@plt>
  jmp    L62
L31:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D12
type_infered: string
name: retrieve_data
arguments: data_label: D5
type_infered: string
name: retrieve_data
arguments: data_label: D8
type_infered: string
name: retrieve_data
arguments: data_label: D31
type_infered: string

tool: D12: %d

tool: D5: %ld

tool: D8: NO


tool: D31: YES


assistant: ```c
int main() {
  int t, n, i, j, k, l, flag = 0;
  scanf("%d", &t);
  for (i = 0; i < t; i++) {
    scanf("%d", &n);
    long int a[n], s1 = 0, s2 = 0;
    long long int b = 0;
    for (j = 0; j < n; j++) {
      scanf("%ld", &a[j]);
      b += a[j];
    }
    for (j = 0; j < n; j++) {
      s2 = b - a[j];
      b = s2;
      if (s1 == s2) {
        printf("YES\n");
        flag = 1;
        break;
      }
      s1 += a[j];
    }
    if (flag == 0)
      printf("NO\n");
    flag = 0;
    s1 = 0;
    s2 = 0;
  }
  return 0;
}
```