user: Please show me the C implementation that matches the assembly code listed below:

```asm
<count>:
  endbr64
  mov    %esi,%ecx
  test   %esi,%esi
  je     L67
  lea    -0x1(%rsi),%eax
  cmp    $0xe,%eax
  jbe    L89
  movd   %edx,%xmm4
  shr    $0x4,%esi
  mov    %rdi,%rax
  pxor   %xmm3,%xmm3
  punpcklbw %xmm4,%xmm4
  pxor   %xmm5,%xmm5
  pxor   %xmm2,%xmm2
  sub    $0x1,%esi
  punpcklwd %xmm4,%xmm4
  shl    $0x4,%rsi
  movdqa D3(%rip),%xmm7
  pshufd $0x0,%xmm4,%xmm4
  lea    0x10(%rdi,%rsi,1),%rsi
  nopl   0x0(%rax)
L29:
  movdqu (%rax),%xmm0
  add    $0x10,%rax
  pcmpeqb %xmm4,%xmm0
  pand   %xmm7,%xmm0
  movdqa %xmm0,%xmm1
  punpckhbw %xmm5,%xmm0
  movdqa %xmm0,%xmm6
  punpcklbw %xmm5,%xmm1
  punpckhwd %xmm2,%xmm0
  punpcklwd %xmm2,%xmm6
  paddd  %xmm6,%xmm0
  movdqa %xmm1,%xmm6
  punpckhwd %xmm2,%xmm1
  punpcklwd %xmm2,%xmm6
  paddd  %xmm6,%xmm1
  paddd  %xmm1,%xmm0
  paddd  %xmm0,%xmm3
  cmp    %rsi,%rax
  jne    L29
  movdqa %xmm3,%xmm0
  mov    %ecx,%esi
  psrldq $0x8,%xmm0
  and    $0xfffffff0,%esi
  paddd  %xmm0,%xmm3
  movdqa %xmm3,%xmm0
  psrldq $0x4,%xmm0
  paddd  %xmm0,%xmm3
  movd   %xmm3,%eax
  test   $0xf,%cl
  je     L165
L79:
  mov    %esi,%r8d
  cmp    %dl,(%rdi,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0x1(%rsi),%r8d
  cmp    %ecx,%r8d
  jae    L53
  cmp    %dl,(%rdi,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0x2(%rsi),%r8d
  cmp    %r8d,%ecx
  jbe    L53
  cmp    %dl,(%rdi,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0x3(%rsi),%r8d
  cmp    %r8d,%ecx
  jbe    L53
  cmp    %dl,(%rdi,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0x4(%rsi),%r8d
  cmp    %r8d,%ecx
  jbe    L53
  cmp    %dl,(%rdi,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0x5(%rsi),%r8d
  cmp    %r8d,%ecx
  jbe    L53
  cmp    %dl,(%rdi,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0x6(%rsi),%r8d
  cmp    %r8d,%ecx
  jbe    L53
  cmp    %dl,(%rdi,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0x7(%rsi),%r8d
  cmp    %r8d,%ecx
  jbe    L53
  cmp    %dl,(%rdi,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0x8(%rsi),%r8d
  cmp    %r8d,%ecx
  jbe    L53
  cmp    %dl,(%rdi,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0x9(%rsi),%r8d
  cmp    %r8d,%ecx
  jbe    L53
  cmp    %dl,(%rdi,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0xa(%rsi),%r8d
  cmp    %r8d,%ecx
  jbe    L53
  cmp    %dl,(%rdi,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0xb(%rsi),%r8d
  cmp    %r8d,%ecx
  jbe    L53
  cmp    %dl,(%rdi,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0xc(%rsi),%r8d
  cmp    %r8d,%ecx
  jbe    L53
  cmp    %dl,(%rdi,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0xd(%rsi),%r8d
  cmp    %r8d,%ecx
  jbe    L53
  cmp    %dl,(%rdi,%r8,1)
  sete   %r8b
  add    $0xe,%esi
  movzbl %r8b,%r8d
  add    %r8d,%eax
  cmp    %esi,%ecx
  jbe    L53
  cmp    %dl,(%rdi,%rsi,1)
  sete   %dl
  movzbl %dl,%edx
  add    %edx,%eax
  ret
  xchg   %ax,%ax
L67:
  xor    %eax,%eax
L53:
  ret
L89:
  xor    %esi,%esi
  xor    %eax,%eax
  jmp    L79
L165:
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D3
datatype: byte[16]

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

assistant: ```c
unsigned count(char m[], unsigned size, char candidate) {
  unsigned cnt, i;
  for (i = cnt = 0; i < size; i++)
    if (m[i] == candidate)
      cnt++;
  return cnt;
}
```