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

```asm
<test_prep_cq>:
  endbr64
  push   %r12
  lea    D49(%rip),%r12
  push   %rbp
  mov    %edi,%ebp
  lea    D78(%rip),%rdi
  sub    $0x8,%rsp
  call   <printf@plt>
  lea    D66(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%ecx
  mov    $0x64,%edx
  mov    %ebp,%edi
  mov    $0x1,%esi
  call   <ioctl_prep_cq@plt>
  mov    %r12,%rdi
  call   <printf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  lea    D82(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%ecx
  mov    $0x64,%edx
  mov    %ebp,%edi
  mov    $0x2,%esi
  call   <ioctl_prep_cq@plt>
  mov    %r12,%rdi
  call   <printf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  lea    D74(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%ecx
  mov    $0x64,%edx
  mov    %ebp,%edi
  mov    $0x3,%esi
  call   <ioctl_prep_cq@plt>
  mov    %r12,%rdi
  call   <printf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  lea    D37(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%ecx
  mov    $0x64,%edx
  mov    %ebp,%edi
  mov    $0x4,%esi
  call   <ioctl_prep_cq@plt>
  mov    %r12,%rdi
  call   <printf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  lea    D6(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%ecx
  mov    $0x64,%edx
  mov    %ebp,%edi
  mov    $0x5,%esi
  call   <ioctl_prep_cq@plt>
  mov    %r12,%rdi
  call   <printf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  lea    D34(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%ecx
  mov    $0x64,%edx
  mov    %ebp,%edi
  mov    $0x6,%esi
  call   <ioctl_prep_cq@plt>
  mov    %r12,%rdi
  call   <printf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  lea    D88(%rip),%rdi
  call   <printf@plt>
  lea    D79(%rip),%rdi
  call   <printf@plt>
  xor    %ecx,%ecx
  mov    $0xa,%edx
  mov    %ebp,%edi
  mov    $0x10,%esi
  call   <ioctl_prep_cq@plt>
  mov    %r12,%rdi
  call   <printf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  lea    D1(%rip),%rdi
  call   <printf@plt>
  mov    %ebp,%edi
  xor    %ecx,%ecx
  mov    $0xf,%edx
  mov    $0xf,%esi
  call   <ioctl_prep_cq@plt>
  mov    %r12,%rdi
  call   <printf@plt>
  add    $0x8,%rsp
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  jmp    1090 <getchar@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D49
datatype: string
name: unpack_data
arguments: data_tag: D78
datatype: string
name: unpack_data
arguments: data_tag: D66
datatype: string
name: unpack_data
arguments: data_tag: D82
datatype: string
name: unpack_data
arguments: data_tag: D74
datatype: string
name: unpack_data
arguments: data_tag: D37
datatype: string
name: unpack_data
arguments: data_tag: D6
datatype: string
name: unpack_data
arguments: data_tag: D34
datatype: string
name: unpack_data
arguments: data_tag: D88
datatype: string
name: unpack_data
arguments: data_tag: D79
datatype: string
name: unpack_data
arguments: data_tag: D1
datatype: string

tool: D49: 
Press any key to continue..

tool: D78: 
TEST 2.3.1: Preparing IO Contiguous CQ's with 100 elements each...


tool: D66: 
	CQ ID = 1


tool: D82: 
	CQ ID = 2


tool: D74: 
	CQ ID = 3


tool: D37: 
	CQ ID = 4


tool: D6: 
	CQ ID = 5


tool: D34: 
	CQ ID = 6


tool: D88: 
TEST 2.3.2: Preparing Non-Contiguous IO CQ's with different sizes...


tool: D79: 
	CQ ID = 16


tool: D1: 
	CQ ID = 15


assistant: ```c
void test_prep_cq(int file_desc) {
  printf("\nTEST 2.3.1: Preparing IO Contiguous CQ's with 100 elements each...\n");
  printf("\n\tCQ ID = 1\n");
  ioctl_prep_cq(file_desc, 1, 100, 1);
  printf("\nPress any key to continue..");
  getchar();
  printf("\n\tCQ ID = 2\n");
  ioctl_prep_cq(file_desc, 2, 100, 1);
  printf("\nPress any key to continue..");
  getchar();
  printf("\n\tCQ ID = 3\n");
  ioctl_prep_cq(file_desc, 3, 100, 1);
  printf("\nPress any key to continue..");
  getchar();
  printf("\n\tCQ ID = 4\n");
  ioctl_prep_cq(file_desc, 4, 100, 1);
  printf("\nPress any key to continue..");
  getchar();
  printf("\n\tCQ ID = 5\n");
  ioctl_prep_cq(file_desc, 5, 100, 1);
  printf("\nPress any key to continue..");
  getchar();
  printf("\n\tCQ ID = 6\n");
  ioctl_prep_cq(file_desc, 6, 100, 1);
  printf("\nPress any key to continue..");
  getchar();
  printf("\nTEST 2.3.2: Preparing Non-Contiguous IO CQ's with different sizes...\n");
  printf("\n\tCQ ID = 16\n");
  ioctl_prep_cq(file_desc, 16, 10, 0);
  printf("\nPress any key to continue..");
  getchar();
  printf("\n\tCQ ID = 15\n");
  ioctl_prep_cq(file_desc, 15, 15, 0);
  printf("\nPress any key to continue..");
  getchar();
}
```