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

```asm
<util_version_number>:
  endbr64
  push   %r15
  mov    $0x4,%ecx
  xor    %edx,%edx
  lea    D6(%rip),%rsi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x78,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%r8
  lea    0x10(%rsp),%r14
  call   <string_split@plt>
  lea    0x8(%rsp),%r15
  mov    %rax,%r13
L32:
  movl   $0x0,(%r14,%rbx,4)
  test   %r13,%r13
  je     L108
  cmp    %ebx,0x4(%rsp)
  jg     L71
L108:
  add    $0x1,%rbx
  cmp    $0x4,%rbx
  jne    L32
  test   %r13,%r13
  je     L36
  mov    %r13,%rdi
  call   <string_free_split@plt>
L36:
  mov    0x10(%rsp),%eax
  mov    0x14(%rsp),%edx
  shl    $0x18,%eax
  shl    $0x10,%edx
  or     %edx,%eax
  mov    0x18(%rsp),%edx
  or     0x1c(%rsp),%eax
  shl    $0x8,%edx
  or     %edx,%eax
  mov    0x68(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L141
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L71:
  mov    0x0(%r13,%rbx,8),%rbp
  xor    %r12d,%r12d
  test   %rbp,%rbp
  jne    L159
  jmp    L34
  nopw   0x0(%rax,%rax,1)
L58:
  cmp    $0x3f,%r12d
  je     L34
  cmp    $0x2d,%dil
  je     L34
  call   <isdigit@plt>
  test   %rax,%rax
  je     L41
  movzbl 0x0(%rbp),%edx
  movslq %r12d,%rax
  add    $0x1,%r12d
  mov    %dl,0x20(%rsp,%rax,1)
L41:
  mov    %rbp,%rdi
  call   <utf8_next_char@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L34
L159:
  movzbl 0x0(%rbp),%edi
  test   %dil,%dil
  jne    L58
L34:
  movslq %r12d,%r12
  movb   $0x0,0x20(%rsp,%r12,1)
  cmpb   $0x0,0x20(%rsp)
  je     L108
  mov    $0xa,%edx
  lea    0x20(%rsp),%rdi
  mov    %r15,%rsi
  movq   $0x0,0x8(%rsp)
  call   <strtol@plt>
  mov    0x8(%rsp),%rdx
  test   %rdx,%rdx
  je     L108
  cmpb   $0x0,(%rdx)
  jne    L108
  mov    $0xff,%edx
  cmp    %rdx,%rax
  cmovg  %rdx,%rax
  xor    %edx,%edx
  test   %rax,%rax
  cmovs  %rdx,%rax
  mov    %eax,(%r14,%rbx,4)
  jmp    L108
L141:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D6
type: string

tool: D6: .

assistant: ```c
int util_version_number(const char *version) {
  char **items, buf[64], *error;
  const char *ptr_item;
  int num_items, i, version_int[4], index_buf;
  long number;
  items = string_split(version, ".", 0, 4, &num_items);
  for (i = 0; i < 4; i++) {
    version_int[i] = 0;
    if (items && (i < num_items)) {
      ptr_item = items[i];
      index_buf = 0;
      while (ptr_item && ptr_item[0] && (index_buf < (int)sizeof(buf) - 1)) {
        if (ptr_item[0] == '-')
          break;
        if (isdigit((unsigned char)ptr_item[0])) {
          buf[index_buf] = ptr_item[0];
          index_buf++;
        }
        ptr_item = utf8_next_char(ptr_item);
      }
      buf[index_buf] = '\0';
      if (buf[0]) {
        error = NULL;
        number = strtol(buf, &error, 10);
        if (error && !error[0]) {
          if (number < 0)
            number = 0;
          else if (number > 0xFF)
            number = 0xFF;
          version_int[i] = number;
        }
      }
    }
  }
  if (items)
    string_free_split(items);
  return (version_int[0] << 24) | (version_int[1] << 16) | (version_int[2] << 8) | version_int[3];
}
```