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

```asm
<flip_H4>:
  endbr64
  movabs $0xfc00000000,%rax
  push   %r13
  push   %r12
  movabs $0x200000000,%r12
  push   %rbp
  add    %rsi,%r12
  mov    %rdi,%rbp
  push   %rbx
  and    %rdi,%r12
  mov    %rsi,%rbx
  sub    $0x8,%rsp
  and    %rax,%r12
  je     L51
  movabs $0xfe00000000,%rax
  sub    $0x1,%r12
  and    %rax,%r12
L51:
  mov    %rbp,%rdi
  mov    %rbx,%rax
  mov    $0xfdfbf000,%edx
  movabs $0x100000000,%r13
  and    $0x40810,%edi
  and    $0x2040800,%eax
  or     %rdx,%rax
  mov    %rdi,%rdx
  shl    $0x7,%rdx
  add    %rdx,%rax
  test   %r13,%rax
  jne    L58
L61:
  movabs $0x4020000000000,%rcx
  mov    %rbx,%rax
  movabs $0x7fbfc0000000000,%rdx
  and    %rcx,%rax
  or     %rdx,%rax
  movabs $0x20000000000,%rdx
  add    %rdx,%rax
  movabs $0x804000000000000,%rdx
  and    %rbp,%rax
  and    %rdx,%rax
  je     L15
  sub    $0x1,%rax
  and    %rcx,%rax
  or     %rax,%r12
L15:
  mov    %rbp,%rdi
  mov    %rbx,%rax
  mov    $0xfefefe00,%edx
  movabs $0x100000000,%r13
  and    $0x10101,%edi
  and    $0x1010100,%eax
  or     %rdx,%rax
  mov    %rdi,%rdx
  shl    $0x8,%rdx
  add    %rdx,%rax
  test   %r13,%rax
  jne    L52
L9:
  movabs $0x1010000000000,%rdx
  movabs $0xfefe0000000000,%rax
  and    %rdx,%rbx
  or     %rax,%rbx
  movabs $0x10000000000,%rax
  add    %rax,%rbx
  movabs $0x101000000000000,%rax
  and    %rbp,%rbx
  and    %rax,%rbx
  je     L21
  sub    $0x1,%rbx
  and    %rdx,%rbx
  or     %rbx,%r12
L21:
  add    $0x8,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax,%rax,1)
L58:
  call   <last_bit@plt>
  mov    $0x2,%edx
  mov    %eax,%ecx
  shl    %cl,%rdx
  sub    %rdx,%r13
  and    $0x2040800,%r13d
  or     %r13,%r12
  jmp    L61
  nopl   0x0(%rax)
L52:
  call   <last_bit@plt>
  mov    $0x2,%edx
  mov    %eax,%ecx
  shl    %cl,%rdx
  sub    %rdx,%r13
  and    $0x1010100,%r13d
  or     %r13,%r12
  jmp    L9
```

assistant: ```c
unsigned long long flip_H4(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 & 0X000000FC00000000ULL;
  r = (discs_opponent + 0X0000000200000000ULL) & my_discs;
  if (r != 0) {
    flipped |= (r - 1) & 0X000000FE00000000ULL;
  }
  my_discs = discs_player & 0X0000000000040810ULL;
  opp_discs = (discs_opponent & 0X0000000002040800ULL) | 0X00000000FDFBF000ULL;
  r = ((my_discs << 7) + opp_discs) & 0X0000000100000000ULL;
  if (r != 0) {
    flipped |= (0X0000000100000000ULL - (0X2ULL << last_bit(my_discs))) & 0X0000000002040800ULL;
  }
  my_discs = discs_player & 0X0804000000000000ULL;
  opp_discs = (discs_opponent & 0X0004020000000000ULL) | 0X07FBFC0000000000ULL;
  r = (opp_discs + 0X0000020000000000ULL) & my_discs;
  if (r != 0) {
    flipped |= (r - 1) & 0X0004020000000000ULL;
  }
  my_discs = discs_player & 0X0000000000010101ULL;
  opp_discs = (discs_opponent & 0X0000000001010100ULL) | 0X00000000FEFEFE00ULL;
  r = ((my_discs << 8) + opp_discs) & 0X0000000100000000ULL;
  if (r != 0) {
    flipped |= (0X0000000100000000ULL - (0X2ULL << last_bit(my_discs))) & 0X0000000001010100ULL;
  }
  my_discs = discs_player & 0X0101000000000000ULL;
  opp_discs = (discs_opponent & 0X0001010000000000ULL) | 0X00FEFE0000000000ULL;
  r = (opp_discs + 0X0000010000000000ULL) & my_discs;
  if (r != 0) {
    flipped |= (r - 1) & 0X0001010000000000ULL;
  }
  return flipped;
}
```