user: Converte this assembly snippet into its equivalent C code:

```asm
<readPropeller>:
  endbr64
  push   %r15
  pxor   %xmm0,%xmm0
  push   %r14
  push   %r13
  push   %r12
  mov    %rsi,%r12
  lea    D67(%rip),%rsi
  push   %rbp
  push   %rbx
  sub    $0x158,%rsp
  mov    %rdi,0x10(%rsp)
  lea    D7(%rip),%rdi
  mov    %rdx,0x18(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x148(%rsp)
  xor    %eax,%eax
  movaps %xmm0,0x80(%rsp)
  movq   $0x0,0x140(%rsp)
  movaps %xmm0,0x90(%rsp)
  movaps %xmm0,0xa0(%rsp)
  movaps %xmm0,0xb0(%rsp)
  movaps %xmm0,0xc0(%rsp)
  movaps %xmm0,0xd0(%rsp)
  movaps %xmm0,0xe0(%rsp)
  movaps %xmm0,0xf0(%rsp)
  movaps %xmm0,0x100(%rsp)
  movaps %xmm0,0x110(%rsp)
  movaps %xmm0,0x120(%rsp)
  movaps %xmm0,0x130(%rsp)
  call   <fopen@plt>
  test   %rax,%rax
  je     L60
  lea    0x2f(%rsp),%r15
  mov    %rax,%rdi
  mov    %rax,%rbp
  xor    %eax,%eax
  lea    D80(%rip),%r14
  mov    %r15,%rdx
  xor    %ebx,%ebx
  mov    %r14,%rsi
  lea    D9(%rip),%r13
  call   <fscanf@plt>
  mov    %r12,0x8(%rsp)
  jmp    L122
L59:
  cmp    $0x20,%al
  je     L64
  movslq %ebx,%rdx
  add    $0x1,%ebx
  mov    %al,0x80(%rsp,%rdx,1)
L10:
  mov    %r15,%rdx
  mov    %r14,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
L122:
  mov    %rbp,%rdi
  call   <feof@plt>
  test   %eax,%eax
  jne    L97
  movzbl 0x2f(%rsp),%eax
  lea    -0x9(%rax),%edx
  cmp    $0x1,%dl
  ja     L59
L64:
  test   %ebx,%ebx
  jne    L75
L31:
  xor    %ebx,%ebx
  jmp    L10
  cs nopw 0x0(%rax,%rax,1)
L75:
  lea    0x80(%rsp),%r12
  movslq %ebx,%rbx
  lea    D45(%rip),%rsi
  mov    %r12,%rdi
  movb   $0x0,0x80(%rsp,%rbx,1)
  call   <strcmp@plt>
  test   %rax,%rax
  je     L88
  lea    D96(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L106
  lea    D4(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L31
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %ebx,%ebx
  call   <fscanf@plt>
  mov    0x18(%rsp),%rdi
  mov    %rbp,%rsi
  call   <readMatrix3@plt>
  jmp    L10
  nopl   0x0(%rax)
L97:
  mov    %rbp,%rdi
  mov    0x8(%rsp),%r12
  call   <fclose@plt>
  movsd  0x30(%rsp),%xmm0
  movsd  %xmm0,(%r12)
  movsd  0x38(%rsp),%xmm0
  movsd  %xmm0,0x8(%r12)
  movsd  0x40(%rsp),%xmm0
  movsd  %xmm0,0x10(%r12)
  movsd  0x48(%rsp),%xmm0
  movsd  %xmm0,0x18(%r12)
  movsd  0x50(%rsp),%xmm0
  movsd  %xmm0,0x20(%r12)
  movsd  0x58(%rsp),%xmm0
  movsd  %xmm0,0x28(%r12)
  movsd  0x60(%rsp),%xmm0
  movsd  %xmm0,0x30(%r12)
  movsd  0x68(%rsp),%xmm0
  movsd  %xmm0,0x38(%r12)
  movsd  0x70(%rsp),%xmm0
  movsd  %xmm0,0x40(%r12)
  movsd  0x78(%rsp),%xmm0
  movsd  %xmm0,0x48(%r12)
L45:
  mov    0x148(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L114
  add    $0x158,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L88:
  mov    %r12,%rdx
  mov    %r13,%rsi
  lea    D0(%rip),%rbx
  mov    %rbp,%rdi
  call   <fscanf@plt>
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %rbx,%rsi
  lea    0x30(%rsp),%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %rbx,%rsi
  lea    0x38(%rsp),%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %rbx,%rsi
  lea    0x40(%rsp),%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %rbx,%rsi
  lea    0x48(%rsp),%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    0x10(%rsp),%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  lea    D71(%rip),%rsi
  call   <fscanf@plt>
  xor    %ebx,%ebx
  jmp    L10
  nopw   0x0(%rax,%rax,1)
L60:
  lea    D87(%rip),%rdi
  call   <printf@plt>
  jmp    L45
  nopl   0x0(%rax)
L106:
  mov    %r12,%rdx
  mov    %r13,%rsi
  lea    D0(%rip),%rbx
  mov    %rbp,%rdi
  call   <fscanf@plt>
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %rbx,%rsi
  lea    0x50(%rsp),%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %rbx,%rsi
  lea    0x58(%rsp),%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %rbx,%rsi
  lea    0x60(%rsp),%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %rbx,%rsi
  lea    0x68(%rsp),%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %rbx,%rsi
  lea    0x70(%rsp),%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %r12,%rdx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  mov    %rbx,%rsi
  lea    0x78(%rsp),%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fscanf@plt>
  xor    %ebx,%ebx
  jmp    L10
L114:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D67
datatype: string
name: unpack_data
arguments: data_tag: D7
datatype: string
name: unpack_data
arguments: data_tag: D80
datatype: string
name: unpack_data
arguments: data_tag: D9
datatype: string
name: unpack_data
arguments: data_tag: D45
datatype: string
name: unpack_data
arguments: data_tag: D96
datatype: string
name: unpack_data
arguments: data_tag: D4
datatype: string
name: unpack_data
arguments: data_tag: D0
datatype: string
name: unpack_data
arguments: data_tag: D71
datatype: string
name: unpack_data
arguments: data_tag: D87
datatype: string

tool: D67: r

tool: D7: propeller.txt

tool: D80: %c

tool: D9: %s

tool: D45: S.I.

tool: D96: CLARK

tool: D4: BA

tool: D0: %lg

tool: D71: %d

tool: D87: File could not be opened


assistant: ```c
void readPropeller(int *stationsNumberPtr, double dataPropeller[], double propeller[][60]) {
  double diameter;
  double spinnerDiameter;
  double bladeNumber;
  double inertia;
  double ClalphaPropeller;
  double Cl0Propeller;
  double a0Propeller;
  double Cdalpha2Propeller;
  double CdalphaPropeller;
  double Cd0Propeller;
  char c;
  char tokenPtr[200] = {0};
  int count = 0;
  int i;
  FILE *fPtr;
  if ((fPtr = fopen("propeller.txt", "r")) == NULL) {
    printf("File could not be opened\n");
  } else {
    fscanf(fPtr, "%c", &c);
    while (!feof(fPtr)) {
      if ((c != ' ') && (c != '\t') && (c != '\n')) {
        tokenPtr[count] = c;
        count++;
      } else if (count != 0) {
        tokenPtr[count] = '\0';
        count = 0;
        if (strcmp(tokenPtr, "S.I.") == 0) {
          fscanf(fPtr, "%s", tokenPtr);
          fscanf(fPtr, "%s", tokenPtr);
          fscanf(fPtr, "%lg", &diameter);
          fscanf(fPtr, "%s", tokenPtr);
          fscanf(fPtr, "%s", tokenPtr);
          fscanf(fPtr, "%lg", &spinnerDiameter);
          for (i = 0; i < 3; i++)
            fscanf(fPtr, "%s", tokenPtr);
          fscanf(fPtr, "%lg", &bladeNumber);
          for (i = 0; i < 3; i++)
            fscanf(fPtr, "%s", tokenPtr);
          fscanf(fPtr, "%lg", &inertia);
          for (i = 0; i < 2; i++)
            fscanf(fPtr, "%s", tokenPtr);
          fscanf(fPtr, "%d", stationsNumberPtr);
        } else if (strcmp(tokenPtr, "CLARK") == 0) {
          fscanf(fPtr, "%s", tokenPtr);
          fscanf(fPtr, "%s", tokenPtr);
          fscanf(fPtr, "%lg", &ClalphaPropeller);
          for (i = 0; i < 2; i++)
            fscanf(fPtr, "%s", tokenPtr);
          fscanf(fPtr, "%lg", &Cl0Propeller);
          fscanf(fPtr, "%s", tokenPtr);
          fscanf(fPtr, "%lg", &a0Propeller);
          for (i = 0; i < 2; i++)
            fscanf(fPtr, "%s", tokenPtr);
          fscanf(fPtr, "%lg", &Cdalpha2Propeller);
          for (i = 0; i < 2; i++)
            fscanf(fPtr, "%s", tokenPtr);
          fscanf(fPtr, "%lg", &CdalphaPropeller);
          for (i = 0; i < 2; i++)
            fscanf(fPtr, "%s", tokenPtr);
          fscanf(fPtr, "%lg", &Cd0Propeller);
        } else if (strcmp(tokenPtr, "BA") == 0) {
          fscanf(fPtr, "%s", tokenPtr);
          readMatrix3(propeller, fPtr);
        }
      }
      fscanf(fPtr, "%c", &c);
    }
    fclose(fPtr);
    dataPropeller[0] = diameter;
    dataPropeller[1] = spinnerDiameter;
    dataPropeller[2] = bladeNumber;
    dataPropeller[3] = inertia;
    dataPropeller[4] = ClalphaPropeller;
    dataPropeller[5] = Cl0Propeller;
    dataPropeller[6] = a0Propeller;
    dataPropeller[7] = Cdalpha2Propeller;
    dataPropeller[8] = CdalphaPropeller;
    dataPropeller[9] = Cd0Propeller;
  }
}
```