user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    D57(%rip),%rdi
  call   <printf@plt>
  lea    0xc(%rsp),%rcx
  lea    0x8(%rsp),%rdx
  lea    0x4(%rsp),%rsi
  lea    0x14(%rsp),%r9
  lea    0x10(%rsp),%r8
  lea    D59(%rip),%rdi
  call   <scanf@plt>
  mov    0x4(%rsp),%eax
  mov    0x8(%rsp),%esi
  cmp    %esi,%eax
  jle    L287
  cmp    0xc(%rsp),%eax
  jle    L287
  cmp    0x10(%rsp),%eax
  jle    L287
  cmp    0x14(%rsp),%eax
  jg     L47
L287:
  mov    0xc(%rsp),%eax
  cmp    %eax,%esi
  jle    L191
  cmp    0x10(%rsp),%esi
  jle    L191
  cmp    0x14(%rsp),%esi
  jg     L267
L191:
  mov    0x10(%rsp),%esi
  cmp    %esi,%eax
  jle    L159
  cmp    0x14(%rsp),%eax
  jg     L60
L159:
  mov    0x14(%rsp),%eax
  cmp    %eax,%esi
  jle    L240
  lea    D19(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L237:
  mov    0x4(%rsp),%eax
  mov    0x8(%rsp),%esi
  cmp    %esi,%eax
  jge    L133
  cmp    0xc(%rsp),%eax
  jge    L133
  cmp    0x10(%rsp),%eax
  jge    L133
  cmp    0x14(%rsp),%eax
  jl     L259
L133:
  mov    0xc(%rsp),%eax
  cmp    %eax,%esi
  jge    L43
  cmp    0x10(%rsp),%esi
  jge    L43
  cmp    0x14(%rsp),%esi
  jl     L129
L43:
  mov    0x10(%rsp),%esi
  cmp    %esi,%eax
  jge    L184
  cmp    0x14(%rsp),%eax
  jl     L215
L184:
  mov    0x14(%rsp),%eax
  cmp    %eax,%esi
  jge    L37
  lea    D23(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L168:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L269
  mov    $0x0,%eax
  add    $0x28,%rsp
  ret
L47:
  mov    %eax,%esi
  lea    D19(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L237
L267:
  lea    D19(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L237
L60:
  mov    %eax,%esi
  lea    D19(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L237
L240:
  mov    %eax,%esi
  lea    D19(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L237
L259:
  mov    %eax,%esi
  lea    D23(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L168
L129:
  lea    D23(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L168
L215:
  mov    %eax,%esi
  lea    D23(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L168
L37:
  mov    %eax,%esi
  lea    D23(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L168
L269:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D57
datatype: string
name: disassemble_data
arguments: label: D59
datatype: string
name: disassemble_data
arguments: label: D19
datatype: string
name: disassemble_data
arguments: label: D23
datatype: string

tool: D57: entre 5 inteiros: 

tool: D59: %i%i%i%i%i

tool: D19: 
Maior: %i

tool: D23: 
Menor: %i

assistant: ```c
int main() {
  int a, b, c, d, e;
  printf("entre 5 inteiros: ");
  scanf("%i%i%i%i%i", &a, &b, &c, &d, &e);
  if (a > b && a > c && a > d && a > e) {
    printf("\nMaior: %i", a);
  } else if (b > c && b > d && b > e) {
    printf("\nMaior: %i", b);
  } else if (c > d && c > e) {
    printf("\nMaior: %i", c);
  } else if (d > e) {
    printf("\nMaior: %i", d);
  } else {
    printf("\nMaior: %i", e);
  }
  if (a < b && a < c && a < d && a < e) {
    printf("\nMenor: %i", a);
  } else if (b < c && b < d && b < e) {
    printf("\nMenor: %i", b);
  } else if (c < d && c < e) {
    printf("\nMenor: %i", c);
  } else if (d < e) {
    printf("\nMenor: %i", d);
  } else {
    printf("\nMenor: %i", e);
  }
}
```