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

```asm
<show_DECCIR>:
  endbr64
  push   %r14
  mov    $0x3b,%edx
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  lea    0x4(%rsp),%rbp
  movl   $0x3,0x4(%rsp)
  mov    %rbp,%rsi
  call   <scanto@plt>
  mov    $0x3b,%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  mov    %eax,%r12d
  call   <scanto@plt>
  mov    $0x3b,%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  mov    %eax,%r13d
  call   <scanto@plt>
  mov    $0xa,%esi
  mov    $0x5,%edi
  mov    %eax,%r14d
  call   <vt_move@plt>
  mov    %r12d,%esi
  mov    %r14d,%ecx
  mov    %r13d,%edx
  lea    D17(%rip),%rdi
  xor    %eax,%eax
  call   <show_result@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  mov    $0x3b,%edx
  call   <scan_chr@plt>
  mov    $0xa,%esi
  mov    $0x6,%edi
  mov    %eax,%r12d
  call   <vt_move@plt>
  test   $0x40,%r12b
  jne    L301
L245:
  test   %r12d,%r12d
  je     L264
  mov    %r12d,%esi
  lea    D71(%rip),%rdi
  xor    %eax,%eax
  call   <show_result@plt>
L264:
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  mov    $0x3b,%edx
  call   <scan_chr@plt>
  mov    $0xa,%esi
  mov    $0x7,%edi
  mov    %eax,%r12d
  call   <vt_move@plt>
  cmp    $0x40,%r12d
  je     L156
  cmp    $0x41,%r12d
  je     L262
  mov    %r12d,%esi
  lea    D221(%rip),%rdi
  xor    %eax,%eax
  call   <show_result@plt>
L191:
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  mov    $0x3b,%edx
  call   <scan_chr@plt>
  mov    $0xa,%esi
  mov    $0x8,%edi
  mov    %eax,%r12d
  call   <vt_move@plt>
  test   $0x40,%r12b
  je     L3
  xor    %eax,%eax
  lea    D80(%rip),%rdi
  call   <show_result@plt>
  test   $0x8,%r12b
  jne    L49
  and    $0xffffffbf,%r12d
  test   $0x4,%r12b
  jne    L40
L346:
  test   $0x2,%r12b
  jne    L336
L182:
  and    $0x1,%r12d
  je     L226
  lea    D253(%rip),%rdi
  xor    %eax,%eax
  call   <show_result@plt>
  jmp    L226
  nopl   0x0(%rax,%rax,1)
L3:
  mov    %r12d,%esi
  lea    D59(%rip),%rdi
  xor    %eax,%eax
  call   <show_result@plt>
L226:
  mov    $0x3b,%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanto@plt>
  mov    $0x3b,%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  mov    %eax,%r12d
  call   <scanto@plt>
  mov    $0xa,%esi
  mov    $0x9,%edi
  mov    %eax,%r13d
  call   <vt_move@plt>
  mov    %r12d,%esi
  mov    %r13d,%edx
  xor    %eax,%eax
  lea    D8(%rip),%rdi
  call   <show_result@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  mov    $0x3b,%edx
  call   <scan_chr@plt>
  mov    $0xa,%esi
  mov    $0xa,%edi
  mov    %eax,%r12d
  call   <vt_move@plt>
  test   $0x40,%r12b
  je     L69
  xor    %eax,%eax
  lea    D205(%rip),%rdi
  call   <show_result@plt>
  test   $0x8,%r12b
  jne    L36
  and    $0xffffffbf,%r12d
  test   $0x4,%r12b
  jne    L150
L186:
  test   $0x2,%r12b
  jne    L269
L27:
  and    $0x1,%r12d
  je     L326
  lea    D168(%rip),%rdi
  xor    %eax,%eax
  call   <show_result@plt>
  jmp    L326
L69:
  mov    %r12d,%esi
  lea    D197(%rip),%rdi
  xor    %eax,%eax
  call   <show_result@plt>
L326:
  mov    $0xa,%esi
  mov    $0xb,%edi
  lea    D207(%rip),%r12
  call   <vt_move@plt>
  lea    D55(%rip),%rdi
  xor    %eax,%eax
  call   <show_result@plt>
  mov    %r12,%rdi
  call   <println@plt>
  movslq 0x4(%rsp),%rax
  cmpb   $0x0,(%rbx,%rax,1)
  je     L151
  lea    D76(%rip),%r13
  nop
L210:
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <parse_Sdesig@plt>
  mov    %r13,%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <show_result@plt>
  mov    %r12,%rdi
  call   <println@plt>
  movslq 0x4(%rsp),%rax
  cmpb   $0x0,(%rbx,%rax,1)
  jne    L210
L151:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L45
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax)
L156:
  lea    D18(%rip),%rdi
  xor    %eax,%eax
  call   <show_result@plt>
  jmp    L191
  nopl   0x0(%rax,%rax,1)
L262:
  lea    D216(%rip),%rdi
  xor    %eax,%eax
  call   <show_result@plt>
  jmp    L191
  nopl   0x0(%rax,%rax,1)
L301:
  mov    %r12d,%r13d
  xor    %eax,%eax
  lea    D136(%rip),%rdi
  and    $0xffffffbf,%r13d
  call   <show_result@plt>
  test   %r13d,%r13d
  je     L188
  test   $0x8,%r12b
  jne    L22
  mov    %r13d,%r12d
L74:
  test   $0x4,%r12b
  je     L118
  lea    D181(%rip),%rdi
  xor    %eax,%eax
  and    $0xfffffffb,%r12d
  call   <show_result@plt>
L118:
  test   $0x2,%r12b
  je     L237
  lea    D258(%rip),%rdi
  xor    %eax,%eax
  and    $0xfffffffd,%r12d
  call   <show_result@plt>
L237:
  test   $0x1,%r12b
  je     L245
  lea    D21(%rip),%rdi
  xor    %eax,%eax
  and    $0xfffffffe,%r12d
  call   <show_result@plt>
  jmp    L245
  nopl   0x0(%rax)
L49:
  and    $0xffffffb7,%r12d
  xor    %eax,%eax
  lea    D95(%rip),%rdi
  call   <show_result@plt>
  test   $0x4,%r12b
  je     L346
L40:
  and    $0xfffffffb,%r12d
  xor    %eax,%eax
  lea    D155(%rip),%rdi
  call   <show_result@plt>
  test   $0x2,%r12b
  je     L182
L336:
  lea    D60(%rip),%rdi
  xor    %eax,%eax
  and    $0xfffffffd,%r12d
  call   <show_result@plt>
  jmp    L182
  nop
L36:
  and    $0xffffffb7,%r12d
  xor    %eax,%eax
  lea    D13(%rip),%rdi
  call   <show_result@plt>
  test   $0x4,%r12b
  je     L186
L150:
  and    $0xfffffffb,%r12d
  xor    %eax,%eax
  lea    D121(%rip),%rdi
  call   <show_result@plt>
  test   $0x2,%r12b
  je     L27
L269:
  lea    D68(%rip),%rdi
  xor    %eax,%eax
  and    $0xfffffffd,%r12d
  call   <show_result@plt>
  jmp    L27
  nop
L22:
  lea    D129(%rip),%rdi
  xor    %eax,%eax
  and    $0xffffffb7,%r12d
  call   <show_result@plt>
  jmp    L74
  nopw   0x0(%rax,%rax,1)
L188:
  lea    D224(%rip),%rdi
  xor    %eax,%eax
  call   <show_result@plt>
  jmp    L264
L45:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D17
datatype: string
name: retrieve_data
arguments: label: D71
datatype: string
name: retrieve_data
arguments: label: D221
datatype: string
name: retrieve_data
arguments: label: D80
datatype: string
name: retrieve_data
arguments: label: D253
datatype: string
name: retrieve_data
arguments: label: D59
datatype: string
name: retrieve_data
arguments: label: D8
datatype: string
name: retrieve_data
arguments: label: D205
datatype: string
name: retrieve_data
arguments: label: D168
datatype: string
name: retrieve_data
arguments: label: D197
datatype: string
name: retrieve_data
arguments: label: D207
datatype: string
name: retrieve_data
arguments: label: D55
datatype: string
name: retrieve_data
arguments: label: D76
datatype: string
name: retrieve_data
arguments: label: D18
datatype: string
name: retrieve_data
arguments: label: D216
datatype: string
name: retrieve_data
arguments: label: D136
datatype: string
name: retrieve_data
arguments: label: D181
datatype: string
name: retrieve_data
arguments: label: D258
datatype: string
name: retrieve_data
arguments: label: D21
datatype: string
name: retrieve_data
arguments: label: D95
datatype: string
name: retrieve_data
arguments: label: D155
datatype: string
name: retrieve_data
arguments: label: D60
datatype: string
name: retrieve_data
arguments: label: D13
datatype: string
name: retrieve_data
arguments: label: D121
datatype: string
name: retrieve_data
arguments: label: D68
datatype: string
name: retrieve_data
arguments: label: D129
datatype: string
name: retrieve_data
arguments: label: D224
datatype: string

tool: D17: Cursor (%d,%d), page %d

tool: D71:  -> unknown rendition (0x%x)

tool: D221: Selective erase: unknown (0x%x)

tool: D80: Flags:

tool: D253:  origin-mode on

tool: D59:  -> unknown flag (0x%x)

tool: D8: Char set in GL: G%d, Char set in GR: G%d

tool: D205: Char set sizes:

tool: D168:  G0 is 96 char

tool: D197:  -> unknown char set size (0x%x)

tool: 

tool: D55: Character set idents for G0...G3: 

tool: D76:             %s


tool: D18: Selective erase: off

tool: D216: Selective erase: ON

tool: D136: Rendition:

tool: D181:  blinking

tool: D258:  underline

tool: D21:  bold

tool: D95:  autowrap pending

tool: D155:  SS3 pending

tool: D60:  SS2 pending

tool: D13:  G3 is 96 char

tool: D121:  G2 is 96 char

tool: D68:  G1 is 96 char

tool: D129:  reverse

tool: D224:  normal

assistant: ```c
void show_DECCIR(char *report) {
  int Pr, Pc, Pp, Srend, Satt, Sflag, Pgl, Pgr, Scss;
  int pos = 3;
  int n;
  Pr = scanto(report, &pos, ';');
  Pc = scanto(report, &pos, ';');
  Pp = scanto(report, &pos, ';');
  vt_move(5, 10);
  show_result("Cursor (%d,%d), page %d", Pr, Pc, Pp);
  Srend = scan_chr(report, &pos, ';');
  vt_move(6, 10);
  if (Srend & 0x40) {
    if (Srend & 0x40) {
      Srend &= ~0x40;
      show_result("Rendition:");
    };
    if (Srend == 0)
      show_result(" normal");
    if (Srend & 0x08) {
      Srend &= ~0x08;
      show_result(" reverse");
    };
    if (Srend & 0x04) {
      Srend &= ~0x04;
      show_result(" blinking");
    };
    if (Srend & 0x02) {
      Srend &= ~0x02;
      show_result(" underline");
    };
    if (Srend & 0x01) {
      Srend &= ~0x01;
      show_result(" bold");
    };
  }
  if (Srend)
    show_result(" -> unknown rendition (0x%x)", Srend);
  Satt = scan_chr(report, &pos, ';');
  vt_move(7, 10);
  switch (Satt) {
  case 0x40:
    show_result("Selective erase: off");
    break;
  case 0x41:
    show_result("Selective erase: ON");
    break;
  default:
    show_result("Selective erase: unknown (0x%x)", Satt);
  }
  Sflag = scan_chr(report, &pos, ';');
  vt_move(8, 10);
  if (Sflag & 0x40) {
    if (Sflag & 0x40) {
      Sflag &= ~0x40;
      show_result("Flags:");
    };
    if (Sflag & 0x08) {
      Sflag &= ~0x08;
      show_result(" autowrap pending");
    };
    if (Sflag & 0x04) {
      Sflag &= ~0x04;
      show_result(" SS3 pending");
    };
    if (Sflag & 0x02) {
      Sflag &= ~0x02;
      show_result(" SS2 pending");
    };
    if (Sflag & 0x01) {
      Sflag &= ~0x01;
      show_result(" origin-mode on");
    };
  } else {
    show_result(" -> unknown flag (0x%x)", Sflag);
  }
  Pgl = scanto(report, &pos, ';');
  Pgr = scanto(report, &pos, ';');
  vt_move(9, 10);
  show_result("Char set in GL: G%d, Char set in GR: G%d", Pgl, Pgr);
  Scss = scan_chr(report, &pos, ';');
  vt_move(10, 10);
  if (Scss & 0x40) {
    if (Scss & 0x40) {
      Scss &= ~0x40;
      show_result("Char set sizes:");
    };
    if (Scss & 0x08) {
      Scss &= ~0x08;
      show_result(" G3 is 96 char");
    };
    if (Scss & 0x04) {
      Scss &= ~0x04;
      show_result(" G2 is 96 char");
    };
    if (Scss & 0x02) {
      Scss &= ~0x02;
      show_result(" G1 is 96 char");
    };
    if (Scss & 0x01) {
      Scss &= ~0x01;
      show_result(" G0 is 96 char");
    };
  } else {
    show_result(" -> unknown char set size (0x%x)", Scss);
  }
  n = 11;
  vt_move(n, 10);
  show_result("Character set idents for G0...G3: ");
  println("");
  while (report[pos] != '\0') {
    const char *result = parse_Sdesig(report, &pos);
    show_result("            %s\n", result);
    println("");
  }
}
```