user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %r14
  pxor   %xmm0,%xmm0
  push   %r13
  mov    $0x1,%r13d
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  push   %rbx
  lea    D17(%rip),%rbx
  sub    $0x1d0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x1c8(%rsp)
  xor    %eax,%eax
  lea    0x30(%rsp),%r14
  movaps %xmm0,(%rsp)
  lea    0x1c0(%rsp),%rbp
  movq   $0x0,0x20(%rsp)
  movaps %xmm0,0x10(%rsp)
  nopl   0x0(%rax)
L8:
  mov    %r14,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    (%r14),%eax
  test   %eax,%eax
  jle    L50
L0:
  cmp    $0xa,%r12d
  je     L33
  movslq (%r14),%rcx
  mov    %rcx,%rdx
  imul   $0x66666667,%rcx,%rcx
  mov    %edx,%eax
  sar    $0x1f,%eax
  sar    $0x22,%rcx
  sub    %eax,%ecx
  lea    (%rcx,%rcx,4),%eax
  mov    %ecx,%esi
  mov    %edx,%ecx
  add    %eax,%eax
  mov    %esi,(%r14)
  sub    %eax,%ecx
  test   %r12d,%r12d
  jne    L76
  mov    %ecx,(%rsp)
  test   %esi,%esi
  je     L69
  movslq %esi,%rdx
  mov    %esi,%eax
  mov    $0x1,%r12d
  imul   $0x66666667,%rdx,%rdx
  sar    $0x1f,%eax
  sar    $0x22,%rdx
  sub    %eax,%edx
  mov    %edx,%eax
  lea    (%rdx,%rdx,4),%edi
  add    %edi,%edi
  mov    %eax,(%r14)
  sub    %edi,%esi
  mov    %esi,%edx
  mov    %eax,%esi
L108:
  xor    %eax,%eax
  xor    %edi,%edi
  jmp    L41
  nopl   0x0(%rax,%rax,1)
L134:
  mov    (%rsp,%rax,4),%ecx
L41:
  cmp    %ecx,%edx
  cmove  %r13d,%edi
  add    $0x1,%rax
  cmp    %eax,%r12d
  jg     L134
  test   %edi,%edi
  jne    L121
  movslq %r12d,%rax
  add    $0x1,%r12d
  mov    %edx,(%rsp,%rax,4)
L121:
  test   %esi,%esi
  jne    L0
  nopl   0x0(%rax,%rax,1)
L33:
  add    $0x4,%r14
  cmp    %rbp,%r14
  jne    L8
L19:
  xor    %ebx,%ebx
  mov    %rsp,%r13
  lea    D4(%rip),%rbp
  nopl   0x0(%rax)
L30:
  mov    0x0(%r13,%rbx,4),%esi
  mov    %rbp,%rdi
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    %ebx,%r12d
  jg     L30
L80:
  mov    0x1c8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L154
  add    $0x1d0,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   0x0(%rax,%rax,1)
L69:
  add    $0x4,%r14
  mov    $0x1,%r12d
  cmp    %rbp,%r14
  jne    L8
  jmp    L19
  nopl   (%rax)
L76:
  mov    %ecx,%edx
  mov    (%rsp),%ecx
  jmp    L108
L50:
  test   %r12d,%r12d
  jne    L19
  jmp    L80
L154:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D17
type_guessed: string
name: read_data
arguments: tag: D4
type_guessed: string

tool: D17: %d

tool: D4: %d 

assistant: ```c
int main() {
  int niz[100], i, k, counter = 0, n, temp, ima;
  int niz_pomocni[10] = {};
  for (i = 0; i < 100; i++) {
    scanf("%d", &niz[i]);
    if (niz[i] <= 0)
      break;
    do {
      if (counter == 10)
        break;
      n = niz[i] % 10;
      niz[i] /= 10;
      ima = 0;
      if (counter == 0)
        niz_pomocni[counter++] = n;
      else {
        for (k = 0; k < counter; k++) {
          if (niz_pomocni[k] == n)
            ima = 1;
        }
        if (ima == 0) {
          niz_pomocni[counter++] = n;
        }
      }
    } while (niz[i] != 0);
  }
  for (i = 0; i < counter; i++)
    printf("%d ", niz_pomocni[i]);
  return 0;
}
```