user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %r15
  xor    %edi,%edi
  push   %r14
  lea    D79(%rip),%r14
  push   %r13
  push   %r12
  lea    D24(%rip),%r12
  push   %rbp
  push   %rbx
  mov    $0x4,%ebx
  sub    $0x68,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  lea    0x30(%rsp),%r15
  lea    0x38(%rsp),%r13
  call   <time@plt>
  lea    0x40(%rsp),%rbp
  mov    %eax,%edi
  call   <srand@plt>
  lea    0x48(%rsp),%rax
  mov    %rax,0x10(%rsp)
  lea    0x50(%rsp),%rax
  mov    %rax,0x8(%rsp)
  lea    0x2c(%rsp),%rax
  mov    %rax,0x18(%rsp)
L24:
  xor    %eax,%eax
  call   <rand_signed64@plt>
  pxor   %xmm3,%xmm3
  comisd %xmm0,%xmm3
  movsd  %xmm0,0x30(%rsp)
  ja     L13
  movsd  %xmm0,0x38(%rsp)
  movapd %xmm0,%xmm1
L10:
  mov    $0x40,%edx
  mov    %r15,%rsi
  mov    %r14,%rdi
  movsd  %xmm1,0x48(%rsp)
  movsd  %xmm0,0x40(%rsp)
  call   <gen_int_test@plt>
  mov    $0x40,%edx
  mov    %r13,%rsi
  mov    %r12,%rdi
  movsd  0x38(%rsp),%xmm0
  call   <gen_int_test@plt>
  movsd  0x40(%rsp),%xmm0
  mov    %rbp,%rsi
  mov    $0x20,%edx
  lea    D74(%rip),%rdi
  call   <gen_int_test@plt>
  mov    0x10(%rsp),%rsi
  movsd  0x48(%rsp),%xmm0
  mov    $0x20,%edx
  lea    D44(%rip),%rdi
  call   <gen_int_test@plt>
  xor    %eax,%eax
  call   <rand_signed64@plt>
  xor    %eax,%eax
  movsd  %xmm0,(%rsp)
  call   <rand_signed64@plt>
  movsd  (%rsp),%xmm1
  mov    0x8(%rsp),%rsi
  mov    $0x40,%edx
  lea    D16(%rip),%rdi
  mov    $0x1,%eax
  divsd  %xmm0,%xmm1
  movsd  D42(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsd2ss %xmm0,%xmm1
  movsd  %xmm0,0x50(%rsp)
  movss  %xmm1,0x2c(%rsp)
  call   <gen_flo_test@plt>
  mov    0x18(%rsp),%rsi
  pxor   %xmm0,%xmm0
  mov    $0x20,%edx
  lea    D46(%rip),%rdi
  mov    $0x1,%eax
  cvtss2sd 0x2c(%rsp),%xmm0
  call   <gen_flo_test@plt>
  sub    $0x1,%ebx
  jne    L24
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L27
  add    $0x68,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L13:
  movapd %xmm0,%xmm1
  xorpd  D15(%rip),%xmm1
  movsd  %xmm1,0x38(%rsp)
  jmp    L10
L27:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D79
type: string
name: unpack_data
arguments: data_label: D24
type: string
name: unpack_data
arguments: data_label: D74
type: string
name: unpack_data
arguments: data_label: D44
type: string
name: unpack_data
arguments: data_label: D16
type: string
name: unpack_data
arguments: data_label: D42
type: f64
name: unpack_data
arguments: data_label: D46
type: string
name: unpack_data
arguments: data_label: D15
type: byte[16]

tool: D79: read-sfixed64

tool: D24: read-fixed64 

tool: D74: read-sfixed32

tool: D44: read-fixed32 

tool: D16: read-double

tool: D42: 50000

tool: D46: read-float 

tool: {"D15": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

assistant: ```c
int main() {
  srand(time(NULL));
  for (int i = 0; i < 4; i++) {
    int64_t i64 = rand_signed64();
    uint64_t u64 = (uint64_t)i64;
    if (i64 < 0)
      u64 = -i64;
    int32_t i32 = (int32_t)i64;
    uint32_t u32 = (uint32_t)u64;
    if (i32 < 0)
      u32 = -i32;
    gen_int_test("read-sfixed64", &i64, 64, i64);
    gen_int_test("read-fixed64 ", &u64, 64, u64);
    gen_int_test("read-sfixed32", &i32, 32, i32);
    gen_int_test("read-fixed32 ", &u32, 32, u32);
    double dbl = rand_signed64() / (double)rand_signed64() * 50000;
    float flt = dbl;
    gen_flo_test("read-double", &dbl, 64, dbl);
    gen_flo_test("read-float ", &flt, 32, flt);
  }
}
```