user: 请从给定的汇编指令推导出C源代码：

```asm
<hash_function>:
  endbr64
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x8,%rsp
  call   <strlen@plt>
  test   %eax,%eax
  jle    L98
  mov    %eax,%edx
  lea    -0x1(%rax),%eax
  cmp    $0xe,%eax
  jbe    L36
  mov    %edx,%ecx
  pxor   %xmm1,%xmm1
  pxor   %xmm6,%xmm6
  mov    %rbx,%rax
  shr    $0x4,%ecx
  movdqa D4(%rip),%xmm5
  pxor   %xmm4,%xmm4
  sub    $0x1,%ecx
  shl    $0x4,%rcx
  lea    0x10(%rbx,%rcx,1),%rcx
  nopw   0x0(%rax,%rax,1)
L32:
  movdqu (%rax),%xmm0
  movdqa %xmm6,%xmm3
  add    $0x10,%rax
  pcmpgtb %xmm0,%xmm3
  movdqa %xmm0,%xmm2
  punpcklbw %xmm3,%xmm2
  punpckhbw %xmm3,%xmm0
  movdqa %xmm4,%xmm3
  paddw  %xmm5,%xmm2
  paddw  %xmm5,%xmm0
  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    L32
  movdqa %xmm1,%xmm0
  mov    %edx,%ecx
  psrldq $0x8,%xmm0
  and    $0xfffffff0,%ecx
  paddd  %xmm0,%xmm1
  movdqa %xmm1,%xmm0
  psrldq $0x4,%xmm0
  paddd  %xmm0,%xmm1
  movd   %xmm1,%eax
  test   $0xf,%dl
  je     L142
L102:
  movslq %ecx,%rsi
  movsbl (%rbx,%rsi,1),%esi
  lea    -0x30(%rax,%rsi,1),%eax
  lea    0x1(%rcx),%esi
  cmp    %esi,%edx
  jle    L142
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%esi
  lea    -0x30(%rax,%rsi,1),%eax
  lea    0x2(%rcx),%esi
  cmp    %esi,%edx
  jle    L142
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%esi
  lea    -0x30(%rax,%rsi,1),%eax
  lea    0x3(%rcx),%esi
  cmp    %esi,%edx
  jle    L142
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%esi
  lea    -0x30(%rax,%rsi,1),%eax
  lea    0x4(%rcx),%esi
  cmp    %esi,%edx
  jle    L142
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%esi
  lea    -0x30(%rax,%rsi,1),%eax
  lea    0x5(%rcx),%esi
  cmp    %esi,%edx
  jle    L142
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%esi
  lea    -0x30(%rax,%rsi,1),%eax
  lea    0x6(%rcx),%esi
  cmp    %esi,%edx
  jle    L142
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%esi
  lea    -0x30(%rax,%rsi,1),%eax
  lea    0x7(%rcx),%esi
  cmp    %esi,%edx
  jle    L142
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%esi
  lea    -0x30(%rax,%rsi,1),%eax
  lea    0x8(%rcx),%esi
  cmp    %esi,%edx
  jle    L142
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%esi
  lea    -0x30(%rax,%rsi,1),%eax
  lea    0x9(%rcx),%esi
  cmp    %esi,%edx
  jle    L142
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%esi
  lea    -0x30(%rax,%rsi,1),%eax
  lea    0xa(%rcx),%esi
  cmp    %esi,%edx
  jle    L142
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%esi
  lea    -0x30(%rax,%rsi,1),%eax
  lea    0xb(%rcx),%esi
  cmp    %esi,%edx
  jle    L142
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%esi
  lea    -0x30(%rax,%rsi,1),%eax
  lea    0xc(%rcx),%esi
  cmp    %esi,%edx
  jle    L142
  movslq %esi,%rsi
  movsbl (%rbx,%rsi,1),%esi
  lea    -0x30(%rax,%rsi,1),%eax
  lea    0xd(%rcx),%esi
  cmp    %esi,%edx
  jle    L142
  movslq %esi,%rsi
  add    $0xe,%ecx
  movsbl (%rbx,%rsi,1),%esi
  lea    -0x30(%rax,%rsi,1),%eax
  cmp    %ecx,%edx
  jle    L142
  movslq %ecx,%rcx
  movsbl (%rbx,%rcx,1),%edx
  lea    -0x30(%rax,%rdx,1),%eax
L142:
  cltd
  add    $0x8,%rsp
  idiv   %ebp
  pop    %rbx
  pop    %rbp
  mov    %edx,%r8d
  mov    %r8d,%eax
  ret
  nopl   0x0(%rax,%rax,1)
L98:
  add    $0x8,%rsp
  xor    %r8d,%r8d
  mov    %r8d,%eax
  pop    %rbx
  pop    %rbp
  ret
L36:
  xor    %eax,%eax
  xor    %ecx,%ecx
  jmp    L102
```

tool_calls: name: read_data
arguments: data_tag: D4
type_guessed: byte[16]

tool: {"D4": [0xd0,0xff,0xd0,0xff,0xd0,0xff,0xd0,0xff,0xd0,0xff,0xd0,0xff,0xd0,0xff,0xd0,0xff]}

assistant: ```c
int hash_function(char *name, int size) {
  char c;
  int i, k, res = 0, len = strlen(name);
  for (i = 0; i < len; i++) {
    c = name[i];
    k = c - '0';
    res = res + k;
  }
  return res % size;
}
```