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

```asm
<sift3B>:
  endbr64
  push   %r13
  mov    %edx,%r13d
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x18,%rsp
  test   %rdi,%rdi
  setne  %dil
  movsd  %xmm0,0x8(%rsp)
  movzbl %dil,%edi
  call   <assert@plt>
  xor    %edi,%edi
  test   %r12,%r12
  setne  %dil
  call   <assert@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %r12,%rdi
  mov    %eax,%ebx
  call   <strlen@plt>
  test   %ebx,%ebx
  movsd  0x8(%rsp),%xmm0
  mov    %eax,%esi
  je     L108
  test   %esi,%esi
  je     L146
  movsd  D1(%rip),%xmm3
  xor    %edx,%edx
  xor    %ecx,%ecx
  xor    %edi,%edi
  jmp    L95
  nopl   (%rax)
L184:
  add    $0x1,%edi
  add    $0x1,%ecx
  add    $0x1,%edx
L60:
  mov    %edi,%eax
  pxor   %xmm2,%xmm2
  pxor   %xmm1,%xmm1
  cvtsi2sd %rax,%xmm2
  lea    (%rcx,%rdx,1),%eax
  cvtsi2sd %rax,%xmm1
  divsd  %xmm3,%xmm1
  subsd  %xmm2,%xmm1
  comisd %xmm0,%xmm1
  jae    L93
  cmp    %ecx,%ebx
  jbe    L29
  cmp    %edx,%esi
  jbe    L29
L95:
  mov    %edx,%r8d
  mov    %ecx,%eax
  movzbl (%r12,%r8,1),%r11d
  cmp    %r11b,0x0(%rbp,%rax,1)
  je     L184
  cmp    %ecx,%edx
  mov    %ecx,%eax
  cmovbe %edx,%eax
  lea    0x1(%rax),%edx
  test   %r13d,%r13d
  je     L98
  cmp    %edx,%esi
  ja     L127
  lea    0x0(%r13,%rax,1),%ecx
  mov    %eax,%r9d
  nopw   0x0(%rax,%rax,1)
L191:
  cmp    %eax,%ebx
  jbe    L160
  mov    %eax,%r8d
  movzbl 0x0(%rbp,%r8,1),%r10d
  cmp    %r10b,(%r12,%r9,1)
  je     L57
L160:
  add    $0x1,%eax
  cmp    %eax,%ecx
  jne    L191
  add    %edx,%edx
  pxor   %xmm1,%xmm1
  pxor   %xmm2,%xmm2
  cvtsi2sd %rdx,%xmm1
  cvtsi2sd %rdi,%xmm2
  divsd  %xmm3,%xmm1
  subsd  %xmm2,%xmm1
  comisd %xmm0,%xmm1
  jae    L93
L29:
  lea    (%rbx,%rsi,1),%eax
  pxor   %xmm0,%xmm0
  add    $0x18,%rsp
  cvtsi2sd %rax,%xmm0
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  divsd  %xmm3,%xmm0
  subsd  %xmm2,%xmm0
  cvttsd2si %xmm0,%rdi
  jmp    1090 <round@plt>
L146:
  add    $0x18,%rsp
  pxor   %xmm0,%xmm0
  cvtsi2sd %rbx,%xmm0
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L127:
  lea    0x0(%r13,%rax,1),%r9d
  mov    %eax,%r8d
  nopl   0x0(%rax,%rax,1)
L188:
  mov    %eax,%ecx
  cmp    %eax,%ebx
  jbe    L62
  movzbl (%r12,%r8,1),%r11d
  cmp    %r11b,0x0(%rbp,%rcx,1)
  je     L57
L62:
  movzbl 0x0(%rbp,%r8,1),%r10d
  cmp    %r10b,(%r12,%rcx,1)
  je     L59
  add    $0x1,%eax
  cmp    %eax,%r9d
  jne    L188
L98:
  mov    %edx,%ecx
  jmp    L60
  nopl   (%rax)
L57:
  lea    0x1(%rax),%ecx
  jmp    L60
L59:
  mov    %edx,%ecx
  lea    0x1(%rax),%edx
  jmp    L60
  nopw   0x0(%rax,%rax,1)
L108:
  add    $0x18,%rsp
  pxor   %xmm0,%xmm0
  pop    %rbx
  cvtsi2sd %rsi,%xmm0
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L93:
  cvttsd2si %xmm1,%rdi
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  jmp    1090 <round@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D1
datatype: f64

tool: D1: 1.5

assistant: ```c
double sift3B(const char *str1, const char *str2, unsigned max_offset, double max_dist) {
  assert(str1 != NULL);
  assert(str2 != NULL);
  unsigned str1_len = strlen(str1);
  unsigned str2_len = strlen(str2);
  if (str1_len == 0) {
    return (double)str2_len;
  }
  if (str2_len == 0) {
    return (double)str1_len;
  }
  unsigned lcs = 0;
  unsigned c1 = 0;
  unsigned c2 = 0;
  double temp_dist;
  while ((c1 < str1_len) && (c2 < str2_len)) {
    if (((str1[c1]) == (str2[c2]))) {
      lcs++;
    } else {
      if (c1 < c2) {
        c2 = c1;
      } else {
        c1 = c2;
      }
      for (unsigned i = 0; i < max_offset; i++) {
        if ((c1 + i < str1_len) && (((str1[c1 + i]) == (str2[c2])))) {
          c1 += i;
          break;
        }
        if ((c2 + 1 < str2_len) && (((str2[c2 + i]) == (str1[c1])))) {
          c2 += i;
          break;
        }
      }
    }
    c1++;
    c2++;
    temp_dist = (c1 + c2) / 1.5 - lcs;
    if (temp_dist >= max_dist) {
      return round(temp_dist);
    }
  }
  return round((str1_len + str2_len) / 1.5 - lcs);
}
```