user: 这段汇编代码用C语言表示是什么样的?

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xd8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xc8(%rsp)
  xor    %eax,%eax
  movl   $0x0,0x18(%rsp)
  mov    $0x0,%ebp
  movl   $0x0,(%rsp)
  jmp    L286
L303:
  lea    D355(%rip),%r12
  lea    D247(%rip),%r13
  lea    D336(%rip),%r14
  lea    D33(%rip),%r15
L357:
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D28(%rip),%rdi
  call   <puts@plt>
  lea    0x18(%rsp),%rsi
  lea    D222(%rip),%rdi
  call   <scanf@plt>
  cmpl   $0x5,0x18(%rsp)
  ja     L450
  mov    0x18(%rsp),%eax
  lea    D342(%rip),%rdx
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  mov    (%rsp),%esi
  test   %esi,%esi
  jle    L28
  lea    0x20(%rsp),%rdi
  call   <display@plt>
  jmp    L357
L28:
  lea    D243(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  jmp    L357
  lea    D180(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    (%rsp),%eax
  lea    0x1(%rax),%ecx
  mov    %ecx,0x4(%rsp)
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    %rcx,0x8(%rsp)
  lea    0x20(%rsp,%rcx,1),%rbx
  mov    %rbx,%rsi
  lea    D222(%rip),%rdi
  call   <scanf@plt>
  mov    (%rsp),%eax
  test   %eax,%eax
  jle    L173
  mov    0x8(%rsp),%rcx
  lea    0x1c(%rsp,%rcx,1),%rcx
  lea    -0x1(%rax),%eax
  shl    $0x2,%rax
  sub    %rax,%rcx
  jmp    L304
L223:
  sub    $0x4,%rbx
  cmp    %rcx,%rbx
  je     L173
L304:
  mov    (%rbx),%eax
  mov    -0x4(%rbx),%edx
  cmp    %edx,%eax
  jge    L223
  mov    %edx,(%rbx)
  mov    %eax,-0x4(%rbx)
  jmp    L223
L173:
  lea    0x20(%rsp),%rdi
  mov    0x4(%rsp),%ebx
  mov    %ebx,%esi
  call   <display@plt>
  mov    %ebx,(%rsp)
  jmp    L357
  lea    D295(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x1c(%rsp),%rsi
  lea    D222(%rip),%rdi
  call   <scanf@plt>
  lea    0x20(%rsp),%rsi
  mov    (%rsp),%ebx
  mov    %ebx,%edx
  mov    0x1c(%rsp),%edi
  call   <binarysearch@plt>
  test   %eax,%eax
  js     L310
  lea    -0x1(%rbx),%esi
  cmp    %esi,%eax
  jg     L82
  movslq %eax,%rdi
  lea    0x20(%rsp,%rdi,4),%rdx
  mov    %esi,%ecx
  sub    %eax,%ecx
  lea    (%rcx,%rdi,1),%rax
  lea    0x24(%rsp,%rax,4),%rcx
L10:
  mov    0x4(%rdx),%eax
  mov    %eax,(%rdx)
  add    $0x4,%rdx
  cmp    %rcx,%rdx
  jne    L10
  mov    %esi,(%rsp)
  jmp    L96
L310:
  lea    D307(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L96:
  lea    0x20(%rsp),%rdi
  mov    (%rsp),%esi
  call   <display@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  jmp    L357
L82:
  mov    %esi,(%rsp)
  jmp    L96
  lea    D295(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x1c(%rsp),%rsi
  lea    D222(%rip),%rdi
  call   <scanf@plt>
  lea    0x20(%rsp),%rsi
  mov    (%rsp),%edx
  mov    0x1c(%rsp),%edi
  call   <binarysearch@plt>
  test   %eax,%eax
  js     L124
  lea    0x1(%rax),%esi
  lea    D132(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L189:
  mov    $0x0,%eax
  call   <getchar@plt>
  jmp    L357
L124:
  lea    D307(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L189
  lea    D137(%rip),%rdi
  call   <puts@plt>
  jmp    L286
L450:
  lea    D37(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  jmp    L357
  test   %ebp,%ebp
  jle    L338
  lea    0x70(%rsp),%rdi
  mov    %ebp,%esi
  call   <display@plt>
  jmp    L409
L338:
  lea    D243(%rip),%rdi
  call   <puts@plt>
  jmp    L409
  lea    D180(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x1(%rbp),%ebx
  lea    0x70(%rsp),%r12
  movslq %ebp,%rbp
  lea    (%r12,%rbp,4),%rsi
  lea    D222(%rip),%rdi
  call   <scanf@plt>
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <display@plt>
  mov    %ebx,%ebp
  jmp    L409
  lea    D295(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x1c(%rsp),%rsi
  lea    D222(%rip),%rdi
  call   <scanf@plt>
  test   %ebp,%ebp
  jle    L221
  mov    $0x0,%eax
  jmp    L12
L30:
  lea    D118(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    $0x0,%eax
L12:
  movslq %eax,%rdx
  mov    0x1c(%rsp),%ecx
  cmp    %ecx,0x70(%rsp,%rdx,4)
  je     L167
  mov    %ebp,%edx
  sub    %eax,%edx
  cmp    $0x1,%edx
  je     L30
  add    $0x1,%eax
  cmp    %eax,%ebp
  jg     L12
L167:
  test   %eax,%eax
  js     L409
L239:
  sub    $0x1,%ebp
  movslq %ebp,%rdx
  mov    0x70(%rsp,%rdx,4),%edx
  cltq
  mov    %edx,0x70(%rsp,%rax,4)
  lea    0x70(%rsp),%rdi
  mov    %ebp,%esi
  call   <display@plt>
  jmp    L409
L221:
  mov    $0x0,%eax
  jmp    L239
  lea    D295(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x1c(%rsp),%rsi
  lea    D222(%rip),%rdi
  call   <scanf@plt>
  test   %ebp,%ebp
  jle    L25
  mov    %ebp,%r13d
  mov    %ebp,%r12d
  mov    $0x0,%ebx
  jmp    L87
L65:
  add    $0x1,%esi
  lea    D162(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L25:
  mov    $0x0,%eax
  call   <getchar@plt>
  jmp    L409
L320:
  add    $0x1,%rbx
  cmp    %r12,%rbx
  je     L25
L87:
  mov    %ebx,%esi
  mov    0x1c(%rsp),%eax
  cmp    %eax,0x70(%rsp,%rbx,4)
  je     L65
  mov    %r13d,%eax
  sub    %ebx,%eax
  cmp    $0x1,%eax
  jne    L320
  lea    D118(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L320
  lea    D137(%rip),%rdi
  call   <puts@plt>
L286:
  lea    D395(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D297(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D378(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D204(%rip),%rdi
  call   <puts@plt>
  lea    0x18(%rsp),%rsi
  lea    D222(%rip),%rdi
  call   <scanf@plt>
  mov    0x18(%rsp),%eax
  cmp    $0x1,%eax
  je     L303
  cmp    $0x2,%eax
  jne    L251
  lea    D410(%rip),%r15
  lea    D247(%rip),%r14
L409:
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D336(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D33(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D28(%rip),%rdi
  call   <puts@plt>
  lea    0x18(%rsp),%rsi
  lea    D222(%rip),%rdi
  call   <scanf@plt>
  cmpl   $0x5,0x18(%rsp)
  ja     L126
  mov    0x18(%rsp),%eax
  lea    D328(%rip),%rdx
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
L126:
  lea    D37(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  jmp    L409
L251:
  mov    0xc8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L377
  mov    $0x0,%eax
  add    $0xd8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L377:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D355
datatype: string
name: unpack_data
arguments: data_label: D247
datatype: string
name: unpack_data
arguments: data_label: D336
datatype: string
name: unpack_data
arguments: data_label: D33
datatype: string
name: unpack_data
arguments: data_label: D28
datatype: string
name: unpack_data
arguments: data_label: D222
datatype: string
name: unpack_data
arguments: data_label: D243
datatype: string
name: unpack_data
arguments: data_label: D180
datatype: string
name: unpack_data
arguments: data_label: D295
datatype: string
name: unpack_data
arguments: data_label: D307
datatype: string
name: unpack_data
arguments: data_label: D132
datatype: string
name: unpack_data
arguments: data_label: D137
datatype: string
name: unpack_data
arguments: data_label: D37
datatype: string
name: unpack_data
arguments: data_label: D118
datatype: string
name: unpack_data
arguments: data_label: D162
datatype: string
name: unpack_data
arguments: data_label: D395
datatype: string
name: unpack_data
arguments: data_label: D297
datatype: string
name: unpack_data
arguments: data_label: D378
datatype: string
name: unpack_data
arguments: data_label: D204
datatype: string
name: unpack_data
arguments: data_label: D410
datatype: string

tool: D355: 


1. Display array 

tool: D247: 
2. Add value

tool: D336: 
3. Remove value

tool: D33: 
4. Search value

tool: D28: 
5. Return to main menu

tool: D222: %d

tool: D243: 
Array is empty

tool: D180: 

Enter the value 

tool: D295: 


Enter the value 

tool: D307: 
Element not Found

tool: D132: 
Element Found at position %d

tool: D137: 




tool: D37: 

Your entered invalid option

tool: D118: 
Element not found

tool: D162: 
Element found at position %d

tool: D395: Type of Array 

tool: D297: 
1. Ordered

tool: D378: 
2. Unordered

tool: D204: 

Press any other key to exit

tool: D410: 


1. Display array

assistant: ```c
int main() {
  int choice = 0, oi = 0, uoi = 0, i = 0, data, oarray[20], uarray[20];
start:
  printf("Type of Array ");
  printf("\n1. Ordered");
  printf("\n2. Unordered");
  printf("\n\nPress any other key to exit\n");
  scanf("%d", &choice);
  if (choice == 1) {
  sub1:
    printf("\n\n\n1. Display array ");
    printf("\n2. Add value");
    printf("\n3. Remove value");
    printf("\n4. Search value");
    printf("\n5. Return to main menu\n");
    scanf("%d", &choice);
    switch (choice) {
    case 1:
      if (oi > 0)
        display(oarray, oi);
      else {
        printf("\nArray is empty\n");
        getchar();
      }
      break;
    case 2:
      printf("\n\nEnter the value ");
      scanf("%d", &oarray[oi++]);
      for (i = oi - 1; i > 0; i--) {
        if (oarray[i] < oarray[i - 1])
          oarray[i - 1] = oarray[i] + oarray[i - 1] - (oarray[i] = oarray[i - 1]);
      }
      display(oarray, oi);
      break;
    case 3:
      printf("\n\n\nEnter the value ");
      scanf("%d", &data);
      i = binarysearch(data, oarray, oi);
      if (i >= 0) {
        oi--;
        while (i <= oi) {
          oarray[i] = oarray[i + 1];
          i++;
        }
      } else
        printf("\nElement not Found");
      display(oarray, oi);
      getchar();
      break;
    case 4:
      printf("\n\n\nEnter the value ");
      scanf("%d", &data);
      i = binarysearch(data, oarray, oi);
      if (i >= 0)
        printf("\nElement Found at position %d", i + 1);
      else
        printf("\nElement not Found");
      getchar();
      break;
    case 5:
      printf("\n\n\n\n");
      goto start;
    default:
      printf("\n\nYour entered invalid option");
      getchar();
      break;
    }
    goto sub1;
  } else if (choice == 2) {
  sub2:
    printf("\n\n\n1. Display array");
    printf("\n2. Add value");
    printf("\n3. Remove value");
    printf("\n4. Search value");
    printf("\n5. Return to main menu\n");
    scanf("%d", &choice);
    switch (choice) {
    case 1:
      if (uoi > 0)
        display(uarray, uoi);
      else
        printf("\nArray is empty\n");
      break;
    case 2:
      printf("\n\nEnter the value ");
      scanf("%d", &uarray[uoi++]);
      display(uarray, uoi);
      break;
    case 3:
      printf("\n\n\nEnter the value ");
      scanf("%d", &data);
      for (i = 0; i < uoi; i++) {
        if (data == uarray[i])
          break;
        else if (uoi - i == 1) {
          printf("\nElement not found");
          i = -1;
          getchar();
        }
      }
      if (i >= 0) {
        uarray[i] = uarray[--uoi];
        display(uarray, uoi);
      }
      break;
    case 4:
      printf("\n\n\nEnter the value ");
      scanf("%d", &data);
      for (i = 0; i < uoi; i++) {
        if (data == uarray[i]) {
          printf("\nElement found at position %d", i + 1);
          break;
        } else if (uoi - i == 1)
          printf("\nElement not found");
      }
      getchar();
      break;
    case 5:
      printf("\n\n\n\n");
      goto start;
    default:
      printf("\n\nYour entered invalid option");
      getchar();
      break;
    }
    goto sub2;
  }
  return 0;
}
```