user: Translate the below assembly code into C programming language:

```asm
<parse_file>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%r15
  mov    %rdi,0x10(%rsp)
  mov    %rsi,0x8(%rsp)
  mov    %rdx,%rbx
  mov    %rcx,0x18(%rsp)
  mov    %r8,0x20(%rsp)
  mov    %r9,0x28(%rsp)
  test   %rdx,%rdx
  setne  %dil
  movzbl %dil,%edi
  call   <assert@plt>
  mov    $0x0,%edi
  test   %r15,%r15
  je     L173
  cmpb   $0x0,(%r15)
  setne  %dil
  movzbl %dil,%edi
L173:
  call   <assert@plt>
  mov    $0x0,%edi
  mov    0x8(%rsp),%rax
  test   %rax,%rax
  je     L251
  cmpb   $0x0,(%rax)
  setne  %dil
  movzbl %dil,%edi
L251:
  call   <assert@plt>
  mov    0x80(%rsp),%rax
  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)
  mov    $0x0,%r14d
  jmp    L16
L175:
  movsbl 0x0(%rbp),%edi
  call   <left_barce@plt>
  test   %rax,%rax
  jne    L268
L252:
  add    $0x1,%r14d
L16:
  movslq %r14d,%r12
  lea    (%rbx,%r12,1),%rbp
  movsbl 0x0(%rbp),%edi
  call   <end_of_string@plt>
  test   %eax,%eax
  jne    L166
  test   %r14d,%r14d
  je     L175
  movsbl -0x1(%rbx,%r12,1),%edi
  call   <newline@plt>
  test   %rax,%rax
  je     L252
  jmp    L175
L268:
  lea    0x1(%r14),%r15d
  lea    0x1(%rbx,%r12,1),%rbp
  mov    %r14d,%r12d
L67:
  mov    %r12d,%r13d
  add    $0x1,%r12d
  movsbl 0x0(%rbp),%edi
  call   <isright_brace@plt>
  test   %eax,%eax
  jne    L31
  movsbl 0x0(%rbp),%edi
  call   <end_of_string@plt>
  add    $0x1,%rbp
  test   %eax,%eax
  je     L67
L31:
  mov    %r13d,%edx
  sub    %r14d,%edx
  movslq %r15d,%rdi
  add    %rbx,%rdi
  mov    0x10(%rsp),%rsi
  call   <strncmp@plt>
  mov    %r12d,%r14d
  test   %rax,%rax
  jne    L16
  lea    0x2(%r13),%ebp
  movslq %ebp,%rbp
L102:
  mov    %ebp,%r14d
  movsbl (%rbx,%rbp,1),%edi
  call   <isspace@plt>
  add    $0x1,%rbp
  test   %rax,%rax
  jne    L102
  mov    0x18(%rsp),%rax
  mov    %r15d,(%rax)
  mov    0x20(%rsp),%rax
  mov    %r14d,(%rax)
  mov    %r14d,0x4(%rsp)
  jmp    L220
L153:
  cmpb   $0x3b,(%r14)
  jne    L133
L180:
  lea    0x1(%r12),%eax
  mov    %eax,0x4(%rsp)
L220:
  movslq 0x4(%rsp),%r13
  movsbl -0x1(%rbx,%r13,1),%edi
  call   <newline@plt>
  test   %rax,%rax
  je     L184
  movsbl (%rbx,%r13,1),%edi
  call   <left_barce@plt>
  test   %rax,%rax
  jne    L59
L184:
  lea    (%rbx,%r13,1),%r14
  movsbl (%r14),%edi
  call   <end_of_string@plt>
  test   %eax,%eax
  jne    L87
  mov    %r13,%rbp
L122:
  mov    %ebp,%r12d
  movsbl (%rbx,%rbp,1),%edi
  call   <newline@plt>
  test   %rax,%rax
  jne    L153
  movsbl (%rbx,%rbp,1),%edi
  call   <end_of_string@plt>
  add    $0x1,%rbp
  test   %eax,%eax
  je     L122
  jmp    L153
L133:
  mov    0x4(%rsp),%r15d
  cmp    %r15d,%r12d
  jle    L180
  lea    0x1(%rbx,%r13,1),%rbp
  jmp    L106
L265:
  add    $0x1,%rbp
  cmp    %r13d,%r12d
  je     L180
  mov    %r13d,%r15d
L106:
  cmpb   $0x3d,-0x1(%rbp)
  je     L180
  lea    0x1(%r15),%r13d
  cmpb   $0x3d,0x0(%rbp)
  jne    L265
  mov    %r13d,%edx
  sub    0x4(%rsp),%edx
  mov    %r14,%rsi
  mov    0x8(%rsp),%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L265
  mov    0x4(%rsp),%r14d
  mov    0x28(%rsp),%rax
  mov    %r14d,(%rax)
  mov    0x70(%rsp),%rax
  mov    %r15d,(%rax)
  lea    0x2(%r15),%eax
  mov    0x78(%rsp),%rcx
  mov    %eax,(%rcx)
  mov    0x80(%rsp),%rax
  mov    %r12d,(%rax)
  mov    $0x1,%eax
  jmp    L30
L87:
  mov    0x4(%rsp),%r14d
  jmp    L16
L59:
  mov    0x4(%rsp),%r14d
  jmp    L16
L166:
  mov    $0x0,%eax
L30:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  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;
}
```