user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<__efuse_write_byte>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  movq   $0x0,-0x18(%rbp)
  mov    $0x8564,%edi
  call   <efuse_reg_addr@plt>
  mov    (%rax),%eax
  and    $0x1000,%eax
  test   %eax,%eax
  je     L31
  movq   $0x1,-0x18(%rbp)
  jmp    L3
L31:
  mov    $0x8564,%edi
  call   <efuse_reg_addr@plt>
  mov    (%rax),%ebx
  mov    $0x8564,%edi
  call   <efuse_reg_addr@plt>
  mov    %rax,%rdx
  mov    %ebx,%eax
  or     $0x10,%ah
  mov    %eax,(%rdx)
L3:
  mov    $0x8564,%edi
  call   <efuse_reg_addr@plt>
  mov    (%rax),%eax
  and    $0xfffffc00,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  and    $0x3ff,%eax
  mov    %edx,%ebx
  or     %eax,%ebx
  mov    $0x8564,%edi
  call   <efuse_reg_addr@plt>
  mov    %ebx,%edx
  mov    %edx,(%rax)
  mov    $0x8564,%edi
  call   <efuse_reg_addr@plt>
  mov    (%rax),%ebx
  mov    $0x8564,%edi
  call   <efuse_reg_addr@plt>
  mov    %rax,%rdx
  mov    %ebx,%eax
  or     $0x8,%ah
  mov    %eax,(%rdx)
  mov    $0x8564,%edi
  call   <efuse_reg_addr@plt>
  mov    (%rax),%ebx
  mov    $0x8564,%edi
  call   <efuse_reg_addr@plt>
  mov    %rax,%rdx
  mov    %ebx,%eax
  and    $0xf7,%ah
  mov    %eax,(%rdx)
  mov    $0x8564,%edi
  call   <efuse_reg_addr@plt>
  mov    (%rax),%eax
  and    $0xff00ffff,%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  shl    $0x10,%eax
  and    $0xff0000,%eax
  mov    %edx,%ebx
  or     %eax,%ebx
  mov    $0x8564,%edi
  call   <efuse_reg_addr@plt>
  mov    %ebx,%edx
  mov    %edx,(%rax)
  mov    $0x8564,%edi
  call   <efuse_reg_addr@plt>
  mov    (%rax),%ebx
  mov    $0x8564,%edi
  call   <efuse_reg_addr@plt>
  mov    %rax,%rdx
  mov    %ebx,%eax
  or     $0x20,%ah
  mov    %eax,(%rdx)
  mov    $0x8564,%edi
  call   <efuse_reg_addr@plt>
  mov    (%rax),%ebx
  mov    $0x8564,%edi
  call   <efuse_reg_addr@plt>
  mov    %rax,%rdx
  mov    %ebx,%eax
  and    $0xdf,%ah
  mov    %eax,(%rdx)
  mov    $0x8564,%edi
  call   <efuse_reg_addr@plt>
  mov    (%rax),%eax
  jmp    L19
L16:
  mov    $0x1,%edi
  call   <udelay@plt>
L19:
  mov    $0x8564,%edi
  call   <efuse_reg_addr@plt>
  mov    (%rax),%eax
  and    $0x4000,%eax
  test   %eax,%eax
  jne    L16
  cmpq   $0x0,-0x18(%rbp)
  jne    L24
  mov    $0x8564,%edi
  call   <efuse_reg_addr@plt>
  mov    (%rax),%ebx
  mov    $0x8564,%edi
  call   <efuse_reg_addr@plt>
  mov    %rax,%rdx
  mov    %ebx,%eax
  and    $0xef,%ah
  mov    %eax,(%rdx)
L24:
  nop
  mov    -0x8(%rbp),%rbx
  leave
  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)));
  }
}
```