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

```asm
<compile1>:
  endbr64
  push   %r12
  mov    %edx,%r12d
  mov    $0x3,%edx
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rsi,%rbx
  lea    D68(%rip),%rsi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L50
  cmpb   $0x41,0x4(%rbp)
  lea    0x7(%rbp),%rdi
  je     L65
  movb   $0xbb,(%rbx)
  call   <intbracket@plt>
  mov    %eax,0x1(%rbx)
L113:
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax)
L65:
  movb   $0xb8,(%rbx)
  call   <intbracket@plt>
  mov    %eax,0x1(%rbx)
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax,%rax,1)
L50:
  mov    $0x3,%edx
  lea    D16(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L55
  mov    $0x3,%edx
  lea    D69(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L120
  movb   $0x2d,(%rbx)
  lea    0x7(%rbp),%rdi
  call   <intbracket@plt>
  mov    %eax,0x1(%rbx)
  jmp    L113
  nopl   0x0(%rax,%rax,1)
L55:
  movb   $0x5,(%rbx)
  lea    0x7(%rbp),%rdi
  call   <intbracket@plt>
  mov    %eax,0x1(%rbx)
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax)
L120:
  mov    $0x3,%edx
  lea    D31(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L151
  movl   $0x9090d801,(%rbx)
  movb   $0x90,0x4(%rbx)
  jmp    L113
  nopl   0x0(%rax,%rax,1)
L151:
  mov    $0x3,%edx
  lea    D14(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L167
  movb   $0x3d,(%rbx)
  lea    0x7(%rbp),%rdi
  call   <intbracket@plt>
  mov    %eax,0x1(%rbx)
  jmp    L113
  nopl   (%rax)
L167:
  mov    $0x3,%edx
  lea    D9(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L137
  mov    $0xffff8b41,%edx
  mov    %dx,(%rbx)
L63:
  cmpb   $0x41,0x4(%rbp)
  mov    $0x5c,%edx
  movb   $0x24,0x3(%rbx)
  lea    0x7(%rbp),%rdi
  mov    $0x44,%eax
  cmovne %edx,%eax
  mov    %al,0x2(%rbx)
  call   <intbracket@plt>
  shl    $0x2,%eax
  mov    %al,0x4(%rbx)
  jmp    L113
L137:
  mov    $0x3,%edx
  lea    D13(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L56
  mov    $0xffff8941,%eax
  mov    %ax,(%rbx)
  jmp    L63
L56:
  mov    $0x3,%edx
  lea    D106(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L83
  movl   $0xebc301e2,(%rbx)
L189:
  lea    0x4(%rbp),%rdi
  call   <intbracket@plt>
  mov    $0x5,%edx
  sub    %r12d,%eax
  sub    $0x1,%eax
  imul   %edx,%eax
  mov    %al,0x4(%rbx)
  jmp    L113
L83:
  mov    $0x3,%edx
  lea    D87(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L145
  movl   $0x74c301e2,(%rbx)
  jmp    L189
L145:
  mov    $0x3,%edx
  lea    D117(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L127
  movl   $0x75c301e2,(%rbx)
  jmp    L189
L127:
  mov    $0x3,%edx
  lea    D32(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncmp@plt>
  test   %rax,%rax
  jne    L123
  movb   $0xc3,(%rbx)
  jmp    L113
L123:
  pop    %rbx
  mov    %rbp,%rsi
  lea    D67(%rip),%rdi
  pop    %rbp
  pop    %r12
  jmp    1080 <printf@plt>
```

tool_calls: name: parse_data
arguments: label: D68
datatype: string
name: parse_data
arguments: label: D16
datatype: string
name: parse_data
arguments: label: D69
datatype: string
name: parse_data
arguments: label: D31
datatype: string
name: parse_data
arguments: label: D14
datatype: string
name: parse_data
arguments: label: D9
datatype: string
name: parse_data
arguments: label: D13
datatype: string
name: parse_data
arguments: label: D106
datatype: string
name: parse_data
arguments: label: D87
datatype: string
name: parse_data
arguments: label: D117
datatype: string
name: parse_data
arguments: label: D32
datatype: string
name: parse_data
arguments: label: D67
datatype: string

tool: D68: MOV

tool: D16: ADD

tool: D69: SUB

tool: D31: SUM

tool: D14: CMP

tool: D9: LDR

tool: D13: STR

tool: D106: JMP

tool: D87: JEQ

tool: D117: JNE

tool: D32: RET

tool: D67: Unknown instr: %s


assistant: ```c
void compile1(const char *cmd, char *out, int instrno) {
  if (strncmp(cmd, "MOV", 3) == 0) {
    if (cmd[4] == 'A') {
      out[0] = 0xb8;
      *((int *)(out + 1)) = intbracket(cmd + 7);
    } else {
      out[0] = 0xbb;
      *((int *)(out + 1)) = intbracket(cmd + 7);
    }
  } else if (strncmp(cmd, "ADD", 3) == 0) {
    out[0] = 0x05;
    *((int *)(out + 1)) = intbracket(cmd + 7);
  } else if (strncmp(cmd, "SUB", 3) == 0) {
    out[0] = 0x2d;
    *((int *)(out + 1)) = intbracket(cmd + 7);
  } else if (strncmp(cmd, "SUM", 3) == 0) {
    out[0] = 0x01;
    out[1] = 0xd8;
    out[2] = 0x90;
    out[3] = 0x90;
    out[4] = 0x90;
  } else if (strncmp(cmd, "CMP", 3) == 0) {
    out[0] = 0x3d;
    *((int *)(out + 1)) = intbracket(cmd + 7);
  } else if (strncmp(cmd, "LDR", 3) == 0) {
    out[0] = 0x41;
    out[1] = 0x8b;
    if (cmd[4] == 'A') {
      out[2] = 0x44;
    } else {
      out[2] = 0x5c;
    }
    out[3] = 0x24;
    out[4] = 4 * intbracket(cmd + 7);
  } else if (strncmp(cmd, "STR", 3) == 0) {
    out[0] = 0x41;
    out[1] = 0x89;
    if (cmd[4] == 'A') {
      out[2] = 0x44;
    } else {
      out[2] = 0x5c;
    }
    out[3] = 0x24;
    out[4] = 4 * intbracket(cmd + 7);
  } else if (strncmp(cmd, "JMP", 3) == 0) {
    out[0] = 0xe2;
    out[1] = 0x01;
    out[2] = 0xc3;
    out[3] = 0xeb;
    out[4] = (intbracket(cmd + 4) - instrno) * 5 - 5;
  } else if (strncmp(cmd, "JEQ", 3) == 0) {
    out[0] = 0xe2;
    out[1] = 0x01;
    out[2] = 0xc3;
    out[3] = 0x74;
    out[4] = (intbracket(cmd + 4) - instrno) * 5 - 5;
  } else if (strncmp(cmd, "JNE", 3) == 0) {
    out[0] = 0xe2;
    out[1] = 0x01;
    out[2] = 0xc3;
    out[3] = 0x75;
    out[4] = (intbracket(cmd + 4) - instrno) * 5 - 5;
  } else if (strncmp(cmd, "RET", 3) == 0) {
    out[0] = 0xc3;
  } else {
    printf("Unknown instr: %s\n", cmd);
  }
}
```