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

```asm
<parse_config_file>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    -0x38(%rbp),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x38(%rbp),%rax
  add    $0x4,%rax
  mov    %rax,-0x30(%rbp)
  jmp    L82
L4:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%ebx
  mov    $0x434f4e46,%edi
  call   <ntohl@plt>
  cmp    %eax,%ebx
  jne    L161
  mov    -0x30(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  jmp    L98
L161:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%ebx
  mov    $0x4f4e4649,%edi
  call   <ntohl@plt>
  cmp    %eax,%ebx
  jne    L68
  mov    -0x30(%rbp),%rax
  sub    $0x1,%rax
  mov    %rax,-0x28(%rbp)
  jmp    L98
L68:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%ebx
  mov    $0x4e464947,%edi
  call   <ntohl@plt>
  cmp    %eax,%ebx
  jne    L172
  mov    -0x30(%rbp),%rax
  sub    $0x2,%rax
  mov    %rax,-0x28(%rbp)
  jmp    L98
L172:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%ebx
  mov    $0x4649475f,%edi
  call   <ntohl@plt>
  cmp    %eax,%ebx
  jne    L80
  mov    -0x30(%rbp),%rax
  sub    $0x3,%rax
  mov    %rax,-0x28(%rbp)
  nop
L98:
  mov    -0x40(%rbp),%rax
  lea    -0x7(%rax),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  cmp    %rax,-0x28(%rbp)
  ja     L131
  mov    -0x28(%rbp),%rax
  mov    $0x7,%edx
  lea    D17(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  jne    L208
  mov    -0x28(%rbp),%rax
  add    $0x7,%rax
  mov    %rax,-0x20(%rbp)
  jmp    L9
L128:
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isalnum@plt>
  test   %rax,%rax
  jne    L100
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5f,%al
  jne    L151
L100:
  addq   $0x1,-0x20(%rbp)
L9:
  mov    -0x38(%rbp),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  cmp    %rax,-0x20(%rbp)
  jb     L128
  jmp    L214
L151:
  nop
  mov    -0x20(%rbp),%rax
  sub    $0x7,%rax
  mov    $0x7,%edx
  lea    D4(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcmp@plt>
  test   %rax,%rax
  jne    L42
  subq   $0x7,-0x20(%rbp)
L42:
  mov    -0x20(%rbp),%rax
  sub    -0x28(%rbp),%rax
  cmp    $0x6,%rax
  jle    L146
  mov    -0x20(%rbp),%rax
  sub    -0x28(%rbp),%rax
  sub    $0x7,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  add    $0x7,%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <use_config@plt>
  jmp    L214
L80:
  nop
  jmp    L214
L131:
  nop
  jmp    L214
L208:
  nop
  jmp    L214
L146:
  nop
L214:
  addq   $0x4,-0x30(%rbp)
L82:
  mov    -0x30(%rbp),%rax
  cmp    -0x18(%rbp),%rax
  jb     L4
  nop
  nop
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D17
type_guessed: string
name: unpack_data
arguments: data_label: D4
type_guessed: string

tool: D17: CONFIG_

tool: D4: _MODULE

assistant: ```c
void parse_config_file(char *map, size_t len) {
  int *end = (int *)(map + len);
  int *m = (int *)map + 1;
  char *p, *q;
  for (; m < end; m++) {
    if (*m == ntohl(0x434f4e46)) {
      p = (char *)m;
      goto conf;
    }
    if (*m == ntohl(0x4f4e4649)) {
      p = (char *)m - 1;
      goto conf;
    }
    if (*m == ntohl(0x4e464947)) {
      p = (char *)m - 2;
      goto conf;
    }
    if (*m == ntohl(0x4649475f)) {
      p = (char *)m - 3;
      goto conf;
    }
    continue;
  conf:
    if (p > map + len - 7)
      continue;
    if (memcmp(p, "CONFIG_", 7))
      continue;
    for (q = p + 7; q < map + len; q++) {
      if (!(isalnum(*q) || *q == '_'))
        goto found;
    }
    continue;
  found:
    if (!memcmp(q - 7, "_MODULE", 7))
      q -= 7;
    if ((q - p - 7) < 0)
      continue;
    use_config(p + 7, q - p - 7);
  }
}
```