user: Please show me the C implementation that matches the assembly code listed below:

```asm
<string_get_col>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x34(%rbp)
  mov    %rcx,-0x40(%rbp)
  movl   $0x0,-0x1c(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <string_get@plt>
  mov    %rax,-0x18(%rbp)
  jmp    L73
L193:
  addq   $0x1,-0x18(%rbp)
L73:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    -0x40(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <check_char_class@plt>
  test   %rax,%rax
  je     L14
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L193
L14:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L288
  mov    $0xffffffff,%eax
  jmp    L172
L288:
  mov    -0x1c(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  je     L211
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x22,%al
  jne    L70
L142:
  addq   $0x1,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L166
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x22,%al
  jne    L142
L166:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L52
  mov    $0xffffffff,%eax
  jmp    L172
L52:
  addq   $0x1,-0x18(%rbp)
  jmp    L232
L40:
  addq   $0x1,-0x18(%rbp)
L70:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    -0x40(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <check_char_class@plt>
  test   %rax,%rax
  jne    L30
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L40
L30:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L232
  mov    $0xffffffff,%eax
  jmp    L172
L232:
  addl   $0x1,-0x1c(%rbp)
  jmp    L73
L211:
  nop
  mov    -0x28(%rbp),%rax
  lea    D3(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <string_set@plt>
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x22,%al
  jne    L282
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x22,%al
  je     L199
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L46
L199:
  mov    $0xffffffff,%eax
  jmp    L172
L46:
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x10(%rbp)
L197:
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  addq   $0x1,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L191
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x22,%al
  jne    L197
L191:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L149
  mov    $0xffffffff,%eax
  jmp    L172
L263:
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <string_append_char@plt>
L149:
  mov    -0x10(%rbp),%rax
  cmp    -0x8(%rbp),%rax
  jbe    L263
  jmp    L236
L278:
  mov    -0x18(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x18(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%edx
  mov    -0x28(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <string_append_char@plt>
L282:
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L236
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    -0x40(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <check_char_class@plt>
  test   %rax,%rax
  je     L278
L236:
  mov    $0x0,%eax
L172:
  leave
  ret
```

tool_calls: name: read_data
arguments: label: D3
type_guessed: string

tool: 

assistant: ```c
int string_get_col(struct string *dst, struct string const *src, unsigned col_no, char const *delim) {
  unsigned cur_col = 0;
  char const *strp = string_get(src);
  for (;;) {
    while (check_char_class(*strp, delim) && *strp)
      strp++;
    if (!*strp)
      return -1;
    if (cur_col == col_no)
      break;
    if (*strp == '"') {
      do {
        strp++;
      } while (*strp && *strp != '"');
      if (!*strp)
        return -1;
      strp++;
    } else {
      while (!check_char_class(*strp, delim) && *strp)
        strp++;
      if (!*strp)
        return -1;
    }
    cur_col++;
  }
  string_set(dst, "");
  if (*strp == '"') {
    if (strp[1] == '"' || !strp[1])
      return -1;
    char const *last;
    char const *first = strp + 1;
    do {
      last = strp;
      strp++;
    } while (*strp && *strp != '"');
    if (!*strp)
      return -1;
    while (first <= last)
      string_append_char(dst, *first++);
  } else {
    while (*strp && !check_char_class(*strp, delim))
      string_append_char(dst, *strp++);
  }
  return 0;
}
```