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

```asm
<parse_hex_line>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %rdx,-0x48(%rbp)
  mov    %rcx,-0x50(%rbp)
  mov    %r8,-0x58(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    -0x50(%rbp),%rax
  movl   $0x0,(%rax)
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3a,%al
  je     L6
  mov    $0x0,%eax
  jmp    L163
L6:
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    $0xa,%eax
  jg     L88
  mov    $0x0,%eax
  jmp    L163
L88:
  mov    -0x38(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x20(%rbp)
  lea    -0x2c(%rbp),%rdx
  mov    -0x20(%rbp),%rax
  lea    D30(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sscanf@plt>
  test   %eax,%eax
  jne    L134
  mov    $0x0,%eax
  jmp    L163
L134:
  addq   $0x2,-0x20(%rbp)
  mov    -0x2c(%rbp),%eax
  add    $0x5,%eax
  lea    (%rax,%rax,1),%ebx
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %eax,%ebx
  jl     L212
  mov    $0x0,%eax
  jmp    L163
L212:
  mov    -0x48(%rbp),%rdx
  mov    -0x20(%rbp),%rax
  lea    D24(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sscanf@plt>
  test   %eax,%eax
  jne    L145
  mov    $0x0,%eax
  jmp    L163
L145:
  addq   $0x4,-0x20(%rbp)
  mov    -0x58(%rbp),%rdx
  mov    -0x20(%rbp),%rax
  lea    D30(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sscanf@plt>
  test   %eax,%eax
  jne    L156
  mov    $0x0,%eax
  jmp    L163
L156:
  addq   $0x2,-0x20(%rbp)
  mov    -0x2c(%rbp),%eax
  movzbl %al,%edx
  mov    -0x48(%rbp),%rax
  mov    (%rax),%eax
  sar    $0x8,%eax
  movzbl %al,%eax
  add    %eax,%edx
  mov    -0x48(%rbp),%rax
  mov    (%rax),%eax
  movzbl %al,%eax
  add    %eax,%edx
  mov    -0x58(%rbp),%rax
  mov    (%rax),%eax
  movzbl %al,%eax
  add    %edx,%eax
  mov    %eax,-0x24(%rbp)
  jmp    L151
L200:
  mov    -0x50(%rbp),%rax
  mov    (%rax),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rax,%rdx
  mov    -0x20(%rbp),%rax
  lea    D30(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sscanf@plt>
  test   %eax,%eax
  jne    L222
  mov    $0x0,%eax
  jmp    L163
L222:
  addq   $0x2,-0x20(%rbp)
  mov    -0x50(%rbp),%rax
  mov    (%rax),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  movzbl %al,%eax
  add    %eax,-0x24(%rbp)
  mov    -0x50(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x50(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x50(%rbp),%rax
  mov    (%rax),%eax
  cmp    $0xff,%eax
  jle    L151
  mov    $0x0,%eax
  jmp    L163
L151:
  mov    -0x50(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x2c(%rbp),%eax
  cmp    %eax,%edx
  jne    L200
  lea    -0x28(%rbp),%rdx
  mov    -0x20(%rbp),%rax
  lea    D30(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sscanf@plt>
  test   %eax,%eax
  jne    L137
  mov    $0x0,%eax
  jmp    L163
L137:
  mov    -0x28(%rbp),%eax
  mov    %eax,%edx
  mov    -0x24(%rbp),%eax
  add    %edx,%eax
  movzbl %al,%eax
  test   %eax,%eax
  je     L190
  mov    $0x0,%eax
  jmp    L163
L190:
  mov    $0x1,%eax
L163:
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L107
  call   <__stack_chk_fail@plt>
L107:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D30
data_type: string
name: extract_symbolic_data
arguments: label: D24
data_type: string

tool: D30: %02x

tool: D24: %04x

assistant: ```c
int parse_hex_line(char *theline, int bytes[], int *addr, int *num, int *code) {
  int sum, len, cksum;
  char *ptr;
  *num = 0;
  if (theline[0] != ':')
    return 0;
  if (strlen(theline) < 11)
    return 0;
  ptr = theline + 1;
  if (!sscanf(ptr, "%02x", &len))
    return 0;
  ptr += 2;
  if (strlen(theline) < (11 + (len * 2)))
    return 0;
  if (!sscanf(ptr, "%04x", addr))
    return 0;
  ptr += 4;
  if (!sscanf(ptr, "%02x", code))
    return 0;
  ptr += 2;
  sum = (len & 255) + ((*addr >> 8) & 255) + (*addr & 255) + (*code & 255);
  while (*num != len) {
    if (!sscanf(ptr, "%02x", &bytes[*num]))
      return 0;
    ptr += 2;
    sum += bytes[*num] & 255;
    (*num)++;
    if (*num >= 256)
      return 0;
  }
  if (!sscanf(ptr, "%02x", &cksum))
    return 0;
  if (((sum & 255) + (cksum & 255)) & 255)
    return 0;
  return 1;
}
```