user: 请从给定的汇编指令推导出C源代码:

```asm
<config_power>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    $0x0,%eax
  call   <houston_Rev@plt>
  test   %eax,%eax
  jg     L3
  cmpl   $0x0,-0x14(%rbp)
  je     L31
  lea    -0x10(%rbp),%rax
  mov    $0x2,%edx
  mov    %rax,%rsi
  mov    $0xc,%edi
  call   <houston_ReadReg@plt>
  mov    -0x10(%rbp),%rax
  and    $0xfffffffffffffffc,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  mov    $0x2,%edx
  mov    %rax,%rsi
  mov    $0xc,%edi
  call   <houston_WriteReg@plt>
  mov    -0x10(%rbp),%rax
  or     $0x1,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  mov    $0x2,%edx
  mov    %rax,%rsi
  mov    $0xc,%edi
  call   <houston_WriteReg@plt>
  mov    -0x10(%rbp),%rax
  and    $0xfffffffffffffffe,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  mov    $0x2,%edx
  mov    %rax,%rsi
  mov    $0xc,%edi
  call   <houston_WriteReg@plt>
  jmp    L9
L31:
  lea    -0x10(%rbp),%rax
  mov    $0x2,%edx
  mov    %rax,%rsi
  mov    $0xc,%edi
  call   <houston_ReadReg@plt>
  mov    -0x10(%rbp),%rax
  or     $0x2,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  mov    $0x2,%edx
  mov    %rax,%rsi
  mov    $0xc,%edi
  call   <houston_WriteReg@plt>
  jmp    L9
L3:
  cmpl   $0x0,-0x14(%rbp)
  je     L61
  lea    -0x10(%rbp),%rax
  mov    $0x2,%edx
  mov    %rax,%rsi
  mov    $0xc,%edi
  call   <houston_ReadReg@plt>
  mov    -0x10(%rbp),%rax
  and    $0xffffffffffffffe4,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  mov    $0x2,%edx
  mov    %rax,%rsi
  mov    $0xc,%edi
  call   <houston_WriteReg@plt>
  mov    -0x10(%rbp),%rax
  or     $0x1,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  mov    $0x2,%edx
  mov    %rax,%rsi
  mov    $0xc,%edi
  call   <houston_WriteReg@plt>
  mov    -0x10(%rbp),%rax
  and    $0xfffffffffffffffe,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  mov    $0x2,%edx
  mov    %rax,%rsi
  mov    $0xc,%edi
  call   <houston_WriteReg@plt>
  lea    -0x10(%rbp),%rax
  mov    $0x2,%edx
  mov    %rax,%rsi
  mov    $0x34,%edi
  call   <houston_ReadReg@plt>
  mov    -0x10(%rbp),%rax
  and    $0x7f,%ah
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  mov    $0x2,%edx
  mov    %rax,%rsi
  mov    $0x34,%edi
  call   <houston_WriteReg@plt>
  jmp    L9
L61:
  lea    -0x10(%rbp),%rax
  mov    $0x2,%edx
  mov    %rax,%rsi
  mov    $0xc,%edi
  call   <houston_ReadReg@plt>
  mov    -0x10(%rbp),%rax
  or     $0x1a,%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  mov    $0x2,%edx
  mov    %rax,%rsi
  mov    $0xc,%edi
  call   <houston_WriteReg@plt>
  lea    -0x10(%rbp),%rax
  mov    $0x2,%edx
  mov    %rax,%rsi
  mov    $0x34,%edi
  call   <houston_ReadReg@plt>
  mov    -0x10(%rbp),%rax
  or     $0x80,%ah
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  mov    $0x2,%edx
  mov    %rax,%rsi
  mov    $0x34,%edi
  call   <houston_WriteReg@plt>
L9:
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L33
  call   <__stack_chk_fail@plt>
L33:
  leave
  ret
```

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