user: 下面的汇编指令对应的C源代码是什么:

```asm
<check_bsaw3>:
  endbr64
  push   %r15
  mov    %rdi,%r11
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,-0x18(%rsp)
  mov    0x38(%rsp),%edi
  sub    %r9d,%edi
  js     L121
  movslq %edx,%rax
  mov    %rcx,%rbx
  mov    $0x1,%edx
  movslq %esi,%rsi
  lea    (%rax,%rax,2),%rax
  sub    %r9d,%edx
  mov    (%r11,%rsi,8),%r10
  movslq %r9d,%r9
  lea    (%rbx,%rax,4),%rax
  movslq %edx,%rdx
  movslq %edi,%rdi
  mov    %rax,-0x20(%rsp)
  movslq (%rax),%rax
  lea    (%rdx,%rdx,2),%r11
  lea    (%r9,%r9,2),%rdx
  shl    $0x4,%r11
  mov    (%r10),%ecx
  shl    $0x4,%rdx
  lea    (%rax,%rax,2),%rax
  add    %r8,%r11
  add    %rdx,%r8
  shl    $0x2,%rax
  mov    %ecx,-0x10(%rsp)
  lea    (%r11,%rax,1),%r12
  add    %rbx,%rax
  mov    %rax,-0x28(%rsp)
  movslq (%rax),%rax
  add    (%r12),%ecx
  lea    (%rax,%rax,2),%rax
  mov    %ecx,%ebp
  lea    (%r8,%rax,4),%rax
  add    (%rax),%ecx
  mov    %rax,-0x8(%rsp)
  mov    %ecx,-0xc(%rsp)
  jmp    L195
  nopl   0x0(%rax,%rax,1)
L253:
  mov    -0x28(%rsp),%rsi
  movslq 0x4(%rsi),%rdx
  lea    (%rdx,%rdx,2),%rdx
  lea    (%r8,%rdx,4),%rdx
  mov    (%rdx),%esi
  add    %ebp,%esi
  cmp    %esi,%eax
  je     L185
L251:
  mov    -0x28(%rsp),%rsi
  movslq 0x8(%rsi),%rdx
  lea    (%rdx,%rdx,2),%rdx
  lea    (%r8,%rdx,4),%rdx
  mov    (%rdx),%esi
  add    %ebp,%esi
  cmp    %esi,%eax
  je     L298
L0:
  mov    -0x20(%rsp),%rsi
  movslq 0x4(%rsi),%r9
  mov    -0x10(%rsp),%esi
  lea    (%r9,%r9,2),%rdx
  shl    $0x2,%rdx
  lea    (%r11,%rdx,1),%r14
  add    %rbx,%rdx
  movslq (%rdx),%r13
  add    (%r14),%esi
  lea    0x0(%r13,%r13,2),%r13
  lea    (%r8,%r13,4),%r13
  mov    0x0(%r13),%r15d
  add    %esi,%r15d
  cmp    %r15d,%eax
  je     L269
L112:
  movslq 0x4(%rdx),%r13
  lea    0x0(%r13,%r13,2),%r13
  lea    (%r8,%r13,4),%r13
  mov    0x0(%r13),%r14d
  add    %esi,%r14d
  cmp    %r14d,%eax
  je     L84
L132:
  movslq 0x8(%rdx),%rdx
  lea    (%rdx,%rdx,2),%rdx
  lea    (%r8,%rdx,4),%rdx
  add    (%rdx),%esi
  cmp    %esi,%eax
  je     L341
L113:
  mov    -0x20(%rsp),%rsi
  movslq 0x8(%rsi),%r9
  mov    -0x10(%rsp),%esi
  lea    (%r9,%r9,2),%rdx
  shl    $0x2,%rdx
  lea    (%r11,%rdx,1),%r14
  add    %rbx,%rdx
  movslq (%rdx),%r13
  add    (%r14),%esi
  lea    0x0(%r13,%r13,2),%r13
  lea    (%r8,%r13,4),%r13
  mov    0x0(%r13),%r15d
  add    %esi,%r15d
  cmp    %r15d,%eax
  je     L196
L152:
  movslq 0x4(%rdx),%r13
  lea    0x0(%r13,%r13,2),%r13
  lea    (%r8,%r13,4),%r13
  mov    0x0(%r13),%r14d
  add    %esi,%r14d
  cmp    %r14d,%eax
  je     L241
L336:
  movslq 0x8(%rdx),%rdx
  lea    (%rdx,%rdx,2),%rdx
  lea    (%r8,%rdx,4),%rdx
  add    (%rdx),%esi
  cmp    %esi,%eax
  je     L198
L100:
  sub    $0x2,%rdi
  test   %edi,%edi
  js     L121
L195:
  mov    -0x18(%rsp),%rax
  mov    (%rax,%rdi,8),%rcx
  mov    (%rcx),%eax
  cmp    %eax,-0xc(%rsp)
  jne    L253
  mov    -0x8(%rsp),%rsi
  mov    0x4(%r12),%edx
  add    0x4(%r10),%edx
  add    0x4(%rsi),%edx
  cmp    0x4(%rcx),%edx
  jne    L253
  mov    0x8(%r12),%edx
  add    0x8(%r10),%edx
  add    0x8(%rsi),%edx
  cmp    0x8(%rcx),%edx
  jne    L253
L62:
  pop    %rbx
  mov    $0x1,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L185:
  mov    0x4(%r12),%esi
  add    0x4(%r10),%esi
  add    0x4(%rdx),%esi
  cmp    0x4(%rcx),%esi
  jne    L251
  mov    0x8(%r12),%esi
  add    0x8(%r10),%esi
  add    0x8(%rdx),%esi
  cmp    0x8(%rcx),%esi
  jne    L251
  jmp    L62
  nopl   0x0(%rax)
L298:
  mov    0x4(%r12),%esi
  add    0x4(%r10),%esi
  add    0x4(%rdx),%esi
  cmp    0x4(%rcx),%esi
  jne    L0
  mov    0x8(%r12),%esi
  add    0x8(%r10),%esi
  add    0x8(%rdx),%esi
  cmp    0x8(%rcx),%esi
  jne    L0
  jmp    L62
  nopl   0x0(%rax)
L269:
  mov    0x4(%r14),%r15d
  add    0x4(%r10),%r15d
  add    0x4(%r13),%r15d
  cmp    0x4(%rcx),%r15d
  jne    L112
  mov    0x8(%r14),%r14d
  add    0x8(%r10),%r14d
  add    0x8(%r13),%r14d
  cmp    0x8(%rcx),%r14d
  jne    L112
  jmp    L62
  nopl   0x0(%rax)
L84:
  lea    (%r9,%r9,2),%r14
  lea    (%r11,%r14,4),%r15
  mov    0x4(%r15),%r14d
  add    0x4(%r10),%r14d
  add    0x4(%r13),%r14d
  cmp    0x4(%rcx),%r14d
  jne    L132
  mov    0x8(%r15),%r14d
  add    0x8(%r10),%r14d
  add    0x8(%r13),%r14d
  cmp    0x8(%rcx),%r14d
  jne    L132
  jmp    L62
  nopl   0x0(%rax)
L341:
  lea    (%r9,%r9,2),%rsi
  lea    (%r11,%rsi,4),%r9
  mov    0x4(%r9),%esi
  add    0x4(%r10),%esi
  add    0x4(%rdx),%esi
  cmp    0x4(%rcx),%esi
  jne    L113
  mov    0x8(%r9),%esi
  add    0x8(%r10),%esi
  add    0x8(%rdx),%esi
  cmp    0x8(%rcx),%esi
  jne    L113
  jmp    L62
  nopl   (%rax)
L196:
  mov    0x4(%r14),%r15d
  add    0x4(%r10),%r15d
  add    0x4(%r13),%r15d
  cmp    0x4(%rcx),%r15d
  jne    L152
  mov    0x8(%r14),%r14d
  add    0x8(%r10),%r14d
  add    0x8(%r13),%r14d
  cmp    0x8(%rcx),%r14d
  jne    L152
  jmp    L62
  nopl   0x0(%rax)
L241:
  lea    (%r9,%r9,2),%r14
  lea    (%r11,%r14,4),%r15
  mov    0x4(%r15),%r14d
  add    0x4(%r10),%r14d
  add    0x4(%r13),%r14d
  cmp    0x4(%rcx),%r14d
  jne    L336
  mov    0x8(%r15),%r14d
  add    0x8(%r10),%r14d
  add    0x8(%r13),%r14d
  cmp    0x8(%rcx),%r14d
  jne    L336
  jmp    L62
  nopl   0x0(%rax)
L198:
  lea    (%r9,%r9,2),%rax
  lea    (%r11,%rax,4),%rsi
  mov    0x4(%rsi),%eax
  add    0x4(%r10),%eax
  add    0x4(%rdx),%eax
  cmp    0x4(%rcx),%eax
  jne    L100
  mov    0x8(%rsi),%eax
  add    0x8(%r10),%eax
  add    0x8(%rdx),%eax
  cmp    0x8(%rcx),%eax
  je     L62
  sub    $0x2,%rdi
  test   %edi,%edi
  jns    L195
L121:
  pop    %rbx
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
int check_bsaw3(int(**check_ptr), int position, int lastmove_var, const int(sawmoves_ptr)[4][3], const int(moves_ptr)[2][4][3], int odd_var, int bpos_var) {
  for (int trybead = (bpos_var - odd_var); trybead >= 0; trybead -= 2) {
    for (int test1 = 0; test1 < 3; test1++) {
      for (int test2 = 0; test2 < 3; test2++) {
        if (((check_ptr[position][0] + moves_ptr[1 - odd_var][sawmoves_ptr[lastmove_var][test1]][0] + moves_ptr[odd_var][sawmoves_ptr[sawmoves_ptr[lastmove_var][test1]][test2]][0]) == check_ptr[trybead][0]) && ((check_ptr[position][1] + moves_ptr[1 - odd_var][sawmoves_ptr[lastmove_var][test1]][1] + moves_ptr[odd_var][sawmoves_ptr[sawmoves_ptr[lastmove_var][test1]][test2]][1]) == check_ptr[trybead][1]) && ((check_ptr[position][2] + moves_ptr[1 - odd_var][sawmoves_ptr[lastmove_var][test1]][2] + moves_ptr[odd_var][sawmoves_ptr[sawmoves_ptr[lastmove_var][test1]][test2]][2]) == check_ptr[trybead][2])) {
          return true;
        }
      }
    }
  }
  return false;
}
```