user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r13
  lea    D34(%rip),%rdi
  push   %r12
  push   %rbp
  lea    D43(%rip),%rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D69(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D70(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x14(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  mov    0xc(%rsp),%eax
  mov    0x10(%rsp),%ecx
  cmp    %ecx,%eax
  je     L91
  mov    0x14(%rsp),%edx
  jle    L137
  xor    %ebx,%ebx
  mov    $0x0,%r12d
  cmp    %edx,%eax
  mov    %edx,%ebp
  cmovle %eax,%ebx
  cmovg  %eax,%r12d
  cmp    %edx,%ecx
  jge    L107
  mov    %ecx,%r13d
  cmp    %edx,%eax
  jge    L0
  mov    %ebp,%r12d
  mov    %ecx,%r13d
  mov    %ebx,%ebp
  jmp    L19
L137:
  jge    L68
  cmp    %edx,%eax
  jge    L120
  mov    %eax,%r13d
  cmp    %edx,%ecx
  jle    L110
  mov    %ecx,%r12d
  mov    %eax,%r13d
L152:
  cmp    %edx,%ecx
  cmovge %edx,%ebx
  cmovl  %edx,%r12d
  mov    %ebx,%ebp
  jmp    L19
L107:
  mov    %ecx,%ebx
L0:
  cmp    %ecx,%eax
  cmovg  %ecx,%eax
  cmp    %eax,%edx
  cmovge %edx,%ebx
  cmovl  %edx,%r13d
  mov    %ebx,%ebp
L19:
  mov    %r13d,%esi
  lea    D61(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %ebp,%esi
  lea    D54(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  mov    %r12d,%esi
  lea    D39(%rip),%rdi
  call   <printf@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L89
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L91:
  cmp    0x14(%rsp),%eax
  je     L157
  mov    0x14(%rsp),%edx
L68:
  mov    %ecx,%ebx
  cmp    %edx,%eax
  jl     L152
  jmp    L0
L120:
  cmp    %edx,%ecx
  jg     L39
L110:
  mov    %ecx,%ebx
  jmp    L152
L39:
  mov    %ecx,%r12d
  mov    %eax,%ebx
  jmp    L0
L157:
  lea    D18(%rip),%rdi
  xor    %eax,%eax
  xor    %ebp,%ebp
  call   <printf@plt>
  jmp    L19
L89:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D34
type_guessed: string
name: unpack_data
arguments: tag: D43
type_guessed: string
name: unpack_data
arguments: tag: D69
type_guessed: string
name: unpack_data
arguments: tag: D70
type_guessed: string
name: unpack_data
arguments: tag: D61
type_guessed: string
name: unpack_data
arguments: tag: D54
type_guessed: string
name: unpack_data
arguments: tag: D39
type_guessed: string
name: unpack_data
arguments: tag: D18
type_guessed: string

tool: D34: NUM1: 

tool: D43: %i

tool: D69: NUM2: 

tool: D70: NUM3: 

tool: D61: 
Menor : %i


tool: D54: Meio  : %i


tool: D39: Maior : %i


tool: D18: Erro: Numeros Iguais

assistant: ```c
main() {
  int num1, num2, num3, menor, meio, maior;
  printf("NUM1: ");
  scanf("%i", &num1);
  printf("NUM2: ");
  scanf("%i", &num2);
  printf("NUM3: ");
  scanf("%i", &num3);
  if (!(num1 == num2 && num1 == num3)) {
    if (num1 > num2 && num1 > num3)
      maior = num1;
    else if (num1 < num2 && num1 < num3)
      menor = num1;
    else
      meio = num1;
    if (num2 > num1 && num2 > num3)
      maior = num2;
    else if (num2 < num1 && num2 < num3)
      menor = num2;
    else
      meio = num2;
    if (num3 > num1 && num3 > num2)
      maior = num3;
    else if (num3 < num1 && num3 < num2)
      menor = num3;
    else
      meio = num3;
  } else
    printf("Erro: Numeros Iguais");
  printf("\nMenor : %i\n", menor);
  printf("Meio  : %i\n", meio);
  printf("Maior : %i\n", maior);
}
```