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

```asm
<flip_F3>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%r12
  mov    %rsi,%rbx
  mov    %rdi,%rdx
  shl    $0x9,%rdx
  and    %rsi,%rdx
  movabs $0x200000000,%rax
  and    %rax,%rdx
  lea    (%rdi,%rdi,1),%rax
  and    %rsi,%rax
  movabs $0x20000000000,%rcx
  and    %rcx,%rax
  or     %rdx,%rax
  mov    %rdi,%rdx
  shr    $0x7,%rdx
  and    %rsi,%rdx
  movabs $0x2000000000000,%rcx
  and    %rcx,%rdx
  or     %rax,%rdx
  mov    %rdi,%rax
  shr    $0x8,%rax
  and    %rsi,%rax
  movabs $0x4000000000000,%rcx
  and    %rcx,%rax
  or     %rdx,%rax
  mov    %rdi,%rbp
  shr    $0x9,%rbp
  and    %rsi,%rbp
  movabs $0x8000000000000,%rdx
  and    %rdx,%rbp
  or     %rax,%rbp
  and    $0x4040404,%edi
  movabs $0x404040400,%rax
  and    %rsi,%rax
  movabs $0x3fbfbfbf800,%rdx
  or     %rdx,%rax
  mov    %rdi,%rdx
  shl    $0x8,%rdx
  lea    (%rax,%rdx,1),%rax
  shr    $0x2a,%rax
  jne    L34
L0:
  mov    %r12,%rdi
  and    $0x10204080,%edi
  movabs $0x810204000,%rax
  and    %rbx,%rax
  movabs $0x3f7efdf8000,%rdx
  or     %rdx,%rax
  mov    %rdi,%rdx
  shl    $0x7,%rdx
  lea    (%rax,%rdx,1),%rax
  shr    $0x2a,%rax
  jne    L36
L25:
  movabs $0x80000000000,%rax
  add    %rax,%rbx
  and    %r12,%rbx
  movabs $0xf00000000000,%rax
  and    %rax,%rbx
  je     L48
  sub    $0x1,%rbx
  movabs $0xf80000000000,%rax
  and    %rax,%rbx
  or     %rbx,%rbp
L48:
  mov    %rbp,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L34:
  call   <last_bit@plt>
  mov    $0x2,%edx
  mov    %eax,%ecx
  shl    %cl,%rdx
  movabs $0x40000000000,%rax
  sub    %rdx,%rax
  movabs $0x404040400,%rdx
  and    %rdx,%rax
  or     %rax,%rbp
  jmp    L0
L36:
  call   <last_bit@plt>
  mov    $0x2,%edx
  mov    %eax,%ecx
  shl    %cl,%rdx
  movabs $0x40000000000,%rax
  sub    %rdx,%rax
  movabs $0x810204000,%rdx
  and    %rdx,%rax
  or     %rax,%rbp
  jmp    L25
```

assistant: ```c
unsigned long long flip_F3(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 & 0X0000000200000000ULL) & (discs_player << 9);
  flipped |= (discs_opponent & 0X0000020000000000ULL) & (discs_player << 1);
  flipped |= (discs_opponent & 0X0002000000000000ULL) & (discs_player >> 7);
  flipped |= (discs_opponent & 0X0004000000000000ULL) & (discs_player >> 8);
  flipped |= (discs_opponent & 0X0008000000000000ULL) & (discs_player >> 9);
  my_discs = discs_player & 0X0000000004040404ULL;
  opp_discs = (discs_opponent & 0X0000000404040400ULL) | 0X000003FBFBFBF800ULL;
  r = ((my_discs << 8) + opp_discs) & 0X0000040000000000ULL;
  if (r != 0) {
    flipped |= (0X0000040000000000ULL - (0X2ULL << last_bit(my_discs))) & 0X0000000404040400ULL;
  }
  my_discs = discs_player & 0X0000000010204080ULL;
  opp_discs = (discs_opponent & 0X0000000810204000ULL) | 0X000003F7EFDF8000ULL;
  r = ((my_discs << 7) + opp_discs) & 0X0000040000000000ULL;
  if (r != 0) {
    flipped |= (0X0000040000000000ULL - (0X2ULL << last_bit(my_discs))) & 0X0000000810204000ULL;
  }
  my_discs = discs_player & 0X0000F00000000000ULL;
  r = (discs_opponent + 0X0000080000000000ULL) & my_discs;
  if (r != 0) {
    flipped |= (r - 1) & 0X0000F80000000000ULL;
  }
  return flipped;
}
```