user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```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
L34:
  movl   $0x0,(%r14,%rbx,4)
  test   %r13,%r13
  je     L5
  cmp    %ebx,0x4(%rsp)
  jg     L9
L5:
  add    $0x1,%rbx
  cmp    $0x4,%rbx
  jne    L34
  test   %r13,%r13
  je     L97
  mov    %r13,%rdi
  call   <string_free_split@plt>
L97:
  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    L60
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L9:
  mov    0x0(%r13,%rbx,8),%rbp
  xor    %r12d,%r12d
  test   %rbp,%rbp
  jne    L80
  jmp    L74
  nopw   0x0(%rax,%rax,1)
L2:
  cmp    $0x3f,%r12d
  je     L74
  cmp    $0x2d,%dil
  je     L74
  call   <isdigit@plt>
  test   %rax,%rax
  je     L17
  movzbl 0x0(%rbp),%edx
  movslq %r12d,%rax
  add    $0x1,%r12d
  mov    %dl,0x20(%rsp,%rax,1)
L17:
  mov    %rbp,%rdi
  call   <utf8_next_char@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L74
L80:
  movzbl 0x0(%rbp),%edi
  test   %dil,%dil
  jne    L2
L74:
  movslq %r12d,%r12
  movb   $0x0,0x20(%rsp,%r12,1)
  cmpb   $0x0,0x20(%rsp)
  je     L5
  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     L5
  cmpb   $0x0,(%rdx)
  jne    L5
  mov    $0xff,%edx
  cmp    %rdx,%rax
  cmovg  %rdx,%rax
  xor    %edx,%edx
  test   %rax,%rax
  cmovs  %rdx,%rax
  mov    %eax,(%r14,%rbx,4)
  jmp    L5
L60:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D6
type_infered: 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];
}
```