user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<findTwoNonRepeatElements>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %rcx,-0x30(%rbp)
  movl   $0x0,-0x8(%rbp)
  movl   $0x0,-0xc(%rbp)
  jmp    L2
L7:
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  xor    %eax,-0x8(%rbp)
  addl   $0x1,-0xc(%rbp)
L2:
  mov    -0xc(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jl     L7
  mov    -0x8(%rbp),%eax
  mov    %eax,%esi
  lea    D20(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  movl   $0x0,-0xc(%rbp)
  jmp    L33
L66:
  sarl   -0x8(%rbp)
  addl   $0x1,-0xc(%rbp)
L33:
  mov    -0x8(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L66
  mov    -0xc(%rbp),%eax
  mov    %eax,%esi
  lea    D42(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  movl   $0x1,-0x4(%rbp)
  jmp    L27
L55:
  shll   -0x4(%rbp)
  subl   $0x1,-0xc(%rbp)
L27:
  cmpl   $0x0,-0xc(%rbp)
  jg     L55
  mov    -0x4(%rbp),%eax
  mov    %eax,%esi
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  movl   $0x0,-0xc(%rbp)
  jmp    L89
L99:
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  and    -0x4(%rbp),%eax
  test   %eax,%eax
  je     L47
  mov    -0x28(%rbp),%rax
  mov    (%rax),%edx
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  xor    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,(%rax)
  jmp    L1
L47:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%edx
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  xor    %eax,%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,(%rax)
L1:
  addl   $0x1,-0xc(%rbp)
L89:
  mov    -0xc(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jl     L99
  mov    -0x28(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,%esi
  lea    D36(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,%esi
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  nop
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D20
type_infered: string
name: unpack_data
arguments: data_tag: D42
type_infered: string
name: unpack_data
arguments: data_tag: D16
type_infered: string
name: unpack_data
arguments: data_tag: D36
type_infered: string
name: unpack_data
arguments: data_tag: D1
type_infered: string

tool: D20: Sum = %04X


tool: D42: First 1 from left (position from 0) = %d


tool: D16: Flag = %04X


tool: D36: X = %d


tool: D1: Y = %d


assistant: ```c
void findTwoNonRepeatElements(int *pdata, int size, int *pX, int *pY) {
  int i;
  int sum = 0;
  for (i = 0; i < size; i++) {
    sum ^= pdata[i];
  }
  printf("Sum = %04X\n", sum);
  i = 0;
  while ((sum & 1) == 0) {
    sum >>= 1;
    i++;
  }
  printf("First 1 from left (position from 0) = %d\n", i);
  int flag = 1;
  while (i > 0) {
    flag <<= 1;
    i--;
  }
  printf("Flag = %04X\n", flag);
  for (i = 0; i < size; i++) {
    if (pdata[i] & flag) {
      *pX ^= pdata[i];
    } else {
      *pY ^= pdata[i];
    }
  }
  printf("X = %d\n", *pX);
  printf("Y = %d\n", *pY);
}
```