user: 请将以下的汇编代码转换成C语言代码:

```asm
<util_version_number>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xa0,%rsp
  mov    %rdi,-0x98(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x8c(%rbp),%rdx
  mov    -0x98(%rbp),%rax
  mov    %rdx,%r8
  mov    $0x4,%ecx
  mov    $0x0,%edx
  lea    D0(%rip),%rsi
  mov    %rax,%rdi
  call   <string_split@plt>
  mov    %rax,-0x68(%rbp)
  movl   $0x0,-0x88(%rbp)
  jmp    L121
L172:
  mov    -0x88(%rbp),%eax
  cltq
  movl   $0x0,-0x60(%rbp,%rax,4)
  cmpq   $0x0,-0x68(%rbp)
  je     L48
  mov    -0x8c(%rbp),%eax
  cmp    %eax,-0x88(%rbp)
  jge    L48
  mov    -0x88(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,-0x78(%rbp)
  movl   $0x0,-0x84(%rbp)
  jmp    L126
L132:
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  je     L120
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L122
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%edx
  mov    -0x84(%rbp),%eax
  cltq
  mov    %dl,-0x50(%rbp,%rax,1)
  addl   $0x1,-0x84(%rbp)
L122:
  mov    -0x78(%rbp),%rax
  mov    %rax,%rdi
  call   <utf8_next_char@plt>
  mov    %rax,-0x78(%rbp)
L126:
  cmpq   $0x0,-0x78(%rbp)
  je     L127
  mov    -0x78(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L127
  cmpl   $0x3e,-0x84(%rbp)
  jle    L132
  jmp    L127
L120:
  nop
L127:
  mov    -0x84(%rbp),%eax
  cltq
  movb   $0x0,-0x50(%rbp,%rax,1)
  movzbl -0x50(%rbp),%eax
  test   %al,%al
  je     L48
  movq   $0x0,-0x80(%rbp)
  lea    -0x80(%rbp),%rcx
  lea    -0x50(%rbp),%rax
  mov    $0xa,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strtol@plt>
  mov    %rax,-0x70(%rbp)
  mov    -0x80(%rbp),%rax
  test   %rax,%rax
  je     L48
  mov    -0x80(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L48
  cmpq   $0x0,-0x70(%rbp)
  jns    L105
  movq   $0x0,-0x70(%rbp)
  jmp    L134
L105:
  cmpq   $0xff,-0x70(%rbp)
  jle    L134
  movq   $0xff,-0x70(%rbp)
L134:
  mov    -0x70(%rbp),%rax
  mov    %eax,%edx
  mov    -0x88(%rbp),%eax
  cltq
  mov    %edx,-0x60(%rbp,%rax,4)
L48:
  addl   $0x1,-0x88(%rbp)
L121:
  cmpl   $0x3,-0x88(%rbp)
  jle    L172
  cmpq   $0x0,-0x68(%rbp)
  je     L143
  mov    -0x68(%rbp),%rax
  mov    %rax,%rdi
  call   <string_free_split@plt>
L143:
  mov    -0x60(%rbp),%eax
  shl    $0x18,%eax
  mov    %eax,%edx
  mov    -0x5c(%rbp),%eax
  shl    $0x10,%eax
  or     %eax,%edx
  mov    -0x58(%rbp),%eax
  shl    $0x8,%eax
  or     %eax,%edx
  mov    -0x54(%rbp),%eax
  or     %edx,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L72
  call   <__stack_chk_fail@plt>
L72:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D0
type_guessed: string

tool: D0: .

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];
}
```