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

```asm
<condExpr>:
  endbr64
  push   %r13
  mov    %edx,%r8d
  mov    %rdi,%r13
  push   %r12
  mov    %edx,%r12d
  mov    $0x4,%edx
  push   %rbp
  mov    %rsi,%rbp
  mov    %rbp,%rcx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%rsi
  call   <sisRead@plt>
  test   %rax,%rax
  je     L131
L214:
  mov    $0x1,%eax
L230:
  mov    0x8(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L57
  add    $0x10,%rsp
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax,%rax,1)
L131:
  mov    0x4(%rsp),%edi
  call   <sis32toh@plt>
  mov    %eax,0x4(%rsp)
  cmp    $0xe,%eax
  ja     L166
  lea    D123(%rip),%rdx
  mov    %eax,%eax
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  nopl   0x0(%rax)
  lea    D2(%rip),%rdi
L164:
  call   <printf@plt>
  mov    %r12d,%edx
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <condExpr>
  test   %eax,%eax
  jne    L214
  lea    D66(%rip),%rdi
  call   <printf@plt>
  xor    %eax,%eax
  jmp    L230
  nopl   0x0(%rax)
  lea    D73(%rip),%rdi
  jmp    L164
  nopl   0x0(%rax)
  lea    D54(%rip),%rdi
  jmp    L164
  nopl   0x0(%rax)
  mov    %r12d,%edx
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <condString@plt>
  test   %eax,%eax
  setne  %al
  movzbl %al,%eax
  jmp    L230
  nopl   0x0(%rax,%rax,1)
  mov    %r12d,%edx
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <condAttribute@plt>
  test   %eax,%eax
  setne  %al
  movzbl %al,%eax
  jmp    L230
  nopl   0x0(%rax,%rax,1)
  mov    %r12d,%edx
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <condNumber@plt>
  test   %eax,%eax
  setne  %al
  movzbl %al,%eax
  jmp    L230
  nopl   0x0(%rax,%rax,1)
  mov    %r13,%rdi
  mov    %r12d,%edx
  mov    %rbp,%rsi
  call   <condExpr>
  lea    D29(%rip),%rdi
  test   %eax,%eax
  jne    L214
  nopl   (%rax)
L212:
  call   <printf@plt>
  mov    %r12d,%edx
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <condExpr>
  test   %eax,%eax
  setne  %al
  movzbl %al,%eax
  jmp    L230
  mov    %r12d,%edx
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <condExpr>
  test   %eax,%eax
  jne    L214
  lea    D76(%rip),%rdi
  jmp    L212
  nop
  mov    %r13,%rdi
  mov    %r12d,%edx
  mov    %rbp,%rsi
  call   <condExpr>
  lea    D34(%rip),%rdi
  test   %eax,%eax
  jne    L214
  jmp    L212
  nop
  mov    %r13,%rdi
  mov    %r12d,%edx
  mov    %rbp,%rsi
  call   <condExpr>
  lea    D60(%rip),%rdi
  test   %eax,%eax
  jne    L214
  jmp    L212
  nop
  mov    %r13,%rdi
  mov    %r12d,%edx
  mov    %rbp,%rsi
  call   <condExpr>
  lea    D118(%rip),%rdi
  test   %eax,%eax
  jne    L214
  jmp    L212
  nopw   0x0(%rax,%rax,1)
  mov    %r13,%rdi
  mov    %r12d,%edx
  mov    %rbp,%rsi
  call   <condExpr>
  lea    D37(%rip),%rdi
  test   %eax,%eax
  jne    L214
  jmp    L212
  nopw   0x0(%rax,%rax,1)
  mov    %r13,%rdi
  mov    %r12d,%edx
  mov    %rbp,%rsi
  call   <condExpr>
  lea    D18(%rip),%rdi
  test   %eax,%eax
  jne    L214
  jmp    L212
  nopw   0x0(%rax,%rax,1)
  mov    %r13,%rdi
  mov    %r12d,%edx
  mov    %rbp,%rsi
  call   <condExpr>
  lea    D105(%rip),%rdi
  test   %eax,%eax
  jne    L214
  jmp    L212
L166:
  mov    %eax,%ecx
  lea    D98(%rip),%rdx
  mov    %r12d,%esi
  mov    %rbp,%rdi
  call   <snprintf@plt>
  jmp    L214
L57:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D2
data_type: string
name: read_data
arguments: data_label: D66
data_type: string
name: read_data
arguments: data_label: D73
data_type: string
name: read_data
arguments: data_label: D54
data_type: string
name: read_data
arguments: data_label: D29
data_type: string
name: read_data
arguments: data_label: D76
data_type: string
name: read_data
arguments: data_label: D34
data_type: string
name: read_data
arguments: data_label: D60
data_type: string
name: read_data
arguments: data_label: D118
data_type: string
name: read_data
arguments: data_label: D37
data_type: string
name: read_data
arguments: data_label: D18
data_type: string
name: read_data
arguments: data_label: D105
data_type: string
name: read_data
arguments: data_label: D98
data_type: string

tool: D2: EXISTS(

tool: D66: )

tool: D73: DEVCAP(

tool: D54: NOT(

tool: D29:  == 

tool: D76:  != 

tool: D34:  > 

tool: D60:  < 

tool: D118:  >= 

tool: D37:  <= 

tool: D18:  AND 

tool: D105:  OR 

tool: D98: Unknown conditional type %04x

assistant: ```c
int condExpr(FILE *fp, char *err, int errlen) {
  unsigned int condtype;
  if (sisRead(fp, &condtype, 4, err, errlen))
    return 1;
  condtype = sis32toh(condtype);
  switch (condtype) {
  case 0x00:
    if (condExpr(fp, err, errlen))
      return 1;
    printf(" == ");
    if (condExpr(fp, err, errlen))
      return 1;
    break;
  case 0x01:
    if (condExpr(fp, err, errlen))
      return 1;
    printf(" != ");
    if (condExpr(fp, err, errlen))
      return 1;
    break;
  case 0x02:
    if (condExpr(fp, err, errlen))
      return 1;
    printf(" > ");
    if (condExpr(fp, err, errlen))
      return 1;
    break;
  case 0x03:
    if (condExpr(fp, err, errlen))
      return 1;
    printf(" < ");
    if (condExpr(fp, err, errlen))
      return 1;
    break;
  case 0x04:
    if (condExpr(fp, err, errlen))
      return 1;
    printf(" >= ");
    if (condExpr(fp, err, errlen))
      return 1;
    break;
  case 0x05:
    if (condExpr(fp, err, errlen))
      return 1;
    printf(" <= ");
    if (condExpr(fp, err, errlen))
      return 1;
    break;
  case 0x06:
    if (condExpr(fp, err, errlen))
      return 1;
    printf(" AND ");
    if (condExpr(fp, err, errlen))
      return 1;
    break;
  case 0x07:
    if (condExpr(fp, err, errlen))
      return 1;
    printf(" OR ");
    if (condExpr(fp, err, errlen))
      return 1;
    break;
  case 0x08:
  case 0x09:
    printf("EXISTS(");
    if (condExpr(fp, err, errlen))
      return 1;
    printf(")");
    break;
  case 0x0a:
    printf("DEVCAP(");
    if (condExpr(fp, err, errlen))
      return 1;
    printf(")");
    break;
  case 0x0b:
    printf("NOT(");
    if (condExpr(fp, err, errlen))
      return 1;
    printf(")");
    break;
  case 0x0c:
    if (condString(fp, err, errlen))
      return 1;
    break;
  case 0x0d:
    if (condAttribute(fp, err, errlen))
      return 1;
    break;
  case 0x0e:
    if (condNumber(fp, err, errlen))
      return 1;
    break;
  default:
    snprintf(err, errlen, "Unknown conditional type %04x", condtype);
    return 1;
    break;
  }
  return 0;
}
```