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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  lea    -0x44(%rbp),%rsi
  push   %r13
  push   %r12
  push   %rbx
  lea    D29(%rip),%rbx
  mov    %rbx,%rdi
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <scanf@plt>
  mov    -0x44(%rbp),%eax
  test   %eax,%eax
  jle    L50
  lea    -0x3c(%rbp),%rax
  movl   $0x1,-0x54(%rbp)
  mov    %rax,-0x68(%rbp)
  lea    -0x40(%rbp),%rax
  mov    %rax,-0x60(%rbp)
  nopl   0x0(%rax)
L103:
  mov    -0x68(%rbp),%rdx
  mov    -0x60(%rbp),%rsi
  xor    %eax,%eax
  mov    %rsp,%r14
  lea    D24(%rip),%rdi
  call   <scanf@plt>
  movslq -0x40(%rbp),%rax
  mov    %rsp,%rcx
  mov    %rax,%rsi
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L58
L34:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L34
L58:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L93
  orq    $0x0,-0x8(%rsp,%rdx,1)
L93:
  mov    %rsp,%r12
  test   %esi,%esi
  jle    L113
  mov    %r12,%r13
  xor    %r15d,%r15d
  cs nopw 0x0(%rax,%rax,1)
L14:
  mov    %r13,%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  add    $0x1,%r15d
  call   <scanf@plt>
  mov    -0x40(%rbp),%esi
  add    $0x4,%r13
  cmp    %r15d,%esi
  jg     L14
L113:
  mov    %r12,%rdi
  call   <bubble_sort@plt>
  movslq -0x40(%rbp),%rax
  mov    %eax,%esi
  sub    -0x3c(%rbp),%esi
  test   %esi,%esi
  jle    L101
  lea    0x0(,%rax,4),%rcx
  lea    -0x1(%rsi),%r8d
  mov    %r12,%rax
  xor    %esi,%esi
  lea    (%r12,%rcx,1),%rdx
  shl    $0x2,%r8
  sub    $0x4,%rcx
  sub    %r8,%rcx
  add    %r12,%rcx
  nopl   0x0(%rax)
L56:
  movslq -0x4(%rdx),%rdi
  sub    $0x4,%rdx
  add    %rdi,%rsi
  cmp    %rcx,%rdx
  jne    L56
  lea    0x4(%r12,%r8,1),%rdi
  xor    %edx,%edx
  nopw   0x0(%rax,%rax,1)
L54:
  movslq (%rax),%rcx
  add    $0x4,%rax
  add    %rcx,%rdx
  cmp    %rax,%rdi
  jne    L54
  sub    %rdx,%rsi
L53:
  lea    D6(%rip),%rdi
  call   <printf@plt>
  mov    %r14,%rsp
  addl   $0x1,-0x54(%rbp)
  mov    -0x54(%rbp),%eax
  cmp    %eax,-0x44(%rbp)
  jge    L103
L50:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L40
  lea    -0x28(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopl   0x0(%rax)
L101:
  xor    %esi,%esi
  jmp    L53
L40:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D29
type_infered: string
name: unpack_data
arguments: data_label: D24
type_infered: string
name: unpack_data
arguments: data_label: D6
type_infered: string

tool: D29: %d

tool: D24: %d %d

tool: D6: %llu


assistant: ```c
int main() {
  int cases, len, m;
  scanf("%d", &cases);
  for (int i = 1; i <= cases; ++i) {
    scanf("%d %d", &len, &m);
    int arr[len];
    for (int i = 0; i < len; ++i)
      scanf("%d", &arr[i]);
    bubble_sort(arr, len);
    int diff = len - m;
    unsigned long long int min = 0, max = 0;
    for (int i = 1; i <= diff; ++i)
      max += arr[len - i];
    for (int i = 0; i < diff; ++i)
      min += arr[i];
    printf("%llu\n", max - min);
  }
  return 0;
}
```