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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  lea    D136(%rip),%r13
  push   %r12
  lea    D142(%rip),%r12
  push   %rbp
  mov    %edi,%ebp
  mov    %r12,%rdi
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    D173(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D84(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D137(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D32(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r13,%rdi
  call   <puts@plt>
  cmp    $0x3,%ebp
  je     L70
  lea    D97(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D39(%rip),%rdi
  call   <puts@plt>
  or     $0xffffffff,%edi
  call   <exit@plt>
L70:
  mov    0x8(%rbx),%rdi
  call   <atoi@plt>
  mov    %eax,%r15d
  cmp    $0x10,%eax
  jbe    L87
L223:
  lea    D21(%rip),%rdi
  call   <puts@plt>
  or     $0xffffffff,%edi
  call   <exit@plt>
L115:
  mov    0x10(%rbx),%rdi
  call   <atoi@plt>
  mov    %r15d,%esi
  lea    D163(%rip),%rdi
  mov    %eax,%r12d
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  mov    %r12d,%esi
  lea    D86(%rip),%rdi
  call   <printf@plt>
  test   %r12d,%r12d
  jle    L188
  lea    0x0(,%r12,4),%edi
  call   <malloc@plt>
  mov    $0xffff,%edi
  mov    %rax,%rbp
  call   <srand@plt>
  mov    %r12d,%eax
  mov    %rbp,%rbx
  lea    0x0(%rbp,%rax,4),%r14
  nopl   0x0(%rax,%rax,1)
L224:
  xor    %eax,%eax
  add    $0x4,%rbx
  call   <rand@plt>
  mov    %eax,-0x4(%rbx)
  cmp    %r14,%rbx
  jne    L224
  cmp    $0x1,%r12d
  je     L42
L18:
  lea    0xc(%rsp),%rsi
  lea    0x18(%rsp),%rdi
  xor    %ebx,%ebx
  mov    $0xffffd8f1,%r14d
  call   <gettimeofday@plt>
  mov    %r15d,%edi
  lea    0x14(%rsp),%r15
  call   <omp_set_num_threads@plt>
  mov    %r15,%rdi
  call   <omp_init_lock@plt>
  jmp    L212
  nopl   0x0(%rax,%rax,1)
L113:
  add    $0x1,%rbx
  cmp    %ebx,%r12d
  jle    L100
L212:
  cmp    %r14d,0x0(%rbp,%rbx,4)
  jle    L113
  mov    %r15,%rdi
  call   <omp_set_lock@plt>
  mov    0x0(%rbp,%rbx,4),%eax
  mov    %r15,%rdi
  cmp    %eax,%r14d
  cmovl  %eax,%r14d
  add    $0x1,%rbx
  call   <omp_unset_lock@plt>
  cmp    %ebx,%r12d
  jg     L212
L100:
  mov    %r15,%rdi
  call   <omp_destroy_lock@plt>
  lea    0x10(%rsp),%rsi
  lea    0x20(%rsp),%rdi
  call   <gettimeofday@plt>
  imul   $0xf4240,0x20(%rsp),%eax
  add    0x24(%rsp),%eax
  pxor   %xmm0,%xmm0
  imul   $0xf4240,0x18(%rsp),%edx
  add    0x1c(%rsp),%edx
  cltq
  movslq %edx,%rdx
  sub    %rdx,%rax
  cvtsi2sd %rax,%xmm0
  mov    0x0(%rbp),%eax
  divsd  D61(%rip),%xmm0
  movq   %xmm0,%rbx
  cmp    $0x1,%r12d
  jle    L68
  lea    -0x2(%r12),%edx
  lea    -0x1(%r12),%ecx
  cmp    $0x2,%edx
  jbe    L133
  mov    %ecx,%edx
  movd   %eax,%xmm3
  lea    0x4(%rbp),%rax
  shr    $0x2,%edx
  pshufd $0x0,%xmm3,%xmm2
  sub    $0x1,%edx
  shl    $0x4,%rdx
  lea    0x14(%rbp,%rdx,1),%rdx
  nopw   0x0(%rax,%rax,1)
L141:
  movdqu (%rax),%xmm0
  add    $0x10,%rax
  movdqa %xmm0,%xmm1
  pcmpgtd %xmm2,%xmm1
  pand   %xmm1,%xmm0
  pandn  %xmm2,%xmm1
  movdqa %xmm1,%xmm2
  por    %xmm0,%xmm2
  cmp    %rdx,%rax
  jne    L141
  movdqa %xmm2,%xmm1
  mov    %ecx,%esi
  psrldq $0x8,%xmm1
  and    $0xfffffffc,%esi
  movdqa %xmm1,%xmm0
  lea    0x1(%rsi),%edx
  pcmpgtd %xmm2,%xmm0
  pand   %xmm0,%xmm1
  pandn  %xmm2,%xmm0
  por    %xmm1,%xmm0
  movdqa %xmm0,%xmm2
  psrldq $0x4,%xmm2
  movdqa %xmm2,%xmm1
  pcmpgtd %xmm0,%xmm1
  pand   %xmm1,%xmm2
  pandn  %xmm0,%xmm1
  por    %xmm2,%xmm1
  movd   %xmm1,%eax
  cmp    %ecx,%esi
  je     L68
L13:
  movslq %edx,%rcx
  lea    0x0(,%rcx,4),%rsi
  mov    0x0(%rbp,%rcx,4),%ecx
  cmp    %ecx,%eax
  cmovl  %ecx,%eax
  lea    0x1(%rdx),%ecx
  cmp    %ecx,%r12d
  jle    L68
  mov    0x4(%rbp,%rsi,1),%ecx
  cmp    %ecx,%eax
  cmovl  %ecx,%eax
  add    $0x2,%edx
  cmp    %edx,%r12d
  jle    L68
  mov    0x8(%rbp,%rsi,1),%edx
  cmp    %edx,%eax
  cmovl  %edx,%eax
L68:
  cmp    %r14d,%eax
  je     L24
  lea    D29(%rip),%rdi
  call   <puts@plt>
  or     $0xffffffff,%edi
  call   <exit@plt>
L117:
  mov    %rbp,%rdi
  call   <free@plt>
  mov    %r14d,%esi
  lea    D128(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  movq   %rbx,%xmm0
  mov    $0x1,%eax
  lea    D96(%rip),%rdi
  call   <printf@plt>
  mov    %r13,%rdi
  call   <puts@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L74
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L87:
  mov    $0xfffffffffffefee9,%rax
  mov    %r15d,%ecx
  sar    %cl,%rax
  test   $0x1,%al
  je     L115
  jmp    L223
L24:
  lea    D9(%rip),%rdi
  call   <puts@plt>
  jmp    L117
L188:
  lea    D55(%rip),%rdi
  mov    $0xffffd8f1,%r14d
  call   <puts@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  lea    0x0(,%r12,4),%edi
  call   <malloc@plt>
  mov    $0xffff,%edi
  mov    %rax,%rbp
  call   <srand@plt>
  lea    0xc(%rsp),%rsi
  lea    0x18(%rsp),%rdi
  call   <gettimeofday@plt>
  mov    %r15d,%edi
  lea    0x14(%rsp),%r15
  call   <omp_set_num_threads@plt>
  mov    %r15,%rdi
  call   <omp_init_lock@plt>
  jmp    L100
L42:
  mov    0x0(%rbp),%esi
  lea    D135(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L18
L133:
  mov    $0x1,%edx
  jmp    L13
L74:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D136
type: string
name: parse_data
arguments: data_tag: D142
type: string
name: parse_data
arguments: data_tag: D173
type: string
name: parse_data
arguments: data_tag: D84
type: string
name: parse_data
arguments: data_tag: D137
type: string
name: parse_data
arguments: data_tag: D32
type: string
name: parse_data
arguments: data_tag: D97
type: string
name: parse_data
arguments: data_tag: D39
type: string
name: parse_data
arguments: data_tag: D21
type: string
name: parse_data
arguments: data_tag: D163
type: string
name: parse_data
arguments: data_tag: D86
type: string
name: parse_data
arguments: data_tag: D61
type: f64
name: parse_data
arguments: data_tag: D29
type: string
name: parse_data
arguments: data_tag: D128
type: string
name: parse_data
arguments: data_tag: D96
type: string
name: parse_data
arguments: data_tag: D9
type: string
name: parse_data
arguments: data_tag: D55
type: string
name: parse_data
arguments: data_tag: D135
type: string

tool: D136: 
		..........................................................................

tool: D142: 
		---------------------------------------------------------------------------

tool: D173: 
		 Email : RarchK

tool: D84: 
		 Objective : Finding Maximum element of an Array 

tool: D137: 
		 This example demonstrates the use of OpenMP Lock routines such as : omp_init_lock()

tool: D32: 
		 omp_set_lock(),omp_unset_lock(), omp_destroy_lock(). 

tool: D97: 		 Very Few Arguments
 

tool: D39: 		 Syntax : exec <Threads>  <No. of elements> 

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


tool: D163: 
		 Threads : %d

tool: D86: 
		 Number of elements in Array : %d 
 

tool: D61: 1000000

tool: D29: 

		 The Max Value Is Not Same In Serial And Using Parallel OpenMP Directive

tool: D128: 
		 The Largest Number Of The Array Is %d


tool: D96: 
		 Time in Seconds (T)        : %lf Seconds 


tool: D9: 

		 The Max Value Is Same For Serial And Using Parallel OpenMP Directive

tool: D55: 
		 The array elements cannot be stored

tool: D135: 
		 The Largest Element In The Array Is %d

assistant: ```c
main(int argc, char **argv) {
  int *array, i, Noofelements, cur_max, current_value, Noofthreads;
  struct timeval TimeValue_Start;
  struct timezone TimeZone_Start;
  struct timeval TimeValue_Final;
  struct timezone TimeZone_Final;
  long time_start, time_end;
  double time_overhead;
  omp_lock_t MAXLOCK;
  printf("\n\t\t---------------------------------------------------------------------------");
  printf("\n\t\t Email : RarchK");
  printf("\n\t\t---------------------------------------------------------------------------");
  printf("\n\t\t Objective : Finding Maximum element of an Array ");
  printf("\n\t\t This example demonstrates the use of OpenMP Lock routines such as : omp_init_lock()");
  printf("\n\t\t omp_set_lock(),omp_unset_lock(), omp_destroy_lock(). ");
  printf("\n\t\t..........................................................................\n");
  if (argc != 3) {
    printf("\t\t Very Few Arguments\n ");
    printf("\t\t Syntax : exec <Threads>  <No. of elements> \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);
  }
  Noofelements = atoi(argv[2]);
  printf("\n\t\t Threads : %d", Noofthreads);
  printf("\n\t\t Number of elements in Array : %d \n ", Noofelements);
  if (Noofelements <= 0) {
    printf("\n\t\t The array elements cannot be stored\n");
    exit(1);
  }
  array = (int *)malloc(sizeof(int) * Noofelements);
  srand(65535);
  for (i = 0; i < Noofelements; i++)
    array[i] = rand();
  if (Noofelements == 1) {
    printf("\n\t\t The Largest Element In The Array Is %d", array[0]);
    exit(1);
  }
  gettimeofday(&TimeValue_Start, &TimeZone_Start);
  omp_set_num_threads(Noofthreads);
  omp_init_lock(&MAXLOCK);
  cur_max = -9999;
#pragma omp parallel for
  for (i = 0; i < Noofelements; i = i + 1) {
    if (array[i] > cur_max) {
      omp_set_lock(&MAXLOCK);
      if (array[i] > cur_max)
        cur_max = array[i];
      omp_unset_lock(&MAXLOCK);
    }
  }
  omp_destroy_lock(&MAXLOCK);
  gettimeofday(&TimeValue_Final, &TimeZone_Final);
  time_start = TimeValue_Start.tv_sec * 1000000 + TimeValue_Start.tv_usec;
  time_end = TimeValue_Final.tv_sec * 1000000 + TimeValue_Final.tv_usec;
  time_overhead = (time_end - time_start) / 1000000.0;
  current_value = array[0];
  for (i = 1; i < Noofelements; i++)
    if (array[i] > current_value)
      current_value = array[i];
  if (current_value == cur_max)
    printf("\n\n\t\t The Max Value Is Same For Serial And Using Parallel OpenMP Directive\n");
  else {
    printf("\n\n\t\t The Max Value Is Not Same In Serial And Using Parallel OpenMP Directive\n");
    exit(-1);
  }
  free(array);
  printf("\n\t\t The Largest Number Of The Array Is %d\n", cur_max);
  printf("\n\t\t Time in Seconds (T)        : %lf Seconds \n", time_overhead);
  printf("\n\t\t..........................................................................\n");
}
```