user: Translate the below assembly code into C programming language:

```asm
<flip_F5>:
  endbr64
  mov    %rdi,%rdx
  lea    (%rdi,%rdi,1),%rax
  push   %r12
  mov    %rdi,%r12
  shl    $0x9,%rdx
  and    %rsi,%rax
  shr    $0x7,%r12
  push   %rbp
  and    %rsi,%rdx
  and    $0x2000000,%eax
  and    %rsi,%r12
  mov    %rdi,%rbp
  and    $0x20000,%edx
  and    $0x404,%edi
  push   %rbx
  mov    %rsi,%rbx
  or     %rdx,%rax
  movabs $0x200000000,%rdx
  and    %rdx,%r12
  mov    %rdi,%rdx
  or     %rax,%r12
  mov    %rsi,%rax
  shl    $0x8,%rdx
  and    $0x40400,%eax
  or     $0x3fbf800,%rax
  add    %rdx,%rax
  test   $0x4000000,%eax
  jne    L43
L23:
  movabs $0x4040400000000,%rcx
  mov    %rbx,%rax
  movabs $0x3fbfbf800000000,%rdx
  and    %rcx,%rax
  or     %rdx,%rax
  movabs $0x400000000,%rdx
  add    %rdx,%rax
  movabs $0x404040000000000,%rdx
  and    %rbp,%rax
  and    %rdx,%rax
  je     L52
  sub    $0x1,%rax
  and    %rcx,%rax
  or     %rax,%r12
L52:
  movabs $0x20100800000000,%rcx
  mov    %rbx,%rax
  movabs $0x3fdfeff000000000,%rdx
  and    %rcx,%rax
  or     %rdx,%rax
  movabs $0x800000000,%rdx
  add    %rdx,%rax
  movabs $0x4020100000000000,%rdx
  and    %rbp,%rax
  and    %rdx,%rax
  je     L55
  sub    $0x1,%rax
  and    %rcx,%rax
  or     %rax,%r12
L55:
  mov    %rbp,%rdi
  mov    %rbx,%rax
  and    $0x1020,%edi
  and    $0x81000,%eax
  mov    %rdi,%rdx
  or     $0x3f7e000,%rax
  shl    $0x7,%rdx
  add    %rdx,%rax
  test   $0x4000000,%eax
  jne    L22
L21:
  add    $0x8000000,%rbx
  and    %rbp,%rbx
  and    $0xf0000000,%ebx
  je     L25
  sub    $0x1,%rbx
  and    $0xf8000000,%ebx
  or     %rbx,%r12
L25:
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax,%rax,1)
L43:
  call   <last_bit@plt>
  mov    $0xfffffffffffffffe,%rdx
  mov    %eax,%ecx
  shl    %cl,%rdx
  and    $0x40400,%edx
  or     %rdx,%r12
  jmp    L23
  nop
L22:
  call   <last_bit@plt>
  mov    $0xfffffffffffffffe,%rdx
  mov    %eax,%ecx
  shl    %cl,%rdx
  and    $0x81000,%edx
  or     %rdx,%r12
  jmp    L21
```

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;
}
```