user: What is the c source code of the assembly code below:

```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    L2
  mov    %rdi,%rbx
  mov    %rsi,%r13
  lea    D43(%rip),%r15
  jmp    L56
  nopl   0x0(%rax)
L117:
  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    L2
L56:
  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     L117
  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     L117
  and    $0x1,%r14d
  jne    L24
L130:
  mov    %r12d,%eax
  mov    %ebp,%esi
  test   $0x1,%al
  je     L96
  lea    D10(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %ebp,%edi
  call   <get_r_func@plt>
  mov    %ebp,%edi
  test   $0x1,%al
  jne    L55
  call   <get_r_func@plt>
  mov    %ebp,%edi
  lea    0x1(%rax),%esi
  call   <replace_instruction@plt>
  lea    D37(%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    L21
  cs nopw 0x0(%rax,%rax,1)
L2:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L96:
  lea    D27(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L21:
  lea    D49(%rip),%rdi
  call   <puts@plt>
  jmp    L117
  nop
L55:
  call   <get_r_func@plt>
  mov    %ebp,%edi
  lea    -0x1(%rax),%esi
  call   <set_r_func@plt>
  lea    D37(%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    L21
  nopl   0x0(%rax)
L24:
  mov    %ebp,%esi
  lea    D41(%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     L139
  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    L130
  nopl   0x0(%rax,%rax,1)
L139:
  lea    D59(%rip),%rdi
  call   <puts@plt>
  jmp    L130
```

tool_calls: name: parse_data
arguments: label: D43
type: string
name: parse_data
arguments: label: D10
type: string
name: parse_data
arguments: label: D37
type: string
name: parse_data
arguments: label: D27
type: string
name: parse_data
arguments: label: D49
type: string
name: parse_data
arguments: label: D41
type: string
name: parse_data
arguments: label: D59
type: string

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


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

tool: D37: Changed by 0x%08x 


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

tool: D49: 

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


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

tool: D59: 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;
  }
}
```