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

```asm
<MINIMUM_32b_AUTOTEST>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x18(%rbp)
  jmp    L16
L3:
  mov    $0x0,%eax
  call   <rand@plt>
  cltd
  shr    $0x18,%edx
  add    %edx,%eax
  movzbl %al,%eax
  sub    %edx,%eax
  mov    %eax,-0x14(%rbp)
  mov    $0x0,%eax
  call   <rand@plt>
  cltd
  shr    $0x18,%edx
  add    %edx,%eax
  movzbl %al,%eax
  sub    %edx,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%edx
  mov    -0x14(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <instr_min@plt>
  mov    %eax,-0xc(%rbp)
  mov    -0x14(%rbp),%edx
  mov    -0x10(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <instr_min@plt>
  mov    %eax,-0x8(%rbp)
  mov    -0x10(%rbp),%edx
  mov    -0x14(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <prog_min@plt>
  mov    %eax,-0x4(%rbp)
  mov    -0xc(%rbp),%eax
  cmp    -0x8(%rbp),%eax
  jne    L5
  mov    -0xc(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  je     L8
L5:
  lea    D35(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x18(%rbp),%eax
  mov    %eax,%esi
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0xc(%rbp),%ecx
  mov    -0x10(%rbp),%edx
  mov    -0x14(%rbp),%eax
  mov    %eax,%esi
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x8(%rbp),%ecx
  mov    -0x14(%rbp),%edx
  mov    -0x10(%rbp),%eax
  mov    %eax,%esi
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x4(%rbp),%ecx
  mov    -0x14(%rbp),%edx
  mov    -0x10(%rbp),%eax
  mov    %eax,%esi
  lea    D18(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L40
L8:
  addl   $0x1,-0x18(%rbp)
L16:
  cmpl   $0x9,-0x18(%rbp)
  jle    L3
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x1,%eax
L40:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_label: D27
type_guessed: string
name: read_data
arguments: data_label: D35
type_guessed: string
name: read_data
arguments: data_label: D14
type_guessed: string
name: read_data
arguments: data_label: D26
type_guessed: string
name: read_data
arguments: data_label: D18
type_guessed: string
name: read_data
arguments: data_label: D11
type_guessed: string

tool: D27: LAUNCHING THE (MINIMUM) RESOURCE TEST...

tool: D35: - TEST OF THE MINIMUM_32b RESOURCE => FAILED !

tool: D14:   + %d COMPUTATION BEFORE ERROR... !


tool: D26:   + INSTRUCTION RESULT (%d l %d) => %d


tool: D18:   + C CODE RESULT      (%d l %d) => %d


tool: D11: - TEST OF THE (MINIMUM) RESOURCE => OK

assistant: ```c
int MINIMUM_32b_AUTOTEST() {
  int i, j;
  printf("LAUNCHING THE (MINIMUM) RESOURCE TEST...\n");
  for (j = 0; j < 10; j++) {
    int op1 = rand() % 256;
    int op2 = rand() % 256;
    int res1 = instr_min(op1, op2);
    int res2 = instr_min(op2, op1);
    int res3 = prog_min(op1, op2);
    if ((res1 != res2) || (res1 != res3)) {
      printf("- TEST OF THE MINIMUM_32b RESOURCE => FAILED !\n");
      printf("  + %d COMPUTATION BEFORE ERROR... !\n", j);
      printf("  + INSTRUCTION RESULT (%d l %d) => %d\n", op1, op2, res1);
      printf("  + INSTRUCTION RESULT (%d l %d) => %d\n", op2, op1, res2);
      printf("  + C CODE RESULT      (%d l %d) => %d\n", op2, op1, res3);
      return 0;
    }
  }
  printf("- TEST OF THE (MINIMUM) RESOURCE => OK\n");
  return 1;
}
```