user: Converte this assembly snippet into its equivalent C code:

```asm
<compareVer>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  lea    D0(%rip),%rax
  mov    %rax,-0x18(%rbp)
  lea    D33(%rip),%rax
  mov    %rax,-0x10(%rbp)
  lea    D7(%rip),%rax
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x20(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L27
L48:
  mov    -0x20(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %edx,%eax
  mov    %eax,-0x20(%rbp)
  addq   $0x1,-0x28(%rbp)
L92:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L66
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L48
  jmp    L66
L1:
  mov    -0x1c(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %edx,%eax
  mov    %eax,-0x1c(%rbp)
  addq   $0x1,-0x30(%rbp)
L66:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L26
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L1
L26:
  mov    -0x20(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jle    L25
  mov    -0x1c(%rbp),%edx
  mov    -0x20(%rbp),%eax
  mov    %eax,%esi
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x18(%rbp),%rax
  jmp    L62
L25:
  mov    -0x20(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jge    L104
  mov    -0x1c(%rbp),%edx
  mov    -0x20(%rbp),%eax
  mov    %eax,%esi
  lea    D39(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x10(%rbp),%rax
  jmp    L62
L104:
  mov    -0x1c(%rbp),%edx
  mov    -0x20(%rbp),%eax
  mov    %eax,%esi
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  movl   $0x0,-0x20(%rbp)
  movl   $0x0,-0x1c(%rbp)
  addq   $0x1,-0x28(%rbp)
  addq   $0x1,-0x30(%rbp)
L27:
  mov    -0x28(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L17
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L92
L17:
  mov    -0x8(%rbp),%rax
L62:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D0
type_infered: string
name: extract_symbolic_data
arguments: label: D33
type_infered: string
name: extract_symbolic_data
arguments: label: D7
type_infered: string
name: extract_symbolic_data
arguments: label: D26
type_infered: string
name: extract_symbolic_data
arguments: label: D39
type_infered: string
name: extract_symbolic_data
arguments: label: D28
type_infered: string

tool: D0: >

tool: D33: <

tool: D7: ==

tool: D26: %d > %d


tool: D39: %d < %d


tool: D28: %d == %d


assistant: ```c
char *compareVer(char *v1, char *v2) {
  char *gr = ">";
  char *le = "<";
  char *eq = "==";
  int num1 = 0;
  int num2 = 0;
  while (*v1 && *v2) {
    while (*v1 && *v1 != '.') {
      num1 = num1 * 10 + (*v1 - '0');
      v1++;
    }
    while (*v2 && *v2 != '.') {
      num2 = num2 * 10 + (*v2 - '0');
      v2++;
    }
    if (num1 > num2) {
      printf("%d > %d\n", num1, num2);
      return gr;
    } else if (num1 < num2) {
      printf("%d < %d\n", num1, num2);
      return le;
    } else {
      printf("%d == %d\n", num1, num2);
      num1 = 0;
      num2 = 0;
      v1++;
      v2++;
    }
  }
  return eq;
}
```