user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    D48(%rip),%r13
  lea    D39(%rip),%r12
  lea    D190(%rip),%rbp
  lea    D114(%rip),%rbx
  jmp    L10
L80:
  lea    D81(%rip),%rdi
  call   <puts@plt>
L20:
  cmpl   $0x0,0x8(%rsp)
  je     L89
L10:
  mov    %r13,%rdi
  call   <puts@plt>
  mov    %r12,%rdi
  call   <puts@plt>
  mov    %rbp,%rdi
  call   <puts@plt>
  mov    %rbx,%rdi
  call   <puts@plt>
  lea    D32(%rip),%rdi
  call   <puts@plt>
  lea    0x8(%rsp),%rsi
  lea    D112(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    0x8(%rsp),%eax
  test   %eax,%eax
  je     L80
  cmp    $0x1,%eax
  je     L120
  cmp    $0x2,%eax
  je     L40
  cmp    $0x3,%eax
  je     L36
  cmp    $0x4,%eax
  je     L47
  lea    D100(%rip),%rdi
  call   <puts@plt>
  jmp    L20
L120:
  lea    D196(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  lea    D178(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movss  0xc(%rsp),%xmm0
  call   <perimetros_tetragonou@plt>
  lea    D148(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L20
L40:
  lea    D88(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x14(%rsp),%rdx
  lea    0x10(%rsp),%rsi
  lea    D84(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movss  0x14(%rsp),%xmm1
  movss  0x10(%rsp),%xmm0
  call   <perimetros_parllhlogrammou@plt>
  lea    D156(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L20
L36:
  lea    D189(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rsi
  lea    D178(%rip),%r14
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D96(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x14(%rsp),%rsi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movss  0x14(%rsp),%xmm1
  movss  0x10(%rsp),%xmm0
  call   <perimetros_trigwnou@plt>
  lea    D66(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L20
L47:
  lea    D98(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  lea    D178(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movss  0xc(%rsp),%xmm0
  call   <perimetros_kykloy@plt>
  lea    D63(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  jmp    L20
L89:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L27
  mov    $0x0,%eax
  add    $0x20,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L27:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D48
datatype: string
name: unpack_data
arguments: data_label: D39
datatype: string
name: unpack_data
arguments: data_label: D190
datatype: string
name: unpack_data
arguments: data_label: D114
datatype: string
name: unpack_data
arguments: data_label: D81
datatype: string
name: unpack_data
arguments: data_label: D32
datatype: string
name: unpack_data
arguments: data_label: D112
datatype: string
name: unpack_data
arguments: data_label: D100
datatype: string
name: unpack_data
arguments: data_label: D196
datatype: string
name: unpack_data
arguments: data_label: D178
datatype: string
name: unpack_data
arguments: data_label: D148
datatype: string
name: unpack_data
arguments: data_label: D88
datatype: string
name: unpack_data
arguments: data_label: D84
datatype: string
name: unpack_data
arguments: data_label: D156
datatype: string
name: unpack_data
arguments: data_label: D189
datatype: string
name: unpack_data
arguments: data_label: D96
datatype: string
name: unpack_data
arguments: data_label: D66
datatype: string
name: unpack_data
arguments: data_label: D98
datatype: string
name: unpack_data
arguments: data_label: D63
datatype: string

tool: D48: 0. Ejodos

tool: D39: 1. Tetragono

tool: D190: 2. Parallhlogrammo

tool: D114: 3. Orthogonio trigono

tool: D81: To programma termatisthke

tool: D32: 4. Kyklos

tool: D112: %d

tool: D100: Lathos epilogh! 

tool: D196: Dwse pleura tetragonou:

tool: D178: %f

tool: D148: 
H perimetros tetragonou einai:%.2f


tool: D88: Dwse vash kai ypsos parallhlogrammou:

tool: D84: %f%f

tool: D156: 
H perimetros parallhlogrammou einai:%.2f


tool: D189: Dwse to mhkos ths mias kathetou:

tool: D96: Dwse to mhkos ths allhs kathetou:

tool: D66: 
H perimetros trigwnoy einai:%.2f


tool: D98: Dwse aktina kykloy:

tool: D63: H perimetros kykloy einai:%.2f


assistant: ```c
main() {
  int choice;
  float a, b, y;
  do {
    printf("0. Ejodos\n");
    printf("1. Tetragono\n");
    printf("2. Parallhlogrammo\n");
    printf("3. Orthogonio trigono\n");
    printf("4. Kyklos\n");
    scanf("%d", &choice);
    if (choice == 0)
      printf("To programma termatisthke\n");
    else if (choice == 1) {
      printf("Dwse pleura tetragonou:");
      scanf("%f", &a);
      printf("\nH perimetros tetragonou einai:%.2f\n", perimetros_tetragonou(a));
    } else if (choice == 2) {
      printf("Dwse vash kai ypsos parallhlogrammou:");
      scanf("%f%f", &b, &y);
      printf("\nH perimetros parallhlogrammou einai:%.2f\n", perimetros_parllhlogrammou(b, y));
    } else if (choice == 3) {
      printf("Dwse to mhkos ths mias kathetou:");
      scanf("%f", &b);
      printf("Dwse to mhkos ths allhs kathetou:");
      scanf("%f", &y);
      printf("\nH perimetros trigwnoy einai:%.2f\n", perimetros_trigwnou(b, y));
    } else if (choice == 4) {
      printf("Dwse aktina kykloy:");
      scanf("%f", &a);
      printf("H perimetros kykloy einai:%.2f\n", perimetros_kykloy(a));
    } else
      printf("Lathos epilogh! \n");
  } while (choice);
  return 0;
}
```