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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %edi,-0x54(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  cmpl   $0x2,-0x54(%rbp)
  je     L105
  lea    D53(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xffffffff,%eax
  jmp    L106
L105:
  mov    -0x60(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    %rax,-0x40(%rbp)
  mov    $0x0,%edi
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  movq   $0x0,-0x48(%rbp)
  jmp    L49
L62:
  mov    $0x0,%eax
  call   <rand@plt>
  cltq
  shl    $0x20,%rax
  mov    %rax,%rbx
  mov    $0x0,%eax
  call   <rand@plt>
  cltq
  or     %rbx,%rax
  mov    %rax,-0x38(%rbp)
  mov    $0x0,%eax
  call   <rand@plt>
  cltq
  shl    $0x20,%rax
  mov    %rax,%rbx
  mov    $0x0,%eax
  call   <rand@plt>
  cltq
  or     %rbx,%rax
  mov    %rax,-0x30(%rbp)
  mov    $0x0,%eax
  call   <rand@plt>
  and    $0x1,%eax
  test   %eax,%eax
  jne    L100
  lea    -0x1a(%rbp),%rax
  lea    D23(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  jmp    L27
L100:
  lea    -0x1a(%rbp),%rax
  lea    D4(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
L27:
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x55555556,%rdx,%rdx
  shr    $0x20,%rdx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  mov    %edx,%ecx
  add    %ecx,%ecx
  add    %edx,%ecx
  sub    %ecx,%eax
  mov    %eax,%edx
  movslq %edx,%rax
  mov    %rax,-0x28(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  jne    L83
  mov    -0x30(%rbp),%rcx
  mov    -0x38(%rbp),%rdx
  lea    -0x1a(%rbp),%rax
  mov    %rax,%rsi
  lea    D41(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L52
L83:
  cmpq   $0x1,-0x28(%rbp)
  jne    L59
  mov    -0x38(%rbp),%rdx
  lea    -0x1a(%rbp),%rax
  mov    %rax,%rsi
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L52
L59:
  mov    -0x30(%rbp),%rdx
  lea    -0x1a(%rbp),%rax
  mov    %rax,%rsi
  lea    D22(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L52:
  addq   $0x1,-0x48(%rbp)
L49:
  mov    -0x48(%rbp),%rax
  cmp    -0x40(%rbp),%rax
  jl     L62
  mov    $0x0,%eax
L106:
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L67
  call   <__stack_chk_fail@plt>
L67:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D53
type_guessed: string
name: parse_data
arguments: label: D23
type_guessed: string
name: parse_data
arguments: label: D4
type_guessed: string
name: parse_data
arguments: label: D41
type_guessed: string
name: parse_data
arguments: label: D1
type_guessed: string
name: parse_data
arguments: label: D22
type_guessed: string

tool: D53: Please input the number of lines to be generated.

tool: 

tool: D4: -

tool: D41: %s%ju.%ju


tool: D1: %s%ju


tool: D22: %s0.%ju


assistant: ```c
int main(int argc, char **argv) {
  uintmax_t i, num_rand, whole, fraction, choice;
  char sign[2];
  if (argc != 2) {
    printf("Please input the number of lines to be generated.\n");
    return -1;
  }
  num_rand = atoi(argv[1]);
  srand(time(NULL));
  for (i = 0; i < num_rand; i++) {
    whole = ((uintmax_t)rand() << 32) | (uintmax_t)rand();
    fraction = ((uintmax_t)rand() << 32) | (uintmax_t)rand();
    if (rand() % 2 == 0)
      sprintf(sign, "");
    else
      sprintf(sign, "-");
    choice = rand() % 3;
    if (choice == 0)
      printf("%s%ju.%ju\n", sign, whole, fraction);
    else if (choice == 1)
      printf("%s%ju\n", sign, whole);
    else
      printf("%s0.%ju\n", sign, fraction);
  }
  return 0;
}
```