user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<cmdCfgAdslSetting>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rsi,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%r12
  mov    %r12,%rdx
  lea    D48(%rip),%rsi
  mov    %rbp,%rdi
  call   <getArgValue@plt>
  cmp    $0x1,%eax
  sete   %bl
  movzbl %bl,%ebx
  shl    $0x3,%ebx
  mov    %r12,%rdx
  lea    D51(%rip),%rsi
  mov    %rbp,%rdi
  call   <getArgValue@plt>
  mov    %eax,%edx
  mov    %ebx,%eax
  or     $0x2,%eax
  cmp    $0x1,%edx
  cmove  %eax,%ebx
  mov    %r12,%rdx
  lea    D56(%rip),%rsi
  mov    %rbp,%rdi
  call   <getArgValue@plt>
  mov    %eax,%edx
  mov    %ebx,%eax
  or     $0x1,%eax
  cmp    $0x1,%edx
  cmove  %eax,%ebx
  mov    %r12,%rdx
  lea    D9(%rip),%rsi
  mov    %rbp,%rdi
  call   <getArgValue@plt>
  mov    %eax,%edx
  mov    %ebx,%eax
  or     $0x10,%eax
  cmp    $0x1,%edx
  cmove  %eax,%ebx
  mov    %r12,%rdx
  lea    D39(%rip),%rsi
  mov    %rbp,%rdi
  call   <getArgValue@plt>
  mov    %eax,%edx
  mov    %ebx,%eax
  or     $0x40,%eax
  cmp    $0x1,%edx
  cmove  %eax,%ebx
  mov    %r12,%rdx
  lea    D74(%rip),%rsi
  mov    %rbp,%rdi
  call   <getArgValue@plt>
  mov    %eax,%edx
  mov    %ebx,%eax
  or     $0x20,%eax
  cmp    $0x1,%edx
  cmove  %eax,%ebx
  mov    %r12,%rdx
  lea    D25(%rip),%rsi
  mov    %rbp,%rdi
  call   <getArgValue@plt>
  mov    %eax,%edx
  mov    %ebx,%eax
  or     $0x80,%al
  cmp    $0x1,%edx
  cmove  %eax,%ebx
  mov    %r12,%r13
  mov    %r12,%rdx
  lea    D24(%rip),%rsi
  mov    %rbp,%rdi
  call   <getArgValue@plt>
  cmp    $0x1,%eax
  sete   %r12b
  mov    %r13,%rdx
  lea    D81(%rip),%rsi
  mov    %rbp,%rdi
  call   <getArgValue@plt>
  mov    %eax,%edx
  mov    %r12d,%eax
  or     $0x2,%eax
  cmp    $0x1,%edx
  cmove  %eax,%r12d
  movsbl %r12b,%esi
  movzwl %bx,%edi
  call   <setAdslSettings@plt>
  cmp    $0xffffffff,%eax
  je     L19
L29:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L27
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L19:
  lea    D69(%rip),%rdi
  call   <printf@plt>
  jmp    L29
L27:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D48
type: string
name: disassemble_data
arguments: tag: D51
type: string
name: disassemble_data
arguments: tag: D56
type: string
name: disassemble_data
arguments: tag: D9
type: string
name: disassemble_data
arguments: tag: D39
type: string
name: disassemble_data
arguments: tag: D74
type: string
name: disassemble_data
arguments: tag: D25
type: string
name: disassemble_data
arguments: tag: D24
type: string
name: disassemble_data
arguments: tag: D81
type: string
name: disassemble_data
arguments: tag: D69
type: string

tool: D48: g.lite

tool: D51: g.dmt

tool: D56: t1.413

tool: D9: adsl2

tool: D39: adsl2+

tool: D74: annexl

tool: D25: annexm

tool: D24: bitswap

tool: D81: sra

tool: D69: Set ADSL error!


assistant: ```c
void cmdCfgAdslSetting(int cmdType, struct cmd_arg *pCmdArg) {
  unsigned short mode = 0;
  char olr = 0;
  int intVal;
  if (getArgValue(pCmdArg, "g.lite", (void *)&intVal) == 1) {
    mode |= 0x0008;
  }
  if (getArgValue(pCmdArg, "g.dmt", (void *)&intVal) == 1) {
    mode |= 0x0002;
  }
  if (getArgValue(pCmdArg, "t1.413", (void *)&intVal) == 1) {
    mode |= 0x0001;
  }
  if (getArgValue(pCmdArg, "adsl2", (void *)&intVal) == 1) {
    mode |= 0x0010;
  }
  if (getArgValue(pCmdArg, "adsl2+", (void *)&intVal) == 1) {
    mode |= 0x0040;
  }
  if (getArgValue(pCmdArg, "annexl", (void *)&intVal) == 1) {
    mode |= 0x0020;
  }
  if (getArgValue(pCmdArg, "annexm", (void *)&intVal) == 1) {
    mode |= 0x0080;
  }
  if (getArgValue(pCmdArg, "bitswap", (void *)&intVal) == 1) {
    olr |= 1;
  }
  if (getArgValue(pCmdArg, "sra", (void *)&intVal) == 1) {
    olr |= 2;
  }
  if (setAdslSettings(mode, olr) == -1) {
    printf("Set ADSL error!\n");
  }
}
```