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

```asm
<run>:
  endbr64
  push   %r12
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  lea    (%rdi,%rdi,8),%ebx
  shl    $0x6,%ebx
  movslq %ebx,%rdi
  sub    $0x30,%rsp
  shl    $0x2,%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  call   <malloc@plt>
  mov    %rax,%r12
  test   %ebx,%ebx
  jle    L15
  lea    -0x1(%rbx),%eax
  pxor   %xmm1,%xmm1
  mov    %r12,%rdx
  cvtsi2ss %eax,%xmm1
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L13:
  pxor   %xmm0,%xmm0
  add    $0x4,%rdx
  cvtsi2ss %eax,%xmm0
  add    $0x1,%eax
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x4(%rdx)
  cmp    %eax,%ebx
  jne    L13
L15:
  xor    %esi,%esi
  mov    %rsp,%rdi
  call   <gettimeofday@plt>
  movss  D41(%rip),%xmm4
  xor    %edx,%edx
  movss  D68(%rip),%xmm2
  movss  D19(%rip),%xmm1
  movss  D45(%rip),%xmm0
  mov    %ebx,%esi
  mov    %r12,%rdi
  movaps %xmm4,%xmm3
  call   <FloatComputeBound@plt>
  xor    %esi,%esi
  lea    0x10(%rsp),%rdi
  call   <gettimeofday@plt>
  pxor   %xmm1,%xmm1
  pxor   %xmm2,%xmm2
  mov    %ebp,%esi
  cvtsi2sdq 0x8(%rsp),%xmm2
  pxor   %xmm4,%xmm4
  movsd  D69(%rip),%xmm3
  pxor   %xmm0,%xmm0
  cvtsi2sdq 0x18(%rsp),%xmm1
  lea    D61(%rip),%rdi
  cvtsi2sdq (%rsp),%xmm4
  cvtsi2sd %ebx,%xmm0
  mulsd  D48(%rip),%xmm0
  subsd  %xmm2,%xmm1
  pxor   %xmm2,%xmm2
  cvtsi2sdq 0x10(%rsp),%xmm2
  mulsd  %xmm3,%xmm1
  divsd  %xmm3,%xmm0
  subsd  %xmm4,%xmm2
  divsd  %xmm3,%xmm2
  addsd  %xmm2,%xmm1
  divsd  %xmm3,%xmm1
  divsd  %xmm1,%xmm0
  call   <printf@plt>
  mov    %r12,%rdi
  call   <free@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L25
  add    $0x30,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L25:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D41
data_type: byte[4]
name: read_data
arguments: data_tag: D68
data_type: byte[4]
name: read_data
arguments: data_tag: D19
data_type: byte[4]
name: read_data
arguments: data_tag: D45
data_type: byte[4]
name: read_data
arguments: data_tag: D69
data_type: f64
name: read_data
arguments: data_tag: D61
data_type: string
name: read_data
arguments: data_tag: D48
data_type: byte[8]

tool: {"D41": [0x00,0x00,0xa0,0x3f]}

tool: {"D68": [0x00,0x00,0x00,0x3f]}

tool: {"D19": [0x00,0x00,0x00,0x3e]}

tool: {"D45": [0x00,0x00,0x90,0x3f]}

tool: D69: 1000

tool: D61: %d		%f


tool: {"D48": [0x8d,0xed,0xb5,0xa0,0xf7,0xc6,0x10,0x40]}

assistant: ```c
void run(const int M) {
  float *A_cpu;
  const int N = 576;
  const int K = M * N;
  size_t bytes = sizeof(float) * K;
  A_cpu = (float *)malloc(bytes);
  int i;
  for (i = 0; i < K; i++) {
    A_cpu[i] = (float)i / (float)(K - 1);
  }
  struct timeval startTime, endTime;
  gettimeofday(&startTime, 0);
  FloatComputeBound(A_cpu, M * N, 1.125f, 0.125f, 0.5f, 1.25f, 1.25f, 0);
  gettimeofday(&endTime, 0);
  double ms = (((double)endTime.tv_sec - (double)startTime.tv_sec) * 1000.0 + ((double)endTime.tv_usec - (double)startTime.tv_usec) / 1000.0);
  double s = ms / 1000.0;
  double GFLOPs = (2 * 0 + 2048 + 2048) / 1.0e6 * 1024 * K / 1.0e3;
  double GFLOPsPerSec = (GFLOPs / s);
  printf("%d\t\t%f\n", M, GFLOPsPerSec);
  free(A_cpu);
}
```