user: Please show me the C implementation that matches the assembly code listed below:

```asm
<__efuse_write_byte>:
  endbr64
  push   %r13
  mov    %rdi,%r13
  mov    $0x8564,%edi
  push   %r12
  push   %rbp
  mov    $0x1,%ebp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x8,%rsp
  call   <efuse_reg_addr@plt>
  mov    (%rax),%eax
  test   $0x10,%ah
  je     L23
L43:
  mov    $0x8564,%edi
  and    $0x3ff,%r13d
  shl    $0x10,%ebx
  call   <efuse_reg_addr@plt>
  mov    $0x8564,%edi
  and    $0xff0000,%ebx
  mov    (%rax),%r12d
  call   <efuse_reg_addr@plt>
  mov    $0x8564,%edi
  and    $0xfffffc00,%r12d
  or     %r13d,%r12d
  mov    %r12d,(%rax)
  call   <efuse_reg_addr@plt>
  mov    $0x8564,%edi
  mov    (%rax),%r12d
  call   <efuse_reg_addr@plt>
  mov    $0x8564,%edi
  or     $0x800,%r12d
  mov    %r12d,(%rax)
  call   <efuse_reg_addr@plt>
  mov    $0x8564,%edi
  mov    (%rax),%r12d
  call   <efuse_reg_addr@plt>
  mov    $0x8564,%edi
  and    $0xfffff7ff,%r12d
  mov    %r12d,(%rax)
  call   <efuse_reg_addr@plt>
  mov    $0x8564,%edi
  mov    (%rax),%eax
  and    $0xff00ffff,%eax
  or     %eax,%ebx
  call   <efuse_reg_addr@plt>
  mov    $0x8564,%edi
  mov    %ebx,(%rax)
  call   <efuse_reg_addr@plt>
  mov    $0x8564,%edi
  mov    (%rax),%ebx
  call   <efuse_reg_addr@plt>
  mov    $0x8564,%edi
  or     $0x20,%bh
  mov    %ebx,(%rax)
  call   <efuse_reg_addr@plt>
  mov    $0x8564,%edi
  mov    (%rax),%ebx
  call   <efuse_reg_addr@plt>
  mov    $0x8564,%edi
  and    $0xdf,%bh
  mov    %ebx,(%rax)
  call   <efuse_reg_addr@plt>
  mov    (%rax),%eax
  jmp    L3
  nopw   0x0(%rax,%rax,1)
L36:
  mov    $0x1,%edi
  call   <udelay@plt>
L3:
  mov    $0x8564,%edi
  call   <efuse_reg_addr@plt>
  mov    (%rax),%eax
  test   $0x40,%ah
  jne    L36
  test   %rbp,%rbp
  je     L22
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax,%rax,1)
L23:
  mov    $0x8564,%edi
  call   <efuse_reg_addr@plt>
  mov    $0x8564,%edi
  mov    (%rax),%ebp
  call   <efuse_reg_addr@plt>
  or     $0x1000,%ebp
  mov    %ebp,(%rax)
  xor    %ebp,%ebp
  jmp    L43
  nopl   (%rax)
L22:
  mov    $0x8564,%edi
  call   <efuse_reg_addr@plt>
  mov    $0x8564,%edi
  mov    (%rax),%ebx
  call   <efuse_reg_addr@plt>
  and    $0xef,%bh
  mov    %ebx,(%rax)
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
```

assistant: ```c
void __efuse_write_byte(unsigned long addr, unsigned long data) {
  unsigned long auto_wr_is_enabled = 0;
  if ((*((volatile unsigned *)efuse_reg_addr((0x2159 << 2)))) & (1 << 12)) {
    auto_wr_is_enabled = 1;
  } else {
    (*((volatile unsigned *)efuse_reg_addr((0x2159 << 2))) = ((*((volatile unsigned *)efuse_reg_addr((0x2159 << 2)))) & ~(((1L << (1)) - 1) << (12))) | ((unsigned)((1) & ((1L << (1)) - 1)) << (12)));
  }
  (*((volatile unsigned *)efuse_reg_addr((0x2159 << 2))) = ((*((volatile unsigned *)efuse_reg_addr((0x2159 << 2)))) & ~(((1L << (10)) - 1) << (0))) | ((unsigned)((addr) & ((1L << (10)) - 1)) << (0)));
  (*((volatile unsigned *)efuse_reg_addr((0x2159 << 2))) = ((*((volatile unsigned *)efuse_reg_addr((0x2159 << 2)))) & ~(((1L << (1)) - 1) << (11))) | ((unsigned)((1) & ((1L << (1)) - 1)) << (11)));
  (*((volatile unsigned *)efuse_reg_addr((0x2159 << 2))) = ((*((volatile unsigned *)efuse_reg_addr((0x2159 << 2)))) & ~(((1L << (1)) - 1) << (11))) | ((unsigned)((0) & ((1L << (1)) - 1)) << (11)));
  (*((volatile unsigned *)efuse_reg_addr((0x2159 << 2))) = ((*((volatile unsigned *)efuse_reg_addr((0x2159 << 2)))) & ~(((1L << (8)) - 1) << (16))) | ((unsigned)((data) & ((1L << (8)) - 1)) << (16)));
  (*((volatile unsigned *)efuse_reg_addr((0x2159 << 2))) = ((*((volatile unsigned *)efuse_reg_addr((0x2159 << 2)))) & ~(((1L << (1)) - 1) << (13))) | ((unsigned)((1) & ((1L << (1)) - 1)) << (13)));
  (*((volatile unsigned *)efuse_reg_addr((0x2159 << 2))) = ((*((volatile unsigned *)efuse_reg_addr((0x2159 << 2)))) & ~(((1L << (1)) - 1) << (13))) | ((unsigned)((0) & ((1L << (1)) - 1)) << (13)));
  (*((volatile unsigned *)efuse_reg_addr((0x2159 << 2))));
  while ((*((volatile unsigned *)efuse_reg_addr((0x2159 << 2)))) & (1 << 14)) {
    udelay(1);
  }
  if (auto_wr_is_enabled == 0) {
    (*((volatile unsigned *)efuse_reg_addr((0x2159 << 2))) = ((*((volatile unsigned *)efuse_reg_addr((0x2159 << 2)))) & ~(((1L << (1)) - 1) << (12))) | ((unsigned)((0) & ((1L << (1)) - 1)) << (12)));
  }
}
```