user: Please show me the C implementation that matches the assembly code listed below:

```asm
<block_mult_ed>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %rdx,-0x68(%rbp)
  mov    %ecx,-0x6c(%rbp)
  mov    %r8d,-0x70(%rbp)
  mov    -0x6c(%rbp),%eax
  cltd
  idivl  -0x70(%rbp)
  mov    %eax,-0x34(%rbp)
  mov    -0x6c(%rbp),%eax
  cltq
  shl    $0x3,%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x30(%rbp)
  movl   $0x0,-0x48(%rbp)
  jmp    L230
L248:
  mov    -0x6c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  mov    -0x48(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x30(%rbp),%rdx
  lea    (%rcx,%rdx,1),%rbx
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,(%rbx)
  addl   $0x1,-0x48(%rbp)
L230:
  mov    -0x48(%rbp),%eax
  cmp    -0x6c(%rbp),%eax
  jl     L248
  movl   $0x0,-0x48(%rbp)
  jmp    L226
L90:
  movl   $0x0,-0x44(%rbp)
  jmp    L20
L398:
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x44(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  addl   $0x1,-0x44(%rbp)
L20:
  mov    -0x44(%rbp),%eax
  cmp    -0x6c(%rbp),%eax
  jl     L398
  addl   $0x1,-0x48(%rbp)
L226:
  mov    -0x48(%rbp),%eax
  cmp    -0x6c(%rbp),%eax
  jl     L90
  mov    -0x70(%rbp),%eax
  cltq
  shl    $0x3,%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x28(%rbp)
  movl   $0x0,-0x48(%rbp)
  jmp    L247
L87:
  mov    -0x70(%rbp),%eax
  cltq
  shl    $0x2,%rax
  mov    -0x48(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x28(%rbp),%rdx
  lea    (%rcx,%rdx,1),%rbx
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,(%rbx)
  addl   $0x1,-0x48(%rbp)
L247:
  mov    -0x48(%rbp),%eax
  cmp    -0x70(%rbp),%eax
  jl     L87
  movl   $0x0,-0x48(%rbp)
  jmp    L176
L173:
  movl   $0x0,-0x44(%rbp)
  jmp    L362
L288:
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x44(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  addl   $0x1,-0x44(%rbp)
L362:
  mov    -0x44(%rbp),%eax
  cmp    -0x70(%rbp),%eax
  jl     L288
  addl   $0x1,-0x48(%rbp)
L176:
  mov    -0x48(%rbp),%eax
  cmp    -0x70(%rbp),%eax
  jl     L173
  mov    -0x70(%rbp),%eax
  cltq
  shl    $0x3,%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x20(%rbp)
  movl   $0x0,-0x48(%rbp)
  jmp    L262
L121:
  mov    -0x70(%rbp),%eax
  cltq
  shl    $0x2,%rax
  mov    -0x48(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x20(%rbp),%rdx
  lea    (%rcx,%rdx,1),%rbx
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,(%rbx)
  addl   $0x1,-0x48(%rbp)
L262:
  mov    -0x48(%rbp),%eax
  cmp    -0x70(%rbp),%eax
  jl     L121
  movl   $0x0,-0x48(%rbp)
  jmp    L43
L171:
  movl   $0x0,-0x44(%rbp)
  jmp    L53
L133:
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x44(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  addl   $0x1,-0x44(%rbp)
L53:
  mov    -0x44(%rbp),%eax
  cmp    -0x70(%rbp),%eax
  jl     L133
  addl   $0x1,-0x48(%rbp)
L43:
  mov    -0x48(%rbp),%eax
  cmp    -0x70(%rbp),%eax
  jl     L171
  mov    -0x70(%rbp),%eax
  cltq
  shl    $0x3,%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x18(%rbp)
  movl   $0x0,-0x48(%rbp)
  jmp    L338
L441:
  mov    -0x70(%rbp),%eax
  cltq
  shl    $0x2,%rax
  mov    -0x48(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x18(%rbp),%rdx
  lea    (%rcx,%rdx,1),%rbx
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,(%rbx)
  addl   $0x1,-0x48(%rbp)
L338:
  mov    -0x48(%rbp),%eax
  cmp    -0x70(%rbp),%eax
  jl     L441
  movl   $0x0,-0x48(%rbp)
  jmp    L238
L61:
  movl   $0x0,-0x44(%rbp)
  jmp    L161
L452:
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x44(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  addl   $0x1,-0x44(%rbp)
L161:
  mov    -0x44(%rbp),%eax
  cmp    -0x70(%rbp),%eax
  jl     L452
  addl   $0x1,-0x48(%rbp)
L238:
  mov    -0x48(%rbp),%eax
  cmp    -0x70(%rbp),%eax
  jl     L61
  movl   $0x0,-0x48(%rbp)
  jmp    L191
L278:
  movl   $0x0,-0x44(%rbp)
  jmp    L318
L101:
  movl   $0x0,-0x40(%rbp)
  jmp    L392
L305:
  mov    -0x40(%rbp),%r8d
  mov    -0x48(%rbp),%edi
  mov    -0x70(%rbp),%ecx
  mov    -0x6c(%rbp),%edx
  mov    -0x20(%rbp),%rsi
  mov    -0x58(%rbp),%rax
  mov    %r8d,%r9d
  mov    %edi,%r8d
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <create_block_line@plt>
  mov    -0x44(%rbp),%r8d
  mov    -0x40(%rbp),%edi
  mov    -0x70(%rbp),%ecx
  mov    -0x6c(%rbp),%edx
  mov    -0x18(%rbp),%rsi
  mov    -0x60(%rbp),%rax
  mov    %r8d,%r9d
  mov    %edi,%r8d
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <create_block_column@plt>
  mov    -0x70(%rbp),%ecx
  mov    -0x20(%rbp),%rdx
  mov    -0x18(%rbp),%rsi
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <multy@plt>
  mov    -0x70(%rbp),%ecx
  mov    -0x28(%rbp),%rdx
  mov    -0x20(%rbp),%rsi
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sum@plt>
  addl   $0x1,-0x40(%rbp)
L392:
  mov    -0x40(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L305
  mov    -0x44(%rbp),%r8d
  mov    -0x48(%rbp),%edi
  mov    -0x70(%rbp),%ecx
  mov    -0x6c(%rbp),%edx
  mov    -0x28(%rbp),%rsi
  mov    -0x30(%rbp),%rax
  mov    %r8d,%r9d
  mov    %edi,%r8d
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <bring_block_back@plt>
  movl   $0x0,-0x3c(%rbp)
  jmp    L427
L71:
  movl   $0x0,-0x38(%rbp)
  jmp    L417
L140:
  mov    -0x3c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x38(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movl   $0x0,(%rax)
  addl   $0x1,-0x38(%rbp)
L417:
  mov    -0x38(%rbp),%eax
  cmp    -0x70(%rbp),%eax
  jl     L140
  addl   $0x1,-0x3c(%rbp)
L427:
  mov    -0x3c(%rbp),%eax
  cmp    -0x70(%rbp),%eax
  jl     L71
  addl   $0x1,-0x44(%rbp)
L318:
  mov    -0x44(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L101
  addl   $0x1,-0x48(%rbp)
L191:
  mov    -0x48(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L278
  movl   $0x0,-0x48(%rbp)
  jmp    L201
L256:
  movl   $0x0,-0x44(%rbp)
  jmp    L442
L99:
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x44(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    -0x48(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x68(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%rcx
  mov    -0x44(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x2,%rdx
  add    %rcx,%rdx
  mov    (%rax),%eax
  mov    %eax,(%rdx)
  addl   $0x1,-0x44(%rbp)
L442:
  mov    -0x44(%rbp),%eax
  cmp    -0x6c(%rbp),%eax
  jl     L99
  addl   $0x1,-0x48(%rbp)
L201:
  mov    -0x48(%rbp),%eax
  cmp    -0x6c(%rbp),%eax
  jl     L256
  movl   $0x0,-0x48(%rbp)
  jmp    L408
L119:
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <free@plt>
  addl   $0x1,-0x48(%rbp)
L408:
  mov    -0x48(%rbp),%eax
  cmp    -0x6c(%rbp),%eax
  jl     L119
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  movl   $0x0,-0x48(%rbp)
  jmp    L220
L145:
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <free@plt>
  addl   $0x1,-0x48(%rbp)
L220:
  mov    -0x48(%rbp),%eax
  cmp    -0x70(%rbp),%eax
  jl     L145
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  movl   $0x0,-0x48(%rbp)
  jmp    L235
L52:
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <free@plt>
  addl   $0x1,-0x48(%rbp)
L235:
  mov    -0x48(%rbp),%eax
  cmp    -0x70(%rbp),%eax
  jl     L52
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  movl   $0x0,-0x48(%rbp)
  jmp    L153
L328:
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <free@plt>
  addl   $0x1,-0x48(%rbp)
L153:
  mov    -0x48(%rbp),%eax
  cmp    -0x70(%rbp),%eax
  jl     L328
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
int block_mult_ed(int **input1, int **input2, int **out, int size, int param) {
  int i, j, k, a, b;
  int p = size / param;
  int **temp = (int **)malloc(size * sizeof(int *));
  for (i = 0; i < size; i++)
    temp[i] = (int *)malloc(size * sizeof(int));
  for (i = 0; i < size; i++)
    for (j = 0; j < size; j++)
      temp[i][j] = 0;
  int **temp_min = (int **)malloc(param * sizeof(int *));
  for (i = 0; i < param; i++)
    temp_min[i] = (int *)malloc(param * sizeof(int));
  for (i = 0; i < param; i++)
    for (j = 0; j < param; j++)
      temp_min[i][j] = 0;
  int **line = (int **)malloc(param * sizeof(int *));
  for (i = 0; i < param; i++)
    line[i] = (int *)malloc(param * sizeof(int));
  for (i = 0; i < param; i++)
    for (j = 0; j < param; j++)
      line[i][j] = 0;
  int **column = (int **)malloc(param * sizeof(int *));
  for (i = 0; i < param; i++)
    column[i] = (int *)malloc(param * sizeof(int));
  for (i = 0; i < param; i++)
    for (j = 0; j < param; j++)
      column[i][j] = 0;
  for (i = 0; i < p; i++)
    for (j = 0; j < p; j++) {
      for (k = 0; k < p; k++) {
        create_block_line(input1, line, size, param, i, k);
        create_block_column(input2, column, size, param, k, j);
        multy(line, column, line, param);
        sum(temp_min, line, temp_min, param);
      }
      bring_block_back(temp, temp_min, size, param, i, j);
      for (a = 0; a < param; a++)
        for (b = 0; b < param; b++)
          temp_min[a][b] = 0;
    }
  for (i = 0; i < size; i++)
    for (j = 0; j < size; j++)
      out[i][j] = temp[i][j];
  for (i = 0; i < size; i++)
    free(temp[i]);
  free(temp);
  for (i = 0; i < param; i++)
    free(temp_min[i]);
  free(temp_min);
  for (i = 0; i < param; i++)
    free(line[i]);
  free(line);
  for (i = 0; i < param; i++)
    free(column[i]);
  free(column);
  return 0;
}
```