user: What is the c source code of the assembly code below:

```asm
<prac2>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x24(%rbp)
  mov    %rsi,-0x30(%rbp)
  movl   $0x0,-0x14(%rbp)
  movl   $0x0,-0x10(%rbp)
  jmp    L135
L25:
  subl   $0x1,-0x10(%rbp)
L21:
  cmpl   $0x0,-0x10(%rbp)
  jle    L10
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x10(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  je     L25
L10:
  mov    -0x10(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  jmp    L101
L13:
  addl   $0x1,-0x10(%rbp)
L101:
  mov    -0x24(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x10(%rbp)
  jge    L95
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x10(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jle    L13
L95:
  mov    -0x10(%rbp),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  sub    -0xc(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jle    L138
  mov    -0x4(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  jmp    L138
L141:
  subl   $0x1,-0x10(%rbp)
L138:
  cmpl   $0x0,-0x10(%rbp)
  jle    L108
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x10(%rbp),%eax
  cltq
  shl    $0x2,%rax
  lea    -0x4(%rax),%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  je     L141
L108:
  mov    -0x10(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  jmp    L18
L51:
  addl   $0x1,-0x10(%rbp)
L18:
  mov    -0x24(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x10(%rbp)
  jge    L12
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x10(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jge    L51
L12:
  mov    -0x10(%rbp),%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x8(%rbp),%eax
  sub    -0xc(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jle    L135
  mov    -0x4(%rbp),%eax
  mov    %eax,-0x14(%rbp)
L135:
  mov    -0x24(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x10(%rbp)
  jl     L21
  mov    -0x14(%rbp),%eax
  pop    %rbp
  ret
```

assistant: ```c
int prac2(const int n, const int arr[]) {
  int long_count = 0;
  int count, begin, end;
  int i = 0;
  while (i < n - 1) {
    while (i > 0 && arr[i] == arr[i - 1])
      --i;
    begin = i;
    while (i < n - 1 && arr[i] <= arr[i + 1])
      ++i;
    end = i;
    count = end - begin + 1;
    if (count > long_count)
      long_count = count;
    while (i > 0 && arr[i] == arr[i - 1])
      --i;
    begin = i;
    while (i < n - 1 && arr[i] >= arr[i + 1])
      ++i;
    end = i;
    count = end - begin + 1;
    if (count > long_count)
      long_count = count;
  }
  return long_count;
}
```