user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<test_prep_cq>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x10,%rsp
  mov    %edi,-0x4(%rbp)
  lea    D127(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x4(%rbp),%eax
  mov    $0x1,%ecx
  mov    $0x64,%edx
  mov    $0x1,%esi
  mov    %eax,%edi
  call   <ioctl_prep_cq@plt>
  lea    D104(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  lea    D45(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x4(%rbp),%eax
  mov    $0x1,%ecx
  mov    $0x64,%edx
  mov    $0x2,%esi
  mov    %eax,%edi
  call   <ioctl_prep_cq@plt>
  lea    D104(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  lea    D67(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x4(%rbp),%eax
  mov    $0x1,%ecx
  mov    $0x64,%edx
  mov    $0x3,%esi
  mov    %eax,%edi
  call   <ioctl_prep_cq@plt>
  lea    D104(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  lea    D88(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x4(%rbp),%eax
  mov    $0x1,%ecx
  mov    $0x64,%edx
  mov    $0x4,%esi
  mov    %eax,%edi
  call   <ioctl_prep_cq@plt>
  lea    D104(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  lea    D66(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x4(%rbp),%eax
  mov    $0x1,%ecx
  mov    $0x64,%edx
  mov    $0x5,%esi
  mov    %eax,%edi
  call   <ioctl_prep_cq@plt>
  lea    D104(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  lea    D130(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x4(%rbp),%eax
  mov    $0x1,%ecx
  mov    $0x64,%edx
  mov    $0x6,%esi
  mov    %eax,%edi
  call   <ioctl_prep_cq@plt>
  lea    D104(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  lea    D41(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D52(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x4(%rbp),%eax
  mov    $0x0,%ecx
  mov    $0xa,%edx
  mov    $0x10,%esi
  mov    %eax,%edi
  call   <ioctl_prep_cq@plt>
  lea    D104(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  lea    D153(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x4(%rbp),%eax
  mov    $0x0,%ecx
  mov    $0xf,%edx
  mov    $0xf,%esi
  mov    %eax,%edi
  call   <ioctl_prep_cq@plt>
  lea    D104(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  call   <getchar@plt>
  nop
  leave
  ret
```

tool_calls: name: parse_data
arguments: tag: D127
type: string
name: parse_data
arguments: tag: D11
type: string
name: parse_data
arguments: tag: D104
type: string
name: parse_data
arguments: tag: D45
type: string
name: parse_data
arguments: tag: D67
type: string
name: parse_data
arguments: tag: D88
type: string
name: parse_data
arguments: tag: D66
type: string
name: parse_data
arguments: tag: D130
type: string
name: parse_data
arguments: tag: D41
type: string
name: parse_data
arguments: tag: D52
type: string
name: parse_data
arguments: tag: D153
type: string

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


tool: D11: 
	CQ ID = 1


tool: D104: 
Press any key to continue..

tool: D45: 
	CQ ID = 2


tool: D67: 
	CQ ID = 3


tool: D88: 
	CQ ID = 4


tool: D66: 
	CQ ID = 5


tool: D130: 
	CQ ID = 6


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


tool: D52: 
	CQ ID = 16


tool: D153: 
	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();
}
```