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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %edi,-0x34(%rbp)
  mov    %rsi,-0x40(%rbp)
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D67(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D81(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D42(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D128(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  cmpl   $0x3,-0x34(%rbp)
  je     L132
  lea    D22(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D151(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xffffffff,%edi
  call   <exit@plt>
L132:
  mov    -0x40(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    %eax,-0x28(%rbp)
  cmpl   $0x1,-0x28(%rbp)
  je     L79
  cmpl   $0x2,-0x28(%rbp)
  je     L79
  cmpl   $0x4,-0x28(%rbp)
  je     L79
  cmpl   $0x8,-0x28(%rbp)
  je     L79
  cmpl   $0x10,-0x28(%rbp)
  je     L79
  lea    D144(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xffffffff,%edi
  call   <exit@plt>
L79:
  mov    -0x40(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    %eax,-0x24(%rbp)
  cmpl   $0x0,-0x24(%rbp)
  jg     L78
  lea    D109(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L78:
  mov    -0x28(%rbp),%eax
  mov    %eax,%esi
  lea    D96(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x24(%rbp),%eax
  mov    %eax,%esi
  lea    D137(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x10(%rbp)
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x2c(%rbp)
  jmp    L121
L76:
  mov    -0x2c(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %eax,%edx
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x10(%rbp),%rax
  add    %rcx,%rax
  pxor   %xmm0,%xmm0
  cvtsi2sd %edx,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x10(%rbp),%rax
  add    %rax,%rdx
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x8(%rbp),%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x2c(%rbp)
L121:
  mov    -0x2c(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L76
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  mov    -0x28(%rbp),%eax
  mov    %eax,%edi
  call   <omp_set_num_threads@plt>
  movl   $0x0,-0x2c(%rbp)
  jmp    L5
L29:
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  -0x18(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  addl   $0x1,-0x2c(%rbp)
L5:
  mov    -0x2c(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L29
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movl   $0x0,-0x2c(%rbp)
  jmp    L50
L142:
  mov    -0x2c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  -0x20(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  addl   $0x1,-0x2c(%rbp)
L50:
  mov    -0x2c(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L142
  movsd  -0x20(%rbp),%xmm0
  ucomisd -0x18(%rbp),%xmm0
  jp     L156
  movsd  -0x20(%rbp),%xmm0
  ucomisd -0x18(%rbp),%xmm0
  jne    L156
  lea    D123(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L37
L156:
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L37:
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x18(%rbp),%rax
  movq   %rax,%xmm0
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  lea    D128(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  leave
  ret
```

tool_calls: name: read_data
arguments: tag: D6
type_infered: string
name: read_data
arguments: tag: D67
type_infered: string
name: read_data
arguments: tag: D81
type_infered: string
name: read_data
arguments: tag: D42
type_infered: string
name: read_data
arguments: tag: D128
type_infered: string
name: read_data
arguments: tag: D22
type_infered: string
name: read_data
arguments: tag: D151
type_infered: string
name: read_data
arguments: tag: D144
type_infered: string
name: read_data
arguments: tag: D109
type_infered: string
name: read_data
arguments: tag: D96
type_infered: string
name: read_data
arguments: tag: D137
type_infered: string
name: read_data
arguments: tag: D123
type_infered: string
name: read_data
arguments: tag: D13
type_infered: string
name: read_data
arguments: tag: D25
type_infered: string
name: read_data
arguments: tag: D21
type_infered: string

tool: D6: 
		---------------------------------------------------------------------------

tool: D67: 
		 Email : RarchK

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

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

tool: D128: 
		..........................................................................

tool: D22: 		 Very Few Arguments
 

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

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


tool: D109: 
		 Array Size Should Be Of Positive Value 

tool: D96: 
		 Threads     : %d 

tool: D137: 
		 Array Size  : %d 

tool: D123: 

		 The Serial And Parallel Sums Are Equal

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

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


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