user: 请从给定的汇编指令推导出C源代码：

```asm
<crank>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  movq   $0x1,-0x18(%rbp)
  jmp    L101
L78:
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x18(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  ucomiss %xmm1,%xmm0
  jp     L167
  ucomiss %xmm1,%xmm0
  je     L17
L167:
  mov    -0x18(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x18(%rbp),%rax
  test   %rax,%rax
  js     L82
  pxor   %xmm0,%xmm0
  cvtsi2ss %rax,%xmm0
  jmp    L149
L82:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2ss %rdx,%xmm0
  addss  %xmm0,%xmm0
L149:
  movss  %xmm0,(%rcx)
  addq   $0x1,-0x18(%rbp)
  jmp    L101
L17:
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  mov    %rax,-0x8(%rbp)
  jmp    L63
L159:
  addq   $0x1,-0x8(%rbp)
L63:
  mov    -0x8(%rbp),%rax
  cmp    -0x28(%rbp),%rax
  ja     L171
  mov    -0x8(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x18(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  ucomiss %xmm1,%xmm0
  jp     L171
  ucomiss %xmm1,%xmm0
  je     L159
L171:
  mov    -0x18(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  sub    $0x1,%rax
  test   %rax,%rax
  js     L136
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L126
L136:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L126:
  movsd  D1(%rip),%xmm1
  mulsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x1c(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  jmp    L53
L142:
  mov    -0x10(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movss  -0x1c(%rbp),%xmm0
  movss  %xmm0,(%rax)
  addq   $0x1,-0x10(%rbp)
L53:
  mov    -0x8(%rbp),%rax
  sub    $0x1,%rax
  cmp    %rax,-0x10(%rbp)
  jbe    L142
L101:
  mov    -0x18(%rbp),%rax
  cmp    -0x28(%rbp),%rax
  jb     L78
  mov    -0x18(%rbp),%rax
  cmp    -0x28(%rbp),%rax
  jne    L65
  mov    -0x28(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x28(%rbp),%rax
  test   %rax,%rax
  js     L79
  pxor   %xmm0,%xmm0
  cvtsi2ss %rax,%xmm0
  jmp    L147
L79:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2ss %rdx,%xmm0
  addss  %xmm0,%xmm0
L147:
  movss  %xmm0,(%rcx)
L65:
  nop
  pop    %rbp
  ret
```

tool_calls: name: parse_data
arguments: label: D1
type_guessed: f64

tool: D1: 0.5

assistant: ```c
void crank(unsigned long n, float w[]) {
  unsigned long j = 1, ji, jt;
  float rank;
  while (j < n) {
    if (w[j + 1] != w[j]) {
      w[j] = j;
      ++j;
    } else {
      for (jt = j + 1; jt <= n && w[jt] == w[j]; jt++)
        ;
      rank = 0.5 * (j + jt - 1);
      for (ji = j; ji <= (jt - 1); ji++)
        w[ji] = rank;
    }
  }
  if (j == n)
    w[n] = n;
}
```