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

```asm
<main>:
  endbr64
  push   %r15
  lea    D41(%rip),%r15
  push   %r14
  lea    D10(%rip),%r14
  push   %r13
  lea    D48(%rip),%r13
  push   %r12
  lea    D2(%rip),%r12
  push   %rbp
  push   %rbx
  lea    D54(%rip),%rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0x8(%rsp),%rbp
  jmp    L52
  nopl   0x0(%rax)
L78:
  test   %eax,%eax
  je     L13
  lea    D56(%rip),%rdi
  call   <printf@plt>
  mov    0x8(%rsp),%eax
L79:
  test   %eax,%eax
  je     L13
L52:
  movabs $0x200000001,%rax
  mov    %r15,%rdi
  mov    %rax,0x10(%rsp)
  movabs $0x400000003,%rax
  mov    %rax,0x18(%rsp)
  movabs $0x600000005,%rax
  mov    %rax,0x20(%rsp)
  movabs $0x800000007,%rax
  mov    %rax,0x28(%rsp)
  movabs $0xa00000009,%rax
  mov    %rax,0x30(%rsp)
  call   <printf@plt>
  mov    %r14,%rdi
  call   <printf@plt>
  mov    %r13,%rdi
  call   <printf@plt>
  mov    %r12,%rdi
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    0x8(%rsp),%eax
  cmp    $0x1,%eax
  je     L26
  cmp    $0x2,%eax
  jne    L78
  lea    D68(%rip),%rdi
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    0xc(%rsp),%edx
  lea    0x10(%rsp),%rdi
  mov    $0xa,%esi
  call   <BinSearch@plt>
  mov    0x8(%rsp),%eax
  jmp    L79
  nopl   (%rax)
L26:
  lea    D68(%rip),%rdi
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    0xc(%rsp),%edx
  lea    0x10(%rsp),%rdi
  mov    $0xa,%esi
  call   <LinSearch@plt>
  mov    0x8(%rsp),%eax
  jmp    L79
  nopl   (%rax)
L13:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L38
  add    $0x48,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L38:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D41
type_guessed: string
name: retrieve_data
arguments: data_tag: D10
type_guessed: string
name: retrieve_data
arguments: data_tag: D48
type_guessed: string
name: retrieve_data
arguments: data_tag: D2
type_guessed: string
name: retrieve_data
arguments: data_tag: D54
type_guessed: string
name: retrieve_data
arguments: data_tag: D56
type_guessed: string
name: retrieve_data
arguments: data_tag: D68
type_guessed: string

tool: D41: 1. Linear Search


tool: D10: 2. Binary Search


tool: D48: 0. Exit


tool: D2: Enter Input: 

tool: D54: %d

tool: D56: Invalid Input. Try Again.


tool: D68: Enter Number to Search: 

assistant: ```c
int main() {
  int n;
  do {
    int A[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
    int num;
    printf("1. Linear Search\n");
    printf("2. Binary Search\n");
    printf("0. Exit\n");
    printf("Enter Input: ");
    scanf("%d", &n);
    switch (n) {
    case 1:
      printf("Enter Number to Search: ");
      scanf("%d", &num);
      LinSearch(A, 10, num);
      break;
    case 2:
      printf("Enter Number to Search: ");
      scanf("%d", &num);
      BinSearch(A, 10, num);
      break;
    case 0:
      break;
    default:
      printf("Invalid Input. Try Again.\n");
    }
  } while (n != 0);
}
```