user: Translate the below assembly code into C programming language:

```asm
<sp_add>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x6000(%rsp),%r11
L83:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L83
  sub    $0x410,%rsp
  mov    %rdi,%r10
  mov    %fs:0x28,%rax
  mov    %rax,0x6408(%rsp)
  xor    %eax,%eax
  mov    (%rdi),%eax
  cmp    (%rsi),%eax
  jne    L115
  mov    %rsi,%rdi
  mov    %eax,(%rsp)
  mov    0x4(%r10),%eax
  mov    %eax,0x4(%rsp)
  mov    0x8(%r10),%r9d
  mov    $0x1,%ecx
  mov    $0x1,%esi
  test   %r9d,%r9d
  jle    L165
  mov    0x8(%rdi),%ebp
  mov    $0x1,%esi
  mov    $0x1,%ecx
  mov    $0x1,%r8d
  jmp    L112
L115:
  lea    D5(%rip),%rdi
  call   <puts@plt>
  jmp    L64
L155:
  mov    0x4(%rax),%r12d
  mov    0x4(%rdx),%r13d
  cmp    %r13d,%r12d
  je     L12
  jl     L48
  jle    L16
  jmp    L22
L12:
  movslq %esi,%r13
  lea    0x0(,%r13,4),%rbx
  lea    (%rbx,%r13,1),%r14
  shl    $0x6,%r14
  mov    %r11d,(%rsp,%r14,1)
  mov    %r12d,0x4(%rsp,%r14,1)
  mov    0x8(%rdx),%edx
  add    0x8(%rax),%edx
  mov    %edx,0x8(%rsp,%r14,1)
  add    $0x1,%r8d
  add    $0x1,%ecx
  add    $0x1,%esi
  jmp    L16
L48:
  movslq %esi,%rbx
  lea    0x0(,%rbx,4),%rdx
  lea    (%rdx,%rbx,1),%r12
  shl    $0x6,%r12
  mov    %r11d,(%rsp,%r12,1)
  mov    %r12,%r11
  mov    0x4(%rax),%r12d
  mov    %r12d,0x4(%rsp,%r11,1)
  mov    0x8(%rax),%eax
  mov    %eax,0x8(%rsp,%r11,1)
  add    $0x1,%r8d
  add    $0x1,%esi
L16:
  cmp    %r9d,%r8d
  jg     L165
L112:
  cmp    %ecx,%ebp
  jl     L75
  movslq %r8d,%rax
  lea    (%rax,%rax,4),%rax
  shl    $0x6,%rax
  add    %r10,%rax
  mov    (%rax),%r11d
  movslq %ecx,%rdx
  lea    (%rdx,%rdx,4),%rdx
  shl    $0x6,%rdx
  add    %rdi,%rdx
  mov    (%rdx),%ebx
  cmp    %ebx,%r11d
  je     L155
  jl     L48
  jle    L16
L22:
  movslq %esi,%r11
  lea    0x0(,%r11,4),%rax
  lea    (%rax,%r11,1),%r12
  shl    $0x6,%r12
  mov    %ebx,(%rsp,%r12,1)
  mov    %r12,%rbx
  mov    0x4(%rdx),%r12d
  mov    %r12d,0x4(%rsp,%rbx,1)
  mov    0x8(%rdx),%edx
  mov    %edx,0x8(%rsp,%rbx,1)
  add    $0x1,%ecx
  add    $0x1,%esi
  jmp    L16
L75:
  cmp    %r8d,%r9d
  jl     L150
  movslq %r8d,%rax
  lea    (%rax,%rax,4),%rax
  shl    $0x6,%rax
  add    %r10,%rax
  movslq %esi,%rdx
  lea    (%rdx,%rdx,4),%rdx
  shl    $0x6,%rdx
  lea    (%rsp,%rdx,1),%rdx
  mov    %r8d,%r10d
L159:
  mov    (%rax),%r11d
  mov    %r11d,(%rdx)
  mov    0x4(%rax),%r11d
  mov    %r11d,0x4(%rdx)
  mov    0x8(%rax),%r11d
  mov    %r11d,0x8(%rdx)
  add    $0x1,%r10d
  add    $0x140,%rax
  add    $0x140,%rdx
  cmp    %r9d,%r10d
  jle    L159
  mov    %r9d,%eax
  sub    %r8d,%eax
  cmp    %r8d,%r9d
  mov    $0x0,%edx
  cmovl  %edx,%eax
  lea    0x1(%rsi,%rax,1),%esi
L165:
  mov    0x8(%rdi),%r9d
  cmp    %r9d,%ecx
  jg     L150
  movslq %ecx,%r11
  lea    (%r11,%r11,4),%rax
  shl    $0x6,%rax
  add    %rdi,%rax
  movslq %esi,%rdx
  lea    (%rdx,%rdx,4),%rdx
  shl    $0x6,%rdx
  lea    (%rsp,%rdx,1),%rdx
  mov    %ecx,%r10d
  mov    %r9d,%r8d
  sub    %ecx,%r8d
  lea    (%r8,%r11,1),%rcx
  lea    (%rcx,%rcx,4),%rcx
  shl    $0x6,%rcx
  lea    0x140(%rdi,%rcx,1),%rdi
L68:
  mov    (%rax),%ecx
  mov    %ecx,(%rdx)
  mov    0x4(%rax),%ecx
  mov    %ecx,0x4(%rdx)
  mov    0x8(%rax),%ecx
  mov    %ecx,0x8(%rdx)
  add    $0x140,%rax
  add    $0x140,%rdx
  cmp    %rax,%rdi
  jne    L68
  lea    0x1(%rsi,%r9,1),%esi
  sub    %r10d,%esi
L150:
  lea    -0x1(%rsi),%eax
  mov    %eax,0x8(%rsp)
  mov    %rsp,%rdi
  mov    $0x3,%edx
  call   <mat_write@plt>
L64:
  mov    0x6408(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L196
  add    $0x6410,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L196:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D5
type: string

tool: D5: Not Possible

assistant: ```c
void sp_add(int sp1[][80], int sp2[][80]) {
  int i, j, k, c;
  int sp[80][80];
  if (sp1[0][0] != sp2[0][0] || sp1[0][1] != sp1[0][1]) {
    puts("Not Possible");
    return;
  }
  sp[0][0] = sp1[0][0];
  sp[0][1] = sp1[0][1];
  i = j = k = 1;
  while (i <= sp1[0][2] && j <= sp2[0][2])
    if (sp1[i][0] == sp2[j][0] && sp1[i][1] == sp2[j][1]) {
      for (c = 0; c < 3 - 1; ++c)
        sp[k][c] = sp1[i][c];
      sp[k][2] = sp1[i][2] + sp2[j][2];
      ++i, ++j, ++k;
    } else if (sp1[i][0] < sp2[j][0] || (sp1[i][0] == sp2[j][0] && sp1[i][1] < sp2[j][1])) {
      for (c = 0; c < 3; ++c)
        sp[k][c] = sp1[i][c];
      ++i, ++k;
    } else if (sp1[i][0] > sp2[j][0] || (sp1[i][0] == sp2[j][0] && sp1[i][1] > sp2[j][1])) {
      for (c = 0; c < 3; ++c)
        sp[k][c] = sp2[j][c];
      ++j, ++k;
    }
  while (i <= sp1[0][2]) {
    for (c = 0; c < 3; ++c)
      sp[k][c] = sp1[i][c];
    ++i, ++k;
  }
  while (j <= sp2[0][2]) {
    for (c = 0; c < 3; ++c)
      sp[k][c] = sp2[j][c];
    ++j, ++k;
  }
  sp[0][2] = k - 1;
  mat_write(sp, k, 3);
}
```