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

```asm
<verify_ipv4_addr>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x110,%rsp
  mov    %rdi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x108(%rsp)
  xor    %eax,%eax
  lea    D5(%rip),%rsi
  call   <strcmp@plt>
  mov    %rax,%rdx
  mov    $0x1,%eax
  test   %rdx,%rdx
  jne    L196
L192:
  mov    0x108(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L60
  add    $0x110,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L196:
  lea    D0(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  mov    %rax,%rdx
  mov    $0x1,%eax
  test   %rdx,%rdx
  je     L192
  lea    D48(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  mov    %rax,%rdx
  mov    $0x1,%eax
  test   %rdx,%rdx
  je     L192
  lea    D42(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  mov    %rax,%rdx
  mov    $0x1,%eax
  test   %rdx,%rdx
  je     L192
  lea    D23(%rip),%rsi
  mov    %rbx,%rdi
  call   <strcmp@plt>
  mov    %rax,%rdx
  mov    $0x1,%eax
  test   %rdx,%rdx
  je     L192
  mov    %rsp,%rdi
  mov    $0xff,%edx
  mov    $0x0,%esi
  call   <memset@plt>
  movzbl (%rbx),%edi
  test   %dil,%dil
  je     L20
  mov    $0x0,%ebp
  mov    $0x0,%r14d
  mov    $0x1,%r12d
  movabs $0x8080808080808081,%r13
  jmp    L1
L186:
  movsbl %dil,%edi
  call   <isdigit@plt>
  test   %eax,%eax
  jne    L119
  jmp    L192
L30:
  mov    %rsp,%rdi
  call   <atoi@plt>
  cmp    $0xff,%eax
  setle  %r12b
  movzbl %r12b,%r12d
  jmp    L24
L20:
  mov    $0x0,%r14d
  mov    $0x1,%r12d
L188:
  cmp    $0x3,%r14d
  sete   %al
  and    %r12d,%eax
  jmp    L192
L2:
  cmpb   $0x0,0x1(%rbx)
  je     L88
L114:
  add    $0x1,%r14d
  jmp    L206
L45:
  mov    %al,(%rsp,%rbp,1)
L206:
  mov    %rsp,%rdi
  call   <atoi@plt>
  mov    $0x0,%r12d
  test   %eax,%eax
  jns    L30
L24:
  mov    %rsp,%rdi
  mov    $0xff,%edx
  mov    $0x0,%esi
  call   <memset@plt>
  mov    $0xffffffffffffffff,%rbp
L15:
  lea    0x1(%rbp),%rcx
  mov    %rcx,%rax
  mul    %r13
  shr    $0x7,%rdx
  mov    %rdx,%rax
  shl    $0x8,%rax
  sub    %rdx,%rax
  sub    %rax,%rcx
  mov    %rcx,%rbp
  add    $0x1,%rbx
  movzbl (%rbx),%edi
  test   %r12d,%r12d
  je     L188
  test   %dil,%dil
  je     L188
L1:
  cmp    $0x2e,%dil
  jne    L186
L119:
  movzbl (%rbx),%eax
  cmp    $0x2e,%al
  je     L2
  cmpb   $0x0,0x1(%rbx)
  je     L45
  mov    %al,(%rsp,%rbp,1)
  jmp    L15
L88:
  mov    %al,(%rsp,%rbp,1)
  jmp    L114
L60:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D5
type: string
name: parse_data
arguments: data_label: D0
type: string
name: parse_data
arguments: data_label: D48
type: string
name: parse_data
arguments: data_label: D42
type: string
name: parse_data
arguments: data_label: D23
type: string

tool: D5: north-american-ip

tool: D0: south-american-ip

tool: D48: asian-ip

tool: D42: european-ip

tool: D23: user-defined-ip

assistant: ```c
int verify_ipv4_addr(const char *buffer) {
  int retval = 1;
  const char *b = buffer;
  int dots_nr = 0;
  char oct[255];
  size_t o = 0;
  if (strcmp(buffer, "north-american-ip") == 0 || strcmp(buffer, "south-american-ip") == 0 || strcmp(buffer, "asian-ip") == 0 || strcmp(buffer, "european-ip") == 0 || strcmp(buffer, "user-defined-ip") == 0) {
    return 1;
  }
  memset(oct, 0, sizeof(oct));
  for (b = buffer; *b != 0 && retval; b++) {
    if (*b != '.' && !isdigit(*b)) {
      return 0;
    }
    if (*b == '.' || *(b + 1) == 0) {
      if (*(b + 1) == 0) {
        oct[o] = *b;
      }
      if (*b == '.') {
        dots_nr++;
      }
      retval = (atoi(oct) >= 0 && atoi(oct) <= 255);
      o = -1;
      memset(oct, 0, sizeof(oct));
    } else {
      oct[o] = *b;
    }
    o = (o + 1) % sizeof(oct);
  }
  return (retval && dots_nr == 3);
}
```