user: What is the c source code of the assembly code below?

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  lea    D18(%rip),%r12
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    -0x3c(%rbp),%rax
  mov    %rax,-0x58(%rbp)
  nopl   0x0(%rax,%rax,1)
L92:
  mov    -0x58(%rbp),%rsi
  lea    D37(%rip),%rdi
  xor    %eax,%eax
  mov    %rsp,-0x48(%rbp)
  call   <scanf@plt>
  mov    -0x3c(%rbp),%edx
  test   %edx,%edx
  je     L116
  movslq %edx,%rax
  mov    %rsp,%rsi
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdi
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rdi
  and    $0xfffffffffffffff0,%rcx
  sub    %rdi,%rsi
  cmp    %rsi,%rsp
  je     L229
L136:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L136
L229:
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  je     L164
  orq    $0x0,-0x8(%rsp,%rcx,1)
L164:
  mov    %rax,%rcx
  mov    %rsp,%rsi
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%r13
  sub    %rax,%rsi
  and    $0xfffffffffffffff0,%rcx
  cmp    %rsi,%rsp
  je     L80
L62:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L62
L80:
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  jne    L17
L175:
  lea    0x3(%rsp),%rbx
  mov    %rbx,%rax
  and    $0xfffffffffffffffc,%rbx
  shr    $0x2,%rax
  mov    %rbx,-0x68(%rbp)
  mov    %rax,-0x60(%rbp)
  test   %edx,%edx
  jle    L155
  mov    %rbx,%r14
  xor    %r15d,%r15d
  mov    %r13,%rbx
  nopl   0x0(%rax)
L119:
  mov    %r14,%rdx
  mov    %rbx,%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    -0x3c(%rbp),%eax
  add    $0x1,%r15d
  add    $0x4,%rbx
  add    $0x4,%r14
  cmp    %r15d,%eax
  jg     L119
  movslq %eax,%r9
  mov    %rsp,%rsi
  lea    0xf(,%r9,4),%rax
  mov    %r9,%r14
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rsi
  and    $0xfffffffffffffff0,%rdx
  cmp    %rsi,%rsp
  je     L215
L194:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L194
L215:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L180
  orq    $0x0,-0x8(%rsp,%rdx,1)
L180:
  mov    %rsp,%r15
  test   %r14d,%r14d
  jle    L155
  lea    0x0(,%r9,4),%rdx
  xor    %esi,%esi
  mov    %r15,%rdi
  mov    %r9,-0x50(%rbp)
  call   <memset@plt>
  mov    -0x60(%rbp),%rax
  mov    0x0(,%rax,4),%eax
  cmp    %eax,%r14d
  jle    L237
  test   %eax,%eax
  js     L237
  mov    -0x68(%rbp),%rsi
  mov    -0x50(%rbp),%r9
  mov    $0x1,%edx
  jmp    L204
L98:
  mov    -0x4(%r13,%rdx,4),%ecx
  mov    %ecx,(%r15,%rax,4)
  cmp    %r9,%rdx
  je     L67
  mov    (%rsi,%rdx,4),%eax
  add    %edx,%eax
  add    $0x1,%rdx
  test   %eax,%eax
  js     L237
  cmp    %eax,%r14d
  jle    L237
L204:
  cltq
  mov    (%r15,%rax,4),%ecx
  test   %ecx,%ecx
  je     L98
L237:
  lea    D17(%rip),%rdi
  call   <puts@plt>
L233:
  mov    -0x48(%rbp),%rsp
  jmp    L92
  nop
L67:
  xor    %ebx,%ebx
  nopw   0x0(%rax,%rax,1)
L66:
  mov    (%r15,%rbx,4),%esi
  lea    D30(%rip),%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    %ebx,-0x3c(%rbp)
  jg     L66
L155:
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L233
  nop
L116:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L219
  lea    -0x28(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L17:
  orq    $0x0,-0x8(%rsp,%rcx,1)
  jmp    L175
L219:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D18
datatype: string
name: parse_data
arguments: tag: D37
datatype: string
name: parse_data
arguments: tag: D17
datatype: string
name: parse_data
arguments: tag: D30
datatype: string

tool: D18: %d%d

tool: D37: %d

tool: D17: -1

tool: D30: %d 

assistant: ```c
int main() {
  int n, i, j;
  while (1) {
    scanf("%d", &n);
    if (n == 0)
      break;
    int c[n], p[n];
    for (i = 0; i < n; i++) {
      scanf("%d%d", &c[i], &p[i]);
    }
    int flag = 0;
    int original[n];
    for (i = 0; i < n; i++)
      original[i] = 0;
    for (i = 0; i < n; i++) {
      if ((i + p[i] < 0 || i + p[i] >= n) || (original[i + p[i]] != 0)) {
        flag = 1;
        break;
      }
      original[i + p[i]] = c[i];
    }
    if (flag == 1)
      printf("-1\n");
    else {
      for (i = 0; i < n; i++)
        printf("%d ", original[i]);
      printf("\n");
    }
  }
  return 0;
}
```