user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<alloc_2d_array>:
  endbr64
  push   %rbp
  imul   %edi,%esi
  push   %rbx
  mov    %edi,%ebx
  lea    0x0(,%rsi,4),%edi
  sub    $0x8,%rsp
  call   <malloc@plt>
  lea    0x0(,%rbx,8),%edi
  mov    %rax,%rbp
  call   <malloc@plt>
  mov    %rax,%r8
  test   %ebx,%ebx
  jle    L48
  lea    -0x1(%rbx),%eax
  cmp    $0x5,%eax
  jbe    L79
  pxor   %xmm4,%xmm4
  movd   %ebx,%xmm7
  mov    %ebx,%edx
  mov    %r8,%rax
  movdqa D2(%rip),%xmm2
  movdqa %xmm4,%xmm5
  pshufd $0x0,%xmm7,%xmm7
  shr    $0x2,%edx
  movq   %rbp,%xmm6
  shl    $0x5,%rdx
  movdqa %xmm7,%xmm8
  movdqa D12(%rip),%xmm3
  pcmpgtd %xmm2,%xmm5
  punpcklqdq %xmm6,%xmm6
  add    %r8,%rdx
  psrlq  $0x20,%xmm8
  nopl   0x0(%rax)
L92:
  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    L92
  mov    %ebx,%edx
  and    $0xfffffffc,%edx
  test   $0x3,%bl
  je     L48
L10:
  mov    %ebx,%eax
  movslq %edx,%rsi
  imul   %edx,%eax
  lea    0x0(,%rsi,8),%rcx
  movslq %eax,%rdi
  lea    0x0(%rbp,%rdi,4),%rdi
  mov    %rdi,(%r8,%rsi,8)
  lea    0x1(%rdx),%esi
  cmp    %esi,%ebx
  jle    L48
  add    %ebx,%eax
  movslq %eax,%rsi
  lea    0x0(%rbp,%rsi,4),%rsi
  mov    %rsi,0x8(%r8,%rcx,1)
  lea    0x2(%rdx),%esi
  cmp    %esi,%ebx
  jle    L48
  add    %ebx,%eax
  movslq %eax,%rsi
  lea    0x0(%rbp,%rsi,4),%rsi
  mov    %rsi,0x10(%r8,%rcx,1)
  lea    0x3(%rdx),%esi
  cmp    %esi,%ebx
  jle    L48
  add    %ebx,%eax
  movslq %eax,%rsi
  lea    0x0(%rbp,%rsi,4),%rsi
  mov    %rsi,0x18(%r8,%rcx,1)
  lea    0x4(%rdx),%esi
  cmp    %esi,%ebx
  jle    L48
  add    %ebx,%eax
  add    $0x5,%edx
  movslq %eax,%rsi
  lea    0x0(%rbp,%rsi,4),%rsi
  mov    %rsi,0x20(%r8,%rcx,1)
  cmp    %edx,%ebx
  jle    L48
  add    %eax,%ebx
  movslq %ebx,%rbx
  lea    0x0(%rbp,%rbx,4),%rax
  mov    %rax,0x28(%r8,%rcx,1)
L48:
  add    $0x8,%rsp
  mov    %r8,%rax
  pop    %rbx
  pop    %rbp
  ret
L79:
  xor    %edx,%edx
  jmp    L10
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D2
type: byte[16]
name: extract_symbolic_data
arguments: data_label: D12
type: byte[16]

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

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

assistant: ```c
bool **alloc_2d_array(int xc, int yc) {
  int i, j;
  bool *values = malloc(sizeof(bool) * xc * yc);
  bool **res = malloc(sizeof(bool *) * xc);
  for (i = 0; i < xc; i++) {
    res[i] = values + i * xc;
  }
  return res;
}
```