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

```asm
<main>:
  endbr64
  push   %rbp
  xor    %edi,%edi
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  mov    0x8(%rbx),%rdi
  call   <atoi@plt>
  mov    0x10(%rbx),%rdi
  mov    %eax,%r12d
  call   <atoi@plt>
  mov    0x18(%rbx),%rdi
  mov    %eax,%r13d
  call   <atoi@plt>
  mov    %r13d,%edx
  mov    %rsp,%rsi
  sub    %r12d,%edx
  mov    %eax,-0x44(%rbp)
  lea    0x1(%rdx),%ebx
  movslq %ebx,%rax
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rsi
  and    $0xfffffffffffffff0,%rcx
  cmp    %rsi,%rsp
  je     L90
L109:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L109
L90:
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  jne    L176
L51:
  movslq -0x44(%rbp),%r14
  mov    %rsp,%rsi
  mov    %rsp,%r13
  lea    0xf(,%r14,4),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rax
  and    $0xfffffffffffffff0,%rcx
  sub    %rax,%rsi
L100:
  cmp    %rsi,%rsp
  je     L197
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L100
L176:
  orq    $0x0,-0x8(%rsp,%rcx,1)
  jmp    L51
L197:
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  jne    L88
L107:
  mov    %rsp,%r15
  test   %edx,%edx
  js     L132
  cmp    $0x2,%edx
  jle    L42
  mov    %ebx,%ecx
  movd   %r12d,%xmm4
  mov    %r13,%rax
  movdqa D25(%rip),%xmm1
  shr    $0x2,%ecx
  movdqa D22(%rip),%xmm2
  pshufd $0x0,%xmm4,%xmm3
  sub    $0x1,%ecx
  shl    $0x4,%rcx
  lea    0x10(%r13,%rcx,1),%rcx
  nopl   (%rax)
L127:
  movdqa %xmm1,%xmm0
  add    $0x10,%rax
  paddd  %xmm2,%xmm1
  paddd  %xmm3,%xmm0
  movups %xmm0,-0x10(%rax)
  cmp    %rcx,%rax
  jne    L127
  mov    %ebx,%eax
  and    $0xfffffffc,%eax
  test   $0x3,%bl
  je     L126
L179:
  movslq %eax,%rcx
  lea    0x0(%r13,%rcx,4),%rsi
  lea    (%rax,%r12,1),%ecx
  mov    %ecx,(%rsi)
  lea    0x1(%rax),%ecx
  cmp    %ecx,%edx
  jl     L97
  add    %r12d,%ecx
  add    $0x2,%eax
  mov    %ecx,0x4(%rsi)
  cmp    %eax,%edx
  jl     L126
  add    %eax,%r12d
  mov    %r12d,0x8(%rsi)
L126:
  movslq %edx,%rdx
  lea    0x0(%r13,%rdx,4),%r12
  nopl   0x0(%rax,%rax,1)
L41:
  xor    %eax,%eax
  call   <rand@plt>
  mov    %r12,%rdi
  sub    $0x4,%r12
  cltd
  idiv   %ebx
  sub    $0x1,%ebx
  movslq %edx,%rdx
  lea    0x0(%r13,%rdx,4),%rsi
  call   <swap@plt>
  cmp    $0x1,%ebx
  jne    L41
L132:
  mov    -0x44(%rbp),%eax
  test   %eax,%eax
  jle    L178
  xor    %ebx,%ebx
  lea    D15(%rip),%r12
  cs nopw 0x0(%rax,%rax,1)
L120:
  mov    0x0(%r13,%rbx,4),%esi
  mov    %r12,%rdi
  mov    %esi,(%r15,%rbx,4)
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    %rbx,%r14
  jne    L120
L178:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L89
  lea    -0x28(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L42:
  xor    %eax,%eax
  jmp    L179
L97:
  test   %edx,%edx
  jg     L126
  jmp    L132
L88:
  orq    $0x0,-0x8(%rsp,%rcx,1)
  jmp    L107
L89:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D25
datatype: byte[16]
name: disassemble_data
arguments: data_tag: D22
datatype: byte[16]
name: disassemble_data
arguments: data_tag: D15
datatype: string

tool: {"D25": [0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x03,0x00,0x00,0x00]}

tool: {"D22": [0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00]}

tool: D15: %d 

assistant: ```c
int main(int argc, char *argv[]) {
  unsigned int seed;
  seed = (unsigned)(time(NULL));
  srand(seed);
  int upper, lower, num;
  lower = atoi(argv[1]);
  upper = atoi(argv[2]);
  num = atoi(argv[3]);
  int a[upper - lower + 1], i, array[num];
  for (i = 0; i < (upper - lower + 1); i++)
    a[i] = i + lower;
  for (i = (upper - lower); i > 0; i--)
    swap(&a[i], &a[rand() % (i + 1)]);
  for (i = 0; i < num; i++) {
    array[i] = a[i];
    printf("%d ", array[i]);
  }
  putchar('\n');
  return 0;
}
```