user: 下面的汇编指令对应的C源代码是什么:

```asm
<main>:
  endbr64
  push   %rbp
  lea    D32(%rip),%rsi
  lea    D55(%rip),%rdi
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <fopen@plt>
  test   %rax,%rax
  je     L72
  lea    -0x42(%rbp),%r14
  mov    %rax,%r12
  lea    -0x48(%rbp),%rcx
  mov    %rax,%rdi
  mov    %r14,%rdx
  lea    D46(%rip),%rsi
  call   <fscanf@plt>
  mov    %r12,%rdi
  call   <fclose@plt>
  mov    -0x48(%rbp),%eax
  cmp    $0x35,%eax
  jg     L233
  lea    -0x5(%rax),%edx
  and    $0x3,%dl
  jne    L233
  movslq %eax,%rcx
  mov    %rsp,%rdi
  lea    0xf(,%rcx,4),%rdx
  mov    %rdx,%rsi
  and    $0xfffffffffffff000,%rdx
  and    $0xfffffffffffffff0,%rsi
  sub    %rdx,%rdi
L77:
  cmp    %rdi,%rsp
  je     L218
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L77
L233:
  lea    D27(%rip),%rdi
  call   <printf@plt>
L24:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L109
  lea    -0x28(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L72:
  lea    D18(%rip),%rdi
  call   <printf@plt>
  jmp    L24
L218:
  and    $0xfff,%esi
  sub    %rsi,%rsp
  test   %rsi,%rsi
  je     L114
  orq    $0x0,-0x8(%rsp,%rsi,1)
L114:
  mov    %rsp,%r12
  test   %eax,%eax
  jle    L46
  shl    $0x2,%rcx
  xor    %eax,%eax
  mov    %r12,%rdi
  mov    %ecx,%ecx
  rep stos %al,%es:(%rdi)
L46:
  lea    -0x4c(%rbp),%r13
  lea    D48(%rip),%rbx
  lea    D5(%rip),%r15
  nopl   0x0(%rax,%rax,1)
L153:
  xor    %eax,%eax
  call   <showMenu@plt>
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    -0x4c(%rbp),%eax
  cmp    $0x1,%eax
  je     L281
L186:
  cmp    $0x2,%eax
  je     L105
L39:
  cmp    $0x3,%eax
  je     L238
L266:
  cmp    $0x4,%eax
  je     L263
L209:
  cmp    $0x5,%eax
  je     L131
L38:
  cmp    $0x6,%eax
  je     L16
L160:
  cmp    $0x7,%eax
  je     L25
L23:
  cmp    $0x8,%eax
  je     L121
L127:
  test   %eax,%eax
  je     L24
  cmp    $0x8,%eax
  jbe    L153
  mov    %r15,%rdi
  call   <printf@plt>
  mov    -0x4c(%rbp),%eax
  test   %eax,%eax
  jne    L153
  jmp    L24
  cs nopw 0x0(%rax,%rax,1)
L121:
  mov    -0x48(%rbp),%edx
  mov    %r12,%rsi
  mov    %r14,%rdi
  call   <saveDiagram@plt>
  mov    -0x4c(%rbp),%eax
  jmp    L127
  nopl   0x0(%rax,%rax,1)
L25:
  mov    -0x48(%rbp),%edx
  mov    %r12,%rsi
  mov    %r14,%rdi
  call   <showDiagram@plt>
  mov    -0x4c(%rbp),%eax
  jmp    L23
  nopl   0x0(%rax,%rax,1)
L16:
  mov    -0x48(%rbp),%esi
  mov    %r12,%rdi
  call   <showBookedSeats@plt>
  mov    -0x4c(%rbp),%eax
  jmp    L160
L131:
  mov    -0x48(%rbp),%esi
  mov    %r12,%rdi
  call   <seatIsBooked@plt>
  mov    -0x4c(%rbp),%eax
  jmp    L38
  nopl   0x0(%rax,%rax,1)
L263:
  mov    -0x48(%rbp),%esi
  mov    %r12,%rdi
  call   <cancelBooking@plt>
  mov    -0x4c(%rbp),%eax
  jmp    L209
  nopl   0x0(%rax,%rax,1)
L238:
  mov    -0x48(%rbp),%esi
  mov    %r12,%rdi
  call   <bookFirstSeatAtWindow@plt>
  mov    -0x4c(%rbp),%eax
  jmp    L266
  nopl   0x0(%rax,%rax,1)
L105:
  mov    -0x48(%rbp),%esi
  mov    %r12,%rdi
  call   <bookSeat@plt>
  mov    -0x4c(%rbp),%eax
  jmp    L39
  nopl   0x0(%rax,%rax,1)
L281:
  mov    -0x48(%rbp),%esi
  mov    %r12,%rdi
  call   <showEmptySeats@plt>
  mov    -0x4c(%rbp),%eax
  jmp    L186
L109:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D32
type_guessed: string
name: unpack_data
arguments: label: D55
type_guessed: string
name: unpack_data
arguments: label: D46
type_guessed: string
name: unpack_data
arguments: label: D27
type_guessed: string
name: unpack_data
arguments: label: D18
type_guessed: string
name: unpack_data
arguments: label: D48
type_guessed: string
name: unpack_data
arguments: label: D5
type_guessed: string

tool: D32: r

tool: D55: bus.txt

tool: D46: %s %d

tool: D27: 
Invalid number of seats


tool: D18: 
File bus.txt not found


tool: D48: %d

tool: D5: Wrong input. Please try again


assistant: ```c
int main() {
  int action;
  int numberOfSeats;
  char busNumber[10];
  FILE *fp;
  fp = fopen("bus.txt", "r");
  if (fp) {
    fscanf(fp, "%s %d", busNumber, &numberOfSeats);
    fclose(fp);
  } else {
    printf("\nFile bus.txt not found\n");
    return 0;
  }
  if (numberOfSeats > 53 || ((numberOfSeats - 5) % 4) != 0) {
    printf("\nInvalid number of seats\n");
    return 0;
  }
  int seats[numberOfSeats];
  int n = 0;
  while (n < numberOfSeats) {
    seats[n] = 0;
    n++;
  }
  do {
    showMenu();
    scanf("%d", &action);
    if (action == 1) {
      showEmptySeats(seats, numberOfSeats);
    }
    if (action == 2) {
      bookSeat(seats, numberOfSeats);
    }
    if (action == 3) {
      bookFirstSeatAtWindow(seats, numberOfSeats);
    }
    if (action == 4) {
      cancelBooking(seats, numberOfSeats);
    }
    if (action == 5) {
      seatIsBooked(seats, numberOfSeats);
    }
    if (action == 6) {
      showBookedSeats(seats, numberOfSeats);
    }
    if (action == 7) {
      showDiagram(busNumber, seats, numberOfSeats);
    }
    if (action == 8) {
      saveDiagram(busNumber, seats, numberOfSeats);
    }
    if (action == 0) {
      return 0;
    }
    if (action < 0 || action > 8) {
      printf("Wrong input. Please try again\n");
    }
  } while (action != 0);
  return 0;
}
```