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

```asm
<ini_parse>:
  endbr64
  push   %r15
  pxor   %xmm0,%xmm0
  push   %r14
  mov    %rdx,%r14
  xor    %edx,%edx
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x178,%rsp
  mov    %rsi,0x10(%rsp)
  lea    D8(%rip),%rsi
  mov    %fs:0x28,%rax
  mov    %rax,0x168(%rsp)
  xor    %eax,%eax
  xor    %eax,%eax
  mov    %dx,0x90(%rsp)
  mov    %ax,0x50(%rsp)
  movaps %xmm0,0x20(%rsp)
  movaps %xmm0,0x30(%rsp)
  movaps %xmm0,0x40(%rsp)
  movaps %xmm0,0x60(%rsp)
  movaps %xmm0,0x70(%rsp)
  movaps %xmm0,0x80(%rsp)
  call   <fopen@plt>
  test   %rax,%rax
  je     L144
  mov    %rax,%r12
  xor    %r13d,%r13d
  lea    0xa0(%rsp),%rbx
  xor    %ebp,%ebp
  lea    0x60(%rsp),%r15
L157:
  mov    %r12,%rdx
  mov    $0xc8,%esi
  mov    %rbx,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L140
  mov    %rbx,%rdi
  add    $0x1,%ebp
  call   <rstrip@plt>
  mov    %rax,%rdi
  call   <lskip@plt>
  cmpb   $0x0,0x60(%rsp)
  mov    %rax,%rcx
  movzbl (%rax),%eax
  je     L95
  cmp    %rbx,%rcx
  jbe    L95
  lea    0x20(%rsp),%rsi
  mov    %r15,%rdx
  test   %al,%al
  jne    L107
L95:
  cmp    $0x5b,%al
  je     L75
  test   %al,%al
  je     L157
  cmp    $0x3b,%al
  je     L157
  mov    %rcx,%rdi
  mov    $0x3d,%esi
  mov    %rcx,0x8(%rsp)
  call   <find_char_or_comment@plt>
  mov    0x8(%rsp),%rcx
  cmpb   $0x3d,(%rax)
  je     L121
L147:
  test   %r13d,%r13d
  cmove  %ebp,%r13d
  jmp    L157
  nop
L75:
  lea    0x1(%rcx),%r8
  mov    $0x5d,%esi
  mov    %r8,%rdi
  mov    %r8,0x8(%rsp)
  call   <find_char_or_comment@plt>
  mov    0x8(%rsp),%r8
  cmpb   $0x5d,(%rax)
  jne    L147
  movb   $0x0,(%rax)
  lea    0x20(%rsp),%rdi
  mov    $0x32,%edx
  mov    %r8,%rsi
  call   <strncpy0@plt>
  movb   $0x0,0x60(%rsp)
  jmp    L157
  nop
L121:
  movb   $0x0,(%rax)
  mov    %rcx,%rdi
  mov    %rax,0x18(%rsp)
  call   <rstrip@plt>
  mov    0x18(%rsp),%rdx
  mov    %rax,0x8(%rsp)
  lea    0x1(%rdx),%rdi
  call   <lskip@plt>
  mov    $0x3b,%esi
  mov    %rax,%rdi
  mov    %rax,0x18(%rsp)
  call   <find_char_or_comment@plt>
  mov    0x18(%rsp),%rcx
  cmpb   $0x3b,(%rax)
  jne    L51
  movb   $0x0,(%rax)
L51:
  mov    %rcx,%rdi
  mov    %rcx,0x18(%rsp)
  call   <rstrip@plt>
  mov    0x8(%rsp),%rsi
  mov    $0x32,%edx
  mov    %r15,%rdi
  call   <strncpy0@plt>
  mov    0x18(%rsp),%rcx
  mov    0x8(%rsp),%rdx
  lea    0x20(%rsp),%rsi
L107:
  mov    0x10(%rsp),%rax
  mov    %r14,%rdi
  call   *%rax
  or     %r13d,%eax
  cmove  %ebp,%r13d
  jmp    L157
  cs nopw 0x0(%rax,%rax,1)
L140:
  mov    %r12,%rdi
  call   <fclose@plt>
L92:
  mov    0x168(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L54
  add    $0x178,%rsp
  mov    %r13d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L144:
  mov    $0xffffffff,%r13d
  jmp    L92
L54:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D8
data_type: string

tool: D8: r

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