user: Converte this assembly snippet into its equivalent C code:

```asm
<parse_file>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdx,%rbx
  sub    $0x48,%rsp
  mov    %rdi,0x20(%rsp)
  xor    %edi,%edi
  test   %rdx,%rdx
  setne  %dil
  mov    %rsi,0x18(%rsp)
  mov    %rcx,0x28(%rsp)
  mov    %r8,0x30(%rsp)
  mov    %r9,0x38(%rsp)
  call   <assert@plt>
  xor    %edi,%edi
  test   %r14,%r14
  je     L126
  xor    %edi,%edi
  cmpb   $0x0,(%r14)
  setne  %dil
L126:
  call   <assert@plt>
  mov    0x18(%rsp),%rax
  xor    %edi,%edi
  test   %rax,%rax
  je     L62
  xor    %edi,%edi
  cmpb   $0x0,(%rax)
  setne  %dil
L62:
  call   <assert@plt>
  mov    0x90(%rsp),%rax
  xor    %ebp,%ebp
  xor    %r13d,%r13d
  movl   $0xffffffff,(%rax)
  mov    0x88(%rsp),%rax
  movl   $0xffffffff,(%rax)
  mov    0x38(%rsp),%rax
  movl   $0xffffffff,(%rax)
  mov    0x80(%rsp),%rax
  movl   $0xffffffff,(%rax)
  mov    0x28(%rsp),%rax
  movl   $0xffffffff,(%rax)
  mov    0x30(%rsp),%rax
  movl   $0xffffffff,(%rax)
  nop
L130:
  lea    (%rbx,%r13,1),%r12
  movsbl (%r12),%edi
  call   <end_of_string@plt>
  test   %eax,%eax
  jne    L162
  test   %ebp,%ebp
  je     L26
  movsbl -0x1(%rbx,%r13,1),%edi
  call   <newline@plt>
  test   %rax,%rax
  je     L117
L26:
  movsbl (%r12),%edi
  call   <left_barce@plt>
  test   %rax,%rax
  jne    L132
L117:
  add    $0x1,%ebp
  movslq %ebp,%r13
  jmp    L130
  nopl   0x0(%rax)
L132:
  lea    0x1(%rbx,%r13,1),%r15
  mov    %ebp,%r13d
  mov    %r15,%r12
  jmp    L213
  nopl   (%rax)
L279:
  movsbl (%r12),%edi
  add    $0x1,%r12
  call   <end_of_string@plt>
  test   %eax,%eax
  jne    L58
L213:
  movsbl (%r12),%edi
  mov    %r13d,%r14d
  add    $0x1,%r13d
  call   <isright_brace@plt>
  test   %eax,%eax
  je     L279
L58:
  mov    %r14d,%edx
  mov    0x20(%rsp),%rsi
  mov    %r15,%rdi
  lea    0x1(%rbp),%r12d
  sub    %ebp,%edx
  call   <strncmp@plt>
  test   %rax,%rax
  je     L68
  movslq %r13d,%r13
  mov    %r13,%rbp
  jmp    L130
  nopl   (%rax)
L162:
  add    $0x48,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L68:
  lea    0x2(%r14),%r13d
  movslq %r13d,%r13
  nopw   0x0(%rax,%rax,1)
L204:
  movsbl (%rbx,%r13,1),%edi
  mov    %r13d,%ebp
  add    $0x1,%r13
  call   <isspace@plt>
  test   %rax,%rax
  jne    L204
  mov    0x28(%rsp),%rax
  mov    %r12d,(%rax)
  mov    0x30(%rsp),%rax
  mov    %ebp,(%rax)
  nopl   (%rax)
L165:
  movslq %ebp,%r13
  movsbl -0x1(%rbx,%r13,1),%edi
  mov    %r13,%r15
  lea    (%rbx,%r13,1),%r12
  call   <newline@plt>
  test   %rax,%rax
  je     L73
  movsbl (%r12),%edi
  call   <left_barce@plt>
  test   %rax,%rax
  jne    L130
L73:
  movsbl (%r12),%edi
  call   <end_of_string@plt>
  test   %eax,%eax
  je     L217
  jmp    L130
  nopl   0x0(%rax,%rax,1)
L166:
  movsbl (%rbx,%r15,1),%edi
  add    $0x1,%r15
  call   <end_of_string@plt>
  test   %eax,%eax
  jne    L63
L217:
  movsbl (%rbx,%r15,1),%edi
  mov    %r15d,%r14d
  mov    %r15d,%r13d
  call   <newline@plt>
  test   %rax,%rax
  je     L166
L63:
  movzbl (%r12),%eax
  cmp    $0x3b,%al
  jne    L167
L265:
  lea    0x1(%r13),%ebp
  jmp    L165
  cs nopw 0x0(%rax,%rax,1)
L167:
  cmp    %ebp,%r13d
  jle    L265
  sub    %ebp,%r14d
  mov    %rbx,0x10(%rsp)
  mov    0x18(%rsp),%r15
  lea    -0x1(%r14),%r8d
  mov    %r13d,0xc(%rsp)
  xor    %r14d,%r14d
  mov    %r8,%rbx
  jmp    L122
  nopl   0x0(%rax,%rax,1)
L12:
  cmp    %r14,%rbx
  je     L215
  movzbl 0x1(%r12,%r14,1),%eax
  add    $0x1,%r14
L122:
  mov    %r14d,%edx
  lea    0x0(%rbp,%r14,1),%r13d
  cmp    $0x3d,%al
  je     L215
  cmpb   $0x3d,0x1(%r12,%r14,1)
  jne    L12
  add    $0x1,%edx
  mov    %r12,%rsi
  mov    %r15,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L12
  mov    0x38(%rsp),%rax
  mov    %r13d,%ecx
  mov    0xc(%rsp),%r13d
  mov    %ebp,(%rax)
  mov    0x80(%rsp),%rax
  mov    %ecx,(%rax)
  mov    0x88(%rsp),%rax
  add    $0x2,%ecx
  mov    %ecx,(%rax)
  mov    0x90(%rsp),%rax
  mov    %r13d,(%rax)
  add    $0x48,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L215:
  mov    0xc(%rsp),%r13d
  mov    0x10(%rsp),%rbx
  jmp    L265
```

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