user: 请将以下的汇编代码转换成C语言代码：

```asm
<getBestParents>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    %rdx,-0x20(%rbp)
  mov    %rcx,-0x28(%rbp)
  mov    %r8d,%eax
  mov    %r9d,-0x30(%rbp)
  mov    %ax,-0x2c(%rbp)
  movw   $0x0,-0x10(%rbp)
  mov    -0x30(%rbp),%eax
  cmp    0x18(%rbp),%eax
  jne    L74
  movzwl -0x2c(%rbp),%eax
  mov    %ax,-0xe(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movl   $0x0,-0xc(%rbp)
  jmp    L91
L44:
  mov    -0xc(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  je     L21
  mov    -0xc(%rbp),%eax
  mov    $0x1,%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  not    %eax
  mov    %eax,%edx
  movzwl -0xe(%rbp),%eax
  and    %edx,%eax
  mov    %ax,-0xe(%rbp)
  movzwl -0xe(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  comisd -0x8(%rbp),%xmm0
  jbe    L21
  movzwl -0xe(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movzwl -0xe(%rbp),%eax
  mov    %ax,-0x10(%rbp)
L21:
  addl   $0x1,-0xc(%rbp)
L91:
  mov    -0xc(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  jl     L44
  movzwl -0x2c(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movzwl -0x10(%rbp),%eax
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  comisd %xmm1,%xmm0
  jbe    L2
  movzwl -0x2c(%rbp),%eax
  jmp    L17
L2:
  movzwl -0x10(%rbp),%eax
L17:
  movzwl -0x2c(%rbp),%edx
  lea    (%rdx,%rdx,1),%rcx
  mov    -0x28(%rbp),%rdx
  add    %rcx,%rdx
  mov    %ax,(%rdx)
  jmp    L6
L74:
  mov    0x10(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  jmp    L60
L3:
  mov    -0xc(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  je     L82
  mov    0x18(%rbp),%eax
  lea    0x1(%rax),%r8d
  mov    -0xc(%rbp),%eax
  lea    0x1(%rax),%edi
  mov    -0xc(%rbp),%eax
  mov    $0x1,%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %eax,%edx
  movzwl -0x2c(%rbp),%eax
  or     %edx,%eax
  movzwl %ax,%r10d
  mov    -0x30(%rbp),%r9d
  mov    -0x28(%rbp),%rcx
  mov    -0x20(%rbp),%rdx
  mov    -0x18(%rbp),%esi
  mov    -0x14(%rbp),%eax
  push   %r8
  push   %rdi
  mov    %r10d,%r8d
  mov    %eax,%edi
  call   <getBestParents>
  add    $0x10,%rsp
L82:
  addl   $0x1,-0xc(%rbp)
L60:
  mov    -0xc(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  jl     L3
L6:
  nop
  leave
  ret
```

assistant: ```c
void getBestParents(int currentNode, int numNode, double *localScore, unsigned short *bestParents, unsigned short parentPattern, int num, int start, int rank) {
  double maxScore;
  unsigned short maxScorePattern = 0;
  int i;
  if (num == rank) {
    unsigned short oneLeaveParentPattern = parentPattern;
    for (maxScore = 0, i = 0; i < numNode; i++) {
      if (i != currentNode) {
        oneLeaveParentPattern = oneLeaveParentPattern & ~(1 << i);
        if (maxScore < localScore[oneLeaveParentPattern]) {
          maxScore = localScore[oneLeaveParentPattern];
          maxScorePattern = oneLeaveParentPattern;
        }
      }
    }
    bestParents[parentPattern] = (localScore[parentPattern] > localScore[maxScorePattern]) ? parentPattern : maxScorePattern;
  } else {
    for (i = start; i < numNode; i++) {
      if (i != currentNode) {
        getBestParents(currentNode, numNode, localScore, bestParents, parentPattern | (1 << i), num, i + 1, rank + 1);
      }
    }
  }
}
```