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

```asm
<mtx3x3Invert>:
  endbr64
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %rsi,%rbp
  sub    $0x48,%rsp
  movss  0x10(%rsi),%xmm3
  movss  0x1c(%rsi),%xmm0
  movss  0x20(%rsi),%xmm2
  movss  0x14(%rsi),%xmm4
  movss  0xc(%rsi),%xmm6
  movss  0x18(%rsi),%xmm5
  movaps %xmm3,%xmm1
  movaps %xmm0,%xmm7
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  mulss  %xmm4,%xmm7
  mulss  %xmm2,%xmm1
  mulss  %xmm5,%xmm4
  mulss  %xmm6,%xmm2
  mulss  %xmm6,%xmm0
  mulss  %xmm5,%xmm3
  subss  %xmm7,%xmm1
  mulss  (%rsi),%xmm1
  subss  %xmm4,%xmm2
  mulss  0x4(%rsi),%xmm2
  subss  %xmm3,%xmm0
  mulss  0x8(%rsi),%xmm0
  subss  %xmm2,%xmm1
  addss  %xmm0,%xmm1
  movaps %xmm1,%xmm0
  movss  %xmm1,0xc(%rsp)
  call   <fabs@plt>
  movsd  D4(%rip),%xmm2
  movss  0xc(%rsp),%xmm1
  comisd %xmm0,%xmm2
  ja     L8
  lea    0x10(%rsp),%rdi
  mov    $0x24,%edx
  mov    %rbp,%rsi
  movss  %xmm1,0xc(%rsp)
  call   <memcpy@plt>
  movss  0x20(%rsp),%xmm4
  movss  0x24(%rsp),%xmm2
  movss  0x2c(%rsp),%xmm3
  movss  0x18(%rsp),%xmm11
  movaps %xmm2,%xmm8
  movaps %xmm4,%xmm13
  movaps %xmm4,%xmm10
  movss  0xc(%rsp),%xmm1
  mulss  %xmm3,%xmm8
  movss  0x30(%rsp),%xmm0
  movaps %xmm2,%xmm14
  movss  0x14(%rsp),%xmm5
  mulss  %xmm11,%xmm13
  movss  0x1c(%rsp),%xmm6
  movaps %xmm2,%xmm15
  movss  0x28(%rsp),%xmm9
  mulss  %xmm0,%xmm10
  movaps %xmm0,%xmm12
  movss  0x10(%rsp),%xmm7
  mulss  %xmm5,%xmm14
  mulss  %xmm5,%xmm12
  divss  %xmm1,%xmm8
  mulss  %xmm9,%xmm15
  mulss  %xmm7,%xmm2
  divss  %xmm1,%xmm13
  subss  %xmm8,%xmm10
  movaps %xmm3,%xmm8
  mulss  %xmm11,%xmm8
  subss  %xmm8,%xmm12
  movss  D8(%rip),%xmm8
  xorps  %xmm8,%xmm12
  divss  %xmm1,%xmm12
  subss  %xmm13,%xmm14
  movaps %xmm0,%xmm13
  mulss  %xmm6,%xmm13
  mulss  %xmm7,%xmm0
  subss  %xmm15,%xmm13
  xorps  %xmm8,%xmm13
  divss  %xmm1,%xmm13
  unpcklps %xmm12,%xmm10
  unpcklps %xmm13,%xmm14
  movlhps %xmm14,%xmm10
  movups %xmm10,(%r12)
  movaps %xmm11,%xmm10
  mulss  %xmm9,%xmm10
  mulss  %xmm6,%xmm11
  divss  %xmm1,%xmm10
  subss  %xmm11,%xmm2
  movaps %xmm4,%xmm11
  mulss  %xmm9,%xmm11
  mulss  %xmm5,%xmm9
  mulss  %xmm6,%xmm5
  xorps  %xmm8,%xmm2
  mulss  %xmm7,%xmm4
  divss  %xmm1,%xmm11
  subss  %xmm10,%xmm0
  movaps %xmm3,%xmm10
  mulss  %xmm7,%xmm3
  mulss  %xmm6,%xmm10
  subss  %xmm9,%xmm3
  xorps  %xmm8,%xmm3
  divss  %xmm1,%xmm5
  subss  %xmm11,%xmm10
  divss  %xmm1,%xmm2
  subss  %xmm5,%xmm4
  movss  %xmm4,0x20(%r12)
  divss  %xmm1,%xmm3
  unpcklps %xmm2,%xmm0
  unpcklps %xmm3,%xmm10
  movlhps %xmm10,%xmm0
  movups %xmm0,0x10(%r12)
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L5
  add    $0x48,%rsp
  pop    %rbp
  pop    %r12
  ret
  nopl   0x0(%rax)
L8:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L5
  add    $0x48,%rsp
  mov    %r12,%rdi
  pop    %rbp
  pop    %r12
  jmp    10b0 <mtx3x3LoadIdentity@plt>
L5:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D4
datatype: f64
name: disassemble_data
arguments: tag: D8
datatype: byte[4]

tool: D4: 0.0005

tool: {"D8": [0x00,0x00,0x00,0x80]}

assistant: ```c
void mtx3x3Invert(float *mtx, const float *src) {
  float cpy[9];
  float det = src[0] * (src[4] * src[8] - src[7] * src[5]) - src[1] * (src[3] * src[8] - src[6] * src[5]) + src[2] * (src[3] * src[7] - src[6] * src[4]);
  if (fabs(det) < 0.0005) {
    mtx3x3LoadIdentity(mtx);
    return;
  }
  memcpy(cpy, src, 9 * sizeof(float));
  mtx[0] = cpy[4] * cpy[8] - cpy[5] * cpy[7] / det;
  mtx[1] = -(cpy[1] * cpy[8] - cpy[7] * cpy[2]) / det;
  mtx[2] = cpy[1] * cpy[5] - cpy[4] * cpy[2] / det;
  mtx[3] = -(cpy[3] * cpy[8] - cpy[5] * cpy[6]) / det;
  mtx[4] = cpy[0] * cpy[8] - cpy[6] * cpy[2] / det;
  mtx[5] = -(cpy[0] * cpy[5] - cpy[3] * cpy[2]) / det;
  mtx[6] = cpy[3] * cpy[7] - cpy[6] * cpy[4] / det;
  mtx[7] = -(cpy[0] * cpy[7] - cpy[6] * cpy[1]) / det;
  mtx[8] = cpy[0] * cpy[4] - cpy[1] * cpy[3] / det;
}
```