user: 请将以下的汇编代码转换成C语言代码:

```asm
<config_power>:
  endbr64
  push   %rbx
  sub    $0x10,%rsp
  mov    %edi,%ebx
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <houston_Rev@plt>
  test   %eax,%eax
  jle    L16
  test   %ebx,%ebx
  je     L68
  mov    %rsp,%rbx
  mov    $0x2,%edx
  mov    %rbx,%rsi
  mov    $0xc,%edi
  call   <houston_ReadReg@plt>
  mov    (%rsp),%rsi
  and    $0xffffffffffffffe4,%rsi
  mov    %rsi,(%rsp)
  mov    $0x2,%edx
  mov    $0xc,%edi
  call   <houston_WriteReg@plt>
  mov    (%rsp),%rsi
  or     $0x1,%rsi
  mov    %rsi,(%rsp)
  mov    $0x2,%edx
  mov    $0xc,%edi
  call   <houston_WriteReg@plt>
  mov    (%rsp),%rsi
  and    $0xfffffffffffffffe,%rsi
  mov    %rsi,(%rsp)
  mov    $0x2,%edx
  mov    $0xc,%edi
  call   <houston_WriteReg@plt>
  mov    $0x2,%edx
  mov    %rbx,%rsi
  mov    $0x34,%edi
  call   <houston_ReadReg@plt>
  mov    (%rsp),%rsi
  and    $0xffffffffffff7fff,%rsi
  mov    %rsi,(%rsp)
  mov    $0x2,%edx
  mov    $0x34,%edi
  call   <houston_WriteReg@plt>
L45:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L28
  add    $0x10,%rsp
  pop    %rbx
  ret
L16:
  test   %ebx,%ebx
  je     L50
  mov    %rsp,%rsi
  mov    $0x2,%edx
  mov    $0xc,%edi
  call   <houston_ReadReg@plt>
  mov    (%rsp),%rsi
  and    $0xfffffffffffffffc,%rsi
  mov    %rsi,(%rsp)
  mov    $0x2,%edx
  mov    $0xc,%edi
  call   <houston_WriteReg@plt>
  mov    (%rsp),%rsi
  or     $0x1,%rsi
  mov    %rsi,(%rsp)
  mov    $0x2,%edx
  mov    $0xc,%edi
  call   <houston_WriteReg@plt>
  mov    (%rsp),%rsi
  and    $0xfffffffffffffffe,%rsi
  mov    %rsi,(%rsp)
  mov    $0x2,%edx
  mov    $0xc,%edi
  call   <houston_WriteReg@plt>
  jmp    L45
L50:
  mov    %rsp,%rsi
  mov    $0x2,%edx
  mov    $0xc,%edi
  call   <houston_ReadReg@plt>
  mov    (%rsp),%rsi
  or     $0x2,%rsi
  mov    %rsi,(%rsp)
  mov    $0x2,%edx
  mov    $0xc,%edi
  call   <houston_WriteReg@plt>
  jmp    L45
L68:
  mov    %rsp,%rbx
  mov    $0x2,%edx
  mov    %rbx,%rsi
  mov    $0xc,%edi
  call   <houston_ReadReg@plt>
  mov    (%rsp),%rsi
  or     $0x1a,%rsi
  mov    %rsi,(%rsp)
  mov    $0x2,%edx
  mov    $0xc,%edi
  call   <houston_WriteReg@plt>
  mov    $0x2,%edx
  mov    %rbx,%rsi
  mov    $0x34,%edi
  call   <houston_ReadReg@plt>
  mov    (%rsp),%rsi
  or     $0x8000,%rsi
  mov    %rsi,(%rsp)
  mov    $0x2,%edx
  mov    $0x34,%edi
  call   <houston_WriteReg@plt>
  jmp    L45
L28:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void config_power(int on) {
  unsigned long reg;
  if (houston_Rev() < 1) {
    if (on) {
      houston_ReadReg(0x0C, &reg, 2);
      reg &= ~(0x0002 | 0x0001);
      houston_WriteReg(0x0C, reg, 2);
      reg |= 0x0001;
      houston_WriteReg(0x0C, reg, 2);
      reg &= ~0x0001;
      houston_WriteReg(0x0C, reg, 2);
    } else {
      houston_ReadReg(0x0C, &reg, 2);
      reg |= 0x0002;
      houston_WriteReg(0x0C, reg, 2);
    }
    return;
  }
  if (on) {
    houston_ReadReg(0x0C, &reg, 2);
    reg &= ~(0x0002 | 0x0001 | 0x0008 | 0x0010);
    houston_WriteReg(0x0C, reg, 2);
    reg |= 0x0001;
    houston_WriteReg(0x0C, reg, 2);
    reg &= ~0x0001;
    houston_WriteReg(0x0C, reg, 2);
    houston_ReadReg(0x34, &reg, 2);
    reg &= ~0x8000;
    houston_WriteReg(0x34, reg, 2);
  } else {
    houston_ReadReg(0x0C, &reg, 2);
    reg |= (0x0002 | 0x0008 | 0x0010);
    houston_WriteReg(0x0C, reg, 2);
    houston_ReadReg(0x34, &reg, 2);
    reg |= 0x8000;
    houston_WriteReg(0x34, reg, 2);
  }
}
```