user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<verif_contrainte>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rcx,%r12
  push   %rbp
  mov    %rdi,%rbp
  mov    $0x1e,%edi
  push   %rbx
  mov    %edx,%ebx
  sub    $0x28,%rsp
  mov    %rsi,0x18(%rsp)
  mov    $0x1,%esi
  call   <sdb_calloc@plt>
  mov    $0x1,%esi
  mov    $0x1e,%edi
  call   <sdb_calloc@plt>
  mov    $0x1,%esi
  mov    $0x3,%edi
  call   <sdb_calloc@plt>
  mov    %r12,%rdi
  call   <recupere1@plt>
  mov    %r12,%rdi
  mov    %rax,(%rsp)
  call   <recupere2@plt>
  mov    %r12,%rdi
  mov    %rax,0x10(%rsp)
  call   <recupere3@plt>
  test   %ebx,%ebx
  jle    L230
  mov    %rax,%r14
  movslq %ebx,%rax
  xor    %r15d,%r15d
  mov    $0xffffffffffffffff,%r12
  mov    %rax,0x8(%rsp)
  mov    $0xffffffff,%ebx
  nop
L179:
  mov    0x0(%rbp,%r15,8),%rdi
  mov    (%rsp),%rsi
  movslq %r15d,%r13
  call   <strcmp@plt>
  mov    0x0(%rbp,%r15,8),%rdi
  mov    %r14,%rsi
  test   %rax,%rax
  cmove  %r15d,%ebx
  call   <strcmp@plt>
  test   %rax,%rax
  cmove  %r13,%r12
  add    $0x1,%r15
  cmp    0x8(%rsp),%r15
  jne    L179
  cmp    $0xffffffff,%ebx
  je     L230
  cmp    $0xffffffff,%r12d
  je     L196
  mov    0x10(%rsp),%rdi
  lea    D18(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L93
L238:
  mov    0x10(%rsp),%rdi
  lea    D27(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L148
  mov    0x18(%rsp),%rcx
  movslq %r12d,%rax
  mov    (%rcx,%rax,8),%rsi
  movslq %ebx,%rax
  mov    (%rcx,%rax,8),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  js     L139
L148:
  mov    0x10(%rsp),%rdi
  lea    D69(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L132
  mov    0x18(%rsp),%rcx
  movslq %r12d,%rax
  mov    (%rcx,%rax,8),%rsi
  movslq %ebx,%rax
  mov    (%rcx,%rax,8),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jg     L139
L132:
  mov    0x10(%rsp),%rdi
  lea    D23(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L18
  mov    0x18(%rsp),%rdx
  movslq %r12d,%rax
  mov    (%rdx,%rax,8),%rsi
  movslq %ebx,%rax
  mov    (%rdx,%rax,8),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jle    L139
L18:
  mov    0x10(%rsp),%rdi
  lea    D53(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L144
L193:
  xor    %eax,%eax
L77:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L93:
  mov    0x18(%rsp),%rdx
  movslq %r12d,%rax
  mov    (%rdx,%rax,8),%rsi
  movslq %ebx,%rax
  mov    (%rdx,%rax,8),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L238
L139:
  add    $0x28,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L196:
  mov    %r14,%rdi
  call   <enleve@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  jne    L200
L230:
  add    $0x28,%rsp
  mov    $0xffffffff,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L200:
  mov    0x10(%rsp),%rdi
  lea    D18(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L94
  mov    0x18(%rsp),%rcx
  movslq %ebx,%rax
  mov    %rbp,%rsi
  mov    (%rcx,%rax,8),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L139
L94:
  mov    0x10(%rsp),%rdi
  lea    D27(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L32
  mov    0x18(%rsp),%rdx
  movslq %ebx,%rax
  mov    %rbp,%rsi
  mov    (%rdx,%rax,8),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  js     L139
L32:
  mov    0x10(%rsp),%rdi
  lea    D69(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L172
  mov    0x18(%rsp),%rcx
  movslq %ebx,%rax
  mov    %rbp,%rsi
  mov    (%rcx,%rax,8),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jg     L139
L172:
  mov    0x10(%rsp),%rdi
  lea    D23(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L60
  mov    0x18(%rsp),%rdx
  movslq %ebx,%rax
  mov    %rbp,%rsi
  mov    (%rdx,%rax,8),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jle    L139
L60:
  mov    0x10(%rsp),%rdi
  lea    D53(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L193
  mov    0x18(%rsp),%rax
  movslq %ebx,%rbx
  mov    %rbp,%rsi
  mov    (%rax,%rbx,8),%rdi
  call   <strcmp@plt>
  not    %rax
  shr    $0x3f,%rax
  jmp    L77
L144:
  mov    0x18(%rsp),%rax
  movslq %ebx,%rbx
  mov    (%rax,%r12,8),%rsi
  mov    (%rax,%rbx,8),%rdi
  call   <strcmp@plt>
  not    %rax
  shr    $0x3f,%rax
  jmp    L77
```

tool_calls: name: retrieve_data
arguments: data_tag: D18
type_guessed: string
name: retrieve_data
arguments: data_tag: D27
type_guessed: string
name: retrieve_data
arguments: data_tag: D69
type_guessed: string
name: retrieve_data
arguments: data_tag: D23
type_guessed: string
name: retrieve_data
arguments: data_tag: D53
type_guessed: string

tool: D18: =

tool: D27: <

tool: D69: >

tool: D23: <=

tool: D53: >=

assistant: ```c
int verif_contrainte(char **nom_champs, char **champs, int nbre, char *contr) {
  char *arg1;
  char *comp;
  char *arg2;
  int compare[2];
  int i;
  arg1 = (char *)sdb_calloc(30, sizeof(char));
  arg2 = (char *)sdb_calloc(30, sizeof(char));
  comp = (char *)sdb_calloc(3, sizeof(char));
  arg1 = recupere1(contr);
  comp = recupere2(contr);
  arg2 = recupere3(contr);
  compare[0] = compare[1] = -1;
  for (i = 0; i < nbre; i++) {
    if (strcmp(nom_champs[i], arg1) == 0) {
      compare[0] = i;
    }
    if (strcmp(nom_champs[i], arg2) == 0) {
      compare[1] = i;
    }
  }
  if (compare[0] == -1) {
    return (-1);
  }
  if (compare[1] == -1) {
    arg2 = enleve(arg2);
    if (!arg2) {
      return (-1);
    }
    if (strcmp(comp, "=") == 0 && strcmp(champs[compare[0]], arg2) == 0) {
      return 1;
    }
    if (strcmp(comp, "<") == 0 && strcmp(champs[compare[0]], arg2) < 0) {
      return 1;
    }
    if (strcmp(comp, ">") == 0 && strcmp(champs[compare[0]], arg2) > 0) {
      return 1;
    }
    if (strcmp(comp, "<=") == 0 && strcmp(champs[compare[0]], arg2) <= 0) {
      return 1;
    }
    if (strcmp(comp, ">=") == 0 && strcmp(champs[compare[0]], arg2) >= 0) {
      return 1;
    }
  } else {
    if (strcmp(comp, "=") == 0 && strcmp(champs[compare[0]], champs[compare[1]]) == 0) {
      return 1;
    }
    if (strcmp(comp, "<") == 0 && strcmp(champs[compare[0]], champs[compare[1]]) < 0) {
      return 1;
    }
    if (strcmp(comp, ">") == 0 && strcmp(champs[compare[0]], champs[compare[1]]) > 0) {
      return 1;
    }
    if (strcmp(comp, "<=") == 0 && strcmp(champs[compare[0]], champs[compare[1]]) <= 0) {
      return 1;
    }
    if (strcmp(comp, ">=") == 0 && strcmp(champs[compare[0]], champs[compare[1]]) >= 0) {
      return 1;
    }
  }
  return 0;
}
```