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

```asm
<bubble_sort>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x50,-0x20(%rbp)
  movl   $0x29,-0x1c(%rbp)
  movl   $0x23,-0x18(%rbp)
  movl   $0x5a,-0x14(%rbp)
  movl   $0x28,-0x10(%rbp)
  movl   $0x14,-0xc(%rbp)
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x28(%rbp)
  jmp    L42
L92:
  mov    -0x28(%rbp),%eax
  cltq
  mov    -0x20(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D24(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x28(%rbp)
L42:
  cmpl   $0x5,-0x28(%rbp)
  jle    L92
  mov    $0xa,%edi
  call   <putchar@plt>
  movl   $0x0,-0x2c(%rbp)
  jmp    L113
L97:
  movl   $0x5,-0x28(%rbp)
  jmp    L12
L61:
  mov    -0x28(%rbp),%eax
  cltq
  mov    -0x20(%rbp,%rax,4),%edx
  mov    -0x28(%rbp),%eax
  sub    $0x1,%eax
  cltq
  mov    -0x20(%rbp,%rax,4),%eax
  cmp    %eax,%edx
  jge    L27
  mov    -0x28(%rbp),%eax
  cltq
  mov    -0x20(%rbp,%rax,4),%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x28(%rbp),%eax
  sub    $0x1,%eax
  cltq
  mov    -0x20(%rbp,%rax,4),%edx
  mov    -0x28(%rbp),%eax
  cltq
  mov    %edx,-0x20(%rbp,%rax,4)
  mov    -0x28(%rbp),%eax
  sub    $0x1,%eax
  cltq
  mov    -0x24(%rbp),%edx
  mov    %edx,-0x20(%rbp,%rax,4)
L27:
  subl   $0x1,-0x28(%rbp)
L12:
  mov    -0x28(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jg     L61
  movl   $0x0,-0x28(%rbp)
  jmp    L79
L5:
  mov    -0x28(%rbp),%eax
  cltq
  mov    -0x20(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D24(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x28(%rbp)
L79:
  cmpl   $0x5,-0x28(%rbp)
  jle    L5
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x2c(%rbp)
L113:
  cmpl   $0x5,-0x2c(%rbp)
  jle    L97
  movl   $0x0,-0x2c(%rbp)
  jmp    L34
L66:
  mov    -0x2c(%rbp),%eax
  cltq
  mov    -0x20(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D24(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x2c(%rbp)
L34:
  cmpl   $0x5,-0x2c(%rbp)
  jle    L66
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L3
  call   <__stack_chk_fail@plt>
L3:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: label: D6
datatype: string
name: disassemble_data
arguments: label: D24
datatype: string
name: disassemble_data
arguments: label: D11
datatype: string

tool: D6: start 

tool: D24: %d 

tool: D11: end  

assistant: ```c
void bubble_sort() {
  int a[] = {80, 41, 35, 90, 40, 20};
  int t, i, j;
  printf("start \n");
  for (j = 0; j < 6; j++) {
    printf("%d ", a[j]);
  }
  printf("\n");
  for (i = 0; i < 6; i++) {
    for (j = 6 - 1; j > i; j--) {
      if (a[j] < a[j - 1]) {
        t = a[j];
        a[j] = a[j - 1];
        a[j - 1] = t;
      }
    }
    for (j = 0; j < 6; j++) {
      printf("%d ", a[j]);
    }
    printf("\n");
  }
  for (i = 0; i < 6; i++) {
    printf("%d ", a[i]);
  }
  printf("\n");
  printf("end  \n");
}
```