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

```asm
<uni>:
  endbr64
  push   %r15
  mov    %ecx,%r15d
  push   %r14
  lea    (%rsi,%rcx,1),%r14d
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  sub    $0x28,%rsp
  test   %esi,%esi
  jle    L23
  lea    -0x1(%rsi),%r8d
  lea    0x4(%rdi),%r9
  mov    %rdi,%r13
  mov    %esi,%r12d
  mov    %r8,%r10
  lea    -0x1(%rcx),%eax
  shl    $0x2,%r8
  mov    %rdi,%rdx
  lea    0x4(%rbp,%rax,4),%rcx
  lea    (%r9,%r8,1),%rdi
  xor    %esi,%esi
  nopw   0x0(%rax,%rax,1)
L36:
  mov    %rbp,%rax
  test   %r15d,%r15d
  jle    L145
  nopl   0x0(%rax,%rax,1)
L182:
  mov    (%rax),%ebx
  cmp    %ebx,(%rdx)
  jne    L78
  movl   $0x0,(%rax)
  add    $0x1,%esi
L78:
  add    $0x4,%rax
  cmp    %rcx,%rax
  jne    L182
L145:
  add    $0x4,%rdx
  cmp    %rdi,%rdx
  jne    L36
  sub    %esi,%r14d
  mov    %r9,0x10(%rsp)
  lea    0x0(,%r14,4),%edi
  mov    %r8,0x8(%rsp)
  mov    %r10d,0x1c(%rsp)
  call   <malloc@plt>
  mov    0x10(%rsp),%r9
  mov    0x8(%rsp),%r8
  mov    %rax,%rbx
  sub    %r9,%rax
  cmp    $0x8,%rax
  jbe    L92
  mov    0x1c(%rsp),%r10d
  cmp    $0x2,%r10d
  jbe    L92
  mov    %r12d,%edx
  mov    %r13,%rcx
  mov    %rbx,%rax
  shr    $0x2,%edx
  sub    %rbx,%rcx
  shl    $0x4,%rdx
  add    %rbx,%rdx
  nop
L42:
  movdqu (%rax,%rcx,1),%xmm0
  add    $0x10,%rax
  movups %xmm0,-0x10(%rax)
  cmp    %rdx,%rax
  jne    L42
  mov    %r12d,%eax
  and    $0xfffffffc,%eax
  test   $0x3,%r12b
  je     L30
  mov    %eax,%ecx
  mov    0x0(%r13,%rcx,4),%esi
  lea    0x0(,%rcx,4),%rdx
  mov    %esi,(%rbx,%rcx,4)
  lea    0x1(%rax),%ecx
  cmp    %ecx,%r12d
  jle    L30
  mov    0x4(%r13,%rdx,1),%ecx
  add    $0x2,%eax
  mov    %ecx,0x4(%rbx,%rdx,1)
  cmp    %eax,%r12d
  jle    L30
  mov    0x8(%r13,%rdx,1),%eax
  mov    %eax,0x8(%rbx,%rdx,1)
L30:
  test   %r15d,%r15d
  jle    L161
  lea    -0x1(%r15),%edx
  mov    %rbp,%rax
  lea    0x4(%rbp,%rdx,4),%rcx
  nopl   0x0(%rax,%rax,1)
L71:
  mov    (%rax),%edx
  test   %edx,%edx
  je     L27
  movslq %r12d,%rsi
  add    $0x1,%r12d
  mov    %edx,(%rbx,%rsi,4)
L27:
  add    $0x4,%rax
  cmp    %rcx,%rax
  jne    L71
L161:
  mov    %r14d,%esi
  mov    %rbx,%rdi
  call   <sort@plt>
  test   %r14d,%r14d
  jle    L88
  lea    -0x1(%r14),%eax
  lea    D5(%rip),%rbp
  lea    0x4(%rbx,%rax,4),%r12
  nopl   0x0(%rax)
L35:
  mov    (%rbx),%esi
  mov    %rbp,%rdi
  add    $0x4,%rbx
  call   <printf@plt>
  cmp    %r12,%rbx
  jne    L35
L88:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L92:
  lea    0x4(%rbx,%r8,1),%rcx
  mov    %rbx,%rax
  sub    %rbx,%r13
  nopl   (%rax)
L128:
  mov    0x0(%r13,%rax,1),%edx
  add    $0x4,%rax
  mov    %edx,-0x4(%rax)
  cmp    %rcx,%rax
  jne    L128
  jmp    L30
L23:
  lea    0x0(,%r14,4),%edi
  xor    %r12d,%r12d
  call   <malloc@plt>
  mov    %rax,%rbx
  jmp    L30
```

tool_calls: name: disassemble_data
arguments: data_tag: D5
type_guessed: string

tool: D5: %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++;
    }
  sort(arr, n1 + n2 - count);
  for (i = 0; i < (n1 + n2 - count); i++)
    printf("%d ", arr[i]);
}
```