user: What is the c source code of the assembly code below:

```asm
<improved_bubblesort>:
  endbr64
  push   %r15
  xor    %eax,%eax
  push   %r14
  mov    %esi,%r14d
  push   %r13
  lea    D36(%rip),%r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  lea    D60(%rip),%rdi
  mov    %rbx,%rbp
  lea    0x14(%rbx),%r12
  mov    %rbx,%r15
  sub    $0x8,%rsp
  call   <printf@plt>
  lea    D65(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L26:
  mov    (%r15),%esi
  mov    %r13,%rdi
  xor    %eax,%eax
  add    $0x4,%r15
  call   <printf@plt>
  cmp    %r12,%r15
  jne    L26
  lea    -0x1(%r14),%esi
  xor    %r15d,%r15d
  xor    %r14d,%r14d
  test   %esi,%esi
  jle    L11
  xor    %r8d,%r8d
  nopl   0x0(%rax)
L69:
  xor    %eax,%eax
  xor    %edi,%edi
  nopl   0x0(%rax)
L12:
  mov    (%rbx,%rax,4),%ecx
  mov    0x4(%rbx,%rax,4),%edx
  cmp    %edx,%ecx
  jle    L23
  mov    %ecx,0x4(%rbx,%rax,4)
  add    $0x1,%r14d
  mov    $0x1,%edi
  mov    %edx,(%rbx,%rax,4)
L23:
  add    $0x1,%rax
  cmp    %eax,%esi
  jg     L12
  lea    -0x1(%rsi),%eax
  test   %esi,%esi
  mov    %r8d,%edx
  cmovg  %eax,%edx
  lea    0x1(%r15,%rdx,1),%r15d
  test   %edi,%edi
  je     L11
  mov    %eax,%esi
  test   %eax,%eax
  jne    L69
L11:
  lea    D19(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L0:
  mov    0x0(%rbp),%esi
  mov    %r13,%rdi
  xor    %eax,%eax
  add    $0x4,%rbp
  call   <printf@plt>
  cmp    %r12,%rbp
  jne    L0
  mov    %r15d,%esi
  lea    D16(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r14d,%esi
  lea    D35(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  add    $0x8,%rsp
  lea    D10(%rip),%rdi
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1050 <printf@plt>
```

tool_calls: name: read_data
arguments: data_tag: D36
data_type: string
name: read_data
arguments: data_tag: D60
data_type: string
name: read_data
arguments: data_tag: D65
data_type: string
name: read_data
arguments: data_tag: D19
data_type: string
name: read_data
arguments: data_tag: D16
data_type: string
name: read_data
arguments: data_tag: D35
data_type: string
name: read_data
arguments: data_tag: D10
data_type: string

tool: D36: %d 

tool: D60: 

N: %d


tool: D65: 
Unsorted [First 5]: 

tool: D19: 
Sorted [First 5]: 

tool: D16: 

Comparisons: %d

tool: D35: 
Swaps: %d

tool: D10: 

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

assistant: ```c
void improved_bubblesort(int a[], int N) {
  int i, j, temp, compare_ctr = 0, swap_ctr = 0, swapped;
  printf("\n\nN: %d\n", N);
  printf("\nUnsorted [First 5]: ");
  for (i = 0; i < 5; i++) {
    printf("%d ", a[i]);
  }
  for (i = N - 1; i >= 1; i--) {
    swapped = 0;
    for (j = 0; j < i; j++) {
      compare_ctr++;
      if (a[j] > a[j + 1]) {
        temp = a[j + 1];
        a[j + 1] = a[j];
        a[j] = temp;
        swapped = 1;
        swap_ctr++;
      }
    }
    if (swapped == 0) {
      break;
    }
  }
  printf("\nSorted [First 5]: ");
  for (i = 0; i < 5; i++) {
    printf("%d ", a[i]);
  }
  printf("\n\nComparisons: %d", compare_ctr);
  printf("\nSwaps: %d", swap_ctr);
  printf("\n\n============================================");
}
```