user: What is the c source code of the assembly code below?

```asm
<main>:
  endbr64
  push   %r15
  mov    $0xa,%ecx
  lea    D63(%rip),%rsi
  lea    D25(%rip),%r15
  push   %r14
  mov    $0x1,%r14d
  push   %r13
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  mov    $0x15,%ebp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0xf8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xe8(%rsp)
  xor    %eax,%eax
  lea    0x30(%rsp),%rdi
  movl   $0x0,0x2c(%rsp)
  rep stos %rax,%es:(%rdi)
  mov    $0xa,%ecx
  movl   $0x0,(%rdi)
  lea    0x90(%rsp),%rdi
  rep stos %rax,%es:(%rdi)
  movl   $0x0,(%rdi)
  lea    D45(%rip),%rdi
  call   <fopen@plt>
  movl   $0x0,0x10(%rsp)
  movl   $0x0,0x8(%rsp)
  mov    %rax,%r13
  movl   $0x0,0xc(%rsp)
  jmp    L183
L136:
  cmp    %ebp,%r14d
  je     L143
  mov    0x8(%rsp),%ecx
  test   %ecx,%ecx
  je     L77
  add    0x8(%rsp),%r14d
L255:
  addl   $0x1,0xc(%rsp)
L70:
  add    $0x5,%r12d
  mov    %ebx,%r8d
  mov    %r14d,%ecx
  mov    %ebp,%edx
  mov    %r12d,%esi
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <printf@plt>
L183:
  mov    %r13,%rdi
  call   <feof@plt>
  test   %eax,%eax
  je     L27
  cmp    %ebx,%r14d
  jle    L27
  cmp    %ebp,%r14d
  jl     L58
L27:
  mov    %r13,%rdi
  call   <feof@plt>
  movl   $0x0,0x2c(%rsp)
  test   %eax,%eax
  je     L232
L48:
  movslq %r14d,%r10
  cmpl   $0x1,0x30(%rsp,%r10,4)
  je     L85
L259:
  cmp    %ebx,%r14d
  jne    L136
  xor    %ebx,%ebx
  cmp    %ebp,%r14d
  je     L143
L77:
  cmp    %ebx,%r14d
  jl     L197
L156:
  cmp    %ebp,%r14d
  jg     L153
  movl   $0x0,0x8(%rsp)
  jmp    L70
  nopl   0x0(%rax)
L143:
  mov    $0x15,%ebp
  cmp    %ebx,%r14d
  jge    L156
L197:
  cmp    %ebp,%r14d
  jg     L153
  movl   $0x1,0x8(%rsp)
  add    $0x1,%r14d
  jmp    L255
  nopl   0x0(%rax,%rax,1)
L153:
  movl   $0xffffffff,0x8(%rsp)
  sub    $0x1,%r14d
  jmp    L255
  nopl   0x0(%rax)
L232:
  lea    D44(%rip),%rsi
  lea    0x2c(%rsp),%rdx
  mov    %r13,%rdi
  call   <fscanf@plt>
  mov    0x2c(%rsp),%esi
  cmp    %r14d,%esi
  jle    L218
  cmp    %esi,%ebx
  cmovl  %esi,%ebx
  test   %esi,%esi
  jle    L48
L196:
  movslq %esi,%rax
  mov    0x30(%rsp,%rax,4),%edx
  test   %edx,%edx
  jne    L48
  movl   $0x1,0x30(%rsp,%rax,4)
  mov    %r12d,%edx
  lea    D41(%rip),%rdi
  mov    %r12d,0x90(%rsp,%rax,4)
  xor    %eax,%eax
  call   <printf@plt>
  movslq %r14d,%r10
  cmpl   $0x1,0x30(%rsp,%r10,4)
  jne    L259
  nopl   (%rax)
L85:
  mov    0x90(%rsp,%r10,4),%ecx
  mov    %r12d,%r8d
  xor    %eax,%eax
  mov    %r12d,%edx
  mov    %r14d,%esi
  lea    D29(%rip),%rdi
  mov    %r10,0x18(%rsp)
  sub    %ecx,%r8d
  mov    %r8d,0x14(%rsp)
  call   <printf@plt>
  mov    0x10(%rsp),%eax
  mov    0x14(%rsp),%r8d
  mov    0x18(%rsp),%r10
  cmp    %r8d,%eax
  movl   $0x0,0x90(%rsp,%r10,4)
  cmovge %eax,%r8d
  movl   $0x0,0x30(%rsp,%r10,4)
  mov    %r8d,0x10(%rsp)
  jmp    L259
  nopl   0x0(%rax,%rax,1)
L218:
  test   %esi,%esi
  jle    L48
  cmp    %r14d,%esi
  jge    L196
  cmp    %esi,%ebp
  cmovg  %esi,%ebp
  jmp    L196
  nopl   0x0(%rax,%rax,1)
L58:
  mov    %r13,%rdi
  call   <fclose@plt>
  mov    0x10(%rsp),%edx
  mov    0xc(%rsp),%esi
  xor    %eax,%eax
  lea    D2(%rip),%rdi
  call   <printf@plt>
  mov    0xe8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L59
  add    $0xf8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L59:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D63
type_guessed: string
name: disassemble_data
arguments: label: D25
type_guessed: string
name: disassemble_data
arguments: label: D45
type_guessed: string
name: disassemble_data
arguments: label: D44
type_guessed: string
name: disassemble_data
arguments: label: D41
type_guessed: string
name: disassemble_data
arguments: label: D29
type_guessed: string
name: disassemble_data
arguments: label: D2
type_guessed: string

tool: D63: r

tool: D25: ---Time = %03d, Low = %02d, Current = %02d, High = %02d


tool: D45: prob08.in

tool: D44: %d

tool: D41: Request logged on floor %d at %d


tool: D29: Serviced Floor %d at %d, was called at %d, Time to service is %d seconds.


tool: D2: %d
%d


assistant: ```c
int main(int argc, char *argv[]) {
  int curr_floor = 1;
  int high_dest = 0;
  int low_dest = 20 + 1;
  int time = 0;
  int floors = 0;
  int direction = 0;
  int request = 0;
  int Requests[20 + 1] = {0};
  int ServiceTimes[20 + 1] = {0};
  int MaxTime = 0;
  int MaxFloor = 0;
  FILE *fp = NULL;
  fp = fopen("prob08.in", "r");
  while (!feof(fp) || (high_dest >= curr_floor) || (low_dest <= curr_floor)) {
    if (!feof(fp)) {
      request = 0;
      fscanf(fp, "%d", &request);
      if ((request > curr_floor) && (request > high_dest))
        high_dest = request;
      if ((request > 0) && (request < curr_floor) && (request < low_dest))
        low_dest = request;
      if ((request > 0) && (Requests[request] == 0)) {
        Requests[request] = 1;
        ServiceTimes[request] = time;
        printf("Request logged on floor %d at %d\n", request, time);
      }
    } else
      request = 0;
    if (Requests[curr_floor] == 1) {
      printf("Serviced Floor %d at %d, was called at %d, Time to service is %d seconds.\n", curr_floor, time, ServiceTimes[curr_floor], (time - ServiceTimes[curr_floor]));
      if (MaxTime < (time - ServiceTimes[curr_floor])) {
        MaxTime = (time - ServiceTimes[curr_floor]);
        MaxFloor = curr_floor;
      }
      ServiceTimes[curr_floor] = 0;
      Requests[curr_floor] = 0;
    }
    if (curr_floor == high_dest) {
      high_dest = 0;
      direction = 0;
    }
    if (curr_floor == low_dest) {
      low_dest = 20 + 1;
      direction = 0;
    }
    if (direction == 0) {
      if (high_dest > curr_floor)
        direction = 1;
      if (low_dest < curr_floor)
        direction = -1;
    }
    curr_floor += direction;
    if (direction != 0)
      floors += 1;
    time += 5;
    printf("---Time = %03d, Low = %02d, Current = %02d, High = %02d\n", time, low_dest, curr_floor, high_dest);
  }
  fclose(fp);
  printf("%d\n%d\n", floors, MaxTime);
  return 0;
}
```