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

```asm
<get_cycle_number>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x218,%rsp
  mov    %rdi,%r12
  mov    %rsi,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x208(%rsp)
  xor    %eax,%eax
  lea    D28(%rip),%rsi
  lea    D3(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%r13
  mov    $0x0,%ebx
  lea    D16(%rip),%r14
  test   %rax,%rax
  jne    L96
  jmp    L16
L91:
  movslq %ebx,%rbx
  lea    (%rsp,%rbx,1),%rsi
  mov    %r15d,%edx
  mov    %rbp,%rdi
  call   <strncpy@plt>
  movslq %r15d,%r15
  movb   $0x0,0x0(%rbp,%r15,1)
  mov    $0x1,%ebx
L96:
  mov    %rsp,%rdi
  mov    %r13,%rdx
  mov    $0x200,%esi
  call   <fgets@plt>
  test   %ebx,%ebx
  jne    L44
  test   %rax,%rax
  je     L44
  mov    %rsp,%rdi
  mov    %r12,%rsi
  call   <strstr@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L71
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %rsp,%rdx
  sub    %rdx,%rbx
  add    %eax,%ebx
  lea    0x1(%rbx),%eax
  cltq
  mov    $0x1,%r15d
  cmpb   $0x20,(%rsp,%rax,1)
  je     L91
  lea    0x2(%rbx),%eax
  cltq
  mov    $0x2,%r15d
  cmpb   $0x20,(%rsp,%rax,1)
  je     L91
  lea    0x3(%rbx),%eax
  cltq
  mov    $0x3,%r15d
  cmpb   $0x20,(%rsp,%rax,1)
  je     L91
  lea    0x4(%rbx),%eax
  cltq
  mov    $0x4,%r15d
  cmpb   $0x20,(%rsp,%rax,1)
  je     L91
  lea    0x5(%rbx),%eax
  cltq
  cmpb   $0x20,(%rsp,%rax,1)
  sete   %r15b
  movzbl %r15b,%r15d
  lea    0x1(,%r15,4),%r15d
  jmp    L91
L71:
  movb   $0x0,0x1(%rbp)
  mov    $0x1,%edx
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <strncpy@plt>
  mov    $0x0,%ebx
  jmp    L96
L44:
  mov    %r13,%rdi
  call   <fclose@plt>
L16:
  mov    0x208(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L20
  mov    %rbp,%rax
  add    $0x218,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L20:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D28
type_guessed: string
name: read_data
arguments: data_label: D3
type_guessed: string
name: read_data
arguments: data_label: D16
type_guessed: string

tool: D28: r

tool: D3: /var/www/active_log.txt

tool: D16: X

assistant: ```c
char *get_cycle_number(char *cycle_str, char *cycle_num) {
  FILE *pFile;
  int cycle_line_num = 1;
  int cycle_find_result = 0;
  char cycle_temp[512];
  char str[100];
  char space[] = " ";
  int line_length;
  int start_point = -1;
  int num_length;
  pFile = fopen("/var/www/active_log.txt", "r");
  if (pFile != NULL) {
    while ((fgets(cycle_temp, 512, pFile) != NULL) && (cycle_find_result == 0)) {
      if ((strstr(cycle_temp, cycle_str)) != NULL) {
        start_point = strstr(cycle_temp, cycle_str) - cycle_temp + strlen(cycle_str);
        num_length = 1;
        if (cycle_temp[start_point + 1] == space[0])
          num_length = 1;
        else if (cycle_temp[start_point + 2] == space[0])
          num_length = 2;
        else if (cycle_temp[start_point + 3] == space[0])
          num_length = 3;
        else if (cycle_temp[start_point + 4] == space[0])
          num_length = 4;
        else if (cycle_temp[start_point + 5] == space[0])
          num_length = 5;
        strncpy(cycle_num, &cycle_temp[start_point], num_length);
        cycle_num[num_length] = '\0';
        cycle_find_result++;
      } else {
        cycle_num[1] = '\0';
        strncpy(cycle_num, "X", 1);
      }
      cycle_line_num++;
    }
    fclose(pFile);
  }
  return cycle_num;
}
```