user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %rbp
  xor    %edi,%edi
  push   %rbx
  sub    $0x98,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  mov    $0x5a59,%edx
  movb   $0x0,0x7a(%rsp)
  movabs $0x100000000,%rax
  mov    %rax,0x30(%rsp)
  movdqa D54(%rip),%xmm0
  movabs $0x300000002,%rax
  lea    D36(%rip),%rdi
  mov    %rax,0x38(%rsp)
  movabs $0x500000004,%rax
  mov    %rax,0x40(%rsp)
  movabs $0x700000006,%rax
  mov    %rax,0x48(%rsp)
  movabs $0x900000008,%rax
  mov    %rax,0x50(%rsp)
  movabs $0x5857565554535251,%rax
  mov    %dx,0x78(%rsp)
  movaps %xmm0,0x60(%rsp)
  mov    %rax,0x70(%rsp)
  call   <puts@plt>
  lea    0xc(%rsp),%rsi
  lea    D15(%rip),%rdi
  call   <scanf@plt>
  lea    D53(%rip),%rdi
  call   <puts@plt>
  cmpl   $0x1,0xc(%rsp)
  jne    L7
L24:
  lea    0x5b(%rsp),%rbp
  lea    0x60(%rsp),%rbx
L51:
  xor    %eax,%eax
  add    $0x1,%rbp
  call   <rand@plt>
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0xffffffffb21642c9,%rdx,%rdx
  sar    $0x1f,%ecx
  shr    $0x20,%rdx
  add    %eax,%edx
  sar    $0x4,%edx
  sub    %ecx,%edx
  imul   $0x17,%edx,%edx
  sub    %edx,%eax
  add    $0x1,%eax
  cltq
  movzbl 0x60(%rsp,%rax,1),%eax
  mov    %al,-0x1(%rbp)
  cmp    %rbx,%rbp
  jne    L51
  lea    0x10(%rsp),%rbp
  lea    0x24(%rsp),%rbx
L38:
  xor    %eax,%eax
  add    $0x4,%rbp
  call   <rand@plt>
  movslq %eax,%rdx
  mov    %eax,%ecx
  imul   $0x38e38e39,%rdx,%rdx
  sar    $0x1f,%ecx
  sar    $0x21,%rdx
  sub    %ecx,%edx
  lea    (%rdx,%rdx,8),%edx
  sub    %edx,%eax
  add    $0x1,%eax
  cltq
  mov    0x30(%rsp,%rax,4),%eax
  mov    %eax,-0x4(%rbp)
  cmp    %rbx,%rbp
  jne    L38
  lea    D19(%rip),%rdi
  call   <puts@plt>
  movsbl 0x5c(%rsp),%ecx
  movsbl 0x5b(%rsp),%esi
  lea    D69(%rip),%rdi
  push   %rax
  mov    0x28(%rsp),%eax
  push   %rax
  movsbl 0x6f(%rsp),%eax
  push   %rax
  mov    0x34(%rsp),%eax
  push   %rax
  movsbl 0x7e(%rsp),%eax
  push   %rax
  mov    0x40(%rsp),%eax
  push   %rax
  mov    0x44(%rsp),%r8d
  xor    %eax,%eax
  movsbl 0x8d(%rsp),%r9d
  mov    0x40(%rsp),%edx
  call   <printf@plt>
  add    $0x30,%rsp
  jmp    L9
L7:
  lea    D21(%rip),%rdi
  call   <puts@plt>
  cmpl   $0x1,0xc(%rsp)
  je     L24
L9:
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L37
  add    $0x98,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  ret
L37:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D54
type_infered: byte[16]
name: parse_data
arguments: data_label: D36
type_infered: string
name: parse_data
arguments: data_label: D15
type_infered: string
name: parse_data
arguments: data_label: D53
type_infered: string
name: parse_data
arguments: data_label: D19
type_infered: string
name: parse_data
arguments: data_label: D69
type_infered: string
name: parse_data
arguments: data_label: D21
type_infered: string

tool: {"D54": [0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f,0x50]}

tool: D36: ==========================
== Generador de codigos ==
==========================

*- Ingrese 1 si quiere generar un codigo

tool: D15: %i

tool: D53: 
====================================================


tool: D19: Su codigo es:


tool: D69: %c%d%c%d%c%d%c%d%c%d 

====================================================



tool: D21: Necesitas ingresar el numero 1 para generar un codigo

assistant: ```c
int main() {
  srand((unsigned)time(NULL));
  int a, j, k, f;
  int b[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
  char c[] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '\0'};
  printf("==========================\n== Generador de codigos ==\n==========================\n\n*- Ingrese 1 si quiere generar un codigo\n");
  scanf("%i", &a);
  printf("\n====================================================\n\n");
  k = 0;
  f = 0;
  char letra[5];
  int numero[5];
  if (a != 1) {
    printf("Necesitas ingresar el numero 1 para generar un codigo\n");
  }
  if (a == 1) {
    for (j = 0; j < 5; j++) {
      k = 1 + rand() % 23;
      letra[j] = c[k];
    }
    f = 0;
    for (j = 0; j < 5; j++) {
      f = 1 + rand() % 9;
      numero[j] = b[f];
    }
    printf("Su codigo es:\n\n");
    printf("%c%d%c%d%c%d%c%d%c%d \n\n====================================================\n\n", letra[0], numero[0], letra[1], numero[1], letra[2], numero[2], letra[3], numero[3], letra[4], numero[4]);
  }
  return 0;
}
```