user: 这段汇编代码用C语言表示是什么样的?

```asm
<saturatemat>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x90,%rsp
  mov    %rdi,-0x88(%rbp)
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x90(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movss  D2(%rip),%xmm0
  movss  %xmm0,-0x80(%rbp)
  movss  D57(%rip),%xmm0
  movss  %xmm0,-0x7c(%rbp)
  movss  D3(%rip),%xmm0
  movss  %xmm0,-0x78(%rbp)
  pxor   %xmm2,%xmm2
  cvtss2sd -0x90(%rbp),%xmm2
  movsd  D115(%rip),%xmm0
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x80(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x90(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x74(%rbp)
  pxor   %xmm2,%xmm2
  cvtss2sd -0x90(%rbp),%xmm2
  movsd  D115(%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 -0x90(%rbp),%xmm2
  movsd  D115(%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 -0x90(%rbp),%xmm2
  movsd  D115(%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 -0x90(%rbp),%xmm2
  movsd  D115(%rip),%xmm0
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x7c(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x90(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x64(%rbp)
  pxor   %xmm2,%xmm2
  cvtss2sd -0x90(%rbp),%xmm2
  movsd  D115(%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 -0x90(%rbp),%xmm2
  movsd  D115(%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 -0x90(%rbp),%xmm2
  movsd  D115(%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 -0x90(%rbp),%xmm2
  movsd  D115(%rip),%xmm0
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x78(%rbp),%xmm0
  mulsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x90(%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  D30(%rip),%xmm0
  movss  %xmm0,-0x14(%rbp)
  mov    -0x88(%rbp),%rdx
  mov    -0x88(%rbp),%rcx
  lea    -0x50(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <matrixmult@plt>
  nop
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L8
  call   <__stack_chk_fail@plt>
L8:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D2
type: f32
name: unpack_data
arguments: data_label: D57
type: f32
name: unpack_data
arguments: data_label: D3
type: f32
name: unpack_data
arguments: data_label: D115
type: f64
name: unpack_data
arguments: data_label: D30
type: byte[4]

tool: D2: 0.3086

tool: D57: 0.6094

tool: D3: 0.082

tool: D115: 1

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

assistant: ```c
saturatemat(mat, sat) 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);
}
```