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

```asm
<flip_H5>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%r12
  mov    %rsi,%rbx
  lea    0x2000000(%rsi),%rbp
  and    %rdi,%rbp
  and    $0xfc000000,%ebp
  je     L27
  sub    $0x1,%rbp
  and    $0xfe000000,%ebp
L27:
  mov    %r12,%rdi
  and    $0x408,%edi
  mov    %rbx,%rax
  and    $0x20400,%eax
  or     $0xfdf800,%rax
  mov    %rdi,%rdx
  shl    $0x7,%rdx
  add    %rdx,%rax
  test   $0x1000000,%eax
  jne    L17
L8:
  movabs $0x8040200000000,%rax
  and    %rbx,%rax
  movabs $0xff7fbfc00000000,%rdx
  or     %rdx,%rax
  movabs $0x200000000,%rdx
  add    %rdx,%rax
  and    %r12,%rax
  movabs $0x1008040000000000,%rdx
  and    %rdx,%rax
  je     L35
  sub    $0x1,%rax
  movabs $0x8040200000000,%rdx
  and    %rdx,%rax
  or     %rax,%rbp
L35:
  mov    %r12,%rdi
  and    $0x101,%edi
  mov    %rbx,%rax
  and    $0x10100,%eax
  or     $0xfefe00,%rax
  mov    %rdi,%rdx
  shl    $0x8,%rdx
  add    %rdx,%rax
  test   $0x1000000,%eax
  jne    L1
L37:
  movabs $0x1010100000000,%rax
  and    %rax,%rbx
  movabs $0xfefefe00000000,%rax
  or     %rax,%rbx
  movabs $0x100000000,%rax
  add    %rax,%rbx
  and    %r12,%rbx
  movabs $0x101010000000000,%rax
  and    %rax,%rbx
  je     L23
  sub    $0x1,%rbx
  movabs $0x1010100000000,%rax
  and    %rax,%rbx
  or     %rbx,%rbp
L23:
  mov    %rbp,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L17:
  call   <last_bit@plt>
  mov    $0xfffffffffffffffe,%rdx
  mov    %eax,%ecx
  shl    %cl,%rdx
  and    $0x20400,%edx
  or     %rdx,%rbp
  jmp    L8
L1:
  call   <last_bit@plt>
  mov    $0xfffffffffffffffe,%rdx
  mov    %eax,%ecx
  shl    %cl,%rdx
  and    $0x10100,%edx
  or     %rdx,%rbp
  jmp    L37
```

assistant: ```c
unsigned long long flip_H5(const unsigned long long discs_player, const unsigned long long discs_opponent) {
  unsigned long long my_discs, opp_discs, r, flipped = 0ULL;
  my_discs = discs_player & 0X00000000FC000000ULL;
  r = (discs_opponent + 0X0000000002000000ULL) & my_discs;
  if (r != 0) {
    flipped |= (r - 1) & 0X00000000FE000000ULL;
  }
  my_discs = discs_player & 0X0000000000000408ULL;
  opp_discs = (discs_opponent & 0X0000000000020400ULL) | 0X0000000000FDF800ULL;
  r = ((my_discs << 7) + opp_discs) & 0X0000000001000000ULL;
  if (r != 0) {
    flipped |= (0X0000000001000000ULL - (0X2ULL << last_bit(my_discs))) & 0X0000000000020400ULL;
  }
  my_discs = discs_player & 0X1008040000000000ULL;
  opp_discs = (discs_opponent & 0X0008040200000000ULL) | 0X0FF7FBFC00000000ULL;
  r = (opp_discs + 0X0000000200000000ULL) & my_discs;
  if (r != 0) {
    flipped |= (r - 1) & 0X0008040200000000ULL;
  }
  my_discs = discs_player & 0X0000000000000101ULL;
  opp_discs = (discs_opponent & 0X0000000000010100ULL) | 0X0000000000FEFE00ULL;
  r = ((my_discs << 8) + opp_discs) & 0X0000000001000000ULL;
  if (r != 0) {
    flipped |= (0X0000000001000000ULL - (0X2ULL << last_bit(my_discs))) & 0X0000000000010100ULL;
  }
  my_discs = discs_player & 0X0101010000000000ULL;
  opp_discs = (discs_opponent & 0X0001010100000000ULL) | 0X00FEFEFE00000000ULL;
  r = (opp_discs + 0X0000000100000000ULL) & my_discs;
  if (r != 0) {
    flipped |= (r - 1) & 0X0001010100000000ULL;
  }
  return flipped;
}
```