user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x98,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,-0xb8(%rbp)
  movl   $0x3,-0x74(%rbp)
  mov    -0x74(%rbp),%edx
  movslq %edx,%rax
  sub    $0x1,%rax
  mov    %rax,-0x70(%rbp)
  movslq %edx,%rax
  mov    %rax,%rcx
  mov    $0x0,%ebx
  movslq %edx,%rax
  mov    %rax,%rsi
  mov    $0x0,%edi
  movslq %edx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rdx
  mov    %rdx,%rax
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rcx
  sub    %rax,%rcx
L119:
  cmp    %rcx,%rsp
  je     L136
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L119
L136:
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  mov    %rdx,%rax
  and    $0xfff,%eax
  test   %rax,%rax
  je     L63
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L63:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x68(%rbp)
  mov    -0x74(%rbp),%edx
  movslq %edx,%rax
  sub    $0x1,%rax
  mov    %rax,-0x60(%rbp)
  movslq %edx,%rax
  mov    %rax,%r8
  mov    $0x0,%r9d
  movslq %edx,%rax
  mov    %rax,-0xa0(%rbp)
  movq   $0x0,-0x98(%rbp)
  movslq %edx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L121:
  cmp    %rdx,%rsp
  je     L38
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L121
L38:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L11
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L11:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x58(%rbp)
  mov    -0x74(%rbp),%ecx
  mov    -0x74(%rbp),%edi
  movslq %ecx,%rax
  sub    $0x1,%rax
  mov    %rax,-0x50(%rbp)
  movslq %ecx,%rax
  mov    %rax,-0xb0(%rbp)
  movq   $0x0,-0xa8(%rbp)
  movslq %ecx,%rax
  lea    0x0(,%rax,8),%rsi
  movslq %edi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x48(%rbp)
  movslq %ecx,%rax
  mov    %rax,-0x90(%rbp)
  movq   $0x0,-0x88(%rbp)
  movslq %edi,%rax
  mov    %rax,%r14
  mov    $0x0,%r15d
  mov    -0x90(%rbp),%r8
  mov    -0x88(%rbp),%r9
  mov    %r9,%rdx
  imul   %r14,%rdx
  mov    %r8,-0x90(%rbp)
  mov    %r9,-0x88(%rbp)
  mov    %r8,%rax
  imul   %r15,%rax
  lea    (%rdx,%rax,1),%r8
  mov    -0x90(%rbp),%rax
  mul    %r14
  add    %rdx,%r8
  mov    %r8,%rdx
  movslq %ecx,%rax
  mov    %rax,%r12
  mov    $0x0,%r13d
  movslq %edi,%rax
  mov    %rax,%r10
  mov    $0x0,%r11d
  mov    %r13,%rdx
  imul   %r10,%rdx
  mov    %r11,%rax
  imul   %r12,%rax
  lea    (%rdx,%rax,1),%r8
  mov    %r12,%rax
  mul    %r10
  add    %rdx,%r8
  mov    %r8,%rdx
  movslq %ecx,%rdx
  movslq %edi,%rax
  imul   %rdx,%rax
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L16:
  cmp    %rdx,%rsp
  je     L53
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L16
L53:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L62
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L62:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x40(%rbp)
  mov    -0x40(%rbp),%rax
  movsd  D79(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x40(%rbp),%rax
  movsd  D17(%rip),%xmm0
  movsd  %xmm0,0x8(%rax)
  mov    -0x40(%rbp),%rax
  movsd  D55(%rip),%xmm0
  movsd  %xmm0,0x10(%rax)
  mov    -0x58(%rbp),%rax
  movsd  D79(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    %rsi,%rdx
  shr    $0x3,%rdx
  mov    -0x40(%rbp),%rax
  movsd  D112(%rip),%xmm0
  movsd  %xmm0,(%rax,%rdx,8)
  mov    %rsi,%rdx
  shr    $0x3,%rdx
  mov    -0x40(%rbp),%rax
  add    $0x1,%rdx
  movsd  D65(%rip),%xmm0
  movsd  %xmm0,(%rax,%rdx,8)
  mov    %rsi,%rdx
  shr    $0x3,%rdx
  mov    -0x40(%rbp),%rax
  add    $0x2,%rdx
  movsd  D93(%rip),%xmm0
  movsd  %xmm0,(%rax,%rdx,8)
  mov    -0x58(%rbp),%rax
  movsd  D74(%rip),%xmm0
  movsd  %xmm0,0x8(%rax)
  mov    %rsi,%rax
  shr    $0x3,%rax
  mov    -0x40(%rbp),%rdx
  shl    $0x4,%rax
  add    %rdx,%rax
  movsd  D17(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    %rsi,%rax
  shr    $0x3,%rax
  mov    -0x40(%rbp),%rdx
  shl    $0x4,%rax
  add    %rdx,%rax
  add    $0x8,%rax
  movsd  D112(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    %rsi,%rax
  shr    $0x3,%rax
  mov    -0x40(%rbp),%rdx
  add    $0x1,%rax
  shl    $0x4,%rax
  add    %rdx,%rax
  movsd  D67(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x58(%rbp),%rax
  movsd  D98(%rip),%xmm0
  movsd  %xmm0,0x10(%rax)
  movl   $0x0,-0x78(%rbp)
  jmp    L72
L134:
  mov    -0x68(%rbp),%rax
  mov    -0x78(%rbp),%edx
  movslq %edx,%rdx
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax,%rdx,8)
  addl   $0x1,-0x78(%rbp)
L72:
  mov    -0x78(%rbp),%eax
  cmp    -0x74(%rbp),%eax
  jl     L134
  mov    -0x40(%rbp),%rcx
  mov    -0x58(%rbp),%rdx
  mov    -0x68(%rbp),%rsi
  mov    -0x74(%rbp),%eax
  mov    %eax,%edi
  call   <JacobisMethod@plt>
  mov    -0x68(%rbp),%rdx
  mov    -0x74(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <print@plt>
  movl   $0x0,-0x78(%rbp)
  jmp    L101
L87:
  mov    -0x68(%rbp),%rax
  mov    -0x78(%rbp),%edx
  movslq %edx,%rdx
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax,%rdx,8)
  addl   $0x1,-0x78(%rbp)
L101:
  mov    -0x78(%rbp),%eax
  cmp    -0x74(%rbp),%eax
  jl     L87
  mov    -0x40(%rbp),%rcx
  mov    -0x58(%rbp),%rdx
  mov    -0x68(%rbp),%rsi
  mov    -0x74(%rbp),%eax
  mov    %eax,%edi
  call   <GaussSeidalMethod@plt>
  mov    -0x68(%rbp),%rdx
  mov    -0x74(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <print@plt>
  mov    $0x0,%eax
  mov    -0xb8(%rbp),%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L117
  call   <__stack_chk_fail@plt>
L117:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D79
type: byte[8]
name: unpack_data
arguments: data_tag: D17
type: byte[8]
name: unpack_data
arguments: data_tag: D55
type: byte[8]
name: unpack_data
arguments: data_tag: D112
type: byte[8]
name: unpack_data
arguments: data_tag: D65
type: byte[8]
name: unpack_data
arguments: data_tag: D93
type: byte[8]
name: unpack_data
arguments: data_tag: D74
type: byte[8]
name: unpack_data
arguments: data_tag: D67
type: byte[8]
name: unpack_data
arguments: data_tag: D98
type: byte[8]

tool: {"D79": [0x00,0x00,0x00,0x00,0x00,0x00,0x20,0x40]}

tool: {"D17": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40]}

tool: {"D55": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc0]}

tool: {"D112": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

tool: {"D65": [0x00,0x00,0x00,0x00,0x00,0x00,0x20,0xc0]}

tool: {"D93": [0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x40]}

tool: {"D74": [0x00,0x00,0x00,0x00,0x00,0x00,0x10,0xc0]}

tool: {"D67": [0x00,0x00,0x00,0x00,0x00,0x00,0x22,0x40]}

tool: {"D98": [0x00,0x00,0x00,0x00,0x00,0x00,0x28,0x40]}

assistant: ```c
int main() {
  int n = 3;
  double x[n];
  double b[n], a[n][n];
  a[0][0] = 8;
  a[0][1] = 2;
  a[0][2] = -2;
  b[0] = 8;
  a[1][0] = 1;
  a[1][1] = -8;
  a[1][2] = 3;
  b[1] = -4;
  a[2][0] = 2;
  a[2][1] = 1;
  a[2][2] = 9;
  b[2] = 12;
  int i;
  for (i = 0; i < n; i++) {
    x[i] = 0;
  }
  JacobisMethod(n, x, b, a);
  print(n, x);
  for (i = 0; i < n; i++) {
    x[i] = 0;
  }
  GaussSeidalMethod(n, x, b, a);
  print(n, x);
  return 0;
}
```