user: Converte this assembly snippet into its equivalent C code:

```asm
<invert_matrix>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  lea    -0x4000(%rsp),%r11
L24:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L24
  sub    $0xe40,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D29(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  movl   $0x0,-0x4e40(%rbp)
  jmp    L63
L67:
  movl   $0x0,-0x4e3c(%rbp)
  jmp    L196
L163:
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x5,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x64,%edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  pxor   %xmm0,%xmm0
  cvtsi2ss %edx,%xmm0
  mov    -0x4e3c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x4e40(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  add    %rax,%rax
  add    %rcx,%rax
  movss  %xmm0,-0x4e30(%rbp,%rax,4)
  addl   $0x1,-0x4e3c(%rbp)
L196:
  cmpl   $0x31,-0x4e3c(%rbp)
  jle    L163
  addl   $0x1,-0x4e40(%rbp)
L63:
  cmpl   $0x31,-0x4e40(%rbp)
  jle    L67
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  movl   $0x0,-0x4e40(%rbp)
  jmp    L119
L16:
  movl   $0x0,-0x4e3c(%rbp)
  jmp    L15
L91:
  mov    -0x4e40(%rbp),%eax
  cmp    -0x4e3c(%rbp),%eax
  jne    L114
  mov    -0x4e3c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x4e40(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  add    %rax,%rax
  add    %rcx,%rax
  movss  D25(%rip),%xmm0
  movss  %xmm0,-0x2720(%rbp,%rax,4)
  jmp    L121
L114:
  mov    -0x4e3c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x4e40(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  add    %rax,%rax
  add    %rcx,%rax
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x2720(%rbp,%rax,4)
L121:
  addl   $0x1,-0x4e3c(%rbp)
L15:
  cmpl   $0x31,-0x4e3c(%rbp)
  jle    L91
  addl   $0x1,-0x4e40(%rbp)
L119:
  cmpl   $0x31,-0x4e40(%rbp)
  jle    L16
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  movl   $0x0,-0x4e40(%rbp)
  jmp    L147
L83:
  mov    -0x4e3c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x4e40(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  add    %rax,%rax
  add    %rcx,%rax
  movss  -0x4e30(%rbp,%rax,4),%xmm0
  movss  %xmm0,-0x4e34(%rbp)
  movl   $0x0,-0x4e3c(%rbp)
  jmp    L138
L54:
  mov    -0x4e3c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x4e40(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  add    %rax,%rax
  add    %rcx,%rax
  movss  -0x4e30(%rbp,%rax,4),%xmm0
  divss  -0x4e34(%rbp),%xmm0
  mov    -0x4e3c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x4e40(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  add    %rax,%rax
  add    %rcx,%rax
  movss  %xmm0,-0x4e30(%rbp,%rax,4)
  mov    -0x4e3c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x4e40(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  add    %rax,%rax
  add    %rcx,%rax
  movss  -0x2720(%rbp,%rax,4),%xmm0
  divss  -0x4e34(%rbp),%xmm0
  mov    -0x4e3c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x4e40(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  add    %rax,%rax
  add    %rcx,%rax
  movss  %xmm0,-0x2720(%rbp,%rax,4)
  addl   $0x1,-0x4e3c(%rbp)
L138:
  cmpl   $0x31,-0x4e3c(%rbp)
  jle    L54
  movl   $0x0,-0x4e3c(%rbp)
  jmp    L172
L52:
  mov    -0x4e40(%rbp),%eax
  cmp    -0x4e3c(%rbp),%eax
  je     L111
  mov    -0x4e40(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x4e3c(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  add    %rax,%rax
  add    %rcx,%rax
  movss  -0x4e30(%rbp,%rax,4),%xmm0
  movss  D54(%rip),%xmm1
  xorps  %xmm1,%xmm0
  movss  %xmm0,-0x4e34(%rbp)
  movl   $0x0,-0x4e38(%rbp)
  jmp    L160
L89:
  mov    -0x4e38(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x4e3c(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  add    %rax,%rax
  add    %rcx,%rax
  movss  -0x4e30(%rbp,%rax,4),%xmm1
  mov    -0x4e38(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x4e40(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  add    %rax,%rax
  add    %rcx,%rax
  movss  -0x4e30(%rbp,%rax,4),%xmm0
  mulss  -0x4e34(%rbp),%xmm0
  addss  %xmm1,%xmm0
  mov    -0x4e38(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x4e3c(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  add    %rax,%rax
  add    %rcx,%rax
  movss  %xmm0,-0x4e30(%rbp,%rax,4)
  mov    -0x4e38(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x4e3c(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  add    %rax,%rax
  add    %rcx,%rax
  movss  -0x2720(%rbp,%rax,4),%xmm1
  mov    -0x4e38(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x4e40(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  add    %rax,%rax
  add    %rcx,%rax
  movss  -0x2720(%rbp,%rax,4),%xmm0
  mulss  -0x4e34(%rbp),%xmm0
  addss  %xmm1,%xmm0
  mov    -0x4e38(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x4e3c(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  add    %rax,%rax
  add    %rcx,%rax
  movss  %xmm0,-0x2720(%rbp,%rax,4)
  addl   $0x1,-0x4e38(%rbp)
L160:
  cmpl   $0x31,-0x4e38(%rbp)
  jle    L89
L111:
  addl   $0x1,-0x4e3c(%rbp)
L172:
  cmpl   $0x31,-0x4e3c(%rbp)
  jle    L52
  addl   $0x1,-0x4e40(%rbp)
L147:
  cmpl   $0x31,-0x4e40(%rbp)
  jle    L83
  lea    D34(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L85
  call   <__stack_chk_fail@plt>
L85:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D29
type_infered: string
name: unpack_data
arguments: label: D23
type_infered: string
name: unpack_data
arguments: label: D25
type_infered: byte[4]
name: unpack_data
arguments: label: D3
type_infered: string
name: unpack_data
arguments: label: D54
type_infered: byte[4]
name: unpack_data
arguments: label: D34
type_infered: string

tool: D29: sched_tc5: invert_matrix: before first matrix inversion


tool: D23: sched_tc5: invert_matrix: before second matrix inversion


tool: {"D25": [0x00,0x00,0x80,0x3f]}

tool: D3: sched_tc5: invert_matrix: before form identity matrix


tool: {"D54": [0x00,0x00,0x00,0x80]}

tool: D34: sched_tc5: invert_matrix: after form identity matrix


assistant: ```c
void invert_matrix() {
  int i, j, k;
  float t1;
  float matrix_1[50][50];
  float matrix_2[50][50];
  printf("sched_tc5: invert_matrix: before first matrix inversion\n");
  for (i = 0; i < 50; i++)
    for (j = 0; j < 50; j++) {
      matrix_1[i][j] = (float)(rand() % 100);
    }
  printf("sched_tc5: invert_matrix: before second matrix inversion\n");
  for (i = 0; i < 50; i++)
    for (j = 0; j < 50; j++)
      if (i == j)
        matrix_2[i][j] = 1;
      else
        matrix_2[i][j] = 0;
  printf("sched_tc5: invert_matrix: before form identity matrix\n");
  for (i = 0; i < 50; i++) {
    t1 = matrix_1[i][j];
    for (j = 0; j < 50; j++) {
      matrix_1[i][j] /= t1;
      matrix_2[i][j] /= t1;
    }
    for (j = 0; j < 50; j++)
      if (i != j) {
        t1 = -matrix_1[j][i];
        for (k = 0; k < 50; k++) {
          matrix_1[j][k] += (matrix_1[i][k] * t1);
          matrix_2[j][k] += (matrix_2[i][k] * t1);
        }
      }
  }
  printf("sched_tc5: invert_matrix: after form identity matrix\n");
}
```