user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<cnt_null>:
  endbr64
  movl   $0x0,(%rdx)
  test   %edi,%edi
  je     L182
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x8,%rsp
  test   %rsi,%rsi
  je     L94
  mov    %rdx,%r8
  movslq %edi,%rdx
  mov    %rbx,%rax
  lea    -0x1(%rdx),%rbp
  lea    (%rsi,%rdx,1),%rsi
  cmp    $0xe,%rbp
  jbe    L117
  pxor   %xmm1,%xmm1
  pxor   %xmm5,%xmm5
  pxor   %xmm4,%xmm4
  mov    %rdx,%rcx
  and    $0xfffffffffffffff0,%rcx
  movdqa D4(%rip),%xmm6
  add    %rbx,%rcx
  nopl   (%rax)
L129:
  movdqu (%rax),%xmm0
  movdqa %xmm5,%xmm3
  add    $0x10,%rax
  pcmpeqb %xmm5,%xmm0
  pand   %xmm6,%xmm0
  pcmpgtb %xmm0,%xmm3
  movdqa %xmm0,%xmm2
  punpcklbw %xmm3,%xmm2
  punpckhbw %xmm3,%xmm0
  movdqa %xmm4,%xmm3
  pcmpgtw %xmm2,%xmm3
  movdqa %xmm2,%xmm7
  punpcklwd %xmm3,%xmm7
  punpckhwd %xmm3,%xmm2
  movdqa %xmm0,%xmm3
  paddd  %xmm7,%xmm1
  paddd  %xmm2,%xmm1
  movdqa %xmm4,%xmm2
  pcmpgtw %xmm0,%xmm2
  punpcklwd %xmm2,%xmm3
  punpckhwd %xmm2,%xmm0
  paddd  %xmm3,%xmm1
  paddd  %xmm0,%xmm1
  cmp    %rcx,%rax
  jne    L129
  movdqa %xmm1,%xmm0
  mov    %rdx,%rcx
  psrldq $0x8,%xmm0
  and    $0xfffffffffffffff0,%rcx
  paddd  %xmm0,%xmm1
  lea    (%rbx,%rcx,1),%rax
  movdqa %xmm1,%xmm0
  psrldq $0x4,%xmm0
  paddd  %xmm0,%xmm1
  movd   %xmm1,%edi
  cmp    %rcx,%rdx
  je     L55
L178:
  cmpb   $0x1,(%rax)
  lea    0x1(%rax),%rdx
  adc    $0x0,%edi
  cmp    %rdx,%rsi
  je     L55
  cmpb   $0x1,0x1(%rax)
  lea    0x2(%rax),%rdx
  adc    $0x0,%edi
  cmp    %rdx,%rsi
  je     L55
  cmpb   $0x1,0x2(%rax)
  lea    0x3(%rax),%rdx
  adc    $0x0,%edi
  cmp    %rdx,%rsi
  je     L55
  cmpb   $0x1,0x3(%rax)
  lea    0x4(%rax),%rdx
  adc    $0x0,%edi
  cmp    %rdx,%rsi
  je     L55
  cmpb   $0x1,0x4(%rax)
  lea    0x5(%rax),%rdx
  adc    $0x0,%edi
  cmp    %rdx,%rsi
  je     L55
  cmpb   $0x1,0x5(%rax)
  lea    0x6(%rax),%rdx
  adc    $0x0,%edi
  cmp    %rdx,%rsi
  je     L55
  cmpb   $0x1,0x6(%rax)
  lea    0x7(%rax),%rdx
  adc    $0x0,%edi
  cmp    %rdx,%rsi
  je     L55
  cmpb   $0x1,0x7(%rax)
  lea    0x8(%rax),%rdx
  adc    $0x0,%edi
  cmp    %rdx,%rsi
  je     L55
  cmpb   $0x1,0x8(%rax)
  lea    0x9(%rax),%rdx
  adc    $0x0,%edi
  cmp    %rdx,%rsi
  je     L55
  cmpb   $0x1,0x9(%rax)
  lea    0xa(%rax),%rdx
  adc    $0x0,%edi
  cmp    %rdx,%rsi
  je     L55
  cmpb   $0x1,0xa(%rax)
  lea    0xb(%rax),%rdx
  adc    $0x0,%edi
  cmp    %rdx,%rsi
  je     L55
  cmpb   $0x1,0xb(%rax)
  lea    0xc(%rax),%rdx
  adc    $0x0,%edi
  cmp    %rdx,%rsi
  je     L55
  cmpb   $0x1,0xc(%rax)
  lea    0xd(%rax),%rdx
  adc    $0x0,%edi
  cmp    %rdx,%rsi
  je     L55
  cmpb   $0x1,0xd(%rax)
  lea    0xe(%rax),%rdx
  adc    $0x0,%edi
  cmp    %rdx,%rsi
  je     L55
  cmpb   $0x1,0xe(%rax)
  adc    $0x0,%edi
  nopl   0x0(%rax)
L55:
  mov    %edi,(%r8)
  mov    $0x8,%esi
  call   <calloc@plt>
  lea    (%rbx,%rbp,1),%rcx
  mov    %rbx,(%rax)
  cmp    %rcx,%rbx
  jae    L31
  mov    $0x1,%esi
  cs nopw 0x0(%rax,%rax,1)
L164:
  movzbl (%rbx),%edx
  add    $0x1,%rbx
  test   %dl,%dl
  jne    L136
  movslq %esi,%rdx
  add    $0x1,%esi
  mov    %rbx,(%rax,%rdx,8)
L136:
  cmp    %rcx,%rbx
  jne    L164
L31:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
  nopl   0x0(%rax)
L94:
  add    $0x8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  ret
  nopl   0x0(%rax)
L117:
  xor    %edi,%edi
  jmp    L178
  nop
L182:
  xor    %eax,%eax
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D4
datatype: byte[16]

tool: {"D4": [0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01]}

assistant: ```c
char **cnt_null(int l, char *str, int *_n) {
  int n = 0;
  char *p, **list;
  *_n = 0;
  if (l == 0 || str == 0)
    return 0;
  for (p = str; p != str + l; ++p)
    if (*p == 0)
      ++n;
  *_n = n;
  list = calloc(n, sizeof(void *));
  list[0] = str;
  for (p = str, n = 1; p < str + l - 1; ++p)
    if (*p == 0)
      list[n++] = p + 1;
  return list;
}
```