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

```asm
<main>:
  endbr64
  push   %rbp
  push   %rbx
  lea    -0xb000(%rsp),%r11
L5:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L5
  sub    $0xb98,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xbb88(%rsp)
  xor    %eax,%eax
  lea    D12(%rip),%rbx
  mov    %rbx,%rdi
  call   <printf@plt>
  lea    D11(%rip),%rdi
  call   <printf@plt>
  mov    %rbx,%rdi
  call   <printf@plt>
  mov    %rsp,%rbx
  lea    0xc80(%rsp),%rbp
L105:
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  sar    $0x29,%rdx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x640,%edx,%edx
  sub    %edx,%eax
  mov    %eax,(%rbx)
  add    $0x4,%rbx
  cmp    %rbp,%rbx
  jne    L105
  lea    0xc80(%rsp),%rbx
  lea    0x2580(%rsp),%rbp
L114:
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  sar    $0x2a,%rdx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0xc80,%edx,%edx
  sub    %edx,%eax
  mov    %eax,(%rbx)
  add    $0x4,%rbx
  cmp    %rbp,%rbx
  jne    L114
  lea    0x2580(%rsp),%rbx
  lea    0x4b00(%rsp),%rbp
L117:
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x1b4e81b5,%rdx,%rdx
  sar    $0x29,%rdx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x12c0,%edx,%edx
  sub    %edx,%eax
  mov    %eax,(%rbx)
  add    $0x4,%rbx
  cmp    %rbp,%rbx
  jne    L117
  lea    0x4b00(%rsp),%rbx
  lea    0x7d00(%rsp),%rbp
L88:
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  sar    $0x2b,%rdx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x1900,%edx,%edx
  sub    %edx,%eax
  mov    %eax,(%rbx)
  add    $0x4,%rbx
  cmp    %rbp,%rbx
  jne    L88
  lea    0x7d00(%rsp),%rbx
  lea    0xbb80(%rsp),%rbp
L57:
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x10624dd3,%rdx,%rdx
  sar    $0x29,%rdx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  imul   $0x1f40,%edx,%edx
  sub    %edx,%eax
  mov    %eax,(%rbx)
  add    $0x4,%rbx
  cmp    %rbp,%rbx
  jne    L57
  mov    $0x2,%ebx
  lea    D17(%rip),%rbp
  jmp    L81
  mov    %rsp,%rdi
  mov    $0x320,%esi
  call   <improved_bubblesort@plt>
L120:
  add    $0x1,%ebx
L81:
  lea    -0x1(%rbx),%eax
  cmp    $0x5,%eax
  ja     L115
  mov    %eax,%eax
  movslq 0x0(%rbp,%rax,4),%rax
  add    %rbp,%rax
  notrack jmp *%rax
  lea    0xc80(%rsp),%rdi
  mov    $0x640,%esi
  call   <improved_bubblesort@plt>
  jmp    L120
  lea    0x2580(%rsp),%rdi
  mov    $0x960,%esi
  call   <improved_bubblesort@plt>
  jmp    L120
  lea    0x4b00(%rsp),%rdi
  mov    $0xc80,%esi
  call   <improved_bubblesort@plt>
  jmp    L120
  lea    0x7d00(%rsp),%rdi
  mov    $0xfa0,%esi
  call   <improved_bubblesort@plt>
L95:
  mov    $0x0,%eax
  call   <getchar@plt>
  mov    0xbb88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L13
  mov    $0x0,%eax
  add    $0xbb98,%rsp
  pop    %rbx
  pop    %rbp
  ret
L115:
  cmp    $0x5,%ebx
  jle    L120
  jmp    L95
L13:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D12
type_guessed: string
name: read_data
arguments: data_label: D11
type_guessed: string

tool: D12: ============================

tool: D11: 
Improved Bubble Sort Results


assistant: ```c
main() {
  printf("============================");
  printf("\nImproved Bubble Sort Results\n");
  printf("============================");
  int i, j;
  int array1[800];
  int array2[1600];
  int array3[2400];
  int array4[3200];
  int array5[4000];
  for (i = 0; i < 800; i++) {
    array1[i] = rand() % (2 * 800);
  }
  for (i = 0; i < 1600; i++) {
    array2[i] = rand() % (2 * 1600);
  }
  for (i = 0; i < 2400; i++) {
    array3[i] = rand() % (2 * 2400);
  }
  for (i = 0; i < 3200; i++) {
    array4[i] = rand() % (2 * 3200);
  }
  for (i = 0; i < 4000; i++) {
    array5[i] = rand() % (2 * 4000);
  }
  for (j = 1; j < 6; j++) {
    switch (j) {
    case 1: {
      improved_bubblesort(array1, 800);
      break;
    }
    case 2: {
      improved_bubblesort(array2, 1600);
      break;
    }
    case 3: {
      improved_bubblesort(array3, 2400);
      break;
    }
    case 4: {
      improved_bubblesort(array4, 3200);
      break;
    }
    case 5: {
      improved_bubblesort(array5, 4000);
      break;
    }
    }
  }
  getchar();
}
```