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

```asm
<analyze_code>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  movl   $0x0,0x1c(%rsp)
  mov    0x1c(%rsp),%eax
  mov    %edx,0xc(%rsp)
  cmp    %edx,%eax
  jae    L98
  mov    %rdi,%rbx
  mov    %rsi,%r13
  lea    D3(%rip),%r15
  jmp    L87
  nopl   0x0(%rax)
L9:
  mov    0x1c(%rsp),%eax
  mov    %ebp,0x0(%r13,%rax,4)
  mov    0x1c(%rsp),%eax
  add    $0x1,%eax
  mov    %eax,0x1c(%rsp)
  mov    0x1c(%rsp),%eax
  cmp    0xc(%rsp),%eax
  jae    L98
L87:
  mov    0x1c(%rsp),%eax
  mov    (%rbx,%rax,4),%ebp
  mov    %ebp,%edi
  call   <get_r_rd@plt>
  mov    %ebp,%edi
  mov    %eax,%r12d
  call   <get_r_rt@plt>
  mov    %ebp,%edi
  mov    %eax,%r14d
  call   <get_r_rs@plt>
  mov    %r15,%rdi
  mov    %r12d,%r8d
  mov    %r14d,%ecx
  mov    %eax,%edx
  mov    0x1c(%rsp),%eax
  mov    (%rbx,%rax,4),%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %ebp,%edi
  call   <is_type_r@plt>
  test   %rax,%rax
  je     L9
  xor    %eax,%eax
  call   <rand@plt>
  mov    %eax,%r14d
  xor    %eax,%eax
  call   <rand@plt>
  mov    %ebp,%edi
  mov    %eax,%r12d
  call   <get_r_func@plt>
  mov    %eax,%edi
  call   <is_r_supported@plt>
  test   %rax,%rax
  je     L9
  and    $0x1,%r14d
  jne    L31
L103:
  mov    %r12d,%eax
  mov    %ebp,%esi
  test   $0x1,%al
  je     L35
  lea    D40(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %ebp,%edi
  call   <get_r_func@plt>
  mov    %ebp,%edi
  test   $0x1,%al
  jne    L79
  call   <get_r_func@plt>
  mov    %ebp,%edi
  lea    0x1(%rax),%esi
  call   <replace_instruction@plt>
  lea    D70(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %ebp,%edi
  call   <get_r_func@plt>
  mov    %ebp,%edi
  lea    0x1(%rax),%esi
  call   <set_r_func@plt>
  mov    %eax,%ebp
  jmp    L71
  cs nopw 0x0(%rax,%rax,1)
L98:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L35:
  lea    D31(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L71:
  lea    D68(%rip),%rdi
  call   <puts@plt>
  jmp    L9
  nop
L79:
  call   <get_r_func@plt>
  mov    %ebp,%edi
  lea    -0x1(%rax),%esi
  call   <set_r_func@plt>
  lea    D70(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %ebp,%edi
  call   <get_r_func@plt>
  mov    %ebp,%edi
  lea    -0x1(%rax),%esi
  call   <set_r_func@plt>
  mov    %eax,%ebp
  jmp    L71
  nopl   0x0(%rax)
L31:
  mov    %ebp,%esi
  lea    D50(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %ebp,%edi
  call   <get_r_func@plt>
  mov    %eax,%edi
  call   <is_conmutative@plt>
  test   %rax,%rax
  je     L133
  mov    %ebp,%edi
  call   <get_r_rs@plt>
  mov    %ebp,%edi
  mov    %eax,%r14d
  call   <get_r_rt@plt>
  mov    %ebp,%edi
  movsbl %al,%esi
  call   <set_r_rs@plt>
  movsbl %r14b,%esi
  mov    %eax,%edi
  call   <set_r_rt@plt>
  mov    %eax,%ebp
  jmp    L103
  nopl   0x0(%rax,%rax,1)
L133:
  lea    D17(%rip),%rdi
  call   <puts@plt>
  jmp    L103
```

tool_calls: name: read_data
arguments: data_tag: D3
data_type: string
name: read_data
arguments: data_tag: D40
data_type: string
name: read_data
arguments: data_tag: D70
data_type: string
name: read_data
arguments: data_tag: D31
data_type: string
name: read_data
arguments: data_tag: D68
data_type: string
name: read_data
arguments: data_tag: D50
data_type: string
name: read_data
arguments: data_tag: D17
data_type: string

tool: D3: Instruction: 0x%08x with registers -> RS: %d RT: %d RD: %d


tool: D40: Applying Sustitute Instruction to: 0x%08x -> 

tool: D70: Changed by 0x%08x 


tool: D31: Any changes kind of changes are applicated to actual instruction 0x%08x

tool: D68: 

-------------------------------------------------


tool: D50: Applying change order registers to: 0x%08x -> 

tool: D17: Not changed due to lack of conmutative property


assistant: ```c
void analyze_code(int *instructions, int *new_shellcode, int num_inst) {
  int act_inst = 0x00000000;
  char act_rs = 0x00;
  char act_rt = 0x00;
  char act_rd = 0x00;
  for (unsigned volatile int i = 0x00; i < num_inst; i++) {
    act_inst = instructions[i];
    printf("Instruction: 0x%08x with registers -> RS: %d RT: %d RD: %d\n", instructions[i], get_r_rs(act_inst), get_r_rt(act_inst), get_r_rd(act_inst));
    if (is_type_r(act_inst)) {
      char change_order_regs = rand() % 2;
      char change_instruct = rand() % 2;
      if (is_r_supported(get_r_func(act_inst))) {
        if (change_order_regs) {
          printf("Applying change order registers to: 0x%08x -> ", act_inst);
          if (is_conmutative(get_r_func(act_inst))) {
            act_rs = get_r_rs(act_inst);
            act_rt = get_r_rt(act_inst);
            act_inst = set_r_rs(act_inst, act_rt);
            act_inst = set_r_rt(act_inst, act_rs);
          } else
            printf("Not changed due to lack of conmutative property\n\n");
        }
        if (change_instruct) {
          printf("Applying Sustitute Instruction to: 0x%08x -> ", act_inst);
          if (get_r_func(act_inst) % 2 == 0) {
            printf("Changed by 0x%08x \n", replace_instruction(act_inst, get_r_func(act_inst) + 1));
            act_inst = set_r_func(act_inst, get_r_func(act_inst) + 1);
          } else {
            printf("Changed by 0x%08x \n", set_r_func(act_inst, get_r_func(act_inst) - 1));
            act_inst = set_r_func(act_inst, get_r_func(act_inst) - 1);
          }
        } else
          printf("Any changes kind of changes are applicated to actual instruction 0x%08x", act_inst);
        printf("\n\n-------------------------------------------------\n\n");
      }
    }
    new_shellcode[i] = act_inst;
  }
}
```