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

```asm
<show_DECCIR>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  mov    %rdi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  movl   $0x3,0x4(%rsp)
  lea    0x4(%rsp),%rbp
  mov    $0x3b,%edx
  mov    %rbp,%rsi
  call   <scanto@plt>
  mov    %eax,%r12d
  mov    $0x3b,%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanto@plt>
  mov    %eax,%r13d
  mov    $0x3b,%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanto@plt>
  mov    %eax,%r14d
  mov    $0xa,%esi
  mov    $0x5,%edi
  call   <vt_move@plt>
  mov    %r14d,%ecx
  mov    %r13d,%edx
  mov    %r12d,%esi
  lea    D187(%rip),%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
  mov    $0x3b,%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scan_chr@plt>
  mov    %eax,%ebp
  mov    $0xa,%esi
  mov    $0x6,%edi
  call   <vt_move@plt>
  test   $0x40,%bpl
  jne    L138
L49:
  test   %ebp,%ebp
  jne    L261
L149:
  lea    0x4(%rsp),%rsi
  mov    $0x3b,%edx
  mov    %rbx,%rdi
  call   <scan_chr@plt>
  mov    %eax,%ebp
  mov    $0xa,%esi
  mov    $0x7,%edi
  call   <vt_move@plt>
  cmp    $0x40,%ebp
  je     L135
  cmp    $0x41,%ebp
  je     L88
  mov    %ebp,%esi
  lea    D9(%rip),%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
  jmp    L26
L138:
  mov    %ebp,%r12d
  and    $0xffffffbf,%r12d
  lea    D80(%rip),%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
  test   %r12d,%r12d
  je     L368
  test   $0x8,%bpl
  jne    L124
L24:
  mov    %r12d,%ebp
  test   $0x4,%r12b
  jne    L245
L216:
  test   $0x2,%bpl
  jne    L156
L256:
  test   $0x1,%bpl
  je     L49
  and    $0xfffffffe,%ebp
  lea    D66(%rip),%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
  jmp    L49
L368:
  lea    D177(%rip),%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
  mov    %r12d,%ebp
  jmp    L216
L124:
  and    $0xffffffb7,%ebp
  mov    %ebp,%r12d
  lea    D26(%rip),%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
  jmp    L24
L245:
  and    $0xfffffffb,%ebp
  lea    D233(%rip),%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
  jmp    L216
L156:
  and    $0xfffffffd,%ebp
  lea    D133(%rip),%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
  jmp    L256
L261:
  mov    %ebp,%esi
  lea    D15(%rip),%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
  jmp    L149
L135:
  lea    D218(%rip),%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
L26:
  lea    0x4(%rsp),%rsi
  mov    $0x3b,%edx
  mov    %rbx,%rdi
  call   <scan_chr@plt>
  mov    %eax,%ebp
  mov    $0xa,%esi
  mov    $0x8,%edi
  call   <vt_move@plt>
  test   $0x40,%bpl
  je     L115
  lea    D59(%rip),%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
  test   $0x8,%bpl
  jne    L59
  and    $0xffffffbf,%ebp
L102:
  test   $0x4,%bpl
  jne    L192
L110:
  test   $0x2,%bpl
  jne    L206
L203:
  test   $0x1,%bpl
  je     L341
  lea    D166(%rip),%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
  jmp    L341
L88:
  lea    D108(%rip),%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
  jmp    L26
L59:
  and    $0xffffffb7,%ebp
  lea    D60(%rip),%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
  jmp    L102
L192:
  and    $0xfffffffb,%ebp
  lea    D238(%rip),%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
  jmp    L110
L206:
  and    $0xfffffffd,%ebp
  lea    D0(%rip),%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
  jmp    L203
L115:
  mov    %ebp,%esi
  lea    D246(%rip),%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
L341:
  lea    0x4(%rsp),%rbp
  mov    $0x3b,%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanto@plt>
  mov    %eax,%r12d
  mov    $0x3b,%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanto@plt>
  mov    %eax,%r13d
  mov    $0xa,%esi
  mov    $0x9,%edi
  call   <vt_move@plt>
  mov    %r13d,%edx
  mov    %r12d,%esi
  lea    D204(%rip),%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
  mov    $0x3b,%edx
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scan_chr@plt>
  mov    %eax,%ebp
  mov    $0xa,%esi
  mov    $0xa,%edi
  call   <vt_move@plt>
  test   $0x40,%bpl
  je     L328
  lea    D247(%rip),%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
  test   $0x8,%bpl
  jne    L325
  and    $0xffffffbf,%ebp
L63:
  test   $0x4,%bpl
  jne    L361
L45:
  test   $0x2,%bpl
  jne    L271
L263:
  test   $0x1,%bpl
  je     L260
  lea    D252(%rip),%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
  jmp    L260
L325:
  and    $0xffffffb7,%ebp
  lea    D235(%rip),%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
  jmp    L63
L361:
  and    $0xfffffffb,%ebp
  lea    D27(%rip),%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
  jmp    L45
L271:
  and    $0xfffffffd,%ebp
  lea    D56(%rip),%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
  jmp    L263
L328:
  mov    %ebp,%esi
  lea    D147(%rip),%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
L260:
  mov    $0xa,%esi
  mov    $0xb,%edi
  call   <vt_move@plt>
  lea    D271(%rip),%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
  lea    D78(%rip),%rdi
  call   <println@plt>
  movslq 0x4(%rsp),%rax
  cmpb   $0x0,(%rbx,%rax,1)
  je     L320
  lea    0x4(%rsp),%r13
  lea    D242(%rip),%r12
  lea    D78(%rip),%rbp
L28:
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <parse_Sdesig@plt>
  mov    %rax,%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <show_result@plt>
  mov    %rbp,%rdi
  call   <println@plt>
  movslq 0x4(%rsp),%rax
  cmpb   $0x0,(%rbx,%rax,1)
  jne    L28
L320:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L82
  add    $0x10,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L82:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D187
datatype: string
name: disassemble_data
arguments: data_tag: D9
datatype: string
name: disassemble_data
arguments: data_tag: D80
datatype: string
name: disassemble_data
arguments: data_tag: D66
datatype: string
name: disassemble_data
arguments: data_tag: D177
datatype: string
name: disassemble_data
arguments: data_tag: D26
datatype: string
name: disassemble_data
arguments: data_tag: D233
datatype: string
name: disassemble_data
arguments: data_tag: D133
datatype: string
name: disassemble_data
arguments: data_tag: D15
datatype: string
name: disassemble_data
arguments: data_tag: D218
datatype: string
name: disassemble_data
arguments: data_tag: D59
datatype: string
name: disassemble_data
arguments: data_tag: D166
datatype: string
name: disassemble_data
arguments: data_tag: D108
datatype: string
name: disassemble_data
arguments: data_tag: D60
datatype: string
name: disassemble_data
arguments: data_tag: D238
datatype: string
name: disassemble_data
arguments: data_tag: D0
datatype: string
name: disassemble_data
arguments: data_tag: D246
datatype: string
name: disassemble_data
arguments: data_tag: D204
datatype: string
name: disassemble_data
arguments: data_tag: D247
datatype: string
name: disassemble_data
arguments: data_tag: D252
datatype: string
name: disassemble_data
arguments: data_tag: D235
datatype: string
name: disassemble_data
arguments: data_tag: D27
datatype: string
name: disassemble_data
arguments: data_tag: D56
datatype: string
name: disassemble_data
arguments: data_tag: D147
datatype: string
name: disassemble_data
arguments: data_tag: D271
datatype: string
name: disassemble_data
arguments: data_tag: D78
datatype: string
name: disassemble_data
arguments: data_tag: D242
datatype: string

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

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

tool: D80: Rendition:

tool: D66:  bold

tool: D177:  normal

tool: D26:  reverse

tool: D233:  blinking

tool: D133:  underline

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

tool: D218: Selective erase: off

tool: D59: Flags:

tool: D166:  origin-mode on

tool: D108: Selective erase: ON

tool: D60:  autowrap pending

tool: D238:  SS3 pending

tool: D0:  SS2 pending

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

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

tool: D247: Char set sizes:

tool: D252:  G0 is 96 char

tool: D235:  G3 is 96 char

tool: D27:  G2 is 96 char

tool: D56:  G1 is 96 char

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

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

tool: 

tool: D242:             %s


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