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

```asm
<create_letter_distribution_diagram>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%r14
  mov    %rsi,%r12
  lea    0x4(%rsi),%rbp
  mov    %rbp,%rdx
  mov    $0x61,%eax
L167:
  mov    %eax,-0x4(%rdx)
  movl   $0x0,(%rdx)
  add    $0x1,%eax
  add    $0x8,%rdx
  cmp    $0x7b,%eax
  jne    L167
  mov    $0x0,%r13d
  lea    0xd4(%r12),%rbx
  jmp    L68
L22:
  addl   $0x1,(%rcx)
L97:
  add    $0x8,%rax
  cmp    %rbx,%rax
  je     L119
L73:
  mov    %rax,%rcx
  mov    -0x4(%rax),%edx
  cmp    %esi,%edx
  je     L22
  sub    $0x20,%edx
  cmp    %esi,%edx
  jne    L97
  jmp    L22
L119:
  add    $0x1,%r13
L68:
  mov    %r14,%rdi
  call   <strlen@plt>
  cmp    %r13d,%eax
  jle    L58
  movsbl (%r14,%r13,1),%esi
  mov    %rbp,%rax
  jmp    L73
L58:
  mov    %r12,%rbx
  lea    0xd4(%r12),%r9
  mov    %rbp,%rdx
  jmp    L18
L55:
  je     L80
L33:
  add    $0x8,%rax
  cmp    %r9,%rax
  je     L158
L48:
  mov    (%rdx),%esi
  mov    (%rax),%ecx
  cmp    %ecx,%esi
  jle    L55
  mov    -0x4(%rdx),%ecx
  mov    -0x4(%rax),%esi
  mov    %esi,-0x4(%rdx)
  mov    %ecx,-0x4(%rax)
  mov    (%rdx),%ecx
  mov    (%rax),%esi
  mov    %esi,(%rdx)
  mov    %ecx,(%rax)
  jmp    L33
L80:
  mov    -0x4(%rdx),%ecx
  mov    -0x4(%rax),%esi
  cmp    %esi,%ecx
  jge    L33
  mov    %esi,-0x4(%rdx)
  mov    %ecx,-0x4(%rax)
  mov    (%rdx),%ecx
  mov    (%rax),%esi
  mov    %esi,(%rdx)
  mov    %ecx,(%rax)
  jmp    L33
L158:
  add    $0x8,%rdx
  cmp    %r9,%rdx
  je     L78
L18:
  mov    %rbp,%rax
  jmp    L48
L78:
  add    $0xd0,%r12
  lea    D9(%rip),%rbp
L61:
  mov    0x4(%rbx),%edx
  mov    (%rbx),%esi
  mov    %rbp,%rdi
  call   <printf@plt>
  add    $0x8,%rbx
  cmp    %rbx,%r12
  jne    L61
  mov    $0x0,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D9
type_infered: string

tool: D9: %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;
}
```