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

```asm
<alloc_2D>:
  endbr64
  push   %r12
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  mov    %edi,%ebx
  shl    $0x3,%edi
  call   <malloc@plt>
  mov    %ebx,%edi
  imul   %ebp,%edi
  mov    %rax,%r12
  shl    $0x2,%edi
  call   <malloc@plt>
  test   %ebx,%ebx
  jle    L80
  mov    %rax,%rcx
  lea    -0x1(%rbx),%eax
  cmp    $0x5,%eax
  jbe    L92
  pxor   %xmm4,%xmm4
  movd   %ebp,%xmm7
  mov    %ebx,%edx
  mov    %r12,%rax
  movdqa D16(%rip),%xmm2
  movdqa %xmm4,%xmm5
  pshufd $0x0,%xmm7,%xmm7
  shr    $0x2,%edx
  movq   %rcx,%xmm6
  shl    $0x5,%rdx
  movdqa %xmm7,%xmm8
  movdqa D10(%rip),%xmm3
  pcmpgtd %xmm2,%xmm5
  punpcklqdq %xmm6,%xmm6
  add    %r12,%rdx
  psrlq  $0x20,%xmm8
  nopl   0x0(%rax,%rax,1)
L18:
  movdqa %xmm3,%xmm1
  movdqa %xmm4,%xmm9
  paddd  %xmm2,%xmm3
  add    $0x20,%rax
  movdqa %xmm1,%xmm0
  psrlq  $0x20,%xmm1
  movdqa %xmm5,%xmm10
  pmuludq %xmm7,%xmm0
  pmuludq %xmm8,%xmm1
  pshufd $0x8,%xmm0,%xmm0
  pshufd $0x8,%xmm1,%xmm1
  punpckldq %xmm1,%xmm0
  movdqa %xmm0,%xmm1
  punpckldq %xmm0,%xmm1
  punpckhdq %xmm0,%xmm0
  pcmpgtd %xmm1,%xmm9
  pmuludq %xmm1,%xmm10
  pmuludq %xmm2,%xmm1
  pmuludq %xmm2,%xmm9
  paddq  %xmm10,%xmm9
  psllq  $0x20,%xmm9
  paddq  %xmm9,%xmm1
  movdqa %xmm5,%xmm9
  paddq  %xmm6,%xmm1
  pmuludq %xmm0,%xmm9
  movups %xmm1,-0x20(%rax)
  movdqa %xmm4,%xmm1
  pcmpgtd %xmm0,%xmm1
  pmuludq %xmm2,%xmm0
  pmuludq %xmm2,%xmm1
  paddq  %xmm9,%xmm1
  psllq  $0x20,%xmm1
  paddq  %xmm1,%xmm0
  paddq  %xmm6,%xmm0
  movups %xmm0,-0x10(%rax)
  cmp    %rax,%rdx
  jne    L18
  mov    %ebx,%edx
  and    $0xfffffffc,%edx
  test   $0x3,%bl
  je     L80
L57:
  mov    %ebp,%eax
  movslq %edx,%rdi
  imul   %edx,%eax
  lea    0x0(,%rdi,8),%rsi
  movslq %eax,%r8
  lea    (%rcx,%r8,4),%r8
  mov    %r8,(%r12,%rdi,8)
  lea    0x1(%rdx),%edi
  cmp    %edi,%ebx
  jle    L80
  add    %ebp,%eax
  movslq %eax,%rdi
  lea    (%rcx,%rdi,4),%rdi
  mov    %rdi,0x8(%r12,%rsi,1)
  lea    0x2(%rdx),%edi
  cmp    %edi,%ebx
  jle    L80
  add    %ebp,%eax
  movslq %eax,%rdi
  lea    (%rcx,%rdi,4),%rdi
  mov    %rdi,0x10(%r12,%rsi,1)
  lea    0x3(%rdx),%edi
  cmp    %edi,%ebx
  jle    L80
  add    %ebp,%eax
  movslq %eax,%rdi
  lea    (%rcx,%rdi,4),%rdi
  mov    %rdi,0x18(%r12,%rsi,1)
  lea    0x4(%rdx),%edi
  cmp    %edi,%ebx
  jle    L80
  add    %ebp,%eax
  add    $0x5,%edx
  movslq %eax,%rdi
  lea    (%rcx,%rdi,4),%rdi
  mov    %rdi,0x20(%r12,%rsi,1)
  cmp    %edx,%ebx
  jle    L80
  add    %eax,%ebp
  movslq %ebp,%rbp
  lea    (%rcx,%rbp,4),%rax
  mov    %rax,0x28(%r12,%rsi,1)
L80:
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L92:
  xor    %edx,%edx
  jmp    L57
```

tool_calls: name: disassemble_data
arguments: data_tag: D16
type: byte[16]
name: disassemble_data
arguments: data_tag: D10
type: byte[16]

tool: {"D16": [0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00]}

tool: {"D10": [0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x03,0x00,0x00,0x00]}

assistant: ```c
float **alloc_2D(int size1, int size2) {
  int a;
  float **array_2D = (float **)malloc(size1 * sizeof(float *));
  float *array_1D = (float *)malloc(size1 * size2 * sizeof(float));
  for (a = 0; a < size1; a++) {
    array_2D[a] = &array_1D[a * size2];
  }
  return array_2D;
}
```