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

```asm
<main>:
  endbr64
  push   %r15
  lea    D135(%rip),%r15
  push   %r14
  lea    D5(%rip),%r14
  push   %r13
  lea    D97(%rip),%r13
  push   %r12
  lea    D18(%rip),%r12
  push   %rbp
  lea    D69(%rip),%rbp
  push   %rbx
  lea    D116(%rip),%rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rax
  mov    %rax,0x8(%rsp)
  cs nopw 0x0(%rax,%rax,1)
L17:
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D158(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D149(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D74(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D172(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  cmpl   $0x5,0x10(%rsp)
  ja     L54
  mov    0x10(%rsp),%eax
  movslq (%rbx,%rax,4),%rax
  add    %rbx,%rax
  notrack jmp *%rax
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L11
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
  xor    %eax,%eax
  call   <Display@plt>
  jmp    L17
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <isEmpty@plt>
  test   %eax,%eax
  jne    L34
  call   <Top@plt>
  lea    D52(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L17
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <isEmpty@plt>
  test   %eax,%eax
  jne    L28
  call   <Pop@plt>
  lea    D124(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L17
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <isFull@plt>
  test   %eax,%eax
  jne    L71
  lea    D141(%rip),%rdi
  call   <printf@plt>
  lea    0x14(%rsp),%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  mov    0x14(%rsp),%edi
  call   <Push@plt>
  mov    0x14(%rsp),%esi
  lea    D75(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L17
L54:
  lea    D17(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L17
L71:
  lea    D24(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L17
L28:
  lea    D14(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L17
L34:
  lea    D175(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L17
L11:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D135
type: string
name: disassemble_data
arguments: data_label: D5
type: string
name: disassemble_data
arguments: data_label: D97
type: string
name: disassemble_data
arguments: data_label: D18
type: string
name: disassemble_data
arguments: data_label: D69
type: string
name: disassemble_data
arguments: data_label: D158
type: string
name: disassemble_data
arguments: data_label: D149
type: string
name: disassemble_data
arguments: data_label: D74
type: string
name: disassemble_data
arguments: data_label: D172
type: string
name: disassemble_data
arguments: data_label: D52
type: string
name: disassemble_data
arguments: data_label: D124
type: string
name: disassemble_data
arguments: data_label: D141
type: string
name: disassemble_data
arguments: data_label: D75
type: string
name: disassemble_data
arguments: data_label: D17
type: string
name: disassemble_data
arguments: data_label: D24
type: string
name: disassemble_data
arguments: data_label: D14
type: string
name: disassemble_data
arguments: data_label: D175
type: string

tool: D135: 

Stack Operations

tool: D5: 
1. Push

tool: D97: 
2. Pop

tool: D18: %d

tool: D69: 
----------------

tool: D158: 
3. Top

tool: D149: 
4. Display

tool: D74: 
5. Exit

tool: D172: 
Enter your choice: 

tool: D52: 
Top Element: %d

tool: D124: Popped Element: %d 

tool: D141: 
Enter element to be pushed: 

tool: D75: 
Pushed Element: %d

tool: D17: 
Invalid Choice

tool: D24: 
Stack Overflow..

tool: D14: 
Stack Underflow..

tool: D175: 
Stack is Empty

assistant: ```c
void main(void) {
  int choice, element, temp, flag = 1;
  while (flag) {
    printf("\n\nStack Operations");
    printf("\n----------------");
    printf("\n1. Push");
    printf("\n2. Pop");
    printf("\n3. Top");
    printf("\n4. Display");
    printf("\n5. Exit");
    printf("\n----------------");
    printf("\nEnter your choice: ");
    scanf("%d", &choice);
    switch (choice) {
    case 1: {
      if (!isFull()) {
        printf("\nEnter element to be pushed: ");
        scanf("%d", &element);
        Push(element);
        printf("\nPushed Element: %d", element);
      } else {
        printf("\nStack Overflow..");
      }
      break;
    }
    case 2: {
      if (!isEmpty()) {
        temp = Pop();
        printf("Popped Element: %d ", temp);
      } else {
        printf("\nStack Underflow..");
      }
      break;
    }
    case 3: {
      if (!isEmpty()) {
        temp = Top();
        printf("\nTop Element: %d", temp);
      } else {
        printf("\nStack is Empty");
      }
      break;
    }
    case 4: {
      Display();
      break;
    }
    case 5: {
      flag = 0;
      break;
    }
    default: {
      printf("\nInvalid Choice");
    }
    }
  }
}
```