user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  push   %rbp
  lea    D36(%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    L75
  lea    -0x3c(%rbp),%rax
  movl   $0x0,-0x44(%rbp)
  lea    D49(%rip),%rbx
  mov    %rax,-0x60(%rbp)
  nopl   (%rax)
L108:
  mov    -0x60(%rbp),%rsi
  lea    D36(%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     L131
L15:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L15
L131:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L77
  orq    $0x0,-0x8(%rsp,%rdx,1)
L77:
  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    L120
  nopw   0x0(%rax,%rax,1)
L103:
  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     L103
  test   %esi,%esi
  jle    L120
  mov    -0x50(%rbp),%rax
  mov    0x0(,%rax,8),%rcx
  mov    %r15,%rax
  sub    %rcx,%rax
  je     L86
  mov    -0x58(%rbp),%rdi
  lea    0x8(%rdi),%rdx
  lea    (%rdi,%rsi,8),%rdi
  xor    %esi,%esi
  jmp    L21
  nopl   0x0(%rax)
L94:
  mov    (%rdx),%rcx
  add    $0x8,%rdx
  sub    %rcx,%rax
  cmp    %rsi,%rax
  je     L86
L21:
  add    %rcx,%rsi
  cmp    %rdx,%rdi
  jne    L94
L120:
  lea    D34(%rip),%rdi
  call   <printf@plt>
L33:
  mov    %r14,%rsp
  addl   $0x1,-0x44(%rbp)
  mov    -0x44(%rbp),%eax
  cmp    %eax,-0x40(%rbp)
  jg     L108
L75:
  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
L86:
  lea    D35(%rip),%rdi
  call   <printf@plt>
  jmp    L33
L31:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D36
datatype: string
name: retrieve_data
arguments: label: D49
datatype: string
name: retrieve_data
arguments: label: D34
datatype: string
name: retrieve_data
arguments: label: D35
datatype: string

tool: D36: %d

tool: D49: %ld

tool: D34: NO


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