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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %edi,-0x64(%rbp)
  mov    %rsi,-0x70(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    $0x0,%edi
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  movl   $0x0,-0x60(%rbp)
  movl   $0x1,-0x5c(%rbp)
  movl   $0x0,-0x58(%rbp)
  movl   $0x0,-0x54(%rbp)
  jmp    L30
L103:
  mov    $0x0,%eax
  call   <rand@plt>
  mov    %eax,%edx
  movslq %edx,%rax
  imul   $0x38e38e39,%rax,%rax
  shr    $0x20,%rax
  sar    %eax
  mov    %edx,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%eax
  mov    %eax,%ecx
  shl    $0x3,%ecx
  add    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    -0x54(%rbp),%edx
  movslq %edx,%rdx
  mov    %eax,-0x50(%rbp,%rdx,4)
  addl   $0x1,-0x54(%rbp)
L30:
  cmpl   $0xe,-0x54(%rbp)
  jle    L103
  movl   $0x0,-0x54(%rbp)
  jmp    L46
L39:
  mov    -0x54(%rbp),%eax
  cltq
  mov    -0x50(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D36(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x54(%rbp)
L46:
  cmpl   $0xe,-0x54(%rbp)
  jle    L39
  mov    $0xa,%edi
  call   <putchar@plt>
  movl   $0x1,-0x54(%rbp)
  jmp    L54
L23:
  mov    -0x54(%rbp),%eax
  cltq
  mov    -0x50(%rbp,%rax,4),%edx
  mov    -0x54(%rbp),%eax
  sub    $0x1,%eax
  cltq
  mov    -0x50(%rbp,%rax,4),%eax
  cmp    %eax,%edx
  jle    L76
  addl   $0x1,-0x5c(%rbp)
  jmp    L42
L76:
  mov    -0x5c(%rbp),%eax
  cmp    -0x58(%rbp),%eax
  jle    L70
  mov    -0x5c(%rbp),%eax
  mov    %eax,-0x58(%rbp)
  mov    -0x54(%rbp),%eax
  sub    -0x5c(%rbp),%eax
  mov    %eax,-0x60(%rbp)
  mov    -0x5c(%rbp),%eax
  mov    %eax,%esi
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x60(%rbp),%eax
  mov    %eax,%esi
  lea    D19(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x1,-0x5c(%rbp)
  jmp    L42
L70:
  movl   $0x1,-0x5c(%rbp)
L42:
  addl   $0x1,-0x54(%rbp)
L54:
  cmpl   $0xe,-0x54(%rbp)
  jle    L23
  mov    -0x60(%rbp),%eax
  mov    %eax,%esi
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L80
  call   <__stack_chk_fail@plt>
L80:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_label: D36
data_type: string
name: read_data
arguments: data_label: D9
data_type: string
name: read_data
arguments: data_label: D19
data_type: string
name: read_data
arguments: data_label: D1
data_type: string

tool: D36: %d 

tool: D9: cnt: %d


tool: D19: pos: %d


tool: D1: idx: %d


assistant: ```c
int main(int argc, char **argv) {
  srand((unsigned)time(NULL));
  int a[15];
  int pos = 0, cnt = 1, max = 0, i;
  for (i = 0; i < 15; ++i)
    a[i] = rand() % 9;
  for (i = 0; i < 15; ++i)
    printf("%d ", a[i]);
  printf("\n");
  for (i = 1; i < 15; ++i) {
    if (a[i] > a[i - 1])
      ++cnt;
    else {
      if (cnt > max) {
        max = cnt;
        pos = i - cnt;
        printf("cnt: %d\n", cnt);
        printf("pos: %d\n", pos);
        cnt = 1;
      } else
        cnt = 1;
    }
  }
  printf("idx: %d\n", pos);
  return 0;
}
```