user: Demonstrate the C code that generates the assembly output below:

```asm
<ver_cmp>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,0x18(%rsp)
  mov    %rsi,0x10(%rsp)
  movzbl (%rdi),%ebx
  jmp    L381
  nopl   0x0(%rax)
L195:
  movsbl %bl,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L360
  movzbl 0x1(%r13),%ebx
  add    $0x1,%r13
L381:
  test   %bl,%bl
  jne    L195
L360:
  mov    0x10(%rsp),%r12
  movsbl (%r12),%edi
  mov    %r12,%rbp
  test   %dil,%dil
  jne    L29
  jmp    L20
  cs nopw 0x0(%rax,%rax,1)
L261:
  movsbl 0x1(%r12),%edi
  add    $0x1,%r12
  test   %dil,%dil
  je     L402
L29:
  call   <isdigit@plt>
  test   %rax,%rax
  je     L261
L402:
  mov    0x10(%rsp),%rbp
  xchg   %ax,%ax
L20:
  mov    0x18(%rsp),%r15
  cmp    %r13,%r15
  je     L130
  lea    0x1(%r15),%rax
  mov    %rax,0x18(%rsp)
  movsbl (%r15),%r14d
  mov    %r14d,%eax
  cmp    %rbp,%r12
  je     L351
  lea    0x1(%rbp),%rcx
  mov    %rcx,0x10(%rsp)
  movsbl 0x0(%rbp),%ebx
  or     %bl,%al
  je     L387
  test   %r14d,%r14d
  je     L412
  mov    %r14d,%edi
  mov    %rcx,0x8(%rsp)
  call   <isalpha@plt>
  mov    0x8(%rsp),%rbp
  test   %eax,%eax
  je     L265
L59:
  test   %ebx,%ebx
  je     L66
  mov    %ebx,%edi
  call   <isalpha@plt>
  test   %eax,%eax
  je     L225
L56:
  cmp    %r14d,%ebx
  jne    L96
  cmp    %r13,%r15
  jne    L20
  cmp    %rbp,%r12
  je     L387
  add    $0x1,%rbp
  mov    %rbp,0x10(%rsp)
  movsbl -0x1(%rbp),%ebx
  test   %ebx,%ebx
  je     L387
  mov    %ebx,%edi
  call   <isalpha@plt>
  mov    %eax,%r8d
  lea    0x100(%rbx),%eax
  test   %r8d,%r8d
  cmove  %eax,%ebx
  xor    %r14d,%r14d
L96:
  sub    %ebx,%r14d
L66:
  add    $0x28,%rsp
  mov    %r14d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L130:
  cmp    %rbp,%r12
  je     L387
  lea    0x1(%rbp),%rax
  mov    %rax,0x10(%rsp)
  movsbl 0x0(%rbp),%ebx
  test   %ebx,%ebx
  je     L387
  mov    %rax,%rbp
  jmp    L207
  nopl   0x0(%rax,%rax,1)
L351:
  test   %r14d,%r14d
  je     L387
  mov    %r14d,%edi
  call   <isalpha@plt>
  mov    %eax,%ebx
  test   %eax,%eax
  jne    L66
L265:
  add    $0x100,%r14d
  jmp    L59
  nop
L412:
  mov    %rcx,%rbp
  test   %ebx,%ebx
  je     L20
L207:
  mov    %ebx,%edi
  call   <isalpha@plt>
  mov    %eax,%r14d
  test   %eax,%eax
  jne    L300
L225:
  add    $0x100,%ebx
  jmp    L56
  nopl   0x0(%rax,%rax,1)
L387:
  mov    %r13,0x18(%rsp)
  mov    %r12,0x10(%rsp)
  movsbl 0x0(%r13),%edi
  call   <isdigit@plt>
  mov    %rax,%r14
  test   %rax,%rax
  jne    L295
  movsbl (%r12),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L201
L287:
  mov    0x18(%rsp),%r13
  mov    0x10(%rsp),%rax
  lea    D10(%rip),%rdi
  movsbl 0x0(%r13),%esi
  movzbl (%rax),%r12d
  mov    %esi,%ebx
  call   <strchr@plt>
  movsbl %r12b,%esi
  lea    D10(%rip),%rdi
  mov    %rax,%rbp
  call   <strchr@plt>
  test   %rbp,%rbp
  je     L240
  test   %rax,%rax
  je     L186
  test   %rbp,%rbp
  je     L240
L285:
  test   %bl,%bl
  jne    L40
  neg    %r12b
  sbb    %r14d,%r14d
  jmp    L66
  nopl   0x0(%rax)
L240:
  test   %rax,%rax
  je     L285
L27:
  mov    $0x1,%r14d
  jmp    L66
L295:
  mov    0x18(%rsp),%rdi
  lea    0x18(%rsp),%rsi
  mov    $0xa,%edx
  call   <strtol@plt>
  movsbl (%r12),%edi
  mov    %rax,%r14
  call   <isdigit@plt>
  test   %rax,%rax
  je     L428
L201:
  mov    0x10(%rsp),%rdi
  lea    0x10(%rsp),%rsi
  mov    $0xa,%edx
  call   <strtol@plt>
L428:
  cmp    %r14,%rax
  je     L287
  sub    %eax,%r14d
  jmp    L66
  nopl   0x0(%rax,%rax,1)
L40:
  test   %r12b,%r12b
  jne    L381
  jmp    L27
L186:
  mov    $0xffffffff,%r14d
  jmp    L66
L300:
  xor    %r14d,%r14d
  jmp    L96
```

tool_calls: name: unpack_data
arguments: data_tag: D10
type: string

tool: D10: .-

assistant: ```c
int ver_cmp(const char *val, const char *ref) {
  int vc, rc;
  long vl, rl;
  const char *vp, *rp;
  const char *vsep, *rsep;
  for (;;) {
    vp = val;
    while (*vp && !isdigit(*vp))
      vp++;
    rp = ref;
    while (*rp && !isdigit(*rp))
      rp++;
    for (;;) {
      vc = val == vp ? 0 : *val++;
      rc = ref == rp ? 0 : *ref++;
      if (!rc && !vc)
        break;
      if (vc && !isalpha(vc))
        vc += 256;
      if (rc && !isalpha(rc))
        rc += 256;
      if (vc != rc)
        return vc - rc;
    }
    val = vp;
    ref = rp;
    vl = 0;
    if (isdigit(*vp))
      vl = strtol(val, (char **)&val, 10);
    rl = 0;
    if (isdigit(*rp))
      rl = strtol(ref, (char **)&ref, 10);
    if (vl != rl)
      return vl - rl;
    vc = *val;
    rc = *ref;
    vsep = strchr(".-", vc);
    rsep = strchr(".-", rc);
    if (vsep && !rsep)
      return -1;
    if (!vsep && rsep)
      return +1;
    if (!*val && !*ref)
      return 0;
    if (!*val)
      return -1;
    if (!*ref)
      return +1;
  }
}
```