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

```asm
<ss_rollingHamming>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  movslq %r8d,%r12
  push   %rbp
  mov    %r9,%rbp
  mov    %r12,%r14
  push   %rbx
  movslq %edx,%rbx
  sub    %ebx,%ecx
  lea    0x1(%rcx),%r8d
  movslq %r8d,%r8
  lea    (%r8,%r12,1),%rax
  lea    (%r9,%rax,4),%r10
  lea    (%r9,%r12,4),%r9
  mov    %rax,-0x8(%rsp)
  cmp    %r9,%r10
  jbe    L107
  movslq %ebx,%r15
  mov    %rsi,%rcx
  mov    %r9,%rdx
  add    %rsi,%r15
  nopl   (%rax)
L16:
  mov    %r15,%r11
  xor    %eax,%eax
  sub    %rcx,%r11
  cmp    %r15,%rcx
  jae    L87
  nopl   (%rax)
L138:
  movzbl (%rcx,%rax,1),%r13d
  cmp    %r13b,(%rdi,%rax,1)
  je     L129
  addl   $0x1,(%rdx)
L129:
  add    $0x1,%rax
  cmp    %r11,%rax
  jne    L138
L87:
  add    $0x4,%rdx
  add    $0x1,%rcx
  add    $0x1,%r15
  cmp    %rdx,%r10
  ja     L16
L107:
  test   %r14d,%r14d
  jle    L35
  test   %r9,%r9
  je     L115
  movslq %ebx,%rax
  xor    %edx,%edx
  mov    %rax,%rcx
  lea    (%rdi,%rax,1),%r15
  sub    %r12,%rcx
  nopl   (%rax)
L15:
  mov    %r15,%r11
  lea    (%rsi,%rcx,1),%r14
  xor    %eax,%eax
  sub    %rcx,%r11
  cmp    %r14,%rsi
  jae    L38
  nopl   0x0(%rax)
L125:
  movzbl (%rsi,%rax,1),%r14d
  cmp    %r14b,(%r11,%rax,1)
  je     L120
  addl   $0x1,(%rdx)
L120:
  add    $0x1,%rax
  cmp    %rcx,%rax
  jne    L125
L38:
  add    $0x4,%rdx
  add    $0x1,%rcx
  cmp    %rdx,%r9
  ja     L15
L115:
  add    -0x8(%rsp),%r12
  lea    0x0(%rbp,%r12,4),%rcx
  cmp    %rcx,%r10
  jae    L35
  mov    %r8,%rax
  lea    (%rsi,%r8,1),%r9
  sub    %rbx,%rax
  add    $0x1,%rax
  lea    (%rsi,%rax,1),%rdx
  sub    %rax,%r8
L117:
  xor    %eax,%eax
  cmp    %rdx,%r9
  jbe    L69
  nopw   0x0(%rax,%rax,1)
L9:
  movzbl (%rdx,%rax,1),%ebx
  cmp    %bl,(%rdi,%rax,1)
  je     L45
  addl   $0x1,(%r10)
L45:
  add    $0x1,%rax
  cmp    %rax,%r8
  jne    L9
L69:
  add    $0x4,%r10
  add    $0x1,%rdx
  sub    $0x1,%r8
  cmp    %r10,%rcx
  ja     L117
L35:
  pop    %rbx
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
int ss_rollingHamming(const char *s1, const char *s2, int len1, int len2, int overlap, int *hamming_arr_ptr) {
  const int num_positions = len2 - len1 + 1;
  int *hamming_arr_ptr_lim = hamming_arr_ptr + num_positions + overlap;
  int *ham_ptr;
  char *s1_ptr;
  char *s2_ptr;
  char *s2_start_ptr = (char *)s2;
  int i;
  for (ham_ptr = hamming_arr_ptr + overlap; ham_ptr < hamming_arr_ptr_lim; ham_ptr++) {
    s1_ptr = (char *)s1;
    s2_ptr = s2_start_ptr++;
    const char *s2_ptr_lim = s2_ptr + len1;
    while (s2_ptr < s2_ptr_lim) {
      if (*s1_ptr++ != *s2_ptr++) {
        (*ham_ptr)++;
      }
    }
  }
  if (overlap > 0) {
    i = overlap;
    hamming_arr_ptr_lim = hamming_arr_ptr + overlap;
    for (ham_ptr = 0; ham_ptr < hamming_arr_ptr_lim; ham_ptr++, i--) {
      s1_ptr = (char *)s1 + i;
      s2_ptr = (char *)s2;
      const char *s2_ptr_lim = s2_ptr + len1 - i;
      while (s2_ptr < s2_ptr_lim) {
        if (*s1_ptr++ != *s2_ptr++) {
          (*ham_ptr)++;
        }
      }
    }
    i = 1;
    hamming_arr_ptr_lim = hamming_arr_ptr + num_positions + 2 * overlap;
    for (ham_ptr = hamming_arr_ptr + num_positions + overlap; ham_ptr < hamming_arr_ptr_lim; ham_ptr++, i++) {
      s1_ptr = (char *)s1;
      s2_ptr = (char *)s2 + num_positions - len1 + i;
      const char *s2_ptr_lim = s2_ptr + len1 - i;
      while (s2_ptr < s2_ptr_lim) {
        if (*s1_ptr++ != *s2_ptr++) {
          (*ham_ptr)++;
        }
      }
    }
  }
  return 0;
}
```