user: Translate the below assembly code into C programming language:

```asm
<printDrawnNumbers>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  movslq %esi,%r12
  push   %rbx
  sub    $0x38,%rsp
  mov    %esi,-0x50(%rbp)
  mov    %edi,-0x4c(%rbp)
  mov    %rsp,%rsi
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    0xf(,%r12,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rsi
  and    $0xfffffffffffffff0,%rdx
  cmp    %rsi,%rsp
  je     L42
L135:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L135
L42:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L130
L140:
  movslq -0x4c(%rbp),%rax
  mov    %rsp,%rdi
  mov    %rsp,%r15
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rdi
  and    $0xfffffffffffffff0,%rdx
  cmp    %rdi,%rsp
  je     L139
L94:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rdi,%rsp
  jne    L94
L139:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L79
L119:
  mov    -0x50(%rbp),%eax
  mov    %rsp,-0x58(%rbp)
  test   %eax,%eax
  jle    L136
  lea    0x1(%rax),%edx
  mov    $0x1,%eax
  nopl   (%rax)
L137:
  mov    %eax,-0x4(%r15,%rax,4)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L137
L136:
  mov    -0x4c(%rbp),%eax
  test   %eax,%eax
  jle    L96
  lea    -0x1(%r12),%r13
  mov    -0x58(%rbp),%r14
  sub    $0x1,%eax
  mov    %r13,%rcx
  sub    %rax,%rcx
  mov    %r14,%rbx
  mov    %rcx,-0x48(%rbp)
  jmp    L9
  nopl   0x0(%rax)
L39:
  sub    $0x1,%r13
L9:
  xor    %eax,%eax
  add    $0x4,%r14
  call   <rand@plt>
  cltd
  idiv   %r12d
  movslq %edx,%rdx
  mov    (%r15,%rdx,4),%eax
  mov    %eax,-0x4(%r14)
  mov    -0x4(%r15,%r12,4),%eax
  mov    %r13,%r12
  mov    %eax,(%r15,%rdx,4)
  cmp    -0x48(%rbp),%r13
  jne    L39
  mov    -0x4c(%rbp),%r12d
  mov    -0x58(%rbp),%r15
  mov    %r12d,%esi
  mov    %r15,%rdi
  lea    (%r15,%r12,4),%r13
  call   <bubblesort@plt>
  mov    -0x50(%rbp),%edx
  mov    %r12d,%esi
  xor    %eax,%eax
  lea    D20(%rip),%rdi
  lea    D23(%rip),%r12
  call   <printf@plt>
  nopw   0x0(%rax,%rax,1)
L7:
  mov    (%rbx),%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x4,%rbx
  call   <printf@plt>
  cmp    %rbx,%r13
  jne    L7
L122:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L88
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopl   0x0(%rax,%rax,1)
L130:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L140
  nopl   0x0(%rax,%rax,1)
L96:
  mov    -0x4c(%rbp),%ebx
  mov    -0x58(%rbp),%rdi
  mov    %ebx,%esi
  call   <bubblesort@plt>
  mov    -0x50(%rbp),%edx
  mov    %ebx,%esi
  xor    %eax,%eax
  lea    D20(%rip),%rdi
  call   <printf@plt>
  jmp    L122
L79:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L119
L88:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D20
datatype: string
name: retrieve_data
arguments: label: D23
datatype: string

tool: D20: ===== %d aus %d =====


tool: D23: %5d

assistant: ```c
void printDrawnNumbers(int count, int all) {
  int aAll[all], picks[count], i, rest = all;
  for (i = 0; i < all; i++)
    aAll[i] = i + 1;
  for (i = 0; i < count; i++) {
    int iPick = rand() % rest--;
    picks[i] = aAll[iPick];
    aAll[iPick] = aAll[rest];
  }
  bubblesort(picks, count);
  printf("===== %d aus %d =====\n", count, all);
  for (i = 0; i < count; i++)
    printf("%5d", picks[i]);
}
```