user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  push   %rbp
  lea    D17(%rip),%rdi
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  lea    -0x40(%rbp),%rsi
  push   %r13
  push   %r12
  push   %rbx
  lea    D39(%rip),%rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <scanf@plt>
  lea    -0x3c(%rbp),%rax
  movl   $0x0,-0x48(%rbp)
  mov    %rax,-0x60(%rbp)
  mov    -0x40(%rbp),%eax
  test   %eax,%eax
  jle    L32
  nopl   (%rax)
L133:
  mov    -0x60(%rbp),%rsi
  lea    D17(%rip),%rdi
  mov    %rsp,-0x58(%rbp)
  call   <scanf@plt>
  movslq -0x3c(%rbp),%rax
  mov    %rsp,%rcx
  lea    0x0(,%rax,4),%rdi
  mov    %rax,%r9
  imul   %rax,%rax
  mov    %rdi,-0x50(%rbp)
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L39
L92:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L92
L39:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L8
  orq    $0x0,-0x8(%rsp,%rdx,1)
L8:
  mov    %rsp,%rsi
  test   %r9d,%r9d
  jle    L4
  lea    -0x1(%r9),%r14d
  mov    -0x50(%rbp),%r8
  mov    %r9d,%edi
  xor    %edx,%edx
  mov    %r14d,%eax
  xor    %r13d,%r13d
  and    $0xfffffffe,%eax
  shr    $0x2,%r8
  sub    %eax,%edi
  mov    %edi,-0x44(%rbp)
  mov    $0xffffffff,%edi
  nopl   0x0(%rax)
L124:
  xor    %ecx,%ecx
  movslq %r13d,%r10
  lea    0x1(%rdx),%eax
  add    $0x1,%edi
  nopl   0x0(%rax,%rax,1)
L86:
  lea    (%rdi,%rcx,1),%edx
  lea    (%rax,%rcx,1),%r11d
  add    $0x1,%ecx
  movslq %edx,%rdx
  imul   %r8,%rdx
  add    %r10,%rdx
  mov    %r11d,(%rsi,%rdx,4)
  cmp    %r9d,%ecx
  jl     L86
  xor    %edx,%edx
  test   %r9d,%r9d
  cmovg  %r14d,%edx
  add    %edx,%eax
  add    %edx,%edi
  test   %r14d,%r14d
  jle    L85
  movslq %edi,%rdx
  lea    -0x1(%r9),%r15d
  imul   %r8,%rdx
  lea    (%r15,%rax,1),%ecx
  add    %r10,%rdx
  mov    %eax,%r10d
  lea    (%rsi,%rdx,4),%rdx
  nopl   0x0(%rax,%rax,1)
L60:
  add    $0x1,%eax
  add    $0x4,%rdx
  mov    %eax,(%rdx)
  cmp    %ecx,%eax
  jne    L60
  add    %r9d,%r10d
  lea    -0x1(%r13,%r9,1),%r13d
  lea    -0x1(%r10),%eax
  lea    -0x2(%r10,%r9,1),%r12d
  movslq %r13d,%r11
  mov    %eax,%ecx
  nopl   0x0(%rax,%rax,1)
L134:
  add    $0x1,%ecx
  mov    %edi,%edx
  sub    %ecx,%edx
  lea    -0x1(%r10,%rdx,1),%edx
  movslq %edx,%rdx
  imul   %r8,%rdx
  add    %r11,%rdx
  mov    %ecx,(%rsi,%rdx,4)
  cmp    %r12d,%ecx
  jne    L134
  mov    $0x1,%edx
  add    %r15d,%eax
  sub    %r9d,%edx
  add    %edx,%edi
L85:
  cmp    -0x44(%rbp),%r9d
  je     L150
  movslq %edi,%rdx
  movslq %r13d,%rcx
  lea    -0x2(%r9),%r10d
  imul   %r8,%rdx
  add    %rcx,%rdx
  lea    (%rsi,%rdx,4),%rcx
  lea    (%rax,%r10,1),%edx
  nopw   0x0(%rax,%rax,1)
L7:
  add    $0x1,%eax
  sub    $0x4,%rcx
  mov    %eax,(%rcx)
  cmp    %edx,%eax
  jne    L7
  mov    $0x2,%eax
  sub    $0x2,%r14d
  sub    %r9d,%eax
  mov    %r10d,%r9d
  add    %eax,%r13d
  jmp    L124
  nopl   0x0(%rax)
L150:
  mov    -0x50(%rbp),%r15
  mov    %rsi,%r12
  xor    %r13d,%r13d
  nopw   0x0(%rax,%rax,1)
L152:
  xor    %r14d,%r14d
  nopl   0x0(%rax,%rax,1)
L9:
  mov    (%r12,%r14,4),%esi
  mov    %rbx,%rdi
  xor    %eax,%eax
  add    $0x1,%r14
  call   <printf@plt>
  cmp    %r14d,-0x3c(%rbp)
  jg     L9
  lea    D34(%rip),%rdi
  add    $0x1,%r13d
  add    %r15,%r12
  call   <puts@plt>
  cmp    %r13d,-0x3c(%rbp)
  jg     L152
L4:
  addl   $0x1,-0x48(%rbp)
  mov    -0x58(%rbp),%rsp
  mov    -0x48(%rbp),%eax
  cmp    %eax,-0x40(%rbp)
  jg     L133
L32:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L136
  lea    -0x28(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L136:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D17
type: string
name: parse_data
arguments: label: D39
type: string
name: parse_data
arguments: label: D34
type: string

tool: D17: %d

tool: D39: %d 

tool: D34: 


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;
}
```