user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<parse_file>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %rcx,-0x40(%rbp)
  mov    %r8,-0x48(%rbp)
  mov    %r9,-0x50(%rbp)
  mov    -0x38(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x18(%rbp)
  cmpq   $0x0,-0x38(%rbp)
  setne  %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  cmpq   $0x0,-0x28(%rbp)
  je     L290
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L290
  mov    $0x1,%eax
  jmp    L122
L290:
  mov    $0x0,%eax
L122:
  mov    %eax,%edi
  call   <assert@plt>
  cmpq   $0x0,-0x30(%rbp)
  je     L295
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L295
  mov    $0x1,%eax
  jmp    L99
L295:
  mov    $0x0,%eax
L99:
  mov    %eax,%edi
  call   <assert@plt>
  mov    0x20(%rbp),%rax
  movl   $0xffffffff,(%rax)
  mov    0x20(%rbp),%rax
  mov    (%rax),%edx
  mov    0x18(%rbp),%rax
  mov    %edx,(%rax)
  mov    0x18(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x50(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x50(%rbp),%rax
  mov    (%rax),%edx
  mov    0x10(%rbp),%rax
  mov    %edx,(%rax)
  mov    0x10(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x40(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x40(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x48(%rbp),%rax
  mov    %edx,(%rax)
  jmp    L62
L91:
  cmpl   $0x0,-0x18(%rbp)
  je     L25
  mov    -0x18(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <newline@plt>
  test   %rax,%rax
  je     L271
L25:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <left_barce@plt>
  test   %rax,%rax
  je     L271
  mov    -0x18(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x10(%rbp)
L58:
  addl   $0x1,-0x18(%rbp)
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isright_brace@plt>
  test   %eax,%eax
  jne    L145
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <end_of_string@plt>
  test   %eax,%eax
  je     L58
L145:
  mov    -0x18(%rbp),%eax
  sub    -0x10(%rbp),%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x8(%rbp),%rax
  add    %rax,%rcx
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L62
  movl   $0x0,-0xc(%rbp)
  addl   $0x1,-0x18(%rbp)
  jmp    L249
L104:
  addl   $0x1,-0x18(%rbp)
L249:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L104
  mov    -0x40(%rbp),%rax
  mov    -0x10(%rbp),%edx
  mov    %edx,(%rax)
  mov    -0x48(%rbp),%rax
  mov    -0x18(%rbp),%edx
  mov    %edx,(%rax)
  jmp    L173
L230:
  movl   $0x0,-0x14(%rbp)
  mov    -0x18(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  jmp    L293
L158:
  addl   $0x1,-0x18(%rbp)
L293:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <newline@plt>
  test   %rax,%rax
  jne    L147
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <end_of_string@plt>
  test   %eax,%eax
  je     L158
L147:
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x3b,%al
  je     L144
  jmp    L13
L7:
  addl   $0x1,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x3d,%al
  jne    L13
  mov    -0x14(%rbp),%eax
  sub    -0xc(%rbp),%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x8(%rbp),%rax
  add    %rax,%rcx
  mov    -0x30(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L13
  mov    -0x50(%rbp),%rax
  mov    -0xc(%rbp),%edx
  mov    %edx,(%rax)
  mov    -0x14(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    0x10(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x14(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    0x18(%rbp),%rax
  mov    %edx,(%rax)
  mov    0x20(%rbp),%rax
  mov    -0x18(%rbp),%edx
  mov    %edx,(%rax)
  mov    $0x1,%eax
  jmp    L16
L13:
  mov    -0x14(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  jge    L144
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x3d,%al
  jne    L7
L144:
  addl   $0x1,-0x18(%rbp)
L173:
  mov    -0x18(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <newline@plt>
  test   %rax,%rax
  je     L46
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <left_barce@plt>
  test   %rax,%rax
  jne    L62
L46:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <end_of_string@plt>
  test   %eax,%eax
  je     L230
  jmp    L62
L271:
  addl   $0x1,-0x18(%rbp)
L62:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <end_of_string@plt>
  test   %eax,%eax
  je     L91
  mov    $0x0,%eax
L16:
  leave
  ret
```

assistant: ```c
int parse_file(const char *section, const char *key, const char *buf, int *sec_s, int *sec_e, int *key_s, int *key_e, int *value_s, int *value_e) {
  const char *p = buf;
  int i = 0;
  assert(buf != NULL);
  assert(section != NULL && strlen(section));
  assert(key != NULL && strlen(key));
  *sec_e = *sec_s = *key_e = *key_s = *value_s = *value_e = -1;
  while (!end_of_string(p[i])) {
    if ((0 == i || newline(p[i - 1])) && left_barce(p[i])) {
      int section_start = i + 1;
      do {
        i++;
      } while (!isright_brace(p[i]) && !end_of_string(p[i]));
      if (0 == strncmp(p + section_start, section, i - section_start)) {
        int newline_start = 0;
        i++;
        while (isspace(p[i])) {
          i++;
        }
        *sec_s = section_start;
        *sec_e = i;
        while (!(newline(p[i - 1]) && left_barce(p[i])) && !end_of_string(p[i])) {
          int j = 0;
          newline_start = i;
          while (!newline(p[i]) && !end_of_string(p[i])) {
            i++;
          }
          j = newline_start;
          if (';' != p[j]) {
            while (j < i && p[j] != '=') {
              j++;
              if ('=' == p[j]) {
                if (strncmp(key, p + newline_start, j - newline_start) == 0) {
                  *key_s = newline_start;
                  *key_e = j - 1;
                  *value_s = j + 1;
                  *value_e = i;
                  return 1;
                }
              }
            }
          }
          i++;
        }
      }
    } else {
      i++;
    }
  }
  return 0;
}
```