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

```asm
<ex1>:
  endbr64
  push   %r15
  xor    %edi,%edi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    $0xcccccccd,%ebp
  push   %rbx
  sub    $0x4d8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x4c8(%rsp)
  xor    %eax,%eax
  movb   $0x65,0x4c7(%rsp)
  lea    0x30(%rsp),%r15
  movl   $0x64636261,0x4c3(%rsp)
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  lea    0x130(%rsp),%rax
  movq   $0x0,0x18(%rsp)
  mov    %rax,0x28(%rsp)
  lea    0x4b4(%rsp),%rax
  mov    %rax,0x20(%rsp)
  mov    %rax,%rbx
  lea    0xb0(%rsp),%rax
  mov    %rax,(%rsp)
L47:
  mov    0x18(%rsp),%rax
  mov    0x28(%rsp),%rsi
  lea    -0x384(%rbx),%r13
  mov    $0x78,%r12d
  add    %rax,%rsi
  mov    %rsi,0x10(%rsp)
  mov    0x20(%rsp),%rsi
  add    %rsi,%rax
  mov    %rax,0x8(%rsp)
  nopl   0x0(%rax)
L55:
  xor    %eax,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0x51eb851f,%rdx,%rdx
  sar    $0x1f,%ecx
  sar    $0x25,%rdx
  sub    %ecx,%edx
  imul   $0x64,%edx,%edx
  sub    %edx,%eax
  add    $0x1e,%eax
  mov    %eax,(%r15,%r12,1)
  xor    %eax,%eax
  call   <rand@plt>
  mov    (%rsp),%rsi
  mov    0x10(%rsp),%r14
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x1f,%ecx
  sar    $0x24,%rdx
  sub    %ecx,%edx
  lea    (%rdx,%rdx,4),%edx
  shl    $0x3,%edx
  sub    %edx,%eax
  add    $0x1,%eax
  mov    %eax,(%rsi,%r12,1)
  nopl   0x0(%rax)
L56:
  xor    %eax,%eax
  add    $0x1e,%r14
  call   <rand@plt>
  mov    %eax,%edx
  imul   %rbp,%rdx
  shr    $0x22,%rdx
  lea    (%rdx,%rdx,4),%edx
  sub    %edx,%eax
  movzbl 0x4c3(%rsp,%rax,1),%eax
  mov    %al,-0x1e(%r14)
  cmp    %rbx,%r14
  jne    L56
  movsbl 0x0(%r13),%edi
  add    $0x4,%r12
  add    $0x1e,%r13
  call   <putchar@plt>
  cmp    0x8(%rsp),%r13
  jne    L55
  mov    0x18(%rsp),%r14
  mov    (%rsp),%rsi
  mov    $0x0,%ecx
  mov    0x78(%r15,%r14,4),%eax
  sub    0x78(%rsi,%r14,4),%eax
  cmovns %eax,%ecx
  cmp    $0x31,%eax
  jg     L69
  lea    D11(%rip),%rdx
  lea    D49(%rip),%rsi
  xor    %eax,%eax
  lea    D15(%rip),%rdi
  add    $0x1,%r14
  add    $0x1,%rbx
  call   <printf@plt>
  mov    %r14,0x18(%rsp)
  cmp    $0x1e,%r14
  jne    L47
L52:
  mov    0x4c8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L22
  add    $0x4d8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L69:
  lea    D52(%rip),%rdx
  lea    D49(%rip),%rsi
  xor    %eax,%eax
  add    $0x1,%rbx
  lea    D15(%rip),%rdi
  call   <printf@plt>
  addq   $0x1,0x18(%rsp)
  mov    0x18(%rsp),%rax
  cmp    $0x1e,%rax
  jne    L47
  jmp    L52
L22:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D11
type_infered: string
name: unpack_data
arguments: tag: D49
type_infered: string
name: unpack_data
arguments: tag: D15
type_infered: string
name: unpack_data
arguments: tag: D52
type_infered: string

tool: D11: Estoque abaixo de 50

tool: D49: Quantidade estoque

tool: D15: 
%s ||  %s ||  %d



tool: D52: 

assistant: ```c
void ex1() {
  int qtdp[1][30], qtdv[1][30];
  char name[30][30], alph[5] = {'a', 'b', 'c', 'd', 'e'};
  srand(time(NULL));
  for (int i = 0; i < 30; i++) {
    for (int k = 0; k < 30; k++) {
      qtdp[1][k] = rand() % 100 + 30;
      qtdv[1][k] = rand() % 40 + 1;
      for (int j = 0; j < 30; j++) {
        name[j][i] = alph[(unsigned int)rand() % 5];
      }
      printf("%c", name[k][i]);
    }
    printf("\n%s ||  %s ||  %d\n\n", "Quantidade estoque", qtdp[1][i] - qtdv[1][i] < 50 ? "Estoque abaixo de 50" : "\b\b\b\b\b", qtdp[1][i] - qtdv[1][i] >= 0 ? qtdp[1][i] - qtdv[1][i] : 0);
  }
}
```