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

```asm
<main>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    D68(%rip),%rdi
  call   <printf@plt>
  lea    0x14(%rsp),%rcx
  lea    0x10(%rsp),%rdx
  lea    0xc(%rsp),%rsi
  lea    D76(%rip),%rdi
  call   <scanf@plt>
  mov    0xc(%rsp),%ebx
  mov    0x10(%rsp),%r12d
  mov    0x14(%rsp),%ebp
  lea    (%rbx,%r12,1),%esi
  add    %ebp,%esi
  lea    D98(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  imul   %r12d,%ebx
  mov    %ebx,%esi
  imul   %ebp,%esi
  lea    D75(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0xc(%rsp),%esi
  mov    0x10(%rsp),%eax
  cmp    %eax,%esi
  jge    L123
  cmp    0x14(%rsp),%esi
  jl     L9
L51:
  mov    0x14(%rsp),%edx
  cmp    %eax,%esi
  mov    %eax,%ecx
  cmovle %esi,%ecx
  cmp    %edx,%ecx
  jg     L128
L113:
  cmp    %eax,%esi
  jge    L104
  cmp    %eax,0x14(%rsp)
  jge    L104
  mov    %eax,%esi
  lea    D99(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L127
L9:
  lea    D26(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L78:
  mov    0xc(%rsp),%esi
  mov    0x10(%rsp),%eax
  cmp    %eax,%esi
  jle    L113
  cmp    0x14(%rsp),%esi
  jg     L66
L104:
  mov    0x14(%rsp),%edx
  cmp    %eax,%esi
  cmovl  %eax,%esi
  cmp    %esi,%edx
  jg     L102
L127:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L5
  mov    $0x0,%eax
  add    $0x20,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L123:
  jle    L51
  mov    0x14(%rsp),%edx
  cmp    %edx,%eax
  jl     L2
  cmp    %eax,%esi
  cmovle %esi,%eax
  cmp    %eax,%edx
  jl     L128
L66:
  lea    D99(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L127
L2:
  mov    %eax,%esi
  lea    D26(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L78
L128:
  mov    %edx,%esi
  lea    D26(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L78
L102:
  mov    %edx,%esi
  lea    D99(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L127
L5:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D68
data_type: string
name: extract_symbolic_data
arguments: data_tag: D76
data_type: string
name: extract_symbolic_data
arguments: data_tag: D98
data_type: string
name: extract_symbolic_data
arguments: data_tag: D75
data_type: string
name: extract_symbolic_data
arguments: data_tag: D99
data_type: string
name: extract_symbolic_data
arguments: data_tag: D26
data_type: string

tool: D68: Wprowadz trzy liczby calkowite: 

tool: D76: %d %d %d

tool: D98: Suma wynosi: %d


tool: D75: Iloczyn wynosi: %d


tool: D99: Najwieksza liczba to: %d


tool: D26: Najmniejsza liczba to: %d


assistant: ```c
int main() {
  int a, b, c, suma, iloczyn;
  char *msg1 = "Najwieksza liczba to: %d\n";
  char *msg2 = "Najmniejsza liczba to: %d\n";
  printf("Wprowadz trzy liczby calkowite: ");
  scanf("%d %d %d", &a, &b, &c);
  suma = a + b + c;
  iloczyn = a * b * c;
  printf("Suma wynosi: %d\n", suma);
  printf("Iloczyn wynosi: %d\n", iloczyn);
  if (a < b && a < c) {
    printf(msg2, a);
  } else if (b < a && b < c) {
    printf(msg2, b);
  } else if (c < b && c < a) {
    printf(msg2, c);
  }
  if (a > b && a > c) {
    printf(msg1, a);
  } else if (b > a && b > c) {
    printf(msg1, b);
  } else if (c > b && c > a) {
    printf(msg1, c);
  }
}
```