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

```asm
<get_knight_moves_white>:
  endbr64
  push   %r15
  push   %r14
  mov    %rsi,%r14
  push   %r13
  push   %r12
  push   %rbp
  mov    $0x61,%ebp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,0x10(%rsp)
  mov    %rdx,0x20(%rsp)
  nopl   0x0(%rax)
L41:
  lea    0x1(%rbp),%eax
  mov    %bpl,0x1b(%rsp)
  mov    $0x32,%r15d
  mov    $0x31,%r13d
  mov    %eax,0x1c(%rsp)
  jmp    L183
  nopw   0x0(%rax,%rax,1)
L35:
  cmp    $0x39,%r15d
  je     L30
L46:
  lea    0x1(%r15),%r12d
L252:
  add    $0x1,%r13d
  mov    %r12d,%r15d
L183:
  mov    %r13d,%edx
  mov    %ebp,%esi
  mov    %r14,%rdi
  call   <get_piece@plt>
  cmp    $0x4e,%al
  jne    L35
  cmp    $0x67,%bpl
  mov    %r13d,%ebx
  setle  0x8(%rsp)
  movzbl 0x8(%rsp),%eax
  cmp    $0x36,%r13b
  setle  0x1a(%rsp)
  movzbl 0x1a(%rsp),%ecx
  test   %al,%al
  je     L189
  test   %cl,%cl
  je     L189
  lea    0x1(%r15),%r12d
  mov    0x1c(%rsp),%esi
  mov    %r14,%rdi
  mov    %r12d,%edx
  call   <is_occupied@plt>
  cmp    $0x1,%eax
  je     L189
  push   %r12
  mov    0x24(%rsp),%eax
  mov    %ebp,%r8d
  mov    %r13d,%r9d
  mov    $0x1,%edx
  mov    %r14,%rsi
  push   %rax
  mov    0x30(%rsp),%rcx
  mov    0x20(%rsp),%rdi
  call   <store_move@plt>
  mov    %rax,0x20(%rsp)
  pop    %rdi
  pop    %r8
  nopl   0x0(%rax)
L189:
  cmpb   $0x66,0x1b(%rsp)
  setle  %r11b
  cmp    $0x37,%bl
  setle  %r12b
  test   %r11b,%r11b
  je     L188
  test   %r12b,%r12b
  je     L188
  lea    0x2(%rbp),%ecx
  mov    %r15d,%edx
  mov    %r14,%rdi
  mov    %r11b,0xc(%rsp)
  mov    %ecx,%esi
  mov    %ecx,0x28(%rsp)
  call   <is_occupied@plt>
  movzbl 0xc(%rsp),%r11d
  cmp    $0x1,%eax
  je     L188
  push   %r15
  mov    0x30(%rsp),%ecx
  mov    %r14,%rsi
  mov    %r13d,%r9d
  mov    %ebp,%r8d
  mov    $0x1,%edx
  push   %rcx
  mov    0x30(%rsp),%rcx
  mov    0x20(%rsp),%rdi
  call   <store_move@plt>
  mov    %rax,0x20(%rsp)
  pop    %rcx
  pop    %rsi
  movzbl 0xc(%rsp),%r11d
  nop
L188:
  cmp    $0x31,%bl
  setg   0xc(%rsp)
  movzbl 0xc(%rsp),%eax
  test   %r11b,%r11b
  je     L112
  test   %al,%al
  je     L112
  lea    0x2(%rbp),%ecx
  lea    -0x2(%r15),%edx
  mov    %r14,%rdi
  mov    %ecx,%esi
  mov    %edx,0x2c(%rsp)
  mov    %ecx,0x28(%rsp)
  call   <is_occupied@plt>
  cmp    $0x1,%eax
  je     L112
  mov    0x2c(%rsp),%edx
  mov    %r13d,%r9d
  mov    %ebp,%r8d
  mov    %r14,%rsi
  push   %rdx
  mov    0x30(%rsp),%ecx
  mov    $0x1,%edx
  push   %rcx
  mov    0x30(%rsp),%rcx
  mov    0x20(%rsp),%rdi
  call   <store_move@plt>
  mov    %rax,0x20(%rsp)
  pop    %rax
  pop    %rdx
  nopw   0x0(%rax,%rax,1)
L112:
  cmp    $0x32,%bl
  setg   %r10b
  cmpb   $0x0,0x8(%rsp)
  je     L63
  test   %r10b,%r10b
  je     L63
  mov    0x1c(%rsp),%esi
  lea    -0x3(%r15),%ebx
  mov    %r14,%rdi
  mov    %r10b,0x8(%rsp)
  mov    %ebx,%edx
  call   <is_occupied@plt>
  movzbl 0x8(%rsp),%r10d
  cmp    $0x1,%eax
  je     L63
  push   %rbx
  mov    0x24(%rsp),%eax
  mov    %r13d,%r9d
  mov    %ebp,%r8d
  mov    $0x1,%edx
  mov    %r14,%rsi
  push   %rax
  mov    0x30(%rsp),%rcx
  mov    0x20(%rsp),%rdi
  call   <store_move@plt>
  mov    %rax,0x20(%rsp)
  pop    %r11
  pop    %rbx
  movzbl 0x8(%rsp),%r10d
  xchg   %ax,%ax
L63:
  cmpb   $0x61,0x1b(%rsp)
  setg   %bl
  test   %r10b,%r10b
  je     L241
  test   %bl,%bl
  je     L241
  lea    -0x1(%rbp),%ecx
  lea    -0x3(%r15),%edx
  mov    %r14,%rdi
  mov    %ecx,%esi
  mov    %edx,0x28(%rsp)
  mov    %ecx,0x8(%rsp)
  call   <is_occupied@plt>
  cmp    $0x1,%eax
  je     L241
  mov    0x28(%rsp),%edx
  mov    %r13d,%r9d
  mov    %ebp,%r8d
  mov    %r14,%rsi
  push   %rdx
  mov    0x10(%rsp),%ecx
  mov    $0x1,%edx
  push   %rcx
  mov    0x30(%rsp),%rcx
  mov    0x20(%rsp),%rdi
  call   <store_move@plt>
  mov    %rax,0x20(%rsp)
  pop    %r9
  pop    %r10
  nop
L241:
  cmpb   $0x62,0x1b(%rsp)
  setg   %r10b
  cmpb   $0x0,0xc(%rsp)
  je     L116
  test   %r10b,%r10b
  je     L116
  lea    -0x2(%rbp),%ecx
  lea    -0x2(%r15),%edx
  mov    %r14,%rdi
  mov    %r10b,0x8(%rsp)
  mov    %ecx,%esi
  mov    %edx,0x28(%rsp)
  mov    %ecx,0xc(%rsp)
  call   <is_occupied@plt>
  movzbl 0x8(%rsp),%r10d
  cmp    $0x1,%eax
  je     L116
  mov    0x28(%rsp),%edx
  mov    %ebp,%r8d
  mov    %r13d,%r9d
  mov    %r14,%rsi
  push   %rdx
  mov    0x14(%rsp),%ecx
  mov    $0x1,%edx
  push   %rcx
  mov    0x30(%rsp),%rcx
  mov    0x20(%rsp),%rdi
  call   <store_move@plt>
  mov    %rax,0x20(%rsp)
  pop    %rdi
  pop    %r8
  movzbl 0x8(%rsp),%r10d
  nopl   0x0(%rax,%rax,1)
L116:
  and    0x1a(%rsp),%bl
  test   %r12b,%r12b
  je     L159
  test   %r10b,%r10b
  je     L159
  lea    -0x2(%rbp),%r12d
  mov    %r15d,%edx
  mov    %r14,%rdi
  mov    %r12d,%esi
  call   <is_occupied@plt>
  cmp    $0x1,%eax
  je     L49
  push   %r15
  mov    %r14,%rsi
  mov    %r13d,%r9d
  mov    %ebp,%r8d
  push   %r12
  mov    0x30(%rsp),%rcx
  mov    $0x1,%edx
  mov    0x20(%rsp),%rdi
  call   <store_move@plt>
  mov    %rax,0x20(%rsp)
  pop    %rcx
  pop    %rsi
L49:
  test   %bl,%bl
  je     L46
L9:
  lea    0x1(%r15),%r12d
  lea    -0x1(%rbp),%ebx
  mov    %r14,%rdi
  mov    %r12d,%edx
  mov    %ebx,%esi
  call   <is_occupied@plt>
  cmp    $0x1,%eax
  je     L252
  push   %r12
  mov    $0x1,%edx
  mov    %r13d,%r9d
  mov    %ebp,%r8d
  push   %rbx
  mov    0x30(%rsp),%rcx
  mov    %r14,%rsi
  mov    0x20(%rsp),%rdi
  call   <store_move@plt>
  mov    %rax,0x20(%rsp)
  pop    %rax
  pop    %rdx
  jmp    L252
  xchg   %ax,%ax
L159:
  test   %bl,%bl
  jne    L9
  cmp    $0x39,%r15d
  jne    L46
  xchg   %ax,%ax
L30:
  mov    0x1c(%rsp),%ebp
  cmp    $0x69,%ebp
  jne    L41
  mov    0x10(%rsp),%rax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
struct node *get_knight_moves_white(struct node *currentNode, char *board, struct node *parentNode) {
  char x, y;
  int numMoves = 0;
  for (x = 'a'; x <= 'h'; x++) {
    for (y = '1'; y <= '8'; y++) {
      char p = get_piece(board, x, y);
      if (p == 'N') {
        if ((x < 'h') && (y < '7') && (is_occupied(board, x + 1, y + 2) != 1)) {
          currentNode = store_move(currentNode, board, 1, parentNode, x, y, x + 1, y + 2);
          numMoves++;
        }
        if ((x < 'g') && (y < '8') && (is_occupied(board, x + 2, y + 1) != 1)) {
          currentNode = store_move(currentNode, board, 1, parentNode, x, y, x + 2, y + 1);
          numMoves++;
        }
        if ((x < 'g') && (y > '1') && (is_occupied(board, x + 2, y - 1) != 1)) {
          currentNode = store_move(currentNode, board, 1, parentNode, x, y, x + 2, y - 1);
          numMoves++;
        }
        if ((x < 'h') && (y > '2') && (is_occupied(board, x + 1, y - 2) != 1)) {
          currentNode = store_move(currentNode, board, 1, parentNode, x, y, x + 1, y - 2);
          numMoves++;
        }
        if ((x > 'a') && (y > '2') && (is_occupied(board, x - 1, y - 2) != 1)) {
          currentNode = store_move(currentNode, board, 1, parentNode, x, y, x - 1, y - 2);
          numMoves++;
        }
        if ((x > 'b') && (y > '1') && (is_occupied(board, x - 2, y - 1) != 1)) {
          currentNode = store_move(currentNode, board, 1, parentNode, x, y, x - 2, y - 1);
          numMoves++;
        }
        if ((x > 'b') && (y < '8') && (is_occupied(board, x - 2, y + 1) != 1)) {
          currentNode = store_move(currentNode, board, 1, parentNode, x, y, x - 2, y + 1);
          numMoves++;
        }
        if ((x > 'a') && (y < '7') && (is_occupied(board, x - 1, y + 2) != 1)) {
          currentNode = store_move(currentNode, board, 1, parentNode, x, y, x - 1, y + 2);
          numMoves++;
        }
      }
    }
  }
  return currentNode;
}
```