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

```asm
<sumEvenAfterQueries>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %ecx,-0x30(%rbp)
  mov    %r8,-0x40(%rbp)
  mov    %r9,-0x48(%rbp)
  mov    -0x48(%rbp),%rax
  mov    -0x30(%rbp),%edx
  mov    %edx,(%rax)
  mov    -0x40(%rbp),%rax
  movl   $0x2,(%rax)
  mov    -0x30(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x20(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L70
L63:
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L48
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  add    %eax,-0x20(%rbp)
L48:
  addl   $0x1,-0x1c(%rbp)
L70:
  mov    -0x1c(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L63
  movl   $0x0,-0x18(%rbp)
  jmp    L79
L99:
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    0x4(%rax),%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    (%rax),%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0x10(%rbp),%edx
  add    %ecx,%edx
  mov    %edx,(%rax)
  mov    -0xc(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L3
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L62
  mov    -0xc(%rbp),%eax
  sub    %eax,-0x20(%rbp)
  jmp    L34
L62:
  mov    -0x10(%rbp),%eax
  add    %eax,-0x20(%rbp)
  jmp    L34
L3:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L34
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  add    %eax,-0x20(%rbp)
L34:
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rax,%rdx
  mov    -0x20(%rbp),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x18(%rbp)
L79:
  mov    -0x18(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L99
  mov    -0x8(%rbp),%rax
  leave
  ret
```

assistant: ```c
int *sumEvenAfterQueries(int *A, int ASize, int **queries, int queriesSize, int *queriesColSize, int *returnSize) {
  *returnSize = queriesSize;
  *queriesColSize = 2;
  int *answer = malloc(sizeof(int) * queriesSize);
  int sum = 0;
  for (int i = 0; i < ASize; i++) {
    if (A[i] % 2 == 0) {
      sum += A[i];
    }
  }
  int j, k, l;
  for (int i = 0; i < queriesSize; i++) {
    j = queries[i][1];
    k = queries[i][0];
    l = A[j];
    A[j] += k;
    if (l % 2 == 0) {
      if (A[j] % 2 != 0) {
        sum -= l;
      } else {
        sum += k;
      }
    } else {
      if (A[j] % 2 == 0) {
        sum += A[j];
      }
    }
    answer[i] = sum;
  }
  return answer;
}
```