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

```asm
<debian_valid_section>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x240,%rsp
  mov    %rdi,-0x238(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0xffffffff,-0x224(%rbp)
  movl   $0x0,-0x220(%rbp)
  lea    -0x218(%rbp),%rax
  mov    %rax,%rdi
  call   <get_sections@plt>
  mov    %eax,-0x21c(%rbp)
  movl   $0x0,-0x228(%rbp)
  jmp    L186
L125:
  mov    -0x228(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x238(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x60,%al
  jle    L177
  mov    -0x228(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x238(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x7a,%al
  jle    L130
L177:
  mov    -0x228(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x238(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  je     L130
  mov    -0x228(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x238(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jne    L78
L130:
  mov    -0x228(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x238(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jne    L165
  addl   $0x1,-0x220(%rbp)
  mov    -0x228(%rbp),%eax
  mov    %eax,-0x224(%rbp)
  jmp    L165
L78:
  mov    -0x228(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x238(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%edx
  mov    -0x228(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x238(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    -0x238(%rbp),%rcx
  mov    %eax,%esi
  lea    D38(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L162
L165:
  addl   $0x1,-0x228(%rbp)
L186:
  mov    -0x238(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %eax,-0x228(%rbp)
  jl     L125
  cmpl   $0x1,-0x220(%rbp)
  jle    L35
  mov    $0x0,%eax
  jmp    L162
L35:
  cmpl   $0x1,-0x220(%rbp)
  jne    L215
  movl   $0x0,-0x228(%rbp)
  jmp    L166
L82:
  mov    -0x228(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x238(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x228(%rbp),%eax
  cltq
  mov    %dl,-0x210(%rbp,%rax,1)
  addl   $0x1,-0x228(%rbp)
L166:
  mov    -0x228(%rbp),%eax
  cmp    -0x224(%rbp),%eax
  jl     L82
  mov    -0x228(%rbp),%eax
  cltq
  movb   $0x0,-0x210(%rbp,%rax,1)
  mov    -0x218(%rbp),%rcx
  mov    -0x21c(%rbp),%edx
  lea    -0x210(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <match_string@plt>
  test   %rax,%rax
  jne    L54
  lea    -0x210(%rbp),%rax
  mov    %rax,%rsi
  lea    D32(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L162
L54:
  mov    -0x224(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x228(%rbp)
  jmp    L192
L41:
  mov    -0x228(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x238(%rbp),%rax
  add    %rdx,%rax
  mov    -0x224(%rbp),%edx
  lea    0x1(%rdx),%esi
  mov    -0x228(%rbp),%edx
  mov    %edx,%ecx
  sub    %esi,%ecx
  movzbl (%rax),%edx
  movslq %ecx,%rax
  mov    %dl,-0x210(%rbp,%rax,1)
  addl   $0x1,-0x228(%rbp)
L192:
  mov    -0x238(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %eax,-0x228(%rbp)
  jl     L41
  mov    -0x224(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x228(%rbp),%eax
  sub    %edx,%eax
  cltq
  movb   $0x0,-0x210(%rbp,%rax,1)
  mov    -0x218(%rbp),%rcx
  mov    -0x21c(%rbp),%edx
  lea    -0x210(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <match_string@plt>
  test   %rax,%rax
  jne    L69
  lea    -0x210(%rbp),%rax
  mov    %rax,%rsi
  lea    D32(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L162
L215:
  mov    -0x218(%rbp),%rcx
  mov    -0x21c(%rbp),%edx
  mov    -0x238(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <match_string@plt>
  test   %rax,%rax
  jne    L69
  mov    -0x238(%rbp),%rax
  mov    %rax,%rsi
  lea    D32(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L162
L69:
  mov    $0x1,%eax
L162:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L208
  call   <__stack_chk_fail@plt>
L208:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D38
type_guessed: string
name: disassemble_data
arguments: data_tag: D32
type_guessed: string

tool: D38: %d %c %s
Sections should only contain lower case letters or hyphens, with no spaces


tool: D32: %s is not a permissable subsection name


assistant: ```c
int debian_valid_section(char *section) {
  int i, j = -1, ctr = 0;
  char subsection[512];
  char **sections;
  int no_of_sections = get_sections(&sections);
  for (i = 0; i < strlen(section); i++) {
    if (((section[i] >= 'a') && (section[i] <= 'z')) || (section[i] == '-') || (section[i] == '/')) {
      if (section[i] == '/') {
        ctr++;
        j = i;
      }
    } else {
      printf("%d %c %s\nSections should only contain lower "
             "case letters or hyphens, with no spaces\n",
             (int)section[i], section[i], section);
      return 0;
    }
  }
  if (ctr > 1)
    return 0;
  if (ctr == 1) {
    for (i = 0; i < j; i++) {
      subsection[i] = section[i];
    }
    subsection[i] = 0;
    if (match_string(subsection, sections, no_of_sections) == 0) {
      printf("%s is not a permissable subsection name\n", subsection);
      return 0;
    }
    for (i = j + 1; i < strlen(section); i++) {
      subsection[i - (j + 1)] = section[i];
    }
    subsection[i - (j + 1)] = 0;
    if (match_string(subsection, sections, no_of_sections) == 0) {
      printf("%s is not a permissable subsection name\n", subsection);
      return 0;
    }
  } else {
    if (match_string(section, sections, no_of_sections) == 0) {
      printf("%s is not a permissable subsection name\n", section);
      return 0;
    }
  }
  return 1;
}
```