user: Converte this assembly snippet into its equivalent C code:

```asm
<testGJ>:
  endbr64
  push   %r14
  mov    $0x2,%esi
  mov    $0x2,%edi
  push   %r13
  lea    D65(%rip),%r13
  push   %r12
  push   %rbp
  xor    %ebp,%ebp
  push   %rbx
  lea    0x1(%rbp),%ebx
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rdx
  lea    0x18(%rsp),%r12
  lea    0x20(%rsp),%r14
  call   <zeros@plt>
  mov    (%rsp),%rax
  lea    0x8(%rsp),%rdx
  movapd D62(%rip),%xmm1
  movapd D1(%rip),%xmm0
  mov    $0x1,%esi
  mov    $0x2,%edi
  movups %xmm1,0x10(%rax)
  movups %xmm0,(%rax)
  call   <zeros@plt>
  mov    0x8(%rsp),%rax
  lea    0x10(%rsp),%rdx
  movapd D1(%rip),%xmm0
  mov    $0x1,%esi
  mov    $0x2,%edi
  movups %xmm0,(%rax)
  call   <zeros@plt>
  mov    %r12,%rdx
  mov    $0x1,%esi
  mov    $0x2,%edi
  call   <zeros@plt>
  mov    %r14,%rdx
  mov    $0x1,%esi
  mov    $0x2,%edi
  call   <zeros@plt>
  lea    D37(%rip),%rdi
  call   <puts@plt>
  mov    (%rsp),%rdi
  mov    $0x2,%edx
  mov    $0x2,%esi
  call   <print@plt>
  lea    D3(%rip),%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%rdi
  mov    $0x1,%edx
  mov    $0x2,%esi
  call   <print@plt>
  lea    D68(%rip),%rdi
  call   <puts@plt>
  mov    0x10(%rsp),%rdi
  mov    $0x2,%esi
  mov    $0x1,%edx
  call   <print@plt>
  mov    0x8(%rsp),%rsi
  mov    (%rsp),%rdi
  test   %ebp,%ebp
  je     L20
L9:
  mov    0x18(%rsp),%rdx
  mov    %r14,%r8
  mov    $0x2,%ecx
  call   <GaussJacobiIteration@plt>
  mov    0x20(%rsp),%rdi
  mov    $0x2,%edx
  mov    %r12,%rsi
  mov    $0x1,%ecx
  call   <copy@plt>
  mov    %ebp,%esi
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x18(%rsp),%rdi
  mov    $0x1,%edx
  mov    $0x2,%esi
  call   <print@plt>
  cmp    $0x5,%ebx
  je     L11
  mov    %ebx,%ebp
L17:
  mov    0x8(%rsp),%rsi
  mov    (%rsp),%rdi
  lea    0x1(%rbp),%ebx
  test   %ebp,%ebp
  jne    L9
L20:
  mov    0x10(%rsp),%rdx
  mov    %r12,%r8
  mov    $0x2,%ecx
  mov    %ebx,%ebp
  call   <GaussJacobiIteration@plt>
  xor    %esi,%esi
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x18(%rsp),%rdi
  mov    $0x1,%edx
  mov    $0x2,%esi
  call   <print@plt>
  jmp    L17
  nopl   0x0(%rax)
L11:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L41
  add    $0x30,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L41:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D65
type_infered: string
name: read_data
arguments: data_tag: D62
type_infered: byte[16]
name: read_data
arguments: data_tag: D1
type_infered: byte[16]
name: read_data
arguments: data_tag: D37
type_infered: string
name: read_data
arguments: data_tag: D3
type_infered: string
name: read_data
arguments: data_tag: D68
type_infered: string

tool: D65: Iteration %d:


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

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

tool: D37: A

tool: D3: B

tool: D68: x0

assistant: ```c
void testGJ() {
  double *mat;
  zeros(2, 2, &mat);
  mat[0] = 1;
  mat[1] = 2;
  mat[1 * 2] = 3;
  mat[1 * 2 + 1] = 4;
  double *b;
  zeros(2, 1, &b);
  b[0] = 1;
  b[1] = 2;
  double *x0;
  zeros(2, 1, &x0);
  double *x;
  zeros(2, 1, &x);
  double *xtemp;
  zeros(2, 1, &xtemp);
  printf("A\n");
  print(mat, 2, 2);
  printf("B\n");
  print(b, 2, 1);
  printf("x0\n");
  print(x0, 2, 1);
  int iters = 5;
  for (int i = 0; i < iters; i++) {
    if (i == 0) {
      GaussJacobiIteration(mat, b, x0, 2, &x);
    } else {
      GaussJacobiIteration(mat, b, x, 2, &xtemp);
      copy(xtemp, &x, 2, 1);
    }
    printf("Iteration %d:\n", i);
    print(x, 2, 1);
  }
}
```