user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<ini_parse_file>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x1a0,%rsp
  mov    %rdi,-0x188(%rbp)
  mov    %rsi,-0x190(%rbp)
  mov    %rdx,-0x198(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x150(%rbp)
  movq   $0x0,-0x148(%rbp)
  movq   $0x0,-0x140(%rbp)
  movq   $0x0,-0x138(%rbp)
  movq   $0x0,-0x130(%rbp)
  movq   $0x0,-0x128(%rbp)
  movw   $0x0,-0x120(%rbp)
  movq   $0x0,-0x110(%rbp)
  movq   $0x0,-0x108(%rbp)
  movq   $0x0,-0x100(%rbp)
  movq   $0x0,-0xf8(%rbp)
  movq   $0x0,-0xf0(%rbp)
  movq   $0x0,-0xe8(%rbp)
  movw   $0x0,-0xe0(%rbp)
  movl   $0x0,-0x17c(%rbp)
  movl   $0x0,-0x178(%rbp)
  movl   $0x0,-0x174(%rbp)
  jmp    L284
L101:
  addl   $0x1,-0x17c(%rbp)
  lea    -0xd0(%rbp),%rax
  mov    %rax,%rdi
  call   <rstrip@plt>
  mov    %rax,%rdi
  call   <lskip@plt>
  mov    %rax,-0x168(%rbp)
  mov    -0x168(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3b,%al
  je     L284
  mov    -0x168(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x23,%al
  je     L284
  movzbl -0x110(%rbp),%eax
  test   %al,%al
  je     L23
  mov    -0x168(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L23
  lea    -0xd0(%rbp),%rax
  cmp    %rax,-0x168(%rbp)
  jbe    L23
  mov    -0x168(%rbp),%rcx
  lea    -0x110(%rbp),%rdx
  lea    -0x150(%rbp),%rsi
  mov    -0x198(%rbp),%rax
  mov    -0x190(%rbp),%r8
  mov    %rax,%rdi
  call   *%r8
  mov    %eax,-0x174(%rbp)
  cmpl   $0xffffffff,-0x174(%rbp)
  jne    L20
  mov    $0xffffffff,%eax
  jmp    L51
L20:
  cmpl   $0x0,-0x174(%rbp)
  jne    L284
  cmpl   $0x0,-0x178(%rbp)
  jne    L284
  mov    -0x17c(%rbp),%eax
  mov    %eax,-0x178(%rbp)
  jmp    L284
L23:
  mov    -0x168(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5b,%al
  jne    L143
  mov    -0x168(%rbp),%rax
  add    $0x1,%rax
  mov    $0x5d,%esi
  mov    %rax,%rdi
  call   <find_char_or_comment@plt>
  mov    %rax,-0x170(%rbp)
  mov    -0x170(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x5d,%al
  jne    L167
  mov    -0x170(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x168(%rbp),%rax
  lea    0x1(%rax),%rcx
  lea    -0x150(%rbp),%rax
  mov    $0x32,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy0@plt>
  movb   $0x0,-0x110(%rbp)
  jmp    L284
L167:
  cmpl   $0x0,-0x178(%rbp)
  jne    L284
  mov    -0x17c(%rbp),%eax
  mov    %eax,-0x178(%rbp)
  jmp    L284
L143:
  mov    -0x168(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L284
  mov    -0x168(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3b,%al
  je     L284
  mov    -0x168(%rbp),%rax
  mov    $0x3d,%esi
  mov    %rax,%rdi
  call   <find_char_or_comment@plt>
  mov    %rax,-0x170(%rbp)
  mov    -0x170(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3d,%al
  je     L66
  mov    -0x168(%rbp),%rax
  mov    $0x3a,%esi
  mov    %rax,%rdi
  call   <find_char_or_comment@plt>
  mov    %rax,-0x170(%rbp)
L66:
  mov    -0x170(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3d,%al
  je     L8
  mov    -0x170(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3a,%al
  jne    L145
L8:
  mov    -0x170(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x168(%rbp),%rax
  mov    %rax,%rdi
  call   <rstrip@plt>
  mov    %rax,-0x160(%rbp)
  mov    -0x170(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,%rdi
  call   <lskip@plt>
  mov    %rax,-0x158(%rbp)
  mov    -0x158(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <find_char_or_comment@plt>
  mov    %rax,-0x170(%rbp)
  mov    -0x170(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3b,%al
  jne    L250
  mov    -0x170(%rbp),%rax
  movb   $0x0,(%rax)
L250:
  mov    -0x158(%rbp),%rax
  mov    %rax,%rdi
  call   <rstrip@plt>
  mov    -0x160(%rbp),%rcx
  lea    -0x110(%rbp),%rax
  mov    $0x32,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy0@plt>
  mov    -0x158(%rbp),%rcx
  mov    -0x160(%rbp),%rdx
  lea    -0x150(%rbp),%rsi
  mov    -0x198(%rbp),%rax
  mov    -0x190(%rbp),%r8
  mov    %rax,%rdi
  call   *%r8
  mov    %eax,-0x174(%rbp)
  cmpl   $0xffffffff,-0x174(%rbp)
  jne    L154
  mov    $0xffffffff,%eax
  jmp    L51
L154:
  cmpl   $0x0,-0x174(%rbp)
  jne    L284
  cmpl   $0x0,-0x178(%rbp)
  jne    L284
  mov    -0x17c(%rbp),%eax
  mov    %eax,-0x178(%rbp)
  jmp    L284
L145:
  cmpl   $0x0,-0x178(%rbp)
  jne    L284
  mov    -0x17c(%rbp),%eax
  mov    %eax,-0x178(%rbp)
L284:
  mov    -0x188(%rbp),%rdx
  lea    -0xd0(%rbp),%rax
  mov    $0xc8,%esi
  mov    %rax,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  jne    L101
  mov    -0x178(%rbp),%eax
L51:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L292
  call   <__stack_chk_fail@plt>
L292:
  leave
  ret
```

assistant: ```c
int ini_parse_file(FILE *file, int (*handler)(void *, const char *, const char *, const char *), void *user) {
  char line[200];
  char section[50] = "";
  char prev_name[50] = "";
  char *start;
  char *end;
  char *name;
  char *value;
  int lineno = 0;
  int error = 0;
  int rc = 0;
  while (fgets(line, sizeof(line), file) != NULL) {
    lineno++;
    start = lskip(rstrip(line));
    if (*start == ';' || *start == '#') {
    } else if (*prev_name && *start && start > line) {
      rc = handler(user, section, prev_name, start);
      if (rc == -1)
        return -1;
      if (!rc && !error)
        error = lineno;
    } else if (*start == '[') {
      end = find_char_or_comment(start + 1, ']');
      if (*end == ']') {
        *end = '\0';
        strncpy0(section, start + 1, sizeof(section));
        *prev_name = '\0';
      } else if (!error) {
        error = lineno;
      }
    } else if (*start && *start != ';') {
      end = find_char_or_comment(start, '=');
      if (*end != '=') {
        end = find_char_or_comment(start, ':');
      }
      if (*end == '=' || *end == ':') {
        *end = '\0';
        name = rstrip(start);
        value = lskip(end + 1);
        end = find_char_or_comment(value, '\0');
        if (*end == ';')
          *end = '\0';
        rstrip(value);
        strncpy0(prev_name, name, sizeof(prev_name));
        rc = handler(user, section, name, value);
        if (rc == -1)
          return -1;
        if (!rc && !error)
          error = lineno;
      } else if (!error) {
        error = lineno;
      }
    }
  }
  return error;
}
```