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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x1c0,%rsp
  mov    %edi,-0x1b4(%rbp)
  mov    %rsi,-0x1c0(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movsd  D180(%rip),%xmm0
  movsd  %xmm0,-0x50(%rbp)
  movsd  D180(%rip),%xmm0
  movsd  %xmm0,-0x48(%rbp)
  movsd  D180(%rip),%xmm0
  movsd  %xmm0,-0x40(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movsd  D360(%rip),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movsd  D416(%rip),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  D360(%rip),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  D416(%rip),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  D106(%rip),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  D209(%rip),%xmm0
  movsd  %xmm0,-0x1a0(%rbp)
  movsd  D109(%rip),%xmm0
  movsd  %xmm0,-0x198(%rbp)
  movsd  D181(%rip),%xmm0
  movsd  %xmm0,-0x190(%rbp)
  movq   $0x0,-0x180(%rbp)
  movq   $0x0,-0x178(%rbp)
  movq   $0x0,-0x170(%rbp)
  movsd  D144(%rip),%xmm0
  movsd  %xmm0,-0x80(%rbp)
  movsd  D412(%rip),%xmm0
  movsd  %xmm0,-0x78(%rbp)
  movsd  D161(%rip),%xmm0
  movsd  %xmm0,-0x70(%rbp)
  movsd  D209(%rip),%xmm0
  movsd  %xmm0,-0x68(%rbp)
  movsd  D217(%rip),%xmm0
  movsd  %xmm0,-0x60(%rbp)
  movsd  D180(%rip),%xmm0
  movsd  %xmm0,-0x160(%rbp)
  movsd  D360(%rip),%xmm0
  movsd  %xmm0,-0x158(%rbp)
  movsd  D217(%rip),%xmm0
  movsd  %xmm0,-0x150(%rbp)
  movsd  D217(%rip),%xmm0
  movsd  %xmm0,-0x140(%rbp)
  movsd  D360(%rip),%xmm0
  movsd  %xmm0,-0x138(%rbp)
  movsd  D180(%rip),%xmm0
  movsd  %xmm0,-0x130(%rbp)
  movq   $0x0,-0x120(%rbp)
  movq   $0x0,-0x118(%rbp)
  movq   $0x0,-0x110(%rbp)
  movq   $0x0,-0xa0(%rbp)
  movq   $0x0,-0x98(%rbp)
  movq   $0x0,-0x90(%rbp)
  movq   $0x0,-0x88(%rbp)
  lea    -0x180(%rbp),%rcx
  lea    -0x1a0(%rbp),%rdx
  lea    -0x50(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x3,%edi
  call   <matrix_solve@plt>
  lea    -0x120(%rbp),%rdx
  lea    -0x140(%rbp),%rcx
  lea    -0x160(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <vector3_cross@plt>
  lea    -0xa0(%rbp),%rdx
  lea    -0x80(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <polynomial_solve_degree_4@plt>
  test   %eax,%eax
  jne    L59
  lea    D150(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L59:
  lea    -0x50(%rbp),%rax
  mov    %rax,%rdx
  mov    $0x9,%esi
  lea    D304(%rip),%rax
  mov    %rax,%rdi
  call   <printm@plt>
  lea    -0x1a0(%rbp),%rax
  mov    %rax,%rdx
  mov    $0x3,%esi
  lea    D175(%rip),%rax
  mov    %rax,%rdi
  call   <printm@plt>
  lea    -0x180(%rbp),%rax
  mov    %rax,%rdx
  mov    $0x3,%esi
  lea    D374(%rip),%rax
  mov    %rax,%rdi
  call   <printm@plt>
  lea    -0x120(%rbp),%rax
  mov    %rax,%rdx
  mov    $0x3,%esi
  lea    D295(%rip),%rax
  mov    %rax,%rdi
  call   <printm@plt>
  lea    -0xa0(%rbp),%rax
  mov    %rax,%rdx
  mov    $0x4,%esi
  lea    D321(%rip),%rax
  mov    %rax,%rdi
  call   <printm@plt>
  lea    D164(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movsd  D180(%rip),%xmm0
  movsd  %xmm0,-0x100(%rbp)
  movsd  D180(%rip),%xmm0
  movsd  %xmm0,-0xf8(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0xf0(%rbp)
  movsd  D180(%rip),%xmm0
  movsd  %xmm0,-0xe0(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0xd8(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0xd0(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0xc0(%rbp)
  movsd  D210(%rip),%xmm0
  movsd  %xmm0,-0xb8(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0xb0(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x1a8(%rbp)
  lea    -0x100(%rbp),%rax
  mov    %rax,%rdx
  mov    $0x3,%esi
  lea    D107(%rip),%rax
  mov    %rax,%rdi
  call   <printm@plt>
  lea    -0xe0(%rbp),%rax
  mov    %rax,%rdx
  mov    $0x3,%esi
  lea    D403(%rip),%rax
  mov    %rax,%rdi
  call   <printm@plt>
  lea    -0xc0(%rbp),%rax
  mov    %rax,%rdx
  mov    $0x3,%esi
  lea    D153(%rip),%rax
  mov    %rax,%rdi
  call   <printm@plt>
  lea    -0x1a8(%rbp),%rcx
  lea    -0xc0(%rbp),%rdx
  lea    -0xe0(%rbp),%rsi
  lea    -0x100(%rbp),%rax
  mov    %rax,%rdi
  call   <distance_posdir_point@plt>
  test   %eax,%eax
  jne    L72
  mov    -0x1a8(%rbp),%rax
  movq   %rax,%xmm0
  lea    D266(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
L72:
  mov    D289(%rip),%rsi
  lea    -0xc0(%rbp),%rdx
  lea    -0xe0(%rbp),%rcx
  lea    -0x100(%rbp),%rax
  movq   %rsi,%xmm0
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <posdir_outside_of_sphere@plt>
  test   %rax,%rax
  je     L55
  lea    D60(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L30
L55:
  lea    D421(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L30:
  movsd  -0xb8(%rbp),%xmm1
  movsd  D386(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0xb8(%rbp)
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x1a8(%rbp),%rcx
  lea    -0xc0(%rbp),%rdx
  lea    -0xe0(%rbp),%rsi
  lea    -0x100(%rbp),%rax
  mov    %rax,%rdi
  call   <distance_posdir_point@plt>
  test   %eax,%eax
  jne    L17
  mov    -0x1a8(%rbp),%rax
  movq   %rax,%xmm0
  lea    D266(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
L17:
  mov    D289(%rip),%rsi
  lea    -0xc0(%rbp),%rdx
  lea    -0xe0(%rbp),%rcx
  lea    -0x100(%rbp),%rax
  movq   %rsi,%xmm0
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <posdir_outside_of_sphere@plt>
  test   %rax,%rax
  je     L74
  lea    D60(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L20
L74:
  lea    D421(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L20:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L32
  call   <__stack_chk_fail@plt>
L32:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D180
type_guessed: f32[2]
name: retrieve_data
arguments: tag: D360
type_guessed: f32[2]
name: retrieve_data
arguments: tag: D416
type_guessed: f32[2]
name: retrieve_data
arguments: tag: D106
type_guessed: f32[2]
name: retrieve_data
arguments: tag: D209
type_guessed: f32[2]
name: retrieve_data
arguments: tag: D109
type_guessed: f32[2]
name: retrieve_data
arguments: tag: D181
type_guessed: f32[2]
name: retrieve_data
arguments: tag: D144
type_guessed: f32[2]
name: retrieve_data
arguments: tag: D412
type_guessed: f32[2]
name: retrieve_data
arguments: tag: D161
type_guessed: f32[2]
name: retrieve_data
arguments: tag: D217
type_guessed: f32[2]
name: retrieve_data
arguments: tag: D150
type_guessed: string
name: retrieve_data
arguments: tag: D304
type_guessed: string
name: retrieve_data
arguments: tag: D175
type_guessed: string
name: retrieve_data
arguments: tag: D374
type_guessed: string
name: retrieve_data
arguments: tag: D295
type_guessed: string
name: retrieve_data
arguments: tag: D321
type_guessed: string
name: retrieve_data
arguments: tag: D164
type_guessed: string
name: retrieve_data
arguments: tag: D210
type_guessed: f64
name: retrieve_data
arguments: tag: D107
type_guessed: string
name: retrieve_data
arguments: tag: D403
type_guessed: string
name: retrieve_data
arguments: tag: D153
type_guessed: string
name: retrieve_data
arguments: tag: D266
type_guessed: string
name: retrieve_data
arguments: tag: D289
type_guessed: f64
name: retrieve_data
arguments: tag: D60
type_guessed: string
name: retrieve_data
arguments: tag: D421
type_guessed: string
name: retrieve_data
arguments: tag: D386
type_guessed: f64
name: retrieve_data
arguments: tag: D0
type_guessed: string

tool: {"D180": [0.0,1.875]}

tool: {"D360": [0.0,2.0]}

tool: {"D416": [0.0,2.3125]}

tool: {"D106": [0.0,-1.875]}

tool: {"D209": [0.0,2.375]}

tool: {"D109": [0.0,-2.25]}

tool: {"D181": [0.0,2.921875]}

tool: {"D144": [0.0,4.52734375]}

tool: {"D412": [0.0,-3.4921875]}

tool: {"D161": [0.0,-3.48046875]}

tool: {"D217": [0.0,2.125]}

tool: D150: No results for the polynomial.

tool: D304: A

tool: D175: B

tool: D374: X

tool: D295: a x b

tool: D321: x

tool: D164: =======================================

tool: D210: 3.5

tool: D107: position

tool: D403: direction

tool: D153: point

tool: D266: Distance %f


tool: D289: 2.5

tool: D60: The point is outside.

tool: D421: The point is inside.

tool: D386: 1e-06

tool: D0: point[1] += 0.000001

assistant: ```c
int main(int argc, char *argv[]) {
  double A[] = {1, 1, 1, 0, 2, 5, 2, 5, -1}, B[] = {6, -4, 27}, X[3] = {0};
  double poly[] = {1080, -126, -123, 6, 3};
  double a[] = {1, 2, 3}, b[] = {3, 2, 1}, abcross[3] = {0};
  double x[4] = {0};
  matrix_solve(3, A, B, X);
  vector3_cross(a, b, abcross);
  if (!polynomial_solve_degree_4(poly, x))
    printf("No results for the polynomial.\n");
  printm("A", 9, A);
  printm("B", 3, B);
  printm("X", 3, X);
  printm("a x b", 3, abcross);
  printm("x", 4, x);
  puts("=======================================");
  double position[] = {1, 1, 0}, direction[] = {1, 0, 0}, point[] = {0, 3.5, 0};
  double distance = 0;
  printm("position", 3, position);
  printm("direction", 3, direction);
  printm("point", 3, point);
  if (!distance_posdir_point(position, direction, point, &distance))
    printf("Distance %f\n", distance);
  if (posdir_outside_of_sphere(position, direction, point, 2.5))
    puts("The point is outside.");
  else
    puts("The point is inside.");
  point[1] += 0.000001;
  puts("point[1] += 0.000001");
  if (!distance_posdir_point(position, direction, point, &distance))
    printf("Distance %f\n", distance);
  if (posdir_outside_of_sphere(position, direction, point, 2.5))
    puts("The point is outside.");
  else
    puts("The point is inside.");
  return 0;
}
```