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

```asm
<main>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x40,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rbx
  lea    0x38(%rsp),%r12
  mov    %rbx,%rbp
L25:
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0xffffffff88888889,%rdx,%rdx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x4,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x1e,%edx,%edx
  sub    %edx,%eax
  mov    %eax,0x0(%rbp)
  add    $0x4,%rbp
  cmp    %r12,%rbp
  jne    L25
  lea    D25(%rip),%rbp
L22:
  mov    (%rbx),%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x4,%rbx
  cmp    %r12,%rbx
  jne    L22
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    0x10(%rsp),%r12
  mov    %r12,0x8(%rsp)
  mov    %r12,%rsi
  lea    D6(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x8(%rsp),%rsi
  lea    D62(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rsi
  lea    D27(%rip),%rbp
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  mov    (%rax),%esi
  lea    D57(%rip),%rbx
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  lea    0x4(%rax),%rsi
  mov    %rsi,0x8(%rsp)
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  mov    (%rax),%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  lea    0xc(%rax),%rsi
  mov    %rsi,0x8(%rsp)
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  mov    (%rax),%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r12,%rsi
  lea    D31(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd 0x10(%rsp),%xmm0
  lea    D32(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  lea    -0x180(%rsp),%rsi
  mov    %rsi,0x8(%rsp)
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  mov    (%rax),%esi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L4
  mov    $0x0,%eax
  add    $0x40,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L4:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D25
type_guessed: string
name: retrieve_data
arguments: label: D6
type_guessed: string
name: retrieve_data
arguments: label: D62
type_guessed: string
name: retrieve_data
arguments: label: D27
type_guessed: string
name: retrieve_data
arguments: label: D57
type_guessed: string
name: retrieve_data
arguments: label: D31
type_guessed: string
name: retrieve_data
arguments: label: D32
type_guessed: string

tool: D25: %d, 

tool: D6: endereco de y = %p


tool: D62: endereco de z = %p


tool: D27: valor de z    = %ld


tool: D57: conteudo de   = %d


tool: D31: valor de f    = %ld


tool: D32: conteudo de   = %f


assistant: ```c
int main(void) {
  int x, i;
  int y[10];
  int *z;
  float *f;
  for (i = 0; i < 10; i++) {
    y[i] = rand() % 30;
  }
  for (i = 0; i < 10; i++) {
    printf("%d, ", y[i]);
  }
  printf("\n");
  z = y;
  printf("endereco de y = %p\n", y);
  printf("endereco de z = %p\n", &z);
  printf("valor de z    = %ld\n", z);
  printf("conteudo de   = %d\n", *z);
  z = z + 1;
  printf("valor de z    = %ld\n", z);
  printf("conteudo de   = %d\n", *z);
  z = z + 3;
  printf("valor de z    = %ld\n", z);
  printf("conteudo de   = %d\n", *z);
  f = y;
  printf("valor de f    = %ld\n", f);
  printf("conteudo de   = %f\n", *f);
  z = y;
  z = z - 100;
  printf("valor de z    = %ld\n", z);
  printf("conteudo de   = %d\n", *z);
  return 0;
}
```