user: What would the C source look like for the assembly code provided here?

```asm
<GetINIString>:
  endbr64
  push   %r15
  mov    %rsi,%r15
  push   %r14
  push   %r13
  mov    %r9,%r13
  push   %r12
  mov    %rcx,%r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x108,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xf8(%rsp)
  xor    %eax,%eax
  cmp    %rdx,%rcx
  je     L16
  mov    %rdx,%rsi
  mov    %rcx,%rdi
  call   <strcpy@plt>
L16:
  lea    D9(%rip),%rsi
  mov    %r13,%rdi
  call   <fopen@plt>
  mov    %rax,%r14
  test   %rax,%rax
  je     L78
  lea    0x50(%rsp),%r13
  lea    D5(%rip),%rsi
  mov    %rsp,%rbx
  mov    %r13,%rdi
  call   <strcpy@plt>
  mov    %rbp,%rsi
  mov    %r13,%rdi
  lea    0xa0(%rsp),%rbp
  call   <strcat@plt>
  lea    D24(%rip),%rsi
  mov    %r13,%rdi
  call   <strcat@plt>
  mov    %r15,%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  lea    D18(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  jmp    L112
  nopl   0x0(%rax)
L21:
  mov    %r14,%rdi
  call   <feof@plt>
  test   %eax,%eax
  jne    L13
L118:
  mov    %r14,%rdi
  call   <ferror@plt>
  test   %eax,%eax
  jne    L13
L112:
  mov    %r14,%rdx
  mov    $0x50,%esi
  mov    %rbx,%rdi
  call   <fgets@plt>
  mov    %rbx,%rsi
  mov    %rbx,%rdi
  call   <sgets@plt>
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <strcasecmp@plt>
  test   %rax,%rax
  je     L2
  mov    %r14,%rdi
  call   <feof@plt>
  test   %eax,%eax
  je     L118
L13:
  mov    %r14,%rdi
  call   <fclose@plt>
L78:
  mov    0xf8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L34
  add    $0x108,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L42:
  cmpb   $0x0,(%rsp)
  je     L21
  mov    %r14,%rdi
  call   <feof@plt>
  test   %eax,%eax
  jne    L21
  mov    %r14,%rdi
  call   <ferror@plt>
  test   %eax,%eax
  jne    L21
L2:
  mov    %r14,%rdx
  mov    $0x50,%esi
  mov    %rbx,%rdi
  call   <fgets@plt>
  mov    %rbx,%rsi
  mov    %rbx,%rdi
  call   <sgets@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  mov    %eax,%edx
  call   <strncasecmp@plt>
  test   %rax,%rax
  jne    L42
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %r12,%rdi
  cltq
  lea    (%rbx,%rax,1),%rsi
  call   <strcpy@plt>
  mov    %r14,%rdi
  call   <fclose@plt>
  jmp    L78
L34:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D9
type_guessed: string
name: retrieve_data
arguments: data_tag: D5
type_guessed: string
name: retrieve_data
arguments: data_tag: D24
type_guessed: string
name: retrieve_data
arguments: data_tag: D18
type_guessed: string

tool: D9: rb

tool: D5: [

tool: D24: ]

tool: D18: =

assistant: ```c
void GetINIString(char *section, char *key, char *def, char *dest, int destsize, char *filename) {
  FILE *fp;
  char s1[80], s2[80], s3[80];
  if (dest != def)
    strcpy(dest, def);
  fp = fopen(filename, "rb");
  if (fp == NULL)
    return;
  strcpy(s2, "[");
  strcat(s2, section);
  strcat(s2, "]");
  strcpy(s3, key);
  strcat(s3, "=");
  do {
    fgets(s1, 80, fp);
    sgets(s1, s1);
    if (strcasecmp(s1, s2) == 0) {
      do {
        fgets(s1, 80, fp);
        sgets(s1, s1);
        if (strncasecmp(s1, s3, strlen(s3)) == 0) {
          strcpy(dest, s1 + strlen(s3));
          fclose(fp);
          return;
        }
      } while (s1[0] != 0 && !feof(fp) && !ferror(fp));
    }
  } while (!feof(fp) && !ferror(fp));
  fclose(fp);
}
```