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

```asm
<lengthOfLongestSubstring>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x438,%rsp
  mov    %rdi,%rcx
  mov    %fs:0x28,%rax
  mov    %rax,0x428(%rsp)
  xor    %eax,%eax
  lea    0x20(%rsp),%rax
  mov    %rax,0x10(%rsp)
  lea    0x420(%rsp),%rbx
L65:
  movl   $0x0,(%rax)
  add    $0x4,%rax
  cmp    %rbx,%rax
  jne    L65
  mov    %rcx,%r13
  movzbl (%rcx),%eax
  test   %al,%al
  je     L19
  mov    %rcx,%r14
  mov    $0x0,%r15d
  movl   $0x0,0x8(%rsp)
  jmp    L72
L20:
  lea    -0x64(%rbp),%edi
  mov    %r14,%rax
  sub    %r13,%rax
  mov    %rax,(%rsp)
  mov    %eax,%ecx
  mov    %eax,0x18(%rsp)
  mov    %edi,0xc(%rsp)
  mov    %edi,%edx
  mov    %r12d,%esi
  lea    D12(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    (%rsp),%eax
  sub    0xc(%rsp),%eax
  mov    %eax,0xc(%rsp)
  mov    0x10(%rsp),%rax
L45:
  movl   $0x0,(%rax)
  add    $0x4,%rax
  cmp    %rbx,%rax
  jne    L45
  sub    $0x63,%ebp
  cmp    %ebp,(%rsp)
  jl     L35
  movslq %ebp,%rbp
  mov    %r15d,0x1c(%rsp)
  mov    0x18(%rsp),%r15d
L10:
  movsbl 0x0(%r13,%rbp,1),%esi
  movslq %esi,%rax
  lea    0x64(%rbp),%edx
  mov    %edx,0x20(%rsp,%rax,4)
  mov    %ebp,%edx
  lea    D11(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%rbp
  cmp    %ebp,%r15d
  jge    L10
  mov    0x1c(%rsp),%r15d
L35:
  mov    0x8(%rsp),%eax
  cmp    %r15d,%eax
  cmovge %eax,%r15d
  mov    %r15d,0x8(%rsp)
  mov    (%rsp),%eax
  add    $0x64,%eax
  mov    0xc(%rsp),%r15d
L36:
  movslq %r12d,%r12
  mov    %eax,0x20(%rsp,%r12,4)
  add    $0x1,%r14
  movzbl (%r14),%eax
  test   %al,%al
  je     L58
L72:
  movsbl %al,%r12d
  movsbq %al,%rax
  mov    0x20(%rsp,%rax,4),%ebp
  test   %ebp,%ebp
  jne    L20
  lea    0x64(%r14),%rax
  sub    %r13d,%eax
  add    $0x1,%r15d
  jmp    L36
L19:
  mov    $0x0,%r15d
  movl   $0x0,0x8(%rsp)
L58:
  mov    0x8(%rsp),%eax
  cmp    %r15d,%eax
  cmovl  %r15d,%eax
  mov    0x428(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L3
  add    $0x438,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L3:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D12
data_type: string
name: unpack_data
arguments: label: D11
data_type: string

tool: D12: val is %c,prev is %d, curr is %d.


tool: D11: update %c to %d.


assistant: ```c
int lengthOfLongestSubstring(char *s) {
  int hash[256];
  int i = 0;
  for (i = 0; i < 256; i++)
    hash[i] = 0;
  int count = 0;
  int tmpcount = 0;
  int val = 0;
  int previndex = 0;
  int currindex = 0;
  char *p = s;
  int extra = 0;
  int existflag = 100;
  while (*p) {
    val = (int)*p;
    if (hash[val]) {
      previndex = hash[val] - existflag;
      currindex = p - s;
      printf("val is %c,prev is %d, curr is %d.\n", val, previndex, currindex);
      extra = currindex - previndex - 1;
      for (i = 0; i < 256; i++)
        hash[i] = 0;
      for (i = previndex + 1; i <= currindex; i++) {
        hash[*(s + i)] = existflag + i;
        printf("update %c to %d.\n", *(s + i), i);
      }
      if (tmpcount >= count)
        count = tmpcount;
      hash[val] = existflag + currindex;
      tmpcount = 1 + extra;
    } else {
      hash[val] = existflag + p - s;
      tmpcount++;
    }
    p++;
  }
  if (tmpcount >= count)
    count = tmpcount;
  return count;
}
```