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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %edi,%ebp
  mov    %rsi,%rbx
  lea    D43(%rip),%r12
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D139(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D0(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D124(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D110(%rip),%rdi
  call   <puts@plt>
  cmp    $0x3,%ebp
  jne    L4
L14:
  mov    0x8(%rbx),%rdi
  call   <atoi@plt>
  mov    %eax,%r14d
  cmp    $0x10,%eax
  ja     L79
  mov    $0x10116,%eax
  mov    %r14d,%ecx
  shr    %cl,%rax
  test   $0x1,%al
  je     L79
L86:
  mov    0x10(%rbx),%rdi
  call   <atoi@plt>
  mov    %eax,%r12d
  test   %eax,%eax
  jle    L117
  mov    %r14d,%esi
  lea    D22(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r12d,%esi
  lea    D193(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x0(,%r12,8),%ebx
  mov    %ebx,%edi
  call   <malloc@plt>
  mov    %rax,%r13
  mov    %rax,0x8(%rsp)
  mov    %ebx,%edi
  call   <malloc@plt>
  mov    %rax,%r15
  mov    %rax,%rbp
  lea    (%r12,%r12,4),%esi
  mov    %rax,%rdx
  mov    $0x0,%eax
  mov    %r13,%rcx
  sub    %r15,%rcx
L59:
  mov    %r13,%rbx
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,(%rcx,%rdx,1)
  movsd  %xmm0,(%rdx)
  add    $0x5,%eax
  add    $0x8,%rdx
  cmp    %esi,%eax
  jne    L59
  mov    %r14d,%edi
  call   <omp_set_num_threads@plt>
  mov    %r12d,%r12d
  shl    $0x3,%r12
  lea    0x0(%r13,%r12,1),%rax
  mov    D107(%rip),%r13
L29:
  movq   %r13,%xmm1
  addsd  (%rbx),%xmm1
  movq   %xmm1,%r13
  add    $0x8,%rbx
  cmp    %rbx,%rax
  jne    L29
  add    %rbp,%r12
  mov    D107(%rip),%rbx
L89:
  movq   %rbx,%xmm2
  addsd  0x0(%rbp),%xmm2
  movq   %xmm2,%rbx
  add    $0x8,%rbp
  cmp    %r12,%rbp
  jne    L89
  movq   %r13,%xmm4
  ucomisd %xmm4,%xmm2
  jp     L67
  je     L23
L67:
  lea    D47(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L80
L4:
  lea    D183(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D185(%rip),%rdi
  call   <puts@plt>
  mov    $0xffffffff,%edi
  call   <exit@plt>
  jmp    L14
L79:
  lea    D141(%rip),%rdi
  call   <puts@plt>
  mov    $0xffffffff,%edi
  call   <exit@plt>
  jmp    L86
L117:
  lea    D186(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  mov    %r14d,%esi
  lea    D22(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r12d,%esi
  lea    D193(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  shl    $0x3,%r12d
  mov    %r12d,%edi
  call   <malloc@plt>
  mov    %rax,0x8(%rsp)
  mov    %r12d,%edi
  call   <malloc@plt>
  mov    %rax,%r15
  mov    %r14d,%edi
  call   <omp_set_num_threads@plt>
  mov    D107(%rip),%r13
  mov    %r13,%rbx
L23:
  lea    D165(%rip),%rdi
  call   <puts@plt>
L80:
  mov    %r15,%rdi
  call   <free@plt>
  mov    0x8(%rsp),%rdi
  call   <free@plt>
  movq   %r13,%xmm0
  lea    D111(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  movq   %rbx,%xmm0
  lea    D72(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  lea    D110(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D43
type: string
name: retrieve_data
arguments: data_tag: D139
type: string
name: retrieve_data
arguments: data_tag: D0
type: string
name: retrieve_data
arguments: data_tag: D124
type: string
name: retrieve_data
arguments: data_tag: D110
type: string
name: retrieve_data
arguments: data_tag: D22
type: string
name: retrieve_data
arguments: data_tag: D193
type: string
name: retrieve_data
arguments: data_tag: D107
type: f64
name: retrieve_data
arguments: data_tag: D47
type: string
name: retrieve_data
arguments: data_tag: D183
type: string
name: retrieve_data
arguments: data_tag: D185
type: string
name: retrieve_data
arguments: data_tag: D141
type: string
name: retrieve_data
arguments: data_tag: D186
type: string
name: retrieve_data
arguments: data_tag: D165
type: string
name: retrieve_data
arguments: data_tag: D111
type: string
name: retrieve_data
arguments: data_tag: D72
type: string

tool: D43: 
		---------------------------------------------------------------------------

tool: D139: 
		 Email : RarchK

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

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

tool: D110: 
		..........................................................................

tool: D22: 
		 Threads     : %d 

tool: D193: 
		 Array Size  : %d 

tool: D107: 0

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

tool: D183: 		 Very Few Arguments
 

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

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


tool: D186: 
		 Array Size Should Be Of Positive Value 

tool: D165: 

		 The Serial And Parallel Sums Are Equal

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


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



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