user: What is the c source code of the assembly code below:

```asm
<instancesOfChar>:
  endbr64
  mov    %rsi,%rcx
  test   %edx,%edx
  jle    L157
  lea    -0x1(%rdx),%eax
  cmp    $0xe,%eax
  jbe    L75
  movd   %edi,%xmm4
  pxor   %xmm1,%xmm1
  pxor   %xmm6,%xmm6
  mov    %rsi,%rax
  mov    %edx,%esi
  punpcklbw %xmm4,%xmm4
  movdqa D2(%rip),%xmm7
  pxor   %xmm5,%xmm5
  shr    $0x4,%esi
  punpcklwd %xmm4,%xmm4
  sub    $0x1,%esi
  pshufd $0x0,%xmm4,%xmm4
  shl    $0x4,%rsi
  lea    0x10(%rcx,%rsi,1),%rsi
  nopl   0x0(%rax)
L95:
  movdqu (%rax),%xmm0
  movdqa %xmm6,%xmm3
  add    $0x10,%rax
  pcmpeqb %xmm4,%xmm0
  pand   %xmm7,%xmm0
  pcmpgtb %xmm0,%xmm3
  movdqa %xmm0,%xmm2
  punpcklbw %xmm3,%xmm2
  punpckhbw %xmm3,%xmm0
  movdqa %xmm5,%xmm3
  pcmpgtw %xmm2,%xmm3
  movdqa %xmm2,%xmm8
  punpcklwd %xmm3,%xmm8
  punpckhwd %xmm3,%xmm2
  movdqa %xmm0,%xmm3
  paddd  %xmm8,%xmm1
  paddd  %xmm2,%xmm1
  movdqa %xmm5,%xmm2
  pcmpgtw %xmm0,%xmm2
  punpcklwd %xmm2,%xmm3
  punpckhwd %xmm2,%xmm0
  paddd  %xmm3,%xmm1
  paddd  %xmm0,%xmm1
  cmp    %rsi,%rax
  jne    L95
  movdqa %xmm1,%xmm0
  mov    %edx,%esi
  psrldq $0x8,%xmm0
  and    $0xfffffff0,%esi
  paddd  %xmm0,%xmm1
  movdqa %xmm1,%xmm0
  psrldq $0x4,%xmm0
  paddd  %xmm0,%xmm1
  movd   %xmm1,%eax
  test   $0xf,%dl
  je     L155
L102:
  movslq %esi,%r8
  cmp    %dil,(%rcx,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0x1(%rsi),%r8d
  cmp    %edx,%r8d
  jge    L57
  movslq %r8d,%r8
  cmp    %dil,(%rcx,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0x2(%rsi),%r8d
  cmp    %r8d,%edx
  jle    L57
  movslq %r8d,%r8
  cmp    %dil,(%rcx,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0x3(%rsi),%r8d
  cmp    %r8d,%edx
  jle    L57
  movslq %r8d,%r8
  cmp    %dil,(%rcx,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0x4(%rsi),%r8d
  cmp    %r8d,%edx
  jle    L57
  movslq %r8d,%r8
  cmp    %dil,(%rcx,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0x5(%rsi),%r8d
  cmp    %r8d,%edx
  jle    L57
  movslq %r8d,%r8
  cmp    %dil,(%rcx,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0x6(%rsi),%r8d
  cmp    %r8d,%edx
  jle    L57
  movslq %r8d,%r8
  cmp    %dil,(%rcx,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0x7(%rsi),%r8d
  cmp    %r8d,%edx
  jle    L57
  movslq %r8d,%r8
  cmp    %dil,(%rcx,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0x8(%rsi),%r8d
  cmp    %r8d,%edx
  jle    L57
  movslq %r8d,%r8
  cmp    %dil,(%rcx,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0x9(%rsi),%r8d
  cmp    %r8d,%edx
  jle    L57
  movslq %r8d,%r8
  cmp    %dil,(%rcx,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0xa(%rsi),%r8d
  cmp    %r8d,%edx
  jle    L57
  movslq %r8d,%r8
  cmp    %dil,(%rcx,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0xb(%rsi),%r8d
  cmp    %r8d,%edx
  jle    L57
  movslq %r8d,%r8
  cmp    %dil,(%rcx,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0xc(%rsi),%r8d
  cmp    %r8d,%edx
  jle    L57
  movslq %r8d,%r8
  cmp    %dil,(%rcx,%r8,1)
  sete   %r8b
  movzbl %r8b,%r8d
  add    %r8d,%eax
  lea    0xd(%rsi),%r8d
  cmp    %r8d,%edx
  jle    L57
  movslq %r8d,%r8
  cmp    %dil,(%rcx,%r8,1)
  sete   %r8b
  add    $0xe,%esi
  movzbl %r8b,%r8d
  add    %r8d,%eax
  cmp    %esi,%edx
  jle    L57
  movslq %esi,%rsi
  xor    %edx,%edx
  cmp    %dil,(%rcx,%rsi,1)
  sete   %dl
  add    %edx,%eax
  ret
  nopw   0x0(%rax,%rax,1)
L157:
  xor    %eax,%eax
L57:
  ret
L75:
  xor    %esi,%esi
  xor    %eax,%eax
  jmp    L102
L155:
  ret
```

tool_calls: name: read_data
arguments: tag: D2
datatype: byte[16]

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

assistant: ```c
int instancesOfChar(char chr, char *str, int len) {
  int count = 0;
  int i;
  for (i = 0; i < len; i++) {
    if (*(str + i) == chr) {
      count++;
    }
  }
  return count;
}
```