user: 下面的汇编指令对应的C源代码是什么:

```asm
<change_basis_tricli>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x140,%rsp
  mov    %rdi,%rbx
  mov    %rdx,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x138(%rsp)
  xor    %eax,%eax
  movsd  (%rsi),%xmm1
  movsd  %xmm1,(%rsp)
  movsd  0x8(%rsi),%xmm1
  movsd  %xmm1,0x8(%rsp)
  movsd  0x10(%rsi),%xmm1
  movsd  %xmm1,0x10(%rsp)
  movsd  0x18(%rsi),%xmm1
  movsd  %xmm1,0x18(%rsp)
  movsd  0x20(%rsi),%xmm1
  movsd  %xmm1,0x20(%rsp)
  movsd  0x28(%rsi),%xmm1
  movsd  %xmm1,0x28(%rsp)
  movsd  0x30(%rsi),%xmm1
  movsd  %xmm1,0x30(%rsp)
  movsd  0x38(%rsi),%xmm1
  movsd  %xmm1,0x38(%rsp)
  movsd  0x40(%rsi),%xmm1
  movsd  %xmm1,0x40(%rsp)
  mulsd  %xmm0,%xmm0
  mov    %rsp,%rdi
  call   <niggli_reduce@plt>
  test   %eax,%eax
  je     L23
  movsd  (%rsp),%xmm0
  movsd  %xmm0,0x50(%rsp)
  movsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x58(%rsp)
  movsd  0x10(%rsp),%xmm0
  movsd  %xmm0,0x60(%rsp)
  movsd  0x18(%rsp),%xmm0
  movsd  %xmm0,0x68(%rsp)
  movsd  0x20(%rsp),%xmm0
  movsd  %xmm0,0x70(%rsp)
  movsd  0x28(%rsp),%xmm0
  movsd  %xmm0,0x78(%rsp)
  movsd  0x30(%rsp),%xmm0
  movsd  %xmm0,0x80(%rsp)
  movsd  0x38(%rsp),%xmm0
  movsd  %xmm0,0x88(%rsp)
  movsd  0x40(%rsp),%xmm0
  movsd  %xmm0,0x90(%rsp)
  lea    0x50(%rsp),%rdi
  call   <mat_get_determinant_d3@plt>
  test   %rax,%rax
  js     L34
L33:
  lea    0xa0(%rsp),%r12
  mov    $0x0,%edx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <mat_inverse_matrix_d3@plt>
  lea    0x50(%rsp),%rdx
  lea    0xf0(%rsp),%rbp
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <mat_multiply_matrix_d3@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <mat_cast_matrix_3d_to_3i@plt>
  mov    $0x1,%eax
L23:
  mov    0x138(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L45
  add    $0x140,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L34:
  lea    0x50(%rsp),%rax
  lea    0x98(%rsp),%rdx
  movq   D8(%rip),%xmm1
L4:
  movsd  (%rax),%xmm0
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  movsd  0x8(%rax),%xmm0
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0x10(%rax),%xmm0
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,0x10(%rax)
  add    $0x18,%rax
  cmp    %rdx,%rax
  jne    L4
  jmp    L33
L45:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D8
type_guessed: byte[8]

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

assistant: ```c
int change_basis_tricli(int tmat_int[3][3], double conv_lattice[3][3], double primitive_lattice[3][3], const double symprec) {
  int i, j;
  double niggli_cell[9];
  double smallest_lattice[3][3], inv_lattice[3][3], tmat[3][3];
  for (i = 0; i < 3; i++) {
    for (j = 0; j < 3; j++) {
      niggli_cell[i * 3 + j] = conv_lattice[i][j];
    }
  }
  if (!niggli_reduce(niggli_cell, symprec * symprec)) {
    return 0;
  }
  for (i = 0; i < 3; i++) {
    for (j = 0; j < 3; j++) {
      smallest_lattice[i][j] = niggli_cell[i * 3 + j];
    }
  }
  if (mat_get_determinant_d3(smallest_lattice) < 0) {
    for (i = 0; i < 3; i++) {
      for (j = 0; j < 3; j++) {
        smallest_lattice[i][j] = -smallest_lattice[i][j];
      }
    }
  }
  mat_inverse_matrix_d3(inv_lattice, primitive_lattice, 0);
  mat_multiply_matrix_d3(tmat, inv_lattice, smallest_lattice);
  mat_cast_matrix_3d_to_3i(tmat_int, tmat);
  return 1;
}
```