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

```asm
<uni>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %ecx,-0x30(%rbp)
  movl   $0x0,-0xc(%rbp)
  movl   $0x0,-0x14(%rbp)
  jmp    L6
L9:
  movl   $0x0,-0x10(%rbp)
  jmp    L56
L90:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jne    L40
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  addl   $0x1,-0xc(%rbp)
L40:
  addl   $0x1,-0x10(%rbp)
L56:
  mov    -0x10(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L90
  addl   $0x1,-0x14(%rbp)
L6:
  mov    -0x14(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L9
  mov    -0x2c(%rbp),%edx
  mov    -0x30(%rbp),%eax
  add    %edx,%eax
  sub    -0xc(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x14(%rbp)
  jmp    L11
L14:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    -0x14(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x14(%rbp)
L11:
  mov    -0x14(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L14
  movl   $0x0,-0x10(%rbp)
  jmp    L86
L106:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  je     L100
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    -0x14(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,4),%rcx
  mov    -0x8(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x14(%rbp)
L100:
  addl   $0x1,-0x10(%rbp)
L86:
  mov    -0x10(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L106
  movl   $0x0,-0x14(%rbp)
  jmp    L5
L12:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%esi
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  addl   $0x1,-0x14(%rbp)
L5:
  mov    -0x2c(%rbp),%edx
  mov    -0x30(%rbp),%eax
  add    %edx,%eax
  sub    -0xc(%rbp),%eax
  cmp    %eax,-0x14(%rbp)
  jl     L12
  nop
  nop
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D4
type_infered: string

tool: D4: %d 

assistant: ```c
void uni(int *p1, int n1, int *p2, int n2) {
  int i, j, count = 0, *arr;
  for (i = 0; i < n1; i++) {
    for (j = 0; j < n2; j++) {
      if (*(p1 + i) == *(p2 + j)) {
        *(p2 + j) = 0;
        count++;
      }
    }
  }
  arr = (int *)malloc((n1 + n2 - count) * sizeof(int));
  for (i = 0; i < n1; i++)
    arr[i] = *(p1 + i);
  for (j = 0; j < n2; j++)
    if (*(p2 + j) != 0) {
      arr[i] = (*(p2 + j));
      i++;
    }
  for (i = 0; i < (n1 + n2 - count); i++)
    printf("%d ", arr[i]);
}
```