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

```asm
<saturatemat>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x90,%rsp
  mov    %rdi,-0x88(%rbp)
  movss  %xmm0,-0x8c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movss  D7(%rip),%xmm0
  movss  %xmm0,-0x80(%rbp)
  movss  D128(%rip),%xmm0
  movss  %xmm0,-0x7c(%rbp)
  movss  D65(%rip),%xmm0
  movss  %xmm0,-0x78(%rbp)
  pxor   %xmm2,%xmm2
  cvtss2sd -0x8c(%rbp),%xmm2
  movsd  D64(%rip),%xmm0
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x80(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x8c(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x74(%rbp)
  pxor   %xmm2,%xmm2
  cvtss2sd -0x8c(%rbp),%xmm2
  movsd  D64(%rip),%xmm0
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x80(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x70(%rbp)
  pxor   %xmm2,%xmm2
  cvtss2sd -0x8c(%rbp),%xmm2
  movsd  D64(%rip),%xmm0
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x80(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x6c(%rbp)
  pxor   %xmm2,%xmm2
  cvtss2sd -0x8c(%rbp),%xmm2
  movsd  D64(%rip),%xmm0
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x7c(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x68(%rbp)
  pxor   %xmm2,%xmm2
  cvtss2sd -0x8c(%rbp),%xmm2
  movsd  D64(%rip),%xmm0
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x7c(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x8c(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x64(%rbp)
  pxor   %xmm2,%xmm2
  cvtss2sd -0x8c(%rbp),%xmm2
  movsd  D64(%rip),%xmm0
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x7c(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x60(%rbp)
  pxor   %xmm2,%xmm2
  cvtss2sd -0x8c(%rbp),%xmm2
  movsd  D64(%rip),%xmm0
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x78(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x5c(%rbp)
  pxor   %xmm2,%xmm2
  cvtss2sd -0x8c(%rbp),%xmm2
  movsd  D64(%rip),%xmm0
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x78(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x58(%rbp)
  pxor   %xmm2,%xmm2
  cvtss2sd -0x8c(%rbp),%xmm2
  movsd  D64(%rip),%xmm0
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x78(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x8c(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x54(%rbp)
  movss  -0x74(%rbp),%xmm0
  movss  %xmm0,-0x50(%rbp)
  movss  -0x70(%rbp),%xmm0
  movss  %xmm0,-0x4c(%rbp)
  movss  -0x6c(%rbp),%xmm0
  movss  %xmm0,-0x48(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x44(%rbp)
  movss  -0x68(%rbp),%xmm0
  movss  %xmm0,-0x40(%rbp)
  movss  -0x64(%rbp),%xmm0
  movss  %xmm0,-0x3c(%rbp)
  movss  -0x60(%rbp),%xmm0
  movss  %xmm0,-0x38(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x34(%rbp)
  movss  -0x5c(%rbp),%xmm0
  movss  %xmm0,-0x30(%rbp)
  movss  -0x58(%rbp),%xmm0
  movss  %xmm0,-0x2c(%rbp)
  movss  -0x54(%rbp),%xmm0
  movss  %xmm0,-0x28(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x24(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x20(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x1c(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x18(%rbp)
  movss  D9(%rip),%xmm0
  movss  %xmm0,-0x14(%rbp)
  mov    -0x88(%rbp),%rdx
  mov    -0x88(%rbp),%rcx
  lea    -0x50(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <matrixmult@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L3
  call   <__stack_chk_fail@plt>
L3:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D7
type: f32
name: parse_data
arguments: data_tag: D128
type: f32
name: parse_data
arguments: data_tag: D65
type: f32
name: parse_data
arguments: data_tag: D64
type: f64
name: parse_data
arguments: data_tag: D9
type: byte[4]

tool: D7: 0.3086

tool: D128: 0.6094

tool: D65: 0.082

tool: D64: 1

tool: {"D9": [0x00,0x00,0x80,0x3f]}

assistant: ```c
void saturatemat(float mat[4][4], float sat) {
  float mmat[4][4];
  float a, b, c, d, e, f, g, h, i;
  float rwgt, gwgt, bwgt;
  rwgt = (0.3086);
  gwgt = (0.6094);
  bwgt = (0.0820);
  a = (1.0 - sat) * rwgt + sat;
  b = (1.0 - sat) * rwgt;
  c = (1.0 - sat) * rwgt;
  d = (1.0 - sat) * gwgt;
  e = (1.0 - sat) * gwgt + sat;
  f = (1.0 - sat) * gwgt;
  g = (1.0 - sat) * bwgt;
  h = (1.0 - sat) * bwgt;
  i = (1.0 - sat) * bwgt + sat;
  mmat[0][0] = a;
  mmat[0][1] = b;
  mmat[0][2] = c;
  mmat[0][3] = 0.0;
  mmat[1][0] = d;
  mmat[1][1] = e;
  mmat[1][2] = f;
  mmat[1][3] = 0.0;
  mmat[2][0] = g;
  mmat[2][1] = h;
  mmat[2][2] = i;
  mmat[2][3] = 0.0;
  mmat[3][0] = 0.0;
  mmat[3][1] = 0.0;
  mmat[3][2] = 0.0;
  mmat[3][3] = 1.0;
  matrixmult(mmat, mat, mat);
}
```