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

```asm
<main>:
  endbr64
  push   %r15
  mov    $0x32,%ecx
  push   %r14
  lea    D29(%rip),%r14
  push   %r13
  lea    D28(%rip),%r13
  push   %r12
  push   %rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x1d8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x1c8(%rsp)
  xor    %eax,%eax
  lea    0x30(%rsp),%rbp
  lea    0x2c(%rsp),%r15
  mov    %rbp,%rdi
  rep stos %rax,%es:(%rdi)
  lea    0x34(%rsp),%rax
  mov    %rax,0x18(%rsp)
  nopw   0x0(%rax,%rax,1)
L67:
  mov    %r15,%rsi
  mov    %r14,%rdi
  call   <scanf@plt>
  mov    0x2c(%rsp),%r12d
  cmp    $0xffffffff,%r12d
  je     L136
  test   %ebx,%ebx
  mov    0x30(%rsp),%edx
  setg   %al
  mov    %eax,%esi
  cmp    %edx,%r12d
  jle    L35
  test   %al,%al
  je     L35
  mov    $0x1,%eax
  jmp    L84
  nopl   (%rax)
L5:
  test   %sil,%sil
  je     L85
L84:
  mov    0x0(%rbp,%rax,4),%edx
  cmp    %eax,%ebx
  mov    %eax,%ecx
  setg   %sil
  add    $0x1,%rax
  cmp    %edx,%r12d
  jg     L5
L85:
  cmp    %edx,%r12d
  jne    L11
  test   %sil,%sil
  jne    L113
L11:
  cmp    %ebx,%ecx
  jge    L60
  mov    %ebx,%eax
  movslq %ebx,%r8
  mov    %ecx,0x14(%rsp)
  sub    %ecx,%eax
  mov    %r8,0x8(%rsp)
  lea    -0x1(%rax),%edx
  mov    %rdx,%rax
  lea    0x4(,%rdx,4),%rdx
  neg    %rax
  shl    $0x2,%rax
  lea    -0x4(%rax,%r8,4),%rsi
  lea    (%rax,%r8,4),%rdi
  add    %rbp,%rsi
  add    %rbp,%rdi
  call   <memmove@plt>
  movslq 0x14(%rsp),%rcx
  mov    0x8(%rsp),%r8
L16:
  lea    0x1(%rbx),%eax
  mov    %r12d,0x30(%rsp,%rcx,4)
  mov    %rbp,%rbx
  mov    %eax,0x8(%rsp)
  mov    0x18(%rsp),%rax
  lea    (%rax,%r8,4),%r12
  nopl   0x0(%rax,%rax,1)
L106:
  mov    (%rbx),%esi
  mov    %r13,%rdi
  xor    %eax,%eax
  add    $0x4,%rbx
  call   <printf@plt>
  cmp    %r12,%rbx
  jne    L106
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x8(%rsp),%ebx
L122:
  cmp    $0x64,%ebx
  jne    L67
L136:
  mov    0x1c8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L25
  add    $0x1d8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L113:
  lea    D19(%rip),%rdi
  call   <puts@plt>
  jmp    L122
  cs nopw 0x0(%rax,%rax,1)
L35:
  xor    %ecx,%ecx
  jmp    L85
L60:
  movslq %ebx,%rcx
  movslq %ebx,%r8
  jmp    L16
L25:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D29
data_type: string
name: unpack_data
arguments: data_label: D28
data_type: string
name: unpack_data
arguments: data_label: D19
data_type: string

tool: D29: %d

tool: D28: %d 

tool: D19: duplicate entry

assistant: ```c
int main(void) {
  int data[100] = {
      0,
  };
  int size = 0;
  while (size < 100) {
    int input, i, j;
    {
      scanf("%d", &input);
      if (input == -1)
        break;
    }
    {
      for (i = 0; input > data[i] && i < size; ++i)
        ;
      if (input == data[i] && i < size) {
        printf("duplicate entry\n");
        continue;
      }
    }
    {
      for (j = size; j > i; --j)
        data[j] = data[j - 1];
      data[j] = input;
      ++size;
    }
    {
      for (j = 0; j < size; ++j)
        printf("%d ", data[j]);
      printf("\n");
    }
  }
  return 0;
}
```