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

```asm
<eval_if>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  cmp    $0x1,%edi
  je     L187
  cmp    $0x2,%edi
  je     L124
  cmp    $0x3,%edi
  je     L169
L75:
  xor    %eax,%eax
L17:
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   (%rax)
L187:
  mov    (%rsi),%rdi
  call   <is_number@plt>
  test   %rax,%rax
  jne    L99
  mov    (%rbx),%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  cmpb   $0x0,(%rax)
  setne  %al
  movzbl %al,%eax
  ret
  cs nopw 0x0(%rax,%rax,1)
L169:
  mov    (%rsi),%rdi
  call   <is_number@plt>
  test   %rax,%rax
  je     L221
  mov    0x10(%rbx),%rdi
  call   <is_number@plt>
  test   %rax,%rax
  jne    L110
L221:
  mov    0x8(%rbx),%rdi
  lea    D79(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L109
  mov    0x10(%rbx),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  sete   %al
  movzbl %al,%eax
  jmp    L17
  nopl   0x0(%rax,%rax,1)
L99:
  mov    (%rbx),%rdi
  xor    %edx,%edx
  xor    %esi,%esi
  call   <strtol@plt>
  test   %eax,%eax
  setne  %al
  movzbl %al,%eax
  jmp    L17
  nopl   0x0(%rax)
L124:
  mov    (%rbx),%rdi
  lea    D41(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L75
  mov    (%rbx),%rdi
  call   <is_number@plt>
  test   %rax,%rax
  jne    L185
  mov    0x8(%rbx),%rax
  cmpb   $0x0,(%rax)
  sete   %al
  movzbl %al,%eax
  jmp    L17
  nopl   0x0(%rax,%rax,1)
L109:
  mov    0x8(%rbx),%rdi
  lea    D81(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L75
  mov    0x10(%rbx),%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  setne  %al
  movzbl %al,%eax
  jmp    L17
  nopl   0x0(%rax,%rax,1)
L110:
  mov    (%rbx),%rdi
  xor    %edx,%edx
  xor    %esi,%esi
  call   <strtol@plt>
  mov    0x10(%rbx),%rdi
  xor    %esi,%esi
  xor    %edx,%edx
  mov    %eax,%r12d
  call   <strtol@plt>
  mov    0x8(%rbx),%rdi
  lea    D79(%rip),%rsi
  mov    %eax,%ebp
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L9
  xor    %eax,%eax
  cmp    %ebp,%r12d
  sete   %al
  jmp    L17
  nopl   0x0(%rax,%rax,1)
L185:
  mov    (%rbx),%rdi
  xor    %edx,%edx
  xor    %esi,%esi
  call   <strtol@plt>
  test   %eax,%eax
  sete   %al
  movzbl %al,%eax
  jmp    L17
L9:
  mov    0x8(%rbx),%rdi
  lea    D81(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L101
  xor    %eax,%eax
  cmp    %ebp,%r12d
  setne  %al
  jmp    L17
L101:
  mov    0x8(%rbx),%rdi
  lea    D29(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L164
L225:
  xor    %eax,%eax
  cmp    %ebp,%r12d
  setl   %al
  jmp    L17
L164:
  mov    0x8(%rbx),%rdi
  lea    D70(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L14
L92:
  xor    %eax,%eax
  cmp    %ebp,%r12d
  setg   %al
  jmp    L17
L14:
  mov    0x8(%rbx),%rdi
  lea    D72(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L225
  mov    0x8(%rbx),%rdi
  lea    D53(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L75
  jmp    L92
```

tool_calls: name: extract_symbolic_data
arguments: tag: D79
data_type: string
name: extract_symbolic_data
arguments: tag: D41
data_type: string
name: extract_symbolic_data
arguments: tag: D81
data_type: string
name: extract_symbolic_data
arguments: tag: D29
data_type: string
name: extract_symbolic_data
arguments: tag: D70
data_type: string
name: extract_symbolic_data
arguments: tag: D72
data_type: string
name: extract_symbolic_data
arguments: tag: D53
data_type: string

tool: D79: ==

tool: D41: !

tool: D81: !=

tool: D29: <

tool: D70: >

tool: D72: <=

tool: D53: >=

assistant: ```c
int eval_if(int argc, char *argv[]) {
  int r = 0;
  if (argc == 1) {
    if (is_number(argv[0]))
      r = (strtol(argv[0], 0, 0)) ? 1 : 0;
    else
      r = (*argv[0]) ? 1 : 0;
  } else if (argc == 2) {
    if (strcmp(argv[0], "!") == 0) {
      if (is_number(argv[0]))
        r = (strtol(argv[0], 0, 0)) ? 0 : 1;
      else
        r = (*argv[1]) ? 0 : 1;
    }
  } else if (argc == 3) {
    if (is_number(argv[0]) && is_number(argv[2])) {
      int x, y;
      x = strtol(argv[0], 0, 0);
      y = strtol(argv[2], 0, 0);
      if (strcmp(argv[1], "==") == 0)
        r = (x == y);
      else if (strcmp(argv[1], "!=") == 0)
        r = (x != y);
      else if (strcmp(argv[1], "<") == 0)
        r = (x < y);
      else if (strcmp(argv[1], ">") == 0)
        r = (x > y);
      else if (strcmp(argv[1], "<=") == 0)
        r = (x < y);
      else if (strcmp(argv[1], ">=") == 0)
        r = (x > y);
    } else {
      if (strcmp(argv[1], "==") == 0)
        r = (strcmp(argv[0], argv[2]) == 0) ? 1 : 0;
      else if (strcmp(argv[1], "!=") == 0)
        r = (strcmp(argv[0], argv[2]) != 0) ? 1 : 0;
    }
  }
  return r;
}
```