user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<flip_F5>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    -0x28(%rbp),%rax
  shl    $0x9,%rax
  and    -0x30(%rbp),%rax
  and    $0x20000,%eax
  mov    %rax,-0x20(%rbp)
  mov    -0x28(%rbp),%rax
  add    %rax,%rax
  and    -0x30(%rbp),%rax
  and    $0x2000000,%eax
  or     %rax,-0x20(%rbp)
  mov    -0x28(%rbp),%rax
  shr    $0x7,%rax
  and    -0x30(%rbp),%rax
  movabs $0x200000000,%rdx
  and    %rdx,%rax
  or     %rax,-0x20(%rbp)
  mov    -0x28(%rbp),%rax
  and    $0x404,%eax
  mov    %rax,-0x18(%rbp)
  mov    -0x30(%rbp),%rax
  and    $0x40400,%eax
  or     $0x3fbf800,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x18(%rbp),%rax
  shl    $0x8,%rax
  mov    %rax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  and    $0x4000000,%eax
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  je     L37
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <last_bit@plt>
  mov    $0x2,%edx
  mov    %eax,%ecx
  shl    %cl,%rdx
  mov    $0x4000000,%eax
  sub    %rdx,%rax
  and    $0x40400,%eax
  or     %rax,-0x20(%rbp)
L37:
  movabs $0x404040000000000,%rax
  and    -0x28(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  movabs $0x4040400000000,%rax
  and    -0x30(%rbp),%rax
  movabs $0x3fbfbf800000000,%rdx
  or     %rdx,%rax
  mov    %rax,-0x10(%rbp)
  movabs $0x400000000,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  and    -0x18(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  je     L8
  mov    -0x8(%rbp),%rax
  lea    -0x1(%rax),%rdx
  movabs $0x4040400000000,%rax
  and    %rdx,%rax
  or     %rax,-0x20(%rbp)
L8:
  movabs $0x4020100000000000,%rax
  and    -0x28(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  movabs $0x20100800000000,%rax
  and    -0x30(%rbp),%rax
  movabs $0x3fdfeff000000000,%rdx
  or     %rdx,%rax
  mov    %rax,-0x10(%rbp)
  movabs $0x800000000,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  and    -0x18(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  je     L45
  mov    -0x8(%rbp),%rax
  lea    -0x1(%rax),%rdx
  movabs $0x20100800000000,%rax
  and    %rdx,%rax
  or     %rax,-0x20(%rbp)
L45:
  mov    -0x28(%rbp),%rax
  and    $0x1020,%eax
  mov    %rax,-0x18(%rbp)
  mov    -0x30(%rbp),%rax
  and    $0x81000,%eax
  or     $0x3f7e000,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x18(%rbp),%rax
  shl    $0x7,%rax
  mov    %rax,%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  and    $0x4000000,%eax
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  je     L22
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <last_bit@plt>
  mov    $0x2,%edx
  mov    %eax,%ecx
  shl    %cl,%rdx
  mov    $0x4000000,%eax
  sub    %rdx,%rax
  and    $0x81000,%eax
  or     %rax,-0x20(%rbp)
L22:
  mov    -0x28(%rbp),%rax
  and    $0xf0000000,%eax
  mov    %rax,-0x18(%rbp)
  mov    -0x30(%rbp),%rax
  add    $0x8000000,%rax
  and    -0x18(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x8(%rbp)
  je     L2
  mov    -0x8(%rbp),%rax
  sub    $0x1,%rax
  and    $0xf8000000,%eax
  or     %rax,-0x20(%rbp)
L2:
  mov    -0x20(%rbp),%rax
  leave
  ret
```

assistant: ```c
unsigned long long flip_F5(const unsigned long long discs_player, const unsigned long long discs_opponent) {
  unsigned long long my_discs, opp_discs, r;
  unsigned long long flipped = (discs_opponent & 0X0000000000020000ULL) & (discs_player << 9);
  flipped |= (discs_opponent & 0X0000000002000000ULL) & (discs_player << 1);
  flipped |= (discs_opponent & 0X0000000200000000ULL) & (discs_player >> 7);
  my_discs = discs_player & 0X0000000000000404ULL;
  opp_discs = (discs_opponent & 0X0000000000040400ULL) | 0X0000000003FBF800ULL;
  r = ((my_discs << 8) + opp_discs) & 0X0000000004000000ULL;
  if (r != 0) {
    flipped |= (0X0000000004000000ULL - (0X2ULL << last_bit(my_discs))) & 0X0000000000040400ULL;
  }
  my_discs = discs_player & 0X0404040000000000ULL;
  opp_discs = (discs_opponent & 0X0004040400000000ULL) | 0X03FBFBF800000000ULL;
  r = (opp_discs + 0X0000000400000000ULL) & my_discs;
  if (r != 0) {
    flipped |= (r - 1) & 0X0004040400000000ULL;
  }
  my_discs = discs_player & 0X4020100000000000ULL;
  opp_discs = (discs_opponent & 0X0020100800000000ULL) | 0X3FDFEFF000000000ULL;
  r = (opp_discs + 0X0000000800000000ULL) & my_discs;
  if (r != 0) {
    flipped |= (r - 1) & 0X0020100800000000ULL;
  }
  my_discs = discs_player & 0X0000000000001020ULL;
  opp_discs = (discs_opponent & 0X0000000000081000ULL) | 0X0000000003F7E000ULL;
  r = ((my_discs << 7) + opp_discs) & 0X0000000004000000ULL;
  if (r != 0) {
    flipped |= (0X0000000004000000ULL - (0X2ULL << last_bit(my_discs))) & 0X0000000000081000ULL;
  }
  my_discs = discs_player & 0X00000000F0000000ULL;
  r = (discs_opponent + 0X0000000008000000ULL) & my_discs;
  if (r != 0) {
    flipped |= (r - 1) & 0X00000000F8000000ULL;
  }
  return flipped;
}
```