user: Please show me the C implementation that matches the assembly code listed below:

```asm
<create_letter_distribution_diagram>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  movl   $0x0,-0x14(%rbp)
  movl   $0x61,-0xc(%rbp)
  movl   $0x0,-0x10(%rbp)
  jmp    L75
L114:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    -0xc(%rbp),%ecx
  mov    -0x10(%rbp),%edx
  add    %ecx,%edx
  mov    %edx,(%rax)
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movl   $0x0,0x4(%rax)
  addl   $0x1,-0x10(%rbp)
L75:
  cmpl   $0x19,-0x10(%rbp)
  jle    L114
  jmp    L49
L122:
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x4(%rbp)
  movl   $0x0,-0x10(%rbp)
  jmp    L125
L67:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x4(%rbp)
  je     L170
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  sub    $0x20,%eax
  cmp    %eax,-0x4(%rbp)
  jne    L45
L170:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    0x4(%rax),%edx
  add    $0x1,%edx
  mov    %edx,0x4(%rax)
L45:
  addl   $0x1,-0x10(%rbp)
L125:
  cmpl   $0x19,-0x10(%rbp)
  jle    L67
  addl   $0x1,-0x14(%rbp)
L49:
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %eax,-0x14(%rbp)
  jl     L122
  movl   $0x0,-0x10(%rbp)
  jmp    L23
L118:
  movl   $0x0,-0x14(%rbp)
  jmp    L93
L126:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    0x4(%rax),%edx
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  mov    0x4(%rax),%eax
  cmp    %eax,%edx
  jle    L167
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    -0x10(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x30(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x8(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    0x4(%rax),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    -0x10(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x30(%rbp),%rdx
  add    %rcx,%rdx
  mov    0x4(%rax),%eax
  mov    %eax,0x4(%rdx)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x8(%rbp),%eax
  mov    %eax,0x4(%rdx)
  jmp    L4
L167:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    0x4(%rax),%edx
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  mov    0x4(%rax),%eax
  cmp    %eax,%edx
  jne    L4
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jge    L4
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    -0x10(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x30(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x8(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    0x4(%rax),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    -0x10(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x30(%rbp),%rdx
  add    %rcx,%rdx
  mov    0x4(%rax),%eax
  mov    %eax,0x4(%rdx)
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x8(%rbp),%eax
  mov    %eax,0x4(%rdx)
L4:
  addl   $0x1,-0x14(%rbp)
L93:
  cmpl   $0x19,-0x14(%rbp)
  jle    L126
  addl   $0x1,-0x10(%rbp)
L23:
  cmpl   $0x19,-0x10(%rbp)
  jle    L118
  movl   $0x0,-0x10(%rbp)
  jmp    L174
L90:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    0x4(%rax),%edx
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  mov    %eax,%esi
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  addl   $0x1,-0x10(%rbp)
L174:
  cmpl   $0x19,-0x10(%rbp)
  jle    L90
  mov    $0x0,%eax
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D2
type_guessed: string

tool: D2: %c: %d 


assistant: ```c
int create_letter_distribution_diagram(char sentence[50], int letters[26][2]) {
  int counter = 0, lines, ascii = 97, acode, sort;
  for (lines = 0; lines < 26; lines++) {
    letters[lines][0] = ascii + lines;
    letters[lines][1] = 0;
  }
  while (counter < strlen(sentence)) {
    acode = sentence[counter];
    for (lines = 0; lines < 26; lines++) {
      if (acode == letters[lines][0] || acode == letters[lines][0] - 32) {
        letters[lines][1]++;
      }
    }
    counter++;
  }
  for (lines = 0; lines < 26; lines++) {
    for (counter = 0; counter < 26; counter++) {
      if (letters[lines][1] > letters[counter][1]) {
        sort = letters[lines][0];
        letters[lines][0] = letters[counter][0];
        letters[counter][0] = sort;
        sort = letters[lines][1];
        letters[lines][1] = letters[counter][1];
        letters[counter][1] = sort;
      } else if (letters[lines][1] == letters[counter][1]) {
        if (letters[lines][0] < letters[counter][0]) {
          sort = letters[lines][0];
          letters[lines][0] = letters[counter][0];
          letters[counter][0] = sort;
          sort = letters[lines][1];
          letters[lines][1] = letters[counter][1];
          letters[counter][1] = sort;
        }
      }
    }
  }
  for (lines = 0; lines < 26; lines++) {
    printf("%c: %d \n", letters[lines][0], letters[lines][1]);
  }
  return 0;
}
```