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

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

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