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

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%r12
  lea    0x38(%rsp),%rbp
  mov    %r12,%rbx
  mov    %r12,%r13
  xchg   %ax,%ax
L7:
  xor    %eax,%eax
  add    $0x4,%r13
  call   <rand@plt>
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0xffffffff88888889,%rdx,%rdx
  sar    $0x1f,%ecx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x4,%edx
  sub    %ecx,%edx
  imul   $0x1e,%edx,%edx
  sub    %edx,%eax
  mov    %eax,-0x4(%r13)
  cmp    %rbp,%r13
  jne    L7
  lea    D31(%rip),%r13
  nopw   0x0(%rax,%rax,1)
L23:
  mov    (%rbx),%esi
  mov    %r13,%rdi
  xor    %eax,%eax
  add    $0x4,%rbx
  call   <printf@plt>
  cmp    %rbp,%rbx
  jne    L23
  mov    $0xa,%edi
  lea    D67(%rip),%r13
  lea    D5(%rip),%rbp
  call   <putchar@plt>
  mov    %r12,%rsi
  xor    %eax,%eax
  mov    %r12,0x8(%rsp)
  lea    D25(%rip),%rdi
  call   <printf@plt>
  lea    0x8(%rsp),%rsi
  lea    D2(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rsi
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  mov    %rbp,%rdi
  mov    (%rax),%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  mov    %r13,%rdi
  lea    0x4(%rax),%rsi
  xor    %eax,%eax
  mov    %rsi,0x8(%rsp)
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  mov    %rbp,%rdi
  mov    (%rax),%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  mov    %r13,%rdi
  lea    0xc(%rax),%rsi
  xor    %eax,%eax
  mov    %rsi,0x8(%rsp)
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  mov    %rbp,%rdi
  mov    (%rax),%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rsi
  lea    D29(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D16(%rip),%rdi
  pxor   %xmm0,%xmm0
  mov    $0x1,%eax
  cvtss2sd 0x10(%rsp),%xmm0
  call   <printf@plt>
  mov    %r13,%rdi
  xor    %eax,%eax
  lea    -0x180(%rsp),%rsi
  mov    %rsi,0x8(%rsp)
  call   <printf@plt>
  mov    0x8(%rsp),%rax
  mov    %rbp,%rdi
  mov    (%rax),%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L2
  add    $0x48,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L2:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D31
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D67
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D5
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D25
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D2
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D29
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D16
type_guessed: string

tool: D31: %d, 

tool: D67: valor de z    = %ld


tool: D5: conteudo de   = %d


tool: D25: endereco de y = %p


tool: D2: endereco de z = %p


tool: D29: valor de f    = %ld


tool: D16: 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;
}
```