user: 请将以下的汇编代码转换成C语言代码：

```asm
<block_mult_ed>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  movslq %ecx,%rbp
  push   %rbx
  mov    %ebp,%eax
  mov    %r8d,%ebx
  mov    %rbp,%r13
  sub    $0x68,%rsp
  mov    %rdx,0x58(%rsp)
  cltd
  idiv   %r8d
  mov    %rdi,0x20(%rsp)
  mov    %rsi,0x28(%rsp)
  lea    0x0(,%rbp,8),%rdi
  mov    %eax,0x1c(%rsp)
  call   <malloc@plt>
  mov    %rax,0x40(%rsp)
  test   %ebp,%ebp
  jle    L25
  mov    %ebp,%r15d
  lea    0x0(,%rbp,4),%rdx
  mov    %rax,%r14
  mov    %rax,%r12
  mov    %r15,0x8(%rsp)
  lea    (%rax,%r15,8),%rbp
  mov    %ebx,%r15d
  mov    %rdx,%rbx
L248:
  mov    %rbx,%rdi
  add    $0x8,%r14
  call   <malloc@plt>
  mov    %rax,-0x8(%r14)
  cmp    %rbp,%r14
  jne    L248
  mov    %r15d,%ebx
  mov    0x8(%rsp),%r15
  shl    $0x2,%r15
L200:
  mov    (%r12),%rdi
  mov    %r15,%rdx
  xor    %esi,%esi
  add    $0x8,%r12
  call   <memset@plt>
  cmp    %rbp,%r12
  jne    L200
L25:
  movslq %ebx,%rbp
  lea    0x0(,%rbp,8),%r14
  mov    %r14,%rdi
  call   <malloc@plt>
  mov    %rax,%r12
  test   %ebx,%ebx
  jle    L21
  mov    %ebx,%esi
  lea    0x0(,%rbp,4),%rax
  mov    %ebx,0x10(%rsp)
  mov    %r12,%rbp
  lea    0x0(,%rsi,8),%r15
  mov    %rax,0x8(%rsp)
  mov    %r12,%rbx
  lea    (%r15,%r12,1),%rax
  mov    %rax,0x30(%rsp)
L237:
  mov    0x8(%rsp),%rdi
  mov    %rsi,0x38(%rsp)
  add    $0x8,%rbx
  call   <malloc@plt>
  mov    0x38(%rsp),%rsi
  mov    %rax,-0x8(%rbx)
  cmp    0x30(%rsp),%rbx
  jne    L237
  lea    0x0(,%rsi,4),%rax
  mov    0x10(%rsp),%ebx
  mov    %rax,0x10(%rsp)
L129:
  mov    0x0(%rbp),%rdi
  mov    0x10(%rsp),%rdx
  xor    %esi,%esi
  add    $0x8,%rbp
  call   <memset@plt>
  cmp    0x30(%rsp),%rbp
  jne    L129
  mov    %r14,%rdi
  call   <malloc@plt>
  mov    %r13d,0x38(%rsp)
  mov    %rax,%rbp
  lea    (%rax,%r15,1),%rax
  mov    %ebx,0x48(%rsp)
  mov    %rax,0x30(%rsp)
  mov    %rbp,%r13
  mov    %rbp,%rbx
L17:
  mov    0x8(%rsp),%rdi
  add    $0x8,%rbx
  call   <malloc@plt>
  mov    %rax,-0x8(%rbx)
  cmp    0x30(%rsp),%rbx
  jne    L17
  mov    0x48(%rsp),%eax
  mov    %r13,%rbx
  mov    0x38(%rsp),%r13d
  mov    %eax,0x38(%rsp)
L243:
  mov    (%rbx),%rdi
  mov    0x10(%rsp),%rdx
  xor    %esi,%esi
  add    $0x8,%rbx
  call   <memset@plt>
  cmp    0x30(%rsp),%rbx
  jne    L243
  mov    0x38(%rsp),%ebx
  mov    %r14,%rdi
  call   <malloc@plt>
  mov    %r13d,0x30(%rsp)
  mov    %r12,%r13
  mov    %ebx,0x38(%rsp)
  mov    %rax,%r14
  add    %rax,%r15
  mov    %rax,%r12
  mov    %rax,%rbx
L13:
  mov    0x8(%rsp),%rdi
  add    $0x8,%rbx
  call   <malloc@plt>
  mov    %rax,-0x8(%rbx)
  cmp    %r15,%rbx
  jne    L13
  mov    0x38(%rsp),%eax
  mov    %r12,%rbx
  mov    %r13,%r12
  mov    0x30(%rsp),%r13d
  mov    %eax,0x8(%rsp)
L192:
  mov    (%rbx),%rdi
  mov    0x10(%rsp),%rdx
  xor    %esi,%esi
  add    $0x8,%rbx
  call   <memset@plt>
  cmp    %r15,%rbx
  jne    L192
  mov    0x8(%rsp),%ebx
L174:
  mov    0x1c(%rsp),%eax
  test   %eax,%eax
  jle    L169
  lea    -0x1(%rbx),%eax
  movl   $0x0,0x10(%rsp)
  add    $0x1,%rax
  lea    (%r12,%rax,8),%rcx
  shl    $0x2,%rax
  mov    %rcx,0x48(%rsp)
  mov    %rax,0x50(%rsp)
L119:
  movl   $0x0,0x8(%rsp)
  xchg   %ax,%ax
L132:
  xor    %r15d,%r15d
  nopl   0x0(%rax,%rax,1)
L176:
  mov    0x10(%rsp),%r8d
  mov    0x20(%rsp),%rdi
  mov    %r15d,%r9d
  mov    %ebx,%ecx
  mov    %r13d,%edx
  mov    %rbp,%rsi
  xor    %eax,%eax
  call   <create_block_line@plt>
  mov    0x8(%rsp),%r9d
  mov    %r15d,%r8d
  mov    %ebx,%ecx
  mov    0x28(%rsp),%rdi
  mov    %r13d,%edx
  mov    %r14,%rsi
  xor    %eax,%eax
  add    $0x1,%r15d
  call   <create_block_column@plt>
  mov    %ebx,%ecx
  mov    %rbp,%rdx
  mov    %r14,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <multy@plt>
  mov    %ebx,%ecx
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <sum@plt>
  cmp    %r15d,0x1c(%rsp)
  jne    L176
  mov    0x8(%rsp),%r9d
  mov    0x10(%rsp),%r8d
  xor    %eax,%eax
  mov    %ebx,%ecx
  mov    0x40(%rsp),%rdi
  mov    %r13d,%edx
  mov    %r12,%rsi
  call   <bring_block_back@plt>
  test   %ebx,%ebx
  jle    L230
  mov    %rbp,0x30(%rsp)
  mov    0x50(%rsp),%r15
  mov    0x48(%rsp),%rbp
  mov    %ebx,0x38(%rsp)
  mov    %r12,%rbx
  nopw   0x0(%rax,%rax,1)
L100:
  mov    (%rbx),%rdi
  mov    %r15,%rdx
  xor    %esi,%esi
  add    $0x8,%rbx
  call   <memset@plt>
  cmp    %rbp,%rbx
  jne    L100
  mov    0x30(%rsp),%rbp
  mov    0x38(%rsp),%ebx
L230:
  addl   $0x1,0x8(%rsp)
  mov    0x8(%rsp),%eax
  cmp    %eax,0x1c(%rsp)
  jne    L132
  addl   $0x1,0x10(%rsp)
  mov    0x10(%rsp),%eax
  cmp    %eax,0x1c(%rsp)
  jne    L119
L169:
  test   %r13d,%r13d
  jle    L93
  mov    %r13d,%r15d
  xor    %edi,%edi
L51:
  mov    0x40(%rsp),%rax
  mov    (%rax,%rdi,8),%rsi
  mov    0x58(%rsp),%rax
  mov    (%rax,%rdi,8),%rcx
  xor    %eax,%eax
  nopl   0x0(%rax,%rax,1)
L27:
  mov    (%rsi,%rax,4),%edx
  mov    %edx,(%rcx,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%r15
  jne    L27
  add    $0x1,%rdi
  cmp    %rdi,%r15
  jne    L51
  mov    0x40(%rsp),%rax
  mov    %rax,%r13
  lea    (%rax,%r15,8),%r15
L40:
  mov    0x0(%r13),%rdi
  add    $0x8,%r13
  call   <free@plt>
  cmp    %r13,%r15
  jne    L40
L93:
  mov    0x40(%rsp),%rdi
  call   <free@plt>
  test   %ebx,%ebx
  jle    L184
  mov    %ebx,%ebx
  mov    %r12,%r13
  shl    $0x3,%rbx
  lea    (%r12,%rbx,1),%r15
L30:
  mov    0x0(%r13),%rdi
  add    $0x8,%r13
  call   <free@plt>
  cmp    %r15,%r13
  jne    L30
  mov    %r12,%rdi
  lea    0x0(%rbp,%rbx,1),%r13
  mov    %rbp,%r12
  call   <free@plt>
L99:
  mov    (%r12),%rdi
  add    $0x8,%r12
  call   <free@plt>
  cmp    %r13,%r12
  jne    L99
  mov    %rbp,%rdi
  add    %r14,%rbx
  mov    %r14,%rbp
  call   <free@plt>
L185:
  mov    0x0(%rbp),%rdi
  add    $0x8,%rbp
  call   <free@plt>
  cmp    %rbp,%rbx
  jne    L185
L257:
  mov    %r14,%rdi
  call   <free@plt>
  add    $0x68,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L21:
  mov    %r14,%rdi
  call   <malloc@plt>
  mov    %r14,%rdi
  mov    %rax,%rbp
  call   <malloc@plt>
  mov    %rax,%r14
  jmp    L174
L184:
  mov    %r12,%rdi
  call   <free@plt>
  mov    %rbp,%rdi
  call   <free@plt>
  jmp    L257
```

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