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

```asm
<parse_ipv4>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x3c(%rbp)
  mov    -0x58(%rbp),%rax
  movl   $0x0,(%rax)
  lea    -0x20(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  movl   $0x0,(%rax)
  lea    -0x20(%rbp),%rax
  mov    $0x10,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  jmp    L84
L14:
  mov    -0x38(%rbp),%eax
  mov    %eax,%esi
  lea    D12(%rip),%rax
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x28(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  je     L166
  mov    -0x30(%rbp),%rax
  mov    (%rax),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%ecx
  lea    D12(%rip),%rdx
  mov    -0x28(%rbp),%rax
  sub    %rdx,%rax
  add    %ecx,%eax
  mov    %eax,-0x34(%rbp)
  cmpl   $0xff,-0x34(%rbp)
  jbe    L156
  mov    $0x0,%eax
  jmp    L73
L156:
  cmpl   $0x0,-0x3c(%rbp)
  jne    L164
  mov    -0x58(%rbp),%rax
  mov    (%rax),%eax
  lea    0x1(%rax),%edx
  mov    -0x58(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x58(%rbp),%rax
  mov    (%rax),%eax
  cmp    $0x4,%eax
  jle    L61
  mov    $0x0,%eax
  jmp    L73
L61:
  movl   $0x1,-0x3c(%rbp)
L164:
  mov    -0x34(%rbp),%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,(%rax)
  jmp    L84
L166:
  cmpl   $0x2e,-0x38(%rbp)
  jne    L37
  cmpl   $0x0,-0x3c(%rbp)
  je     L37
  mov    -0x58(%rbp),%rax
  mov    (%rax),%eax
  cmp    $0x4,%eax
  jne    L3
  mov    $0x0,%eax
  jmp    L73
L3:
  addq   $0x4,-0x30(%rbp)
  mov    -0x30(%rbp),%rax
  movl   $0x0,(%rax)
  movl   $0x0,-0x3c(%rbp)
  mov    -0x48(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L84
  mov    $0x0,%eax
  jmp    L73
L37:
  mov    $0x0,%eax
  jmp    L73
L84:
  mov    -0x48(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x48(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x38(%rbp)
  cmpl   $0x0,-0x38(%rbp)
  jne    L14
  lea    -0x20(%rbp),%rcx
  mov    -0x50(%rbp),%rax
  mov    $0x10,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    $0x1,%eax
L73:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L12
  call   <__stack_chk_fail@plt>
L12:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D12
data_type: string

tool: D12: 0123456789

assistant: ```c
int parse_ipv4(const char *src, uint32_t *dst, int *bytes) {
  static const char digits[] = "0123456789";
  int saw_digit, ch;
  uint8_t tmp[4], *tp;
  saw_digit = 0;
  *bytes = 0;
  *(tp = tmp) = 0;
  memset(tmp, 0, sizeof(tmp));
  while ((ch = *src++) != '\0') {
    const char *pch;
    if ((pch = strchr(digits, ch)) != NULL) {
      unsigned int new = *tp * 10 + (pch - digits);
      if (new > 255)
        return (0);
      if (!saw_digit) {
        if (++(*bytes) > 4)
          return (0);
        saw_digit = 1;
      }
      *tp = new;
    } else if (ch == '.' && saw_digit) {
      if (*bytes == 4)
        return (0);
      *++tp = 0;
      saw_digit = 0;
      if (!(*src))
        return 0;
    } else
      return (0);
  }
  memcpy(dst, tmp, sizeof(tmp));
  return (1);
}
```