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

```asm
<main>:
  endbr64
  push   %r14
  xor    %edi,%edi
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  mov    $0x28,%edi
  call   <malloc@plt>
  mov    %rax,%rbp
  xor    %eax,%eax
  call   <rand@plt>
  movslq %eax,%r13
  cltd
  imul   $0x66666667,%r13,%r13
  sar    $0x21,%r13
  sub    %edx,%r13d
  lea    0x0(%r13,%r13,4),%edx
  sub    %edx,%eax
  mov    %eax,%r13d
  call   <fork@plt>
  mov    %eax,%r12d
  test   %eax,%eax
  je     L48
  mov    %rsp,%rbx
  lea    0x28(%rsp),%r14
  mov    $0xa,%edx
  mov    %rbx,%rax
  lea    0x24(%rbp,%rbx,1),%rsi
  nopl   0x0(%rax,%rax,1)
L92:
  mov    %rsi,%rcx
  sub    %rax,%rcx
  add    $0x4,%rax
  mov    %edx,(%rcx)
  mov    %edx,-0x4(%rax)
  add    $0x1,%edx
  cmp    %r14,%rax
  jne    L92
  add    $0x1,%r13d
  lea    D51(%rip),%rdi
  xor    %eax,%eax
  mov    %r13d,%esi
  call   <printf@plt>
  mov    %r13d,%edi
  call   <sleep@plt>
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  xor    %eax,%eax
  lea    D40(%rip),%rdi
  call   <printf@plt>
L72:
  lea    D29(%rip),%rdi
  xor    %eax,%eax
  lea    D27(%rip),%r13
  call   <printf@plt>
  nopl   (%rax)
L69:
  mov    (%rbx),%esi
  mov    %r13,%rdi
  xor    %eax,%eax
  add    $0x4,%rbx
  call   <printf@plt>
  cmp    %r14,%rbx
  jne    L69
  mov    $0xa,%edi
  mov    %rbp,%rbx
  lea    0x28(%rbp),%r14
  call   <putchar@plt>
  lea    D48(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  nopl   0x0(%rax)
L50:
  mov    (%rbx),%esi
  mov    %r13,%rdi
  xor    %eax,%eax
  add    $0x4,%rbx
  call   <printf@plt>
  cmp    %r14,%rbx
  jne    L50
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    %rbp,%rdi
  call   <free@plt>
  test   %r12d,%r12d
  jne    L85
L54:
  xor    %edi,%edi
  call   <exit@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L38
  add    $0x30,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L48:
  lea    0x24(%rbp),%rdx
  xor    %eax,%eax
  mov    %rsp,%rbx
  nopl   0x0(%rax,%rax,1)
L27:
  mov    %eax,(%rdx)
  sub    $0x4,%rdx
  mov    %eax,(%rbx,%rax,4)
  add    $0x1,%rax
  cmp    $0xa,%rax
  jne    L27
  nopl   0x0(%rax,%rax,1)
L20:
  xor    %eax,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x1f,%ecx
  sar    $0x21,%rdx
  sub    %ecx,%edx
  lea    (%rdx,%rdx,4),%ecx
  sub    %ecx,%eax
  cmp    %eax,%r13d
  je     L20
  lea    0x1(%rax),%r13d
  lea    D21(%rip),%rdi
  xor    %eax,%eax
  mov    %r13d,%esi
  lea    0x28(%rsp),%r14
  call   <printf@plt>
  mov    %r13d,%edi
  call   <sleep@plt>
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  xor    %eax,%eax
  lea    D41(%rip),%rdi
  call   <printf@plt>
  jmp    L72
L85:
  xor    %edi,%edi
  call   <wait@plt>
  jmp    L54
L38:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D51
data_type: string
name: disassemble_data
arguments: data_tag: D40
data_type: string
name: disassemble_data
arguments: data_tag: D29
data_type: string
name: disassemble_data
arguments: data_tag: D27
data_type: string
name: disassemble_data
arguments: data_tag: D48
data_type: string
name: disassemble_data
arguments: data_tag: D21
data_type: string
name: disassemble_data
arguments: data_tag: D41
data_type: string

tool: D51: Parent process going to sleep for %d seconds


tool: D40: Parent process: A = %p, B = %p


tool: D29: A[] =

tool: D27:  %d

tool: D48: B[] =

tool: D21: Child process going to sleep for %d seconds


tool: D41: Child process: A = %p, B = %p


assistant: ```c
int main() {
  int A[10], *B, i, t, pid;
  srand((unsigned int)time(NULL));
  B = (int *)malloc(10 * sizeof(int));
  t = 1 + rand() % 5;
  if ((pid = fork())) {
    for (i = 0; i < 10; ++i)
      A[i] = B[9 - i] = 10 + i;
    printf("Parent process going to sleep for %d seconds\n", t);
    sleep(t);
    printf("Parent process: A = %p, B = %p\n", A, B);
  } else {
    for (i = 0; i < 10; ++i)
      A[i] = B[9 - i] = i;
    i = t;
    while (i == t)
      t = 1 + rand() % 5;
    printf("Child process going to sleep for %d seconds\n", t);
    sleep(t);
    printf("Child process: A = %p, B = %p\n", A, B);
  }
  printf("A[] =");
  for (i = 0; i < 10; ++i)
    printf(" %d", A[i]);
  printf("\n");
  printf("B[] =");
  for (i = 0; i < 10; ++i)
    printf(" %d", B[i]);
  printf("\n");
  free(B);
  if (pid)
    wait(NULL);
  exit(0);
}
```