user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %r15
  xor    %eax,%eax
  push   %r14
  push   %r13
  push   %r12
  lea    D31(%rip),%r12
  push   %rbp
  mov    %edi,%ebp
  mov    %r12,%rdi
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x28,%rsp
  call   <printf@plt>
  lea    D42(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  xor    %eax,%eax
  lea    D11(%rip),%r12
  call   <printf@plt>
  lea    D52(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D107(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  call   <puts@plt>
  cmp    $0x3,%ebp
  je     L29
  lea    D122(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D56(%rip),%rdi
  call   <puts@plt>
  or     $0xffffffff,%edi
  call   <exit@plt>
L29:
  mov    0x8(%rbx),%rdi
  call   <atoi@plt>
  mov    %eax,%r13d
  cmp    $0x10,%eax
  jbe    L101
L45:
  lea    D147(%rip),%rdi
  call   <puts@plt>
  or     $0xffffffff,%edi
  call   <exit@plt>
L37:
  mov    0x10(%rbx),%rdi
  call   <atoi@plt>
  mov    %eax,%ebp
  test   %ebp,%ebp
  jle    L47
  mov    %r13d,%esi
  lea    D126(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %ebp,%esi
  lea    D110(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x0(,%rbp,8),%r14d
  mov    %r14d,%edi
  call   <malloc@plt>
  mov    %r14d,%edi
  mov    %rax,0x8(%rsp)
  mov    %rax,0x10(%rsp)
  call   <malloc@plt>
  mov    0x10(%rsp),%rsi
  lea    0x0(%rbp,%rbp,4),%ecx
  mov    %rax,%r15
  mov    %rax,%r14
  mov    %rax,%rdx
  xor    %eax,%eax
  mov    %rsi,%r8
  sub    %r15,%r8
  nopl   0x0(%rax,%rax,1)
L102:
  pxor   %xmm0,%xmm0
  mov    %rsi,%rbx
  cvtsi2sd %eax,%xmm0
  add    $0x5,%eax
  movsd  %xmm0,(%r8,%rdx,1)
  add    $0x8,%rdx
  movsd  %xmm0,-0x8(%rdx)
  cmp    %ecx,%eax
  jne    L102
  mov    %r13d,%edi
  shl    $0x3,%rbp
  call   <omp_set_num_threads@plt>
  lea    (%rbx,%rbp,1),%rax
  pxor   %xmm0,%xmm0
  nopl   (%rax)
L79:
  addsd  (%rbx),%xmm0
  add    $0x8,%rbx
  cmp    %rbx,%rax
  jne    L79
  add    %r15,%rbp
  pxor   %xmm1,%xmm1
  nopl   0x0(%rax)
L41:
  addsd  (%r14),%xmm1
  add    $0x8,%r14
  cmp    %r14,%rbp
  jne    L41
  ucomisd %xmm0,%xmm1
  jp     L70
  je     L40
L70:
  lea    D149(%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
L87:
  mov    %r15,%rdi
  movsd  %xmm1,0x10(%rsp)
  movsd  %xmm0,0x18(%rsp)
  call   <free@plt>
  mov    0x8(%rsp),%rdi
  call   <free@plt>
  movsd  0x18(%rsp),%xmm0
  mov    $0x1,%eax
  lea    D125(%rip),%rdi
  call   <printf@plt>
  movsd  0x10(%rsp),%xmm1
  mov    $0x1,%eax
  lea    D78(%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
L47:
  lea    D58(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  mov    %r13d,%esi
  lea    D126(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %ebp,%esi
  lea    D110(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  shl    $0x3,%ebp
  mov    %ebp,%edi
  call   <malloc@plt>
  mov    %ebp,%edi
  mov    %rax,0x8(%rsp)
  call   <malloc@plt>
  mov    %r13d,%edi
  mov    %rax,%r15
  call   <omp_set_num_threads@plt>
  pxor   %xmm0,%xmm0
  movapd %xmm0,%xmm1
L40:
  lea    D34(%rip),%rdi
  movsd  %xmm0,0x18(%rsp)
  movsd  %xmm1,0x10(%rsp)
  call   <puts@plt>
  movsd  0x10(%rsp),%xmm1
  movsd  0x18(%rsp),%xmm0
  jmp    L87
L101:
  mov    $0xfffffffffffefee9,%rax
  mov    %r13d,%ecx
  sar    %cl,%rax
  test   $0x1,%al
  je     L37
  jmp    L45
```

tool_calls: name: extract_symbolic_data
arguments: label: D31
datatype: string
name: extract_symbolic_data
arguments: label: D42
datatype: string
name: extract_symbolic_data
arguments: label: D11
datatype: string
name: extract_symbolic_data
arguments: label: D52
datatype: string
name: extract_symbolic_data
arguments: label: D107
datatype: string
name: extract_symbolic_data
arguments: label: D122
datatype: string
name: extract_symbolic_data
arguments: label: D56
datatype: string
name: extract_symbolic_data
arguments: label: D147
datatype: string
name: extract_symbolic_data
arguments: label: D126
datatype: string
name: extract_symbolic_data
arguments: label: D110
datatype: string
name: extract_symbolic_data
arguments: label: D149
datatype: string
name: extract_symbolic_data
arguments: label: D125
datatype: string
name: extract_symbolic_data
arguments: label: D78
datatype: string
name: extract_symbolic_data
arguments: label: D58
datatype: string
name: extract_symbolic_data
arguments: label: D34
datatype: string

tool: D31: 
		---------------------------------------------------------------------------

tool: D42: 
		 Email : RarchK

tool: D11: 
		..........................................................................

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

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

tool: D122: 		 Very Few Arguments
 

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

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


tool: D126: 
		 Threads     : %d 

tool: D110: 
		 Array Size  : %d 

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

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


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



tool: D58: 
		 Array Size Should Be Of Positive Value 

tool: D34: 

		 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");
}
```