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

```asm
<main>:
  endbr64
  push   %rbp
  lea    D77(%rip),%rdi
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  lea    -0x40(%rbp),%rsi
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <scanf@plt>
  lea    -0x3c(%rbp),%rax
  movl   $0x0,-0x50(%rbp)
  mov    %rax,-0x60(%rbp)
  mov    -0x40(%rbp),%eax
  test   %eax,%eax
  jle    L43
  xchg   %ax,%ax
L145:
  mov    -0x60(%rbp),%rsi
  lea    D77(%rip),%rdi
  mov    %rsp,-0x58(%rbp)
  call   <scanf@plt>
  movslq -0x3c(%rbp),%rax
  lea    0x0(,%rax,4),%rcx
  mov    %rax,%rdi
  imul   %rax,%rax
  mov    %rcx,-0x48(%rbp)
  mov    %rsp,%rcx
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L183
L71:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L71
L183:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L46
  orq    $0x0,-0x8(%rsp,%rdx,1)
L46:
  mov    %rsp,%rax
  test   %edi,%edi
  jle    L175
  lea    -0x1(%rdi),%r11d
  lea    -0x2(%rdi),%r8d
  mov    -0x48(%rbp),%rsi
  xor    %r10d,%r10d
  mov    %r11d,%edx
  mov    %r8d,%ecx
  movdqa D4(%rip),%xmm2
  movdqa D45(%rip),%xmm3
  and    $0xfffffffe,%edx
  shr    $0x2,%rsi
  sub    %edx,%ecx
  xor    %edx,%edx
  mov    %ecx,-0x4c(%rbp)
  mov    $0xffffffff,%ecx
  nopw   0x0(%rax,%rax,1)
L153:
  xor    %ebx,%ebx
  movslq %r10d,%r12
  add    $0x1,%ecx
  add    $0x1,%edx
  nopl   0x0(%rax,%rax,1)
L173:
  lea    (%rcx,%rbx,1),%r9d
  lea    (%rdx,%rbx,1),%r13d
  add    $0x1,%ebx
  movslq %r9d,%r9
  imul   %rsi,%r9
  add    %r12,%r9
  mov    %r13d,(%rax,%r9,4)
  cmp    %edi,%ebx
  jl     L173
  xor    %r9d,%r9d
  test   %edi,%edi
  cmovg  %r11d,%r9d
  add    %r9d,%edx
  add    %r9d,%ecx
  test   %r11d,%r11d
  jle    L80
  cmp    $0x2,%r8d
  jbe    L50
  movslq %ecx,%r9
  lea    0x1(%r10),%ebx
  movd   %edx,%xmm4
  mov    %r9,%r12
  movslq %ebx,%rbx
  pshufd $0x0,%xmm4,%xmm1
  imul   %rsi,%r12
  paddd  D57(%rip),%xmm1
  add    %r12,%rbx
  mov    %r11d,%r12d
  shr    $0x2,%r12d
  lea    (%rax,%rbx,4),%rbx
  shl    $0x4,%r12
  add    %rbx,%r12
  cs nopw 0x0(%rax,%rax,1)
L149:
  movdqa %xmm1,%xmm0
  add    $0x10,%rbx
  paddd  D45(%rip),%xmm1
  paddd  %xmm2,%xmm0
  movups %xmm0,-0x10(%rbx)
  cmp    %rbx,%r12
  jne    L149
  mov    %r11d,%r12d
  and    $0xfffffffc,%r12d
  lea    (%r10,%r12,1),%ebx
  lea    (%rdx,%r12,1),%r14d
  cmp    %r11d,%r12d
  je     L81
L179:
  imul   %rsi,%r9
  lea    0x1(%rbx),%r13d
  movslq %r13d,%r13
  lea    0x1(%r14),%r15d
  add    %r9,%r13
  mov    %r15d,(%rax,%r13,4)
  lea    0x1(%r12),%r13d
  cmp    %r13d,%r11d
  jle    L81
  lea    0x2(%rbx),%r13d
  lea    0x2(%r14),%r15d
  add    $0x2,%r12d
  movslq %r13d,%r13
  add    %r9,%r13
  mov    %r15d,(%rax,%r13,4)
  cmp    %r12d,%r11d
  jle    L81
  add    $0x3,%ebx
  add    $0x3,%r14d
  movslq %ebx,%rbx
  add    %rbx,%r9
  mov    %r14d,(%rax,%r9,4)
L81:
  add    %edi,%edx
  lea    -0x1(%r10,%rdi,1),%r10d
  lea    -0x1(%rdx),%r14d
  lea    (%rdx,%r8,1),%r13d
  movslq %r10d,%r12
  mov    %r14d,%ebx
  nopw   0x0(%rax,%rax,1)
L154:
  add    $0x1,%ebx
  mov    %ecx,%r9d
  sub    %ebx,%r9d
  lea    -0x1(%rdx,%r9,1),%r9d
  movslq %r9d,%r9
  imul   %rsi,%r9
  add    %r12,%r9
  mov    %ebx,(%rax,%r9,4)
  cmp    %r13d,%ebx
  jne    L154
  mov    $0x1,%r9d
  lea    -0x1(%rdi,%r14,1),%edx
  sub    %edi,%r9d
  add    %r9d,%ecx
L80:
  cmp    -0x4c(%rbp),%r8d
  je     L3
  lea    -0x3(%rdi),%r9d
  cmp    $0x2,%r9d
  jbe    L225
  movslq %ecx,%r9
  movslq %r10d,%r12
  movd   %edx,%xmm5
  mov    %r9,%rbx
  pshufd $0x0,%xmm5,%xmm1
  paddd  D57(%rip),%xmm1
  imul   %rsi,%rbx
  add    %r12,%rbx
  mov    %r8d,%r12d
  shr    $0x2,%r12d
  lea    -0x10(%rax,%rbx,4),%rbx
  lea    -0x1(%r12),%r13d
  mov    $0xfffffffffffffff0,%r12
  shl    $0x4,%r13
  sub    %r13,%r12
  add    %rbx,%r12
  nopl   (%rax)
L226:
  movdqa %xmm1,%xmm0
  sub    $0x10,%rbx
  paddd  %xmm3,%xmm1
  paddd  %xmm2,%xmm0
  pshufd $0x1b,%xmm0,%xmm0
  movups %xmm0,0x10(%rbx)
  cmp    %r12,%rbx
  jne    L226
  mov    %r8d,%r12d
  mov    %r10d,%ebx
  and    $0xfffffffc,%r12d
  sub    %r12d,%ebx
  lea    (%rdx,%r12,1),%r14d
  cmp    %r8d,%r12d
  je     L193
L19:
  imul   %rsi,%r9
  lea    -0x1(%rbx),%r13d
  movslq %r13d,%r13
  lea    0x1(%r14),%r15d
  add    %r9,%r13
  mov    %r15d,(%rax,%r13,4)
  lea    0x1(%r12),%r13d
  cmp    %r13d,%r8d
  jle    L193
  lea    -0x2(%rbx),%r13d
  lea    0x2(%r14),%r15d
  add    $0x2,%r12d
  movslq %r13d,%r13
  add    %r9,%r13
  mov    %r15d,(%rax,%r13,4)
  cmp    %r12d,%r8d
  jle    L193
  sub    $0x3,%ebx
  add    $0x3,%r14d
  movslq %ebx,%rbx
  add    %rbx,%r9
  mov    %r14d,(%rax,%r9,4)
L193:
  mov    $0x2,%r9d
  add    %r8d,%edx
  sub    $0x2,%r11d
  sub    %edi,%r9d
  mov    %r8d,%edi
  sub    $0x2,%r8d
  add    %r9d,%r10d
  jmp    L153
  nopw   0x0(%rax,%rax,1)
L3:
  mov    %rax,%rbx
  xor    %r13d,%r13d
  lea    D74(%rip),%r12
  lea    D31(%rip),%r14
  nopl   0x0(%rax)
L93:
  xor    %r15d,%r15d
  nopl   0x0(%rax,%rax,1)
L102:
  mov    (%rbx,%r15,4),%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%r15
  call   <printf@plt>
  cmp    %r15d,-0x3c(%rbp)
  jg     L102
  mov    %r14,%rdi
  add    $0x1,%r13d
  call   <puts@plt>
  add    -0x48(%rbp),%rbx
  cmp    %r13d,-0x3c(%rbp)
  jg     L93
L175:
  addl   $0x1,-0x50(%rbp)
  mov    -0x58(%rbp),%rsp
  mov    -0x50(%rbp),%eax
  cmp    %eax,-0x40(%rbp)
  jg     L145
L43:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L99
  lea    -0x28(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L225:
  mov    %edx,%r14d
  mov    %r10d,%ebx
  xor    %r12d,%r12d
  movslq %ecx,%r9
  jmp    L19
L50:
  mov    %edx,%r14d
  mov    %r10d,%ebx
  xor    %r12d,%r12d
  movslq %ecx,%r9
  jmp    L179
L99:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D77
type_guessed: string
name: disassemble_data
arguments: tag: D4
type_guessed: byte[16]
name: disassemble_data
arguments: tag: D45
type_guessed: byte[16]
name: disassemble_data
arguments: tag: D57
type_guessed: byte[16]
name: disassemble_data
arguments: tag: D74
type_guessed: string
name: disassemble_data
arguments: tag: D31
type_guessed: string

tool: D77: %d

tool: {"D4": [0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00]}

tool: {"D45": [0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00]}

tool: {"D57": [0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x03,0x00,0x00,0x00]}

tool: D74: %d 

tool: D31: 


assistant: ```c
int main() {
  int n, i, j, k, row, col, val, move;
  scanf("%d", &n);
  for (j = 0; j < n; j++) {
    scanf("%d", &i);
    int arr[i][i];
    row = -1;
    col = 0;
    val = 0;
    move = i;
    while (move > 0) {
      for (k = 0; k < move; k++)
        arr[++row][col] = ++val;
      move--;
      for (k = 0; k < move; k++)
        arr[row][++col] = ++val;
      for (k = 0; k < move; k++)
        arr[--row][col] = ++val;
      move--;
      for (k = 0; k < move; k++)
        arr[row][--col] = ++val;
    }
    for (row = 0; row < i; row++) {
      for (col = 0; col < i; col++)
        printf("%d ", arr[row][col]);
      printf("\n\n");
    }
  }
  return 0;
}
```