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

```asm
<test_mm_aani_b_c_bc_i4_d>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x168,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,-0x188(%rbp)
  movl   $0x15,-0xcc(%rbp)
  movl   $0x17,-0xc8(%rbp)
  movl   $0x19,-0xc4(%rbp)
  mov    -0xc8(%rbp),%r10d
  mov    -0xcc(%rbp),%r11d
  movslq %r10d,%rax
  sub    $0x1,%rax
  mov    %rax,-0xc0(%rbp)
  movslq %r10d,%rax
  mov    %rax,%rcx
  mov    $0x0,%ebx
  movslq %r10d,%rax
  lea    0x0(,%rax,4),%rbx
  movslq %r11d,%rax
  sub    $0x1,%rax
  mov    %rax,-0xb8(%rbp)
  movslq %r10d,%rax
  mov    %rax,%r8
  mov    $0x0,%r9d
  movslq %r11d,%rax
  mov    %rax,%rsi
  mov    $0x0,%edi
  mov    %r9,%rdx
  imul   %rsi,%rdx
  mov    %rdi,%rax
  imul   %r8,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r8,%rax
  mul    %rsi
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %r10d,%rax
  mov    %rax,%r14
  mov    $0x0,%r15d
  movslq %r11d,%rax
  mov    %rax,%r12
  mov    $0x0,%r13d
  mov    %r15,%rdx
  imul   %r12,%rdx
  mov    %r13,%rax
  imul   %r14,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r14,%rax
  mul    %r12
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %r10d,%rdx
  movslq %r11d,%rax
  imul   %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rdx
  mov    %rdx,%rax
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rcx
  sub    %rax,%rcx
L213:
  cmp    %rcx,%rsp
  je     L229
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L213
L229:
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  mov    %rdx,%rax
  and    $0xfff,%eax
  test   %rax,%rax
  je     L41
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L41:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0xb0(%rbp)
  mov    -0xc4(%rbp),%esi
  mov    -0xc8(%rbp),%edi
  movslq %esi,%rax
  sub    $0x1,%rax
  mov    %rax,-0xa8(%rbp)
  movslq %esi,%rax
  mov    %rax,-0x170(%rbp)
  movq   $0x0,-0x168(%rbp)
  movslq %esi,%rax
  lea    0x0(,%rax,4),%r8
  movslq %edi,%rax
  sub    $0x1,%rax
  mov    %rax,-0xa0(%rbp)
  movslq %esi,%rax
  mov    %rax,-0xf0(%rbp)
  movq   $0x0,-0xe8(%rbp)
  movslq %edi,%rax
  mov    %rax,-0x100(%rbp)
  movq   $0x0,-0xf8(%rbp)
  mov    -0xf0(%rbp),%r14
  mov    -0xe8(%rbp),%r15
  mov    %r15,%rdx
  mov    -0x100(%rbp),%r9
  mov    -0xf8(%rbp),%r10
  imul   %r9,%rdx
  mov    %r10,%rax
  imul   %r14,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r14,%rax
  mul    %r9
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rax
  mov    %rax,-0x110(%rbp)
  movq   $0x0,-0x108(%rbp)
  movslq %edi,%rax
  mov    %rax,-0x120(%rbp)
  movq   $0x0,-0x118(%rbp)
  mov    -0x110(%rbp),%r9
  mov    -0x108(%rbp),%r10
  mov    %r10,%rdx
  mov    -0x120(%rbp),%r11
  mov    -0x118(%rbp),%r12
  imul   %r11,%rdx
  mov    %r12,%rax
  imul   %r9,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r9,%rax
  mul    %r11
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rdx
  movslq %edi,%rax
  imul   %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rdx
  mov    %rdx,%rax
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rcx
  sub    %rax,%rcx
L223:
  cmp    %rcx,%rsp
  je     L246
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L223
L246:
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  mov    %rdx,%rax
  and    $0xfff,%eax
  test   %rax,%rax
  je     L32
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L32:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x98(%rbp)
  mov    -0xc4(%rbp),%esi
  mov    -0xcc(%rbp),%edi
  movslq %esi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x90(%rbp)
  movslq %esi,%rax
  mov    %rax,-0x180(%rbp)
  movq   $0x0,-0x178(%rbp)
  movslq %esi,%rax
  lea    0x0(,%rax,4),%r13
  movslq %edi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x88(%rbp)
  movslq %esi,%rax
  mov    %rax,-0x130(%rbp)
  movq   $0x0,-0x128(%rbp)
  movslq %edi,%rax
  mov    %rax,-0x140(%rbp)
  movq   $0x0,-0x138(%rbp)
  mov    -0x130(%rbp),%r9
  mov    -0x128(%rbp),%r10
  mov    %r10,%rdx
  mov    -0x140(%rbp),%r11
  mov    -0x138(%rbp),%r12
  imul   %r11,%rdx
  mov    %r12,%rax
  imul   %r9,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r9,%rax
  mul    %r11
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rax
  mov    %rax,-0x150(%rbp)
  movq   $0x0,-0x148(%rbp)
  movslq %edi,%rax
  mov    %rax,-0x160(%rbp)
  movq   $0x0,-0x158(%rbp)
  mov    -0x150(%rbp),%r11
  mov    -0x148(%rbp),%r12
  mov    %r12,%rdx
  mov    -0x160(%rbp),%r14
  mov    -0x158(%rbp),%r15
  imul   %r14,%rdx
  mov    %r15,%rax
  imul   %r11,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r11,%rax
  mul    %r14
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rdx
  movslq %edi,%rax
  imul   %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L238:
  cmp    %rdx,%rsp
  je     L193
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L238
L193:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L151
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L151:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x80(%rbp)
  movl   $0x0,-0xd8(%rbp)
  jmp    L181
L46:
  movl   $0x0,-0xd4(%rbp)
  jmp    L84
L196:
  mov    -0xd8(%rbp),%eax
  imul   -0xcc(%rbp),%eax
  mov    %eax,%edx
  mov    -0xd4(%rbp),%eax
  add    %edx,%eax
  mov    %rbx,%rsi
  shr    $0x2,%rsi
  lea    0x1(%rax),%ecx
  mov    -0xb0(%rbp),%rax
  mov    -0xd4(%rbp),%edx
  movslq %edx,%rdi
  mov    -0xd8(%rbp),%edx
  movslq %edx,%rdx
  imul   %rsi,%rdx
  add    %rdi,%rdx
  mov    %ecx,(%rax,%rdx,4)
  addl   $0x1,-0xd4(%rbp)
L84:
  mov    -0xd4(%rbp),%eax
  cmp    -0xc8(%rbp),%eax
  jl     L196
  addl   $0x1,-0xd8(%rbp)
L181:
  mov    -0xd8(%rbp),%eax
  cmp    -0xcc(%rbp),%eax
  jl     L46
  movl   $0x0,-0xd8(%rbp)
  jmp    L102
L214:
  movl   $0x0,-0xd4(%rbp)
  jmp    L234
L239:
  mov    -0xd4(%rbp),%eax
  imul   -0xc4(%rbp),%eax
  mov    %eax,%edx
  mov    -0xd8(%rbp),%eax
  add    %edx,%eax
  mov    %r8,%rsi
  shr    $0x2,%rsi
  lea    0x1(%rax),%ecx
  mov    -0x98(%rbp),%rax
  mov    -0xd4(%rbp),%edx
  movslq %edx,%rdi
  mov    -0xd8(%rbp),%edx
  movslq %edx,%rdx
  imul   %rsi,%rdx
  add    %rdi,%rdx
  mov    %ecx,(%rax,%rdx,4)
  addl   $0x1,-0xd4(%rbp)
L234:
  mov    -0xd4(%rbp),%eax
  cmp    -0xc4(%rbp),%eax
  jl     L239
  addl   $0x1,-0xd8(%rbp)
L102:
  mov    -0xd8(%rbp),%eax
  cmp    -0xc8(%rbp),%eax
  jl     L214
  movl   $0x0,-0xd8(%rbp)
  jmp    L27
L217:
  movl   $0x0,-0xd4(%rbp)
  jmp    L198
L169:
  mov    %r13,%rcx
  shr    $0x2,%rcx
  mov    -0x80(%rbp),%rax
  mov    -0xd4(%rbp),%edx
  movslq %edx,%rsi
  mov    -0xd8(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  movl   $0x0,(%rax,%rdx,4)
  addl   $0x1,-0xd4(%rbp)
L198:
  mov    -0xd4(%rbp),%eax
  cmp    -0xc4(%rbp),%eax
  jl     L169
  addl   $0x1,-0xd8(%rbp)
L27:
  mov    -0xd8(%rbp),%eax
  cmp    -0xcc(%rbp),%eax
  jl     L217
  mov    -0x98(%rbp),%rax
  mov    %rax,%rdi
  call   <xmp_desc_of@plt>
  mov    %eax,%r12d
  mov    -0xb0(%rbp),%rax
  mov    %rax,%rdi
  call   <xmp_desc_of@plt>
  mov    %eax,%ebx
  mov    -0x80(%rbp),%rax
  mov    %rax,%rdi
  call   <xmp_desc_of@plt>
  mov    %r12d,%edx
  mov    %ebx,%esi
  mov    %eax,%edi
  call   <xmp_matmul@plt>
  movl   $0x0,-0xd0(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0xcc(%rbp),%xmm0
  movsd  %xmm0,-0x78(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0xc8(%rbp),%xmm0
  movsd  %xmm0,-0x70(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0xc4(%rbp),%xmm0
  movsd  %xmm0,-0x68(%rbp)
  movsd  -0x70(%rbp),%xmm1
  movsd  D17(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  mulsd  -0x70(%rbp),%xmm1
  movsd  -0x70(%rbp),%xmm0
  movapd %xmm0,%xmm2
  addsd  %xmm0,%xmm2
  movsd  D17(%rip),%xmm0
  addsd  %xmm2,%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D0(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x60(%rbp)
  movsd  -0x70(%rbp),%xmm1
  movsd  D17(%rip),%xmm0
  addsd  %xmm1,%xmm0
  mulsd  -0x70(%rbp),%xmm0
  movsd  D21(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x58(%rbp)
  movl   $0x0,-0xd8(%rbp)
  jmp    L71
L17:
  movl   $0x0,-0xd4(%rbp)
  jmp    L142
L197:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0xd8(%rbp),%xmm0
  movsd  -0x78(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x50(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0xd4(%rbp),%xmm0
  movsd  -0x68(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  movsd  -0x50(%rbp),%xmm0
  addsd  -0x48(%rbp),%xmm0
  mulsd  -0x58(%rbp),%xmm0
  movapd %xmm0,%xmm1
  addsd  -0x60(%rbp),%xmm1
  movsd  -0x50(%rbp),%xmm0
  mulsd  -0x48(%rbp),%xmm0
  mulsd  -0x70(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0xd0(%rbp),%xmm1
  mov    %r13,%rcx
  shr    $0x2,%rcx
  mov    -0x80(%rbp),%rax
  mov    -0xd4(%rbp),%edx
  movslq %edx,%rsi
  mov    -0xd8(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,4),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  subsd  -0x40(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0xd0(%rbp)
  addl   $0x1,-0xd4(%rbp)
L142:
  mov    -0xd4(%rbp),%eax
  cmp    -0xc4(%rbp),%eax
  jl     L197
  addl   $0x1,-0xd8(%rbp)
L71:
  mov    -0xd8(%rbp),%eax
  cmp    -0xcc(%rbp),%eax
  jl     L17
  mov    -0xd0(%rbp),%eax
  mov    %eax,%edi
  call   <chk_int2@plt>
  mov    -0x188(%rbp),%rsp
  nop
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L15
  call   <__stack_chk_fail@plt>
L15:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: read_data
arguments: tag: D17
type_infered: byte[8]
name: read_data
arguments: tag: D0
type_infered: f64
name: read_data
arguments: tag: D21
type_infered: f64

tool: {"D17": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

tool: D0: 6

tool: D21: 2

assistant: ```c
void test_mm_aani_b_c_bc_i4_d() {
  int n1 = 21, n2 = 23, n3 = 25;
  int a[n1][n2], b[n2][n3], x[n1][n3];
#pragma xmp nodes p[2][2]
#pragma xmp template tx[n2][n1]
#pragma xmp template ty[n3][n2]
#pragma xmp template tz[n3][n1]
#pragma xmp distribute tx[block][block] onto p
#pragma xmp distribute ty[cyclic][cyclic] onto p
#pragma xmp distribute tz[cyclic(2)][cyclic(2)] onto p
#pragma xmp align a[i][j] with tx[j][i]
#pragma xmp align b[i][j] with ty[j][i]
#pragma xmp align x[*][j] with tz[j][*]
  int i, j, ierr;
  double rn1, rn2, rn3, rn4, rn5, rn6, ra, rb;
#pragma xmp loop on tx[j][i]
  for (i = 0; i < n1; i++) {
    for (j = 0; j < n2; j++) {
      a[i][j] = i * n1 + j + 1;
    }
  }
#pragma xmp loop on ty[j][i]
  for (i = 0; i < n2; i++) {
    for (j = 0; j < n3; j++) {
      b[i][j] = j * n3 + i + 1;
    }
  }
  for (i = 0; i < n1; i++) {
#pragma xmp loop on tz[j][*]
    for (j = 0; j < n3; j++) {
      x[i][j] = 0;
    }
  }
  xmp_matmul(xmp_desc_of(x), xmp_desc_of(a), xmp_desc_of(b));
  ierr = 0;
  rn1 = n1;
  rn2 = n2;
  rn3 = n3;
  rn4 = rn2 * (rn2 + 1) * (2 * rn2 + 1) / 6.0;
  rn5 = rn2 * (rn2 + 1) / 2.0;
  for (i = 0; i < n1; i++) {
#pragma xmp loop on tz[j][*]
    for (j = 0; j < n3; j++) {
      ra = i * rn1;
      rb = j * rn3;
      rn6 = rn4 + rn5 * (ra + rb) + ra * rb * rn2;
      ierr = ierr + (x[i][j] - rn6);
    }
  }
#pragma xmp task on p[0 : 2][0]
  { chk_int2(ierr); }
}
```