user: Demonstrate the C code that generates the assembly output below:

```asm
<analyze_code>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,%r13
  mov    %rsi,%r15
  mov    %edx,%r14d
  movl   $0x0,0xc(%rsp)
  mov    0xc(%rsp),%eax
  cmp    %edx,%eax
  jb     L88
L27:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L42:
  mov    %ebx,%esi
  lea    D24(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %ebx,%edi
  call   <get_r_func@plt>
  mov    %eax,%edi
  call   <is_conmutative@plt>
  test   %rax,%rax
  je     L21
  mov    %ebx,%edi
  call   <get_r_rs@plt>
  mov    %eax,%ebp
  mov    %ebx,%edi
  call   <get_r_rt@plt>
  movsbl %al,%esi
  mov    %ebx,%edi
  call   <set_r_rs@plt>
  mov    %eax,%edi
  movsbl %bpl,%esi
  call   <set_r_rt@plt>
  mov    %eax,%ebx
  jmp    L66
L21:
  lea    D28(%rip),%rdi
  call   <puts@plt>
  jmp    L66
L114:
  mov    %ebx,%edi
  call   <get_r_func@plt>
  lea    -0x1(%rax),%esi
  mov    %ebx,%edi
  call   <set_r_func@plt>
  mov    %eax,%esi
  lea    D2(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %ebx,%edi
  call   <get_r_func@plt>
  lea    -0x1(%rax),%esi
  mov    %ebx,%edi
  call   <set_r_func@plt>
  mov    %eax,%ebx
  jmp    L97
L75:
  mov    %ebx,%esi
  lea    D25(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L97:
  lea    D49(%rip),%rdi
  call   <puts@plt>
L17:
  mov    0xc(%rsp),%eax
  mov    %eax,%eax
  mov    %ebx,(%r15,%rax,4)
  mov    0xc(%rsp),%eax
  add    $0x1,%eax
  mov    %eax,0xc(%rsp)
  mov    0xc(%rsp),%eax
  cmp    %r14d,%eax
  jae    L27
L88:
  mov    0xc(%rsp),%eax
  mov    %eax,%eax
  mov    0x0(%r13,%rax,4),%ebx
  mov    %ebx,%edi
  call   <get_r_rd@plt>
  mov    %eax,%r12d
  mov    %ebx,%edi
  call   <get_r_rt@plt>
  mov    %eax,%ebp
  mov    %ebx,%edi
  call   <get_r_rs@plt>
  mov    %eax,%edx
  mov    0xc(%rsp),%eax
  mov    %eax,%eax
  mov    0x0(%r13,%rax,4),%esi
  mov    %r12d,%r8d
  mov    %ebp,%ecx
  lea    D55(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %ebx,%edi
  call   <is_type_r@plt>
  test   %rax,%rax
  je     L17
  mov    $0x0,%eax
  call   <rand@plt>
  mov    %eax,%ebp
  mov    $0x0,%eax
  call   <rand@plt>
  mov    %eax,%r12d
  mov    %ebx,%edi
  call   <get_r_func@plt>
  mov    %eax,%edi
  call   <is_r_supported@plt>
  test   %rax,%rax
  je     L17
  mov    %ebp,%eax
  shr    $0x1f,%eax
  add    %eax,%ebp
  and    $0x1,%ebp
  cmp    %eax,%ebp
  jne    L42
L66:
  mov    %r12d,%eax
  shr    $0x1f,%eax
  add    %eax,%r12d
  and    $0x1,%r12d
  cmp    %eax,%r12d
  je     L75
  mov    %ebx,%esi
  lea    D7(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %ebx,%edi
  call   <get_r_func@plt>
  test   $0x1,%al
  jne    L114
  mov    %ebx,%edi
  call   <get_r_func@plt>
  lea    0x1(%rax),%esi
  mov    %ebx,%edi
  call   <replace_instruction@plt>
  mov    %eax,%esi
  lea    D2(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %ebx,%edi
  call   <get_r_func@plt>
  lea    0x1(%rax),%esi
  mov    %ebx,%edi
  call   <set_r_func@plt>
  mov    %eax,%ebx
  jmp    L97
```

tool_calls: name: unpack_data
arguments: data_label: D24
data_type: string
name: unpack_data
arguments: data_label: D28
data_type: string
name: unpack_data
arguments: data_label: D2
data_type: string
name: unpack_data
arguments: data_label: D25
data_type: string
name: unpack_data
arguments: data_label: D49
data_type: string
name: unpack_data
arguments: data_label: D55
data_type: string
name: unpack_data
arguments: data_label: D7
data_type: string

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

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


tool: D2: Changed by 0x%08x 


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

tool: D49: 

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


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


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

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;
  }
}
```