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

```asm
<airEqvSettle>:
  endbr64
  push   %r13
  mov    %esi,%r13d
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x8,%rsp
  test   %esi,%esi
  je     L20
  lea    -0x1(%rsi),%r12d
  cmp    $0x2,%r12d
  jbe    L110
  mov    %esi,%edx
  movdqa D8(%rip),%xmm3
  mov    %rdi,%rax
  pxor   %xmm2,%xmm2
  shr    $0x2,%edx
  sub    $0x1,%edx
  shl    $0x4,%rdx
  lea    0x10(%rdi,%rdx,1),%rdx
  nopw   0x0(%rax,%rax,1)
L57:
  movdqu (%rax),%xmm1
  movdqa %xmm2,%xmm4
  add    $0x10,%rax
  psubd  %xmm3,%xmm4
  movdqa %xmm1,%xmm0
  psubd  %xmm3,%xmm0
  pcmpgtd %xmm4,%xmm0
  pand   %xmm0,%xmm1
  pandn  %xmm2,%xmm0
  movdqa %xmm0,%xmm2
  por    %xmm1,%xmm2
  cmp    %rdx,%rax
  jne    L57
  movdqa %xmm2,%xmm1
  movdqa %xmm2,%xmm4
  mov    %r13d,%eax
  psrldq $0x8,%xmm1
  psubd  %xmm3,%xmm4
  and    $0xfffffffc,%eax
  movdqa %xmm1,%xmm0
  psubd  %xmm3,%xmm0
  pcmpgtd %xmm4,%xmm0
  pand   %xmm0,%xmm1
  pandn  %xmm2,%xmm0
  por    %xmm1,%xmm0
  movdqa %xmm0,%xmm2
  movdqa %xmm0,%xmm4
  psrldq $0x4,%xmm2
  psubd  %xmm3,%xmm4
  movdqa %xmm2,%xmm1
  psubd  %xmm3,%xmm1
  pcmpgtd %xmm4,%xmm1
  pand   %xmm1,%xmm2
  pandn  %xmm0,%xmm1
  por    %xmm2,%xmm1
  movd   %xmm1,%ebp
  test   $0x3,%r13b
  je     L83
L33:
  mov    %eax,%edx
  mov    (%rbx,%rdx,4),%edx
  cmp    %edx,%ebp
  cmovb  %edx,%ebp
  lea    0x1(%rax),%edx
  cmp    %edx,%r13d
  jbe    L83
  mov    (%rbx,%rdx,4),%edx
  cmp    %edx,%ebp
  cmovb  %edx,%ebp
  add    $0x2,%eax
  cmp    %eax,%r13d
  jbe    L83
  mov    (%rbx,%rax,4),%eax
  cmp    %eax,%ebp
  cmovb  %eax,%ebp
L83:
  lea    0x1(%rbp),%edi
  mov    $0x4,%esi
  call   <calloc@plt>
  lea    0x4(%rbx,%r12,4),%rcx
  mov    %rax,%rdi
  mov    %rbx,%rax
  nopl   (%rax)
L112:
  mov    (%rax),%edx
  add    $0x4,%rax
  movl   $0x1,(%rdi,%rdx,4)
  cmp    %rax,%rcx
  jne    L112
L19:
  xor    %r12d,%r12d
  xor    %eax,%eax
  nop
L88:
  mov    %eax,%edx
  lea    (%rdi,%rdx,4),%rdx
  mov    (%rdx),%ecx
  test   %ecx,%ecx
  je     L17
  mov    %r12d,(%rdx)
  add    $0x1,%r12d
L17:
  add    $0x1,%eax
  cmp    %ebp,%eax
  jbe    L88
  test   %r13d,%r13d
  je     L21
  lea    -0x1(%r13),%edx
  mov    %rbx,%rax
  lea    0x4(%rbx,%rdx,4),%rcx
  nopl   0x0(%rax,%rax,1)
L104:
  mov    (%rax),%edx
  add    $0x4,%rax
  mov    (%rdi,%rdx,4),%edx
  mov    %edx,-0x4(%rax)
  cmp    %rax,%rcx
  jne    L104
L21:
  call   <free@plt>
  add    $0x8,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L20:
  mov    $0x1,%edi
  mov    $0x4,%esi
  xor    %ebp,%ebp
  call   <calloc@plt>
  mov    %rax,%rdi
  jmp    L19
L110:
  xor    %ebp,%ebp
  xor    %eax,%eax
  jmp    L33
```

tool_calls: name: unpack_data
arguments: data_label: D8
type: byte[16]

tool: {"D8": [0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x80]}

assistant: ```c
unsigned int airEqvSettle(unsigned int *map, unsigned int len) {
  unsigned int i, j, count, max, *hit;
  max = 0;
  for (i = 0; i < len; i++) {
    max = ((max) > (map[i]) ? (max) : (map[i]));
  }
  hit = (unsigned int *)calloc(1 + max, sizeof(unsigned int));
  for (i = 0; i < len; i++) {
    hit[map[i]] = 1;
  }
  count = 0;
  for (j = 0; j <= max; j++) {
    if (hit[j]) {
      hit[j] = count;
      count += 1;
    }
  }
  for (i = 0; i < len; i++) {
    map[i] = hit[map[i]];
  }
  free(hit);
  return count;
}
```