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

```asm
<main>:
  endbr64
  push   %rbp
  lea    D35(%rip),%rdi
  mov    %rsp,%rbp
  push   %r14
  lea    D22(%rip),%r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    -0x2c(%rbp),%rsi
  mov    %r14,%rdi
  call   <scanf@plt>
  cmpl   $0x190,-0x2c(%rbp)
  jg     L181
  lea    D48(%rip),%rdi
  call   <puts@plt>
  movslq -0x2c(%rbp),%rax
  mov    %rsp,%rsi
  mov    %rax,%rcx
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  and    $0xfffffffffffffff0,%rdx
  sub    %rax,%rsi
L60:
  cmp    %rsi,%rsp
  je     L79
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L60
L181:
  lea    D51(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D28(%rip),%rdi
  call   <system@plt>
L1:
  mov    -0x28(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L152
  lea    -0x20(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %rbp
  ret
L79:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L161
  orq    $0x0,-0x8(%rsp,%rdx,1)
L161:
  mov    %rsp,%rbx
  xor    %r12d,%r12d
  mov    %rbx,%r13
  test   %ecx,%ecx
  jle    L208
  nopl   0x0(%rax)
L3:
  mov    %r13,%rsi
  mov    %r14,%rdi
  add    $0x1,%r12d
  add    $0x4,%r13
  call   <scanf@plt>
  mov    -0x2c(%rbp),%edx
  cmp    %r12d,%edx
  jg     L3
  test   %edx,%edx
  jle    L208
  xor    %r8d,%r8d
  xor    %edi,%edi
  nopl   0x0(%rax)
L11:
  mov    (%rbx,%r8,4),%ecx
  xor    %eax,%eax
  xor    %esi,%esi
L154:
  cmp    (%rbx,%rax,4),%ecx
  jne    L80
  add    $0x1,%esi
L80:
  add    $0x1,%rax
  cmp    %eax,%edx
  jg     L154
  cmp    $0x2,%esi
  jg     L157
L167:
  add    $0x1,%r8
  cmp    %r8d,%edx
  jg     L11
  test   %dil,%dil
  je     L208
  mov    %edx,-0x2c(%rbp)
L208:
  lea    D31(%rip),%rdi
  xor    %r12d,%r12d
  lea    D26(%rip),%r13
  call   <puts@plt>
  cmpl   $0x0,-0x2c(%rbp)
  lea    D11(%rip),%r14
  jg     L182
  jmp    L69
  nop
L162:
  mov    %r13,%rdi
  xor    %eax,%eax
  add    $0x1,%r12
  call   <printf@plt>
  cmp    %r12d,-0x2c(%rbp)
  jle    L69
L182:
  mov    (%rbx,%r12,4),%esi
  test   $0x3,%r12b
  jne    L162
  test   %r12d,%r12d
  je     L162
  mov    %r14,%rdi
  xor    %eax,%eax
  add    $0x1,%r12
  call   <printf@plt>
  cmp    %r12d,-0x2c(%rbp)
  jg     L182
L69:
  lea    D28(%rip),%rdi
  call   <system@plt>
  jmp    L1
  nopl   0x0(%rax,%rax,1)
L157:
  xor    %eax,%eax
  xor    %edi,%edi
  nopl   0x0(%rax)
L32:
  mov    (%rbx,%rax,4),%esi
  cmp    %esi,%ecx
  je     L219
  movslq %edi,%r9
  add    $0x1,%edi
  mov    %esi,(%rbx,%r9,4)
L219:
  add    $0x1,%rax
  cmp    %eax,%edx
  jg     L32
  mov    %edi,%edx
  mov    $0x1,%edi
  jmp    L167
L152:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D35
data_type: string
name: disassemble_data
arguments: data_tag: D22
data_type: string
name: disassemble_data
arguments: data_tag: D48
data_type: string
name: disassemble_data
arguments: data_tag: D51
data_type: string
name: disassemble_data
arguments: data_tag: D28
data_type: string
name: disassemble_data
arguments: data_tag: D31
data_type: string
name: disassemble_data
arguments: data_tag: D26
data_type: string
name: disassemble_data
arguments: data_tag: D11
data_type: string

tool: D35: Vvedit kilkist elementiv masivy (do 400 elementiv) -> 

tool: D22: %d

tool: D48: Vvedit elementy masivy

tool: D51: Vu vvely zabagato elementiv!

tool: D28: PAUSE

tool: D31: Noviy masiv: 

tool: D26: %d 

tool: D11: %d


assistant: ```c
int main(int argc, char *argv[]) {
  int countOfElements;
  printf("Vvedit kilkist elementiv masivy (do 400 elementiv) -> ");
  scanf("%d", &countOfElements);
  if (countOfElements > 400) {
    printf("Vu vvely zabagato elementiv!");
    system("PAUSE");
    return 0;
  }
  printf("Vvedit elementy masivy\n");
  int numbers[countOfElements];
  for (int currentElement = 0; currentElement < countOfElements; currentElement++)
    scanf("%d", &numbers[currentElement]);
  for (int currentElement = 0; currentElement < countOfElements; currentElement++) {
    int countOfRepeats = 0, newArrayElements = 0;
    for (int elementCheck = 0; elementCheck < countOfElements; elementCheck++)
      if (numbers[currentElement] == numbers[elementCheck])
        countOfRepeats++;
    if (countOfRepeats >= 3) {
      int element = numbers[currentElement];
      for (int arrayChanger = 0; arrayChanger < countOfElements; arrayChanger++)
        if (numbers[arrayChanger] != element)
          numbers[newArrayElements++] = numbers[arrayChanger];
      countOfElements = newArrayElements;
    }
  }
  printf("Noviy masiv: \n");
  for (int currentElement = 0; currentElement < countOfElements; currentElement++)
    if (currentElement % 4 == 0 && currentElement != 0)
      printf("%d\n", numbers[currentElement]);
    else
      printf("%d ", numbers[currentElement]);
  system("PAUSE");
  return 0;
}
```