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

```asm
<main>:
  endbr64
  push   %r14
  lea    D20(%rip),%rdi
  lea    D38(%rip),%r14
  push   %r13
  lea    D32(%rip),%r13
  push   %r12
  lea    D88(%rip),%r12
  push   %rbp
  push   %rbx
  lea    D19(%rip),%rbx
  sub    $0x130,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x128(%rsp)
  lea    D129(%rip),%rax
  lea    0xc(%rsp),%rbp
  mov    %rax,0x10(%rsp)
  lea    D36(%rip),%rax
  mov    %rax,0x18(%rsp)
  lea    D124(%rip),%rax
  mov    %rax,0x20(%rsp)
  lea    D109(%rip),%rax
  mov    %rax,0x28(%rsp)
  lea    D100(%rip),%rax
  mov    %rax,0x30(%rsp)
  lea    D22(%rip),%rax
  mov    %rax,0x38(%rsp)
  lea    D122(%rip),%rax
  mov    %rax,0x40(%rsp)
  lea    D117(%rip),%rax
  mov    %rax,0xa0(%rsp)
  lea    D106(%rip),%rax
  mov    %rax,0xa8(%rsp)
  lea    D60(%rip),%rax
  mov    %rax,0xb0(%rsp)
  lea    D107(%rip),%rax
  mov    %rax,0xb8(%rsp)
  call   <puts@plt>
  nopl   0x0(%rax)
L45:
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  cmp    $0x1,%eax
  jne    L63
L10:
  mov    0xc(%rsp),%eax
  mov    %eax,%edx
  sar    $0xa,%edx
  cmp    $0x6,%edx
  je     L47
  cmp    $0x10,%edx
  je     L7
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  cmp    $0x1,%eax
  je     L10
L63:
  mov    0x128(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L35
  add    $0x130,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopw   0x0(%rax,%rax,1)
L7:
  mov    %eax,%edx
  mov    %r12,%rdi
  and    $0x3,%edx
  mov    0xa0(%rsp,%rdx,8),%rcx
  mov    %eax,%edx
  sar    $0x6,%eax
  sar    $0x3,%edx
  and    $0x4,%eax
  and    $0x3,%edx
  mov    0x20(%rsp,%rax,8),%rsi
  xor    %eax,%eax
  mov    0xa0(%rsp,%rdx,8),%rdx
  call   <printf@plt>
  jmp    L45
  nop
L47:
  mov    %eax,%edx
  mov    %eax,%ecx
  mov    %r14,%rdi
  sar    $0x3,%edx
  and    $0x3,%ecx
  and    $0x3,%edx
  mov    0xa0(%rsp,%rcx,8),%r8
  mov    0xa0(%rsp,%rdx,8),%r9
  mov    %eax,%edx
  sar    $0x9,%eax
  sar    $0x6,%edx
  and    $0x1,%eax
  and    $0x3,%edx
  mov    0x10(%rsp,%rax,8),%rsi
  mov    %r9,%rcx
  xor    %eax,%eax
  mov    0xa0(%rsp,%rdx,8),%rdx
  call   <printf@plt>
  jmp    L45
L35:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D20
type_guessed: string
name: retrieve_data
arguments: label: D38
type_guessed: string
name: retrieve_data
arguments: label: D32
type_guessed: string
name: retrieve_data
arguments: label: D88
type_guessed: string
name: retrieve_data
arguments: label: D19
type_guessed: string
name: retrieve_data
arguments: label: D129
type_guessed: string
name: retrieve_data
arguments: label: D36
type_guessed: string
name: retrieve_data
arguments: label: D124
type_guessed: string
name: retrieve_data
arguments: label: D109
type_guessed: string
name: retrieve_data
arguments: label: D100
type_guessed: string
name: retrieve_data
arguments: label: D22
type_guessed: string
name: retrieve_data
arguments: label: D122
type_guessed: string
name: retrieve_data
arguments: label: D117
type_guessed: string
name: retrieve_data
arguments: label: D106
type_guessed: string
name: retrieve_data
arguments: label: D60
type_guessed: string
name: retrieve_data
arguments: label: D107
type_guessed: string

tool: D20: .text
.syntax unified
.thumb

tool: D38: 	 %s, %s, %s, %s 


tool: D32: not legal number

tool: D88: 	 %s, %s, %s


tool: D19: %x

tool: D129: adds

tool: D36: subs

tool: D124: ands

tool: D109: eors

tool: D100: lsls

tool: D22: lsrs

tool: D122: asrs

tool: D117: r0

tool: D106: r1

tool: D60: r2

tool: D107: r3

assistant: ```c
int main() {
  int inst;
  char *opcodes1[] = {"adds", "subs"};
  char *opcodes2[] = {"ands", "eors", "lsls", "lsrs", "asrs", "adcs", "sbcs", "rors", "tst", "rsbs", "cmp", "cmn", "orrs", "muls", "bics", "mvns"};
  char *regnames[] = {"r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "sp", "lr", "pc"};
  printf(".text\n.syntax unified\n.thumb\n");
  while (scanf("%x", &inst) == 1) {
    switch (inst >> 10) {
    case 6:
      printf("\t %s, %s, %s, %s \n", opcodes1[(((inst) >> 9) & 0x1)], regnames[(((inst) >> 6) & 0x3)], regnames[(((inst) >> 3) & 0x3)], regnames[(inst & 0x3)]);
      break;
    case 16:
      printf("\t %s, %s, %s\n", opcodes2[(((inst) >> 6) & 0x4)], regnames[(((inst) >> 3) & 0x3)], regnames[(inst & 0x3)]);
      break;
    default:
      printf("not legal number");
      break;
    }
  }
}
```