user: Converte this assembly snippet into its equivalent C code:

```asm
<XOR_HOST_REG_B>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %edi,%ebp
  mov    %esi,%ebx
  mov    %edi,%edx
  and    %esi,%edx
  test   $0x8,%dl
  je     L75
  test   $0x10,%dil
  jne    L218
  test   $0x10,%sil
  je     L145
  mov    $0x66,%edi
  call   <addbyte@plt>
  mov    $0x44,%edi
  call   <addbyte@plt>
  mov    $0x89,%edi
  call   <addbyte@plt>
  lea    0x0(,%rbx,8),%edi
  and    $0x38,%edi
  or     $0xc0,%dil
  call   <addbyte@plt>
  mov    $0x66,%edi
  call   <addbyte@plt>
  mov    $0xc1,%edi
  call   <addbyte@plt>
  mov    $0xe8,%edi
  call   <addbyte@plt>
  mov    $0x8,%edi
  call   <addbyte@plt>
  mov    $0x41,%edi
  call   <addbyte@plt>
  mov    $0x30,%edi
  call   <addbyte@plt>
  mov    %ebp,%edi
  and    $0x7,%edi
  or     $0xc0,%dil
  call   <addbyte@plt>
L79:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
L218:
  mov    $0x66,%edi
  call   <addbyte@plt>
  mov    $0x44,%edi
  call   <addbyte@plt>
  mov    $0x89,%edi
  call   <addbyte@plt>
  lea    0x0(,%rbx,8),%edi
  and    $0x38,%edi
  or     $0xc0,%dil
  call   <addbyte@plt>
  test   $0x10,%bl
  jne    L110
  mov    $0x66,%edi
  call   <addbyte@plt>
  mov    $0xc1,%edi
  call   <addbyte@plt>
  mov    $0xe0,%edi
  call   <addbyte@plt>
  mov    $0x8,%edi
  call   <addbyte@plt>
L184:
  mov    $0x66,%edi
  call   <addbyte@plt>
  mov    $0x41,%edi
  call   <addbyte@plt>
  mov    $0x31,%edi
  call   <addbyte@plt>
  mov    %ebp,%edi
  and    $0x7,%edi
  or     $0xc0,%dil
  call   <addbyte@plt>
  jmp    L79
L110:
  mov    $0x66,%edi
  call   <addbyte@plt>
  mov    $0x25,%edi
  call   <addbyte@plt>
  mov    $0xff00,%edi
  call   <addword@plt>
  jmp    L184
L145:
  mov    $0x45,%edi
  call   <addbyte@plt>
  mov    $0x30,%edi
  call   <addbyte@plt>
  lea    0x0(,%rbx,8),%edi
  and    $0x38,%edi
  mov    %ebp,%eax
  and    $0x7,%eax
  or     %eax,%edi
  or     $0xc0,%dil
  call   <addbyte@plt>
  jmp    L79
L75:
  test   $0x8,%dil
  je     L157
  test   $0x10,%dil
  je     L161
  mov    $0x66,%edi
  call   <addbyte@plt>
  mov    $0xc1,%edi
  call   <addbyte@plt>
  mov    %ebx,%edi
  or     $0xe0,%dil
  call   <addbyte@plt>
  mov    $0x8,%edi
  call   <addbyte@plt>
  mov    $0x66,%edi
  call   <addbyte@plt>
  mov    $0x41,%edi
  call   <addbyte@plt>
  mov    $0x31,%edi
  call   <addbyte@plt>
  lea    0x0(,%rbx,8),%edi
  and    $0x38,%edi
  mov    %ebp,%eax
  and    $0x7,%eax
  or     %eax,%edi
  or     $0xc0,%dil
  call   <addbyte@plt>
  jmp    L79
L161:
  mov    $0x41,%edi
  call   <addbyte@plt>
  mov    $0x30,%edi
  call   <addbyte@plt>
  lea    0x0(,%rbx,8),%edi
  and    $0x38,%edi
  mov    %ebp,%eax
  and    $0x7,%eax
  or     %eax,%edi
  or     $0xc0,%dil
  call   <addbyte@plt>
  jmp    L79
L157:
  test   $0x8,%sil
  je     L41
  test   $0x10,%dil
  jne    L106
L171:
  test   $0x10,%bl
  je     L217
  mov    $0x41,%edi
  call   <addbyte@plt>
  mov    $0xf,%edi
  call   <addbyte@plt>
  mov    $0xb7,%edi
  call   <addbyte@plt>
  and    $0x7,%ebx
  mov    %ebx,%edi
  or     $0xd8,%dil
  call   <addbyte@plt>
  mov    $0xc1,%edi
  call   <addbyte@plt>
  mov    $0xeb,%edi
  call   <addbyte@plt>
  mov    $0x8,%edi
  call   <addbyte@plt>
  mov    $0x30,%edi
  call   <addbyte@plt>
  mov    %ebp,%edi
  and    $0x7,%edi
  or     $0xd8,%dil
  call   <addbyte@plt>
  jmp    L79
L106:
  mov    $0xc1,%edi
  call   <addbyte@plt>
  mov    %ebp,%edi
  and    $0x7,%edi
  or     $0xe8,%dil
  call   <addbyte@plt>
  mov    $0x8,%edi
  call   <addbyte@plt>
  jmp    L171
L217:
  mov    $0x44,%edi
  call   <addbyte@plt>
  mov    $0x30,%edi
  call   <addbyte@plt>
  lea    0x0(,%rbx,8),%edi
  and    $0x38,%edi
  mov    %ebp,%eax
  and    $0x7,%eax
  or     %eax,%edi
  or     $0xc0,%dil
  call   <addbyte@plt>
  jmp    L79
L41:
  test   $0x10,%dil
  jne    L147
L186:
  test   $0x10,%bl
  je     L199
  mov    $0xf,%edi
  call   <addbyte@plt>
  mov    $0xb7,%edi
  call   <addbyte@plt>
  and    $0x7,%ebx
  mov    %ebx,%edi
  or     $0xd8,%dil
  call   <addbyte@plt>
  mov    $0xc1,%edi
  call   <addbyte@plt>
  mov    $0xeb,%edi
  call   <addbyte@plt>
  mov    $0x8,%edi
  call   <addbyte@plt>
  mov    $0x30,%edi
  call   <addbyte@plt>
  mov    %ebp,%edi
  and    $0x7,%edi
  or     $0xd8,%dil
  call   <addbyte@plt>
  jmp    L79
L147:
  mov    $0xc1,%edi
  call   <addbyte@plt>
  mov    %ebp,%edi
  and    $0x7,%edi
  or     $0xe8,%dil
  call   <addbyte@plt>
  mov    $0x8,%edi
  call   <addbyte@plt>
  jmp    L186
L199:
  mov    $0x30,%edi
  call   <addbyte@plt>
  lea    0x0(,%rbx,8),%edi
  and    $0x38,%edi
  mov    %ebp,%eax
  and    $0x7,%eax
  or     %eax,%edi
  or     $0xc0,%dil
  call   <addbyte@plt>
  jmp    L79
```

assistant: ```c
void XOR_HOST_REG_B(int dst_reg, int src_reg) {
  if (dst_reg & src_reg & 8) {
    if (dst_reg & 0x10) {
      addbyte(0x66);
      addbyte(0x44);
      addbyte(0x89);
      addbyte(0xc0 | ((src_reg & 7) << 3));
      if (!(src_reg & 0x10)) {
        addbyte(0x66);
        addbyte(0xc1);
        addbyte(0xe0);
        addbyte(8);
      } else {
        addbyte(0x66);
        addbyte(0x25);
        addword(0xff00);
      }
      addbyte(0x66);
      addbyte(0x41);
      addbyte(0x31);
      addbyte(0xc0 | (dst_reg & 7));
    } else if (src_reg & 0x10) {
      addbyte(0x66);
      addbyte(0x44);
      addbyte(0x89);
      addbyte(0xc0 | ((src_reg & 7) << 3));
      addbyte(0x66);
      addbyte(0xc1);
      addbyte(0xe8);
      addbyte(8);
      addbyte(0x41);
      addbyte(0x30);
      addbyte(0xc0 | (dst_reg & 7));
    } else {
      addbyte(0x45);
      addbyte(0x30);
      addbyte(0xc0 | (dst_reg & 7) | ((src_reg & 7) << 3));
    }
  } else if (dst_reg & 8) {
    if (dst_reg & 0x10) {
      addbyte(0x66);
      addbyte(0xc1);
      addbyte(0xe0 | src_reg);
      addbyte(0x08);
      addbyte(0x66);
      addbyte(0x41);
      addbyte(0x31);
      addbyte(0xc0 | (dst_reg & 7) | ((src_reg & 7) << 3));
    } else {
      addbyte(0x41);
      addbyte(0x30);
      addbyte(0xc0 | (dst_reg & 7) | ((src_reg & 7) << 3));
    }
  } else if (src_reg & 8) {
    if (dst_reg & 0x10) {
      addbyte(0xc1);
      addbyte(0xe8 | (dst_reg & 7));
      addbyte(8);
    }
    if (src_reg & 0x10) {
      addbyte(0x41);
      addbyte(0x0f);
      addbyte(0xb7);
      addbyte(0xd8 | (src_reg & 7));
      addbyte(0xc1);
      addbyte(0xeb);
      addbyte(8);
      addbyte(0x30);
      addbyte(0xd8 | (dst_reg & 7));
    } else {
      addbyte(0x44);
      addbyte(0x30);
      addbyte(0xc0 | (dst_reg & 7) | ((src_reg & 7) << 3));
    }
  } else {
    if (dst_reg & 0x10) {
      addbyte(0xc1);
      addbyte(0xe8 | (dst_reg & 7));
      addbyte(8);
    }
    if (src_reg & 0x10) {
      addbyte(0x0f);
      addbyte(0xb7);
      addbyte(0xd8 | (src_reg & 7));
      addbyte(0xc1);
      addbyte(0xeb);
      addbyte(8);
      addbyte(0x30);
      addbyte(0xd8 | (dst_reg & 7));
    } else {
      addbyte(0x30);
      addbyte(0xc0 | (dst_reg & 7) | ((src_reg & 7) << 3));
    }
  }
}
```