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

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x30,%rsp
  mov    %edi,%ebp
  mov    %rsi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    D102(%rip),%r12
  mov    %r12,%rdi
  call   <printf@plt>
  lea    D125(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D39(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D41(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D121(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D60(%rip),%rdi
  call   <puts@plt>
  cmp    $0x3,%ebp
  jne    L19
L162:
  mov    0x8(%rbx),%rdi
  call   <atoi@plt>
  mov    %eax,%r14d
  cmp    $0x10,%eax
  ja     L29
  mov    $0x10116,%eax
  mov    %r14d,%ecx
  shr    %cl,%rax
  test   $0x1,%al
  je     L29
L22:
  mov    0x10(%rbx),%rdi
  call   <atoi@plt>
  mov    %eax,%r12d
  mov    %r14d,%esi
  lea    D57(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r12d,%esi
  lea    D103(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  test   %r12d,%r12d
  jle    L125
  lea    0x0(,%r12,4),%edi
  call   <malloc@plt>
  mov    %rax,%rbp
  mov    $0xffff,%edi
  call   <srand@plt>
  mov    %rbp,%rbx
  mov    %r12d,%eax
  lea    0x0(%rbp,%rax,4),%r13
L102:
  mov    $0x0,%eax
  call   <rand@plt>
  mov    %eax,(%rbx)
  add    $0x4,%rbx
  cmp    %r13,%rbx
  jne    L102
  cmp    $0x1,%r12d
  je     L113
  lea    0xc(%rsp),%rsi
  lea    0x18(%rsp),%rdi
  call   <gettimeofday@plt>
  mov    %r14d,%edi
  call   <omp_set_num_threads@plt>
  lea    0x14(%rsp),%rdi
  call   <omp_init_lock@plt>
L99:
  mov    $0x0,%ebx
  mov    $0xffffd8f1,%r13d
  lea    0x14(%rsp),%r14
  jmp    L77
L19:
  lea    D177(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D73(%rip),%rdi
  call   <puts@plt>
  mov    $0xffffffff,%edi
  call   <exit@plt>
  jmp    L162
L29:
  lea    D100(%rip),%rdi
  call   <puts@plt>
  mov    $0xffffffff,%edi
  call   <exit@plt>
  jmp    L22
L125:
  lea    D56(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  lea    0x0(,%r12,4),%edi
  call   <malloc@plt>
  mov    %rax,%rbp
  mov    $0xffff,%edi
  call   <srand@plt>
  lea    0xc(%rsp),%rsi
  lea    0x18(%rsp),%rdi
  call   <gettimeofday@plt>
  mov    %r14d,%edi
  call   <omp_set_num_threads@plt>
  lea    0x14(%rsp),%rdi
  call   <omp_init_lock@plt>
  mov    $0xffffd8f1,%r13d
L135:
  lea    0x14(%rsp),%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
  cltq
  imul   $0xf4240,0x18(%rsp),%edx
  add    0x1c(%rsp),%edx
  movslq %edx,%rdx
  sub    %rdx,%rax
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  divsd  D171(%rip),%xmm0
  movq   %xmm0,%rbx
  mov    0x0(%rbp),%edx
  cmp    $0x1,%r12d
  jle    L164
  lea    0x4(%rbp),%rax
  lea    -0x2(%r12),%ecx
  lea    0x8(%rbp,%rcx,4),%rsi
L155:
  mov    (%rax),%ecx
  cmp    %ecx,%edx
  cmovl  %ecx,%edx
  add    $0x4,%rax
  cmp    %rsi,%rax
  jne    L155
L164:
  cmp    %edx,%r13d
  je     L66
  lea    D91(%rip),%rdi
  call   <puts@plt>
  mov    $0xffffffff,%edi
  call   <exit@plt>
L163:
  mov    %rbp,%rdi
  call   <free@plt>
  mov    %r13d,%esi
  lea    D118(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movq   %rbx,%xmm0
  lea    D133(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  lea    D60(%rip),%rdi
  call   <puts@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L130
  mov    $0x0,%eax
  add    $0x30,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L113:
  mov    0x0(%rbp),%esi
  lea    D36(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  lea    0xc(%rsp),%rsi
  lea    0x18(%rsp),%rdi
  call   <gettimeofday@plt>
  mov    %r14d,%edi
  call   <omp_set_num_threads@plt>
  lea    0x14(%rsp),%rdi
  call   <omp_init_lock@plt>
  jmp    L99
L133:
  add    $0x1,%rbx
  cmp    %ebx,%r12d
  jle    L135
L77:
  cmp    %r13d,0x0(%rbp,%rbx,4)
  jle    L133
  mov    %r14,%rdi
  call   <omp_set_lock@plt>
  mov    0x0(%rbp,%rbx,4),%eax
  cmp    %eax,%r13d
  cmovl  %eax,%r13d
  mov    %r14,%rdi
  call   <omp_unset_lock@plt>
  jmp    L133
L66:
  lea    D110(%rip),%rdi
  call   <puts@plt>
  jmp    L163
L130:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D102
type_guessed: string
name: disassemble_data
arguments: data_tag: D125
type_guessed: string
name: disassemble_data
arguments: data_tag: D39
type_guessed: string
name: disassemble_data
arguments: data_tag: D41
type_guessed: string
name: disassemble_data
arguments: data_tag: D121
type_guessed: string
name: disassemble_data
arguments: data_tag: D60
type_guessed: string
name: disassemble_data
arguments: data_tag: D57
type_guessed: string
name: disassemble_data
arguments: data_tag: D103
type_guessed: string
name: disassemble_data
arguments: data_tag: D177
type_guessed: string
name: disassemble_data
arguments: data_tag: D73
type_guessed: string
name: disassemble_data
arguments: data_tag: D100
type_guessed: string
name: disassemble_data
arguments: data_tag: D56
type_guessed: string
name: disassemble_data
arguments: data_tag: D171
type_guessed: f64
name: disassemble_data
arguments: data_tag: D91
type_guessed: string
name: disassemble_data
arguments: data_tag: D118
type_guessed: string
name: disassemble_data
arguments: data_tag: D133
type_guessed: string
name: disassemble_data
arguments: data_tag: D36
type_guessed: string
name: disassemble_data
arguments: data_tag: D110
type_guessed: string

tool: D102: 
		---------------------------------------------------------------------------

tool: D125: 
		 Email : RarchK

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

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

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

tool: D60: 
		..........................................................................

tool: D57: 
		 Threads : %d

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

tool: D177: 		 Very Few Arguments
 

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

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


tool: D56: 
		 The array elements cannot be stored

tool: D171: 1000000

tool: D91: 

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

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


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


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

tool: D110: 

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

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