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

```asm
<main>:
  endbr64
  push   %r15
  xor    %eax,%eax
  push   %r14
  push   %r13
  push   %r12
  lea    D57(%rip),%r12
  push   %rbp
  mov    %edi,%ebp
  mov    %r12,%rdi
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x28,%rsp
  call   <printf@plt>
  lea    D77(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  xor    %eax,%eax
  lea    D109(%rip),%r12
  call   <printf@plt>
  lea    D186(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D142(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  call   <puts@plt>
  cmp    $0x3,%ebp
  je     L37
  lea    D50(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D116(%rip),%rdi
  call   <puts@plt>
  or     $0xffffffff,%edi
  call   <exit@plt>
L37:
  mov    0x8(%rbx),%rdi
  call   <atoi@plt>
  mov    %eax,%r13d
  cmp    $0x10,%eax
  jbe    L227
L119:
  lea    D36(%rip),%rdi
  call   <puts@plt>
  or     $0xffffffff,%edi
  call   <exit@plt>
L102:
  mov    0x10(%rbx),%rdi
  call   <atoi@plt>
  mov    %eax,%ebx
  test   %eax,%eax
  jle    L216
  mov    %r13d,%esi
  lea    D90(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x0(,%rbx,8),%ebp
  mov    %ebx,%esi
  xor    %eax,%eax
  lea    D39(%rip),%rdi
  call   <printf@plt>
  mov    %ebp,%edi
  call   <malloc@plt>
  mov    %ebp,%edi
  mov    %rax,%r14
  call   <malloc@plt>
  lea    0x8(%r14),%rdx
  mov    %r14,%rbp
  mov    %rax,0x8(%rsp)
  mov    %rax,%r15
  sub    %rdx,%rax
  cmp    $0x10,%rax
  jbe    L65
  lea    -0x1(%rbx),%eax
  cmp    $0x3,%eax
  jbe    L65
  mov    %ebx,%edx
  lea    0x10(%r15),%rcx
  mov    %r15,%rsi
  mov    %r14,%rax
  shr    $0x2,%edx
  movdqa D131(%rip),%xmm1
  sub    %r14,%rsi
  sub    %r14,%rcx
  shl    $0x5,%rdx
  movdqa D145(%rip),%xmm3
  add    %r14,%rdx
  nopl   0x0(%rax,%rax,1)
L76:
  movdqa %xmm1,%xmm2
  paddd  %xmm3,%xmm1
  movdqa %xmm2,%xmm0
  pslld  $0x2,%xmm0
  paddd  %xmm2,%xmm0
  cvtdq2pd %xmm0,%xmm2
  pshufd $0xee,%xmm0,%xmm0
  movups %xmm2,(%rax)
  cvtdq2pd %xmm0,%xmm0
  movups %xmm0,0x10(%rax)
  movups %xmm2,(%rsi,%rax,1)
  movups %xmm0,(%rcx,%rax,1)
  add    $0x20,%rax
  cmp    %rdx,%rax
  jne    L76
  mov    %ebx,%eax
  and    $0xfffffffc,%eax
  test   $0x3,%bl
  je     L64
  lea    (%rax,%rax,4),%edx
  pxor   %xmm0,%xmm0
  mov    %eax,%esi
  cvtsi2sd %edx,%xmm0
  lea    0x0(,%rsi,8),%rcx
  movsd  %xmm0,(%r14,%rsi,8)
  movsd  %xmm0,(%r15,%rsi,8)
  lea    0x1(%rax),%esi
  cmp    %ebx,%esi
  jge    L64
  lea    0x5(%rdx),%esi
  pxor   %xmm0,%xmm0
  add    $0x2,%eax
  cvtsi2sd %esi,%xmm0
  movsd  %xmm0,0x8(%r14,%rcx,1)
  movsd  %xmm0,0x8(%rcx,%r15,1)
  cmp    %eax,%ebx
  jle    L64
  add    $0xa,%edx
  pxor   %xmm0,%xmm0
  cvtsi2sd %edx,%xmm0
  movsd  %xmm0,0x10(%r14,%rcx,1)
  movsd  %xmm0,0x10(%rcx,%r15,1)
L64:
  mov    %r13d,%edi
  call   <omp_set_num_threads@plt>
L121:
  mov    %ebx,%eax
  pxor   %xmm1,%xmm1
  shr    %eax
  movapd %xmm1,%xmm0
  shl    $0x4,%rax
  add    %r14,%rax
L17:
  movsd  0x0(%rbp),%xmm2
  add    $0x10,%rbp
  addsd  %xmm2,%xmm0
  movsd  -0x8(%rbp),%xmm2
  addsd  %xmm2,%xmm0
  cmp    %rbp,%rax
  jne    L17
  mov    %ebx,%eax
  and    $0xfffffffe,%eax
  test   $0x1,%bl
  je     L167
L192:
  cltq
  addsd  (%r14,%rax,8),%xmm0
  cmp    $0x1,%ebx
  je     L116
L167:
  mov    %ebx,%edx
  mov    %r15,%rax
  shr    %edx
  shl    $0x4,%rdx
  add    %r15,%rdx
  nopl   0x0(%rax)
L73:
  movsd  (%rax),%xmm2
  add    $0x10,%rax
  addsd  %xmm2,%xmm1
  movsd  -0x8(%rax),%xmm2
  addsd  %xmm2,%xmm1
  cmp    %rdx,%rax
  jne    L73
  mov    %ebx,%eax
  and    $0xfffffffe,%eax
  and    $0x1,%ebx
  je     L18
L8:
  cltq
  addsd  (%r15,%rax,8),%xmm1
L18:
  ucomisd %xmm0,%xmm1
  jp     L176
  je     L187
L176:
  lea    D5(%rip),%rdi
  movsd  %xmm0,0x18(%rsp)
  movsd  %xmm1,0x10(%rsp)
  call   <puts@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  movsd  0x18(%rsp),%xmm0
  movsd  0x10(%rsp),%xmm1
L159:
  mov    0x8(%rsp),%rdi
  movsd  %xmm1,0x10(%rsp)
  movsd  %xmm0,0x18(%rsp)
  call   <free@plt>
  mov    %r14,%rdi
  call   <free@plt>
  movsd  0x18(%rsp),%xmm0
  mov    $0x1,%eax
  lea    D133(%rip),%rdi
  call   <printf@plt>
  movsd  0x10(%rsp),%xmm1
  mov    $0x1,%eax
  lea    D88(%rip),%rdi
  movapd %xmm1,%xmm0
  call   <printf@plt>
  mov    %r12,%rdi
  call   <puts@plt>
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L116:
  xor    %eax,%eax
  jmp    L8
L216:
  lea    D47(%rip),%rdi
  xor    %eax,%eax
  lea    0x0(,%rbx,8),%ebp
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  mov    %r13d,%esi
  lea    D90(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %ebx,%esi
  lea    D39(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %ebp,%edi
  call   <malloc@plt>
  mov    %ebp,%edi
  mov    %rax,%r14
  call   <malloc@plt>
  mov    %r13d,%edi
  mov    %rax,0x8(%rsp)
  call   <omp_set_num_threads@plt>
  pxor   %xmm0,%xmm0
  movapd %xmm0,%xmm1
L187:
  lea    D52(%rip),%rdi
  movsd  %xmm0,0x18(%rsp)
  movsd  %xmm1,0x10(%rsp)
  call   <puts@plt>
  movsd  0x10(%rsp),%xmm1
  movsd  0x18(%rsp),%xmm0
  jmp    L159
L227:
  mov    $0xfffffffffffefee9,%rax
  mov    %r13d,%ecx
  sar    %cl,%rax
  test   $0x1,%al
  je     L102
  jmp    L119
L65:
  mov    %r14,%rcx
  lea    (%rbx,%rbx,4),%esi
  mov    %r15,%rdx
  xor    %eax,%eax
  sub    %r15,%rcx
  xchg   %ax,%ax
L44:
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  add    $0x5,%eax
  movsd  %xmm0,(%rcx,%rdx,1)
  add    $0x8,%rdx
  movsd  %xmm0,-0x8(%rdx)
  cmp    %esi,%eax
  jne    L44
  mov    %r13d,%edi
  call   <omp_set_num_threads@plt>
  cmp    $0x1,%ebx
  jne    L121
  pxor   %xmm1,%xmm1
  xor    %eax,%eax
  movapd %xmm1,%xmm0
  jmp    L192
```

tool_calls: name: parse_data
arguments: data_tag: D57
type: string
name: parse_data
arguments: data_tag: D77
type: string
name: parse_data
arguments: data_tag: D109
type: string
name: parse_data
arguments: data_tag: D186
type: string
name: parse_data
arguments: data_tag: D142
type: string
name: parse_data
arguments: data_tag: D50
type: string
name: parse_data
arguments: data_tag: D116
type: string
name: parse_data
arguments: data_tag: D36
type: string
name: parse_data
arguments: data_tag: D90
type: string
name: parse_data
arguments: data_tag: D39
type: string
name: parse_data
arguments: data_tag: D131
type: f32[4]
name: parse_data
arguments: data_tag: D145
type: byte[16]
name: parse_data
arguments: data_tag: D5
type: string
name: parse_data
arguments: data_tag: D133
type: string
name: parse_data
arguments: data_tag: D88
type: string
name: parse_data
arguments: data_tag: D47
type: string
name: parse_data
arguments: data_tag: D52
type: string

tool: D57: 
		---------------------------------------------------------------------------

tool: D77: 
		 Email : RarchK

tool: D109: 
		..........................................................................

tool: D186: 
		 Objective :Find the Sum of elements of one-dimensional real array.  

tool: D142: 
		 OpenMP Parallel for directive and Critical Section are used 

tool: D50: 		 Very Few Arguments
 

tool: D116: 		 Syntax : exec <Threads> <array-size>

tool: D36: 
 Number of threads should be 1,2,4,8 or 16 for the execution of program. 


tool: D90: 
		 Threads     : %d 

tool: D39: 
		 Array Size  : %d 

tool: {"D131": [0.0,1.401298464324817e-45,2.802596928649634e-45,4.203895392974451e-45]}

tool: {"D145": [0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00]}

tool: D5: 
\nt	 The Serial And Parallel Sums Are UnEqual

tool: D133: 
		 The SumOfElements Of The Array Using OpenMP Directives Is %lf


tool: D88: 		 The SumOfElements Of The Array By Serial Calculation Is %lf



tool: D47: 
		 Array Size Should Be Of Positive Value 

tool: D52: 

		 The Serial And Parallel Sums Are Equal

assistant: ```c
main(int argc, char **argv) {
  double *Array, *Array1, *Check, serial_sum, sum;
  int array_size, i, threadid, tval, Noofthreads;
  printf("\n\t\t---------------------------------------------------------------------------");
  printf("\n\t\t Email : RarchK");
  printf("\n\t\t---------------------------------------------------------------------------");
  printf("\n\t\t Objective :Find the Sum of elements of one-dimensional real array.  ");
  printf("\n\t\t OpenMP Parallel for directive and Critical Section are used ");
  printf("\n\t\t..........................................................................\n");
  if (argc != 3) {
    printf("\t\t Very Few Arguments\n ");
    printf("\t\t Syntax : exec <Threads> <array-size>\n");
    exit(-1);
  }
  Noofthreads = atoi(argv[1]);
  if ((Noofthreads != 1) && (Noofthreads != 2) && (Noofthreads != 4) && (Noofthreads != 8) && (Noofthreads != 16)) {
    printf("\n Number of threads should be 1,2,4,8 or 16 for the execution of program. \n\n");
    exit(-1);
  }
  array_size = atoi(argv[2]);
  if (array_size <= 0) {
    printf("\n\t\t Array Size Should Be Of Positive Value ");
    exit(1);
  }
  printf("\n\t\t Threads     : %d ", Noofthreads);
  printf("\n\t\t Array Size  : %d ", array_size);
  Array = (double *)malloc(sizeof(double) * array_size);
  Check = (double *)malloc(sizeof(double) * array_size);
  for (i = 0; i < array_size; i++) {
    Array[i] = i * 5;
    Check[i] = Array[i];
  }
  sum = 0.0;
  omp_set_num_threads(Noofthreads);
#pragma omp parallel for
  for (i = 0; i < array_size; i++) {
#pragma omp critical
    sum = sum + Array[i];
  }
  serial_sum = 0.0;
  for (i = 0; i < array_size; i++)
    serial_sum = serial_sum + Check[i];
  if (serial_sum == sum)
    printf("\n\n\t\t The Serial And Parallel Sums Are Equal\n");
  else {
    printf("\n\\nt\t The Serial And Parallel Sums Are UnEqual\n");
    exit(1);
  }
  free(Check);
  free(Array);
  printf("\n\t\t The SumOfElements Of The Array Using OpenMP Directives Is %lf\n", sum);
  printf("\t\t The SumOfElements Of The Array By Serial Calculation Is %lf\n\n", serial_sum);
  printf("\n\t\t..........................................................................\n");
}
```