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

```asm
<parse_file>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdx,%rbx
  sub    $0x38,%rsp
  mov    %rdi,0x10(%rsp)
  xor    %edi,%edi
  test   %rdx,%rdx
  setne  %dil
  mov    %rsi,(%rsp)
  mov    %rcx,0x18(%rsp)
  mov    %r8,0x20(%rsp)
  mov    %r9,0x28(%rsp)
  call   <assert@plt>
  xor    %edi,%edi
  test   %r14,%r14
  je     L163
  xor    %edi,%edi
  cmpb   $0x0,(%r14)
  setne  %dil
L163:
  call   <assert@plt>
  mov    (%rsp),%rax
  xor    %edi,%edi
  test   %rax,%rax
  je     L188
  xor    %edi,%edi
  cmpb   $0x0,(%rax)
  setne  %dil
L188:
  call   <assert@plt>
  mov    0x80(%rsp),%rax
  xor    %r12d,%r12d
  xor    %r13d,%r13d
  movl   $0xffffffff,(%rax)
  mov    0x78(%rsp),%rax
  movl   $0xffffffff,(%rax)
  mov    0x28(%rsp),%rax
  movl   $0xffffffff,(%rax)
  mov    0x70(%rsp),%rax
  movl   $0xffffffff,(%rax)
  mov    0x18(%rsp),%rax
  movl   $0xffffffff,(%rax)
  mov    0x20(%rsp),%rax
  movl   $0xffffffff,(%rax)
  nopl   0x0(%rax,%rax,1)
L276:
  lea    (%rbx,%r13,1),%rbp
  movsbl 0x0(%rbp),%edi
  call   <end_of_string@plt>
  test   %eax,%eax
  jne    L81
  test   %r12d,%r12d
  je     L175
  movsbl -0x1(%rbx,%r13,1),%edi
  call   <newline@plt>
  test   %rax,%rax
  je     L209
L175:
  movsbl 0x0(%rbp),%edi
  call   <left_barce@plt>
  test   %rax,%rax
  jne    L52
L209:
  add    $0x1,%r12d
  movslq %r12d,%r13
  jmp    L276
  nopl   0x0(%rax)
L52:
  lea    0x1(%rbx,%r13,1),%r15
  mov    %r12d,%r13d
  mov    %r15,%rbp
  jmp    L91
  nopl   (%rax)
L12:
  movsbl 0x0(%rbp),%edi
  add    $0x1,%rbp
  call   <end_of_string@plt>
  test   %eax,%eax
  jne    L6
L91:
  movsbl 0x0(%rbp),%edi
  mov    %r13d,%r14d
  add    $0x1,%r13d
  call   <isright_brace@plt>
  test   %eax,%eax
  je     L12
L6:
  mov    %r14d,%edx
  mov    0x10(%rsp),%rsi
  mov    %r15,%rdi
  lea    0x1(%r12),%ebp
  sub    %r12d,%edx
  call   <strncmp@plt>
  test   %rax,%rax
  je     L265
  movslq %r13d,%r13
  mov    %r13,%r12
  jmp    L276
  nopl   (%rax)
L81:
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L265:
  lea    0x2(%r14),%r13d
  movslq %r13d,%r13
  nopw   0x0(%rax,%rax,1)
L102:
  movsbl (%rbx,%r13,1),%edi
  mov    %r13d,%r12d
  add    $0x1,%r13
  call   <isspace@plt>
  test   %rax,%rax
  jne    L102
  mov    0x18(%rsp),%rax
  mov    %ebp,(%rax)
  mov    0x20(%rsp),%rax
  mov    %r12d,(%rax)
  nopl   (%rax)
L177:
  movslq %r12d,%r13
  movsbl -0x1(%rbx,%r13,1),%edi
  lea    (%rbx,%r13,1),%r14
  call   <newline@plt>
  test   %rax,%rax
  je     L124
  movsbl (%r14),%edi
  call   <left_barce@plt>
  test   %rax,%rax
  jne    L276
L124:
  movsbl (%r14),%edi
  call   <end_of_string@plt>
  test   %eax,%eax
  jne    L276
  mov    %r13,%r15
  jmp    L199
  nopw   0x0(%rax,%rax,1)
L48:
  movsbl (%rbx,%r15,1),%edi
  add    $0x1,%r15
  call   <end_of_string@plt>
  test   %eax,%eax
  jne    L112
L199:
  movsbl (%rbx,%r15,1),%edi
  mov    %r15d,%ebp
  call   <newline@plt>
  test   %rax,%rax
  je     L48
L112:
  cmpb   $0x3b,(%r14)
  jne    L259
L67:
  lea    0x1(%rbp),%r12d
  jmp    L177
L259:
  cmp    %r12d,%ebp
  jle    L67
  mov    %rbx,0x8(%rsp)
  lea    0x1(%rbx,%r13,1),%r13
  mov    %r12d,%r15d
  mov    %r14,%rbx
  jmp    L107
  nopw   0x0(%rax,%rax,1)
L217:
  add    $0x1,%r13
  cmp    %r14d,%ebp
  je     L257
  mov    %r14d,%r15d
L107:
  cmpb   $0x3d,-0x1(%r13)
  je     L257
  cmpb   $0x3d,0x0(%r13)
  lea    0x1(%r15),%r14d
  jne    L217
  mov    %r14d,%edx
  mov    (%rsp),%rdi
  mov    %rbx,%rsi
  sub    %r12d,%edx
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L217
  mov    0x28(%rsp),%rax
  mov    %r15d,%ecx
  add    $0x2,%ecx
  mov    %r12d,(%rax)
  mov    0x70(%rsp),%rax
  mov    %r15d,(%rax)
  mov    0x78(%rsp),%rax
  mov    %ecx,(%rax)
  mov    0x80(%rsp),%rax
  mov    %ebp,(%rax)
  add    $0x38,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L257:
  mov    0x8(%rsp),%rbx
  jmp    L67
```

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;
}
```