user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x1c0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x1ac(%rbp)
  movl   $0x0,-0x1a8(%rbp)
  lea    D74(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0x1b8(%rbp),%rax
  mov    %rax,%rsi
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  movl   $0x0,-0x1ac(%rbp)
  jmp    L5
L2:
  lea    -0x1a0(%rbp),%rdx
  mov    -0x1ac(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  addl   $0x1,-0x1ac(%rbp)
L5:
  mov    -0x1b8(%rbp),%eax
  cmp    %eax,-0x1ac(%rbp)
  jl     L2
  mov    -0x1b8(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x1b0(%rbp)
  movl   $0x0,-0x1ac(%rbp)
  lea    D54(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0x1b4(%rbp),%rax
  mov    %rax,%rsi
  lea    D7(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  jmp    L48
L43:
  mov    -0x1b0(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,%edx
  mov    -0x1ac(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x1a4(%rbp)
  mov    -0x1a4(%rbp),%eax
  cltq
  mov    -0x1a0(%rbp,%rax,4),%edx
  mov    -0x1b4(%rbp),%eax
  cmp    %eax,%edx
  jne    L21
  movl   $0x1,-0x1a8(%rbp)
  jmp    L79
L21:
  mov    -0x1a4(%rbp),%eax
  cltq
  mov    -0x1a0(%rbp,%rax,4),%edx
  mov    -0x1b4(%rbp),%eax
  cmp    %eax,%edx
  jge    L78
  mov    -0x1a4(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x1ac(%rbp)
  jmp    L48
L78:
  mov    -0x1a4(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x1b0(%rbp)
L48:
  mov    -0x1ac(%rbp),%eax
  cmp    -0x1b0(%rbp),%eax
  jle    L43
L79:
  cmpl   $0x1,-0x1a8(%rbp)
  jne    L87
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L15
L87:
  lea    D45(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L15:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L90
  call   <__stack_chk_fail@plt>
L90:
  leave
  ret
```

tool_calls: name: parse_data
arguments: tag: D74
data_type: string
name: parse_data
arguments: tag: D7
data_type: string
name: parse_data
arguments: tag: D11
data_type: string
name: parse_data
arguments: tag: D54
data_type: string
name: parse_data
arguments: tag: D29
data_type: string
name: parse_data
arguments: tag: D45
data_type: string

tool: D74: Enter number of elements

tool: D7: %d

tool: D11: Enter element 


tool: D54: Enter key to search 

tool: D29: Item found in array


tool: D45: Item not found..


assistant: ```c
int main() {
  int a[100], j, mid, n, i = 0, key, flag = 0;
  printf("Enter number of elements");
  scanf("%d", &n);
  printf("Enter element \n");
  for (i = 0; i < n; i++)
    scanf("%d", &a[i]);
  j = n - 1;
  i = 0;
  printf("Enter key to search ");
  scanf("%d", &key);
  while (i <= j) {
    mid = i + j / 2;
    if (a[mid] == key) {
      flag = 1;
      break;
    } else if (a[mid] < key)
      i = mid + 1;
    else
      j = mid - 1;
  }
  if (flag == 1)
    printf("Item found in array\n");
  else
    printf("Item not found..\n");
}
```