#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ ioctl_delete_ioq(int, int, int);
int ioctl_reap_inquiry(int, int /*<<< orphan*/);
int /*<<< orphan*/ ioctl_tst_ring_dbl(int, int /*<<< orphan*/);
void test_irq_delete(int fd) {
  int op_code;
  int q_id;
  int num;
  op_code = 0x0;
  q_id = 32;
  num = ioctl_reap_inquiry(fd, 0);
  ioctl_delete_ioq(fd, op_code, q_id);
  ioctl_tst_ring_dbl(fd, 0);
  while (ioctl_reap_inquiry(fd, 0) != num + 1)
    ;
  op_code = 0x0;
  q_id = 31;
  num = ioctl_reap_inquiry(fd, 0);
  ioctl_delete_ioq(fd, op_code, q_id);
  ioctl_tst_ring_dbl(fd, 0);
  while (ioctl_reap_inquiry(fd, 0) != num + 1)
    ;
  op_code = 0x0;
  q_id = 33;
  num = ioctl_reap_inquiry(fd, 0);
  ioctl_delete_ioq(fd, op_code, q_id);
  ioctl_tst_ring_dbl(fd, 0);
  while (ioctl_reap_inquiry(fd, 0) != num + 1)
    ;
  op_code = 0x0;
  q_id = 34;
  num = ioctl_reap_inquiry(fd, 0);
  ioctl_delete_ioq(fd, op_code, q_id);
  ioctl_tst_ring_dbl(fd, 0);
  while (ioctl_reap_inquiry(fd, 0) != num + 1)
    ;
  op_code = 0x4;
  q_id = 21;
  num = ioctl_reap_inquiry(fd, 0);
  ioctl_delete_ioq(fd, op_code, q_id);
  ioctl_tst_ring_dbl(fd, 0);
  while (ioctl_reap_inquiry(fd, 0) != num + 1)
    ;
  op_code = 0x4;
  q_id = 22;
  num = ioctl_reap_inquiry(fd, 0);
  ioctl_delete_ioq(fd, op_code, q_id);
  ioctl_tst_ring_dbl(fd, 0);
  while (ioctl_reap_inquiry(fd, 0) != num + 1)
    ;
  op_code = 0x4;
  q_id = 23;
  num = ioctl_reap_inquiry(fd, 0);
  ioctl_delete_ioq(fd, op_code, q_id);
  ioctl_tst_ring_dbl(fd, 0);
  while (ioctl_reap_inquiry(fd, 0) != num + 1)
    ;
  op_code = 0x4;
  q_id = 20;
  num = ioctl_reap_inquiry(fd, 0);
  ioctl_delete_ioq(fd, op_code, q_id);
  ioctl_tst_ring_dbl(fd, 0);
  while (ioctl_reap_inquiry(fd, 0) != num + 1)
    ;
}


x86 assembly (clang, -O0):
<test_irq_delete>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x20,-0xc(%rbp)
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1040 <ioctl_delete_ioq@plt>
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1050 <ioctl_tst_ring_dbl@plt>
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
mov    -0x10(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
je     118b <test_irq_delete+0x5b>
jmp    116e <test_irq_delete+0x3e>
movl   $0x0,-0x8(%rbp)
movl   $0x1f,-0xc(%rbp)
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1040 <ioctl_delete_ioq@plt>
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1050 <ioctl_tst_ring_dbl@plt>
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
mov    -0x10(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
je     11db <test_irq_delete+0xab>
jmp    11be <test_irq_delete+0x8e>
movl   $0x0,-0x8(%rbp)
movl   $0x21,-0xc(%rbp)
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1040 <ioctl_delete_ioq@plt>
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1050 <ioctl_tst_ring_dbl@plt>
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
mov    -0x10(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
je     122b <test_irq_delete+0xfb>
jmp    120e <test_irq_delete+0xde>
movl   $0x0,-0x8(%rbp)
movl   $0x22,-0xc(%rbp)
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1040 <ioctl_delete_ioq@plt>
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1050 <ioctl_tst_ring_dbl@plt>
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
mov    -0x10(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
je     127b <test_irq_delete+0x14b>
jmp    125e <test_irq_delete+0x12e>
movl   $0x4,-0x8(%rbp)
movl   $0x15,-0xc(%rbp)
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1040 <ioctl_delete_ioq@plt>
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1050 <ioctl_tst_ring_dbl@plt>
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
mov    -0x10(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
je     12cb <test_irq_delete+0x19b>
jmp    12ae <test_irq_delete+0x17e>
movl   $0x4,-0x8(%rbp)
movl   $0x16,-0xc(%rbp)
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1040 <ioctl_delete_ioq@plt>
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1050 <ioctl_tst_ring_dbl@plt>
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
mov    -0x10(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
je     131b <test_irq_delete+0x1eb>
jmp    12fe <test_irq_delete+0x1ce>
movl   $0x4,-0x8(%rbp)
movl   $0x17,-0xc(%rbp)
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1040 <ioctl_delete_ioq@plt>
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1050 <ioctl_tst_ring_dbl@plt>
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
mov    -0x10(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
je     136b <test_irq_delete+0x23b>
jmp    134e <test_irq_delete+0x21e>
movl   $0x4,-0x8(%rbp)
movl   $0x14,-0xc(%rbp)
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
call   1040 <ioctl_delete_ioq@plt>
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1050 <ioctl_tst_ring_dbl@plt>
mov    -0x4(%rbp),%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
mov    -0x10(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
je     13bb <test_irq_delete+0x28b>
jmp    139e <test_irq_delete+0x26e>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_irq_delete>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebx
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
mov    %eax,%ebp
mov    %ebx,%edi
xor    %esi,%esi
mov    $0x20,%edx
call   1040 <ioctl_delete_ioq@plt>
mov    %ebx,%edi
xor    %esi,%esi
call   1050 <ioctl_tst_ring_dbl@plt>
add    $0x1,%ebp
nopl   0x0(%rax,%rax,1)
mov    %ebx,%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
cmp    %ebp,%eax
jne    1160 <test_irq_delete+0x30>
mov    %ebx,%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
mov    %eax,%ebp
mov    %ebx,%edi
xor    %esi,%esi
mov    $0x1f,%edx
call   1040 <ioctl_delete_ioq@plt>
mov    %ebx,%edi
xor    %esi,%esi
call   1050 <ioctl_tst_ring_dbl@plt>
add    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %ebx,%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
cmp    %ebp,%eax
jne    11a0 <test_irq_delete+0x70>
mov    %ebx,%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
mov    %eax,%ebp
mov    %ebx,%edi
xor    %esi,%esi
mov    $0x21,%edx
call   1040 <ioctl_delete_ioq@plt>
mov    %ebx,%edi
xor    %esi,%esi
call   1050 <ioctl_tst_ring_dbl@plt>
add    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %ebx,%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
cmp    %ebp,%eax
jne    11e0 <test_irq_delete+0xb0>
mov    %ebx,%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
mov    %eax,%ebp
mov    %ebx,%edi
xor    %esi,%esi
mov    $0x22,%edx
call   1040 <ioctl_delete_ioq@plt>
mov    %ebx,%edi
xor    %esi,%esi
call   1050 <ioctl_tst_ring_dbl@plt>
add    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %ebx,%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
cmp    %ebp,%eax
jne    1220 <test_irq_delete+0xf0>
mov    %ebx,%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    $0x4,%esi
mov    $0x15,%edx
call   1040 <ioctl_delete_ioq@plt>
mov    %ebx,%edi
xor    %esi,%esi
call   1050 <ioctl_tst_ring_dbl@plt>
add    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
mov    %ebx,%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
cmp    %ebp,%eax
jne    1260 <test_irq_delete+0x130>
mov    %ebx,%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    $0x4,%esi
mov    $0x16,%edx
call   1040 <ioctl_delete_ioq@plt>
mov    %ebx,%edi
xor    %esi,%esi
call   1050 <ioctl_tst_ring_dbl@plt>
add    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
mov    %ebx,%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
cmp    %ebp,%eax
jne    12a0 <test_irq_delete+0x170>
mov    %ebx,%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    $0x4,%esi
mov    $0x17,%edx
call   1040 <ioctl_delete_ioq@plt>
mov    %ebx,%edi
xor    %esi,%esi
call   1050 <ioctl_tst_ring_dbl@plt>
add    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
mov    %ebx,%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
cmp    %ebp,%eax
jne    12e0 <test_irq_delete+0x1b0>
mov    %ebx,%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    $0x4,%esi
mov    $0x14,%edx
call   1040 <ioctl_delete_ioq@plt>
mov    %ebx,%edi
xor    %esi,%esi
call   1050 <ioctl_tst_ring_dbl@plt>
add    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
mov    %ebx,%edi
xor    %esi,%esi
call   1030 <ioctl_reap_inquiry@plt>
cmp    %ebp,%eax
jne    1320 <test_irq_delete+0x1f0>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define void @test_irq_delete(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %2
store i32 0, i32* %3
store i32 32, i32* %4
%6 = load i32, i32* %2
%7 = call i32 @ioctl_reap_inquiry(i32 %6, i32 0)
store i32 %7, i32* %5
%8 = load i32, i32* %2
%9 = load i32, i32* %3
%10 = load i32, i32* %4
%11 = call i32 @ioctl_delete_ioq(i32 %8, i32 %9, i32 %10)
%12 = load i32, i32* %2
%13 = call i32 @ioctl_tst_ring_dbl(i32 %12, i32 0)
br label %14
14: ; preds = %20, %1
%15 = load i32, i32* %2
%16 = call i32 @ioctl_reap_inquiry(i32 %15, i32 0)
%17 = load i32, i32* %5
%18 = add nsw i32 %17, 1
%19 = icmp ne i32 %16, %18
br i1 %19, label %20, label %21
20: ; preds = %14
br label %14
21: ; preds = %14
store i32 0, i32* %3
store i32 31, i32* %4
%22 = load i32, i32* %2
%23 = call i32 @ioctl_reap_inquiry(i32 %22, i32 0)
store i32 %23, i32* %5
%24 = load i32, i32* %2
%25 = load i32, i32* %3
%26 = load i32, i32* %4
%27 = call i32 @ioctl_delete_ioq(i32 %24, i32 %25, i32 %26)
%28 = load i32, i32* %2
%29 = call i32 @ioctl_tst_ring_dbl(i32 %28, i32 0)
br label %30
30: ; preds = %36, %21
%31 = load i32, i32* %2
%32 = call i32 @ioctl_reap_inquiry(i32 %31, i32 0)
%33 = load i32, i32* %5
%34 = add nsw i32 %33, 1
%35 = icmp ne i32 %32, %34
br i1 %35, label %36, label %37
36: ; preds = %30
br label %30
37: ; preds = %30
store i32 0, i32* %3
store i32 33, i32* %4
%38 = load i32, i32* %2
%39 = call i32 @ioctl_reap_inquiry(i32 %38, i32 0)
store i32 %39, i32* %5
%40 = load i32, i32* %2
%41 = load i32, i32* %3
%42 = load i32, i32* %4
%43 = call i32 @ioctl_delete_ioq(i32 %40, i32 %41, i32 %42)
%44 = load i32, i32* %2
%45 = call i32 @ioctl_tst_ring_dbl(i32 %44, i32 0)
br label %46
46: ; preds = %52, %37
%47 = load i32, i32* %2
%48 = call i32 @ioctl_reap_inquiry(i32 %47, i32 0)
%49 = load i32, i32* %5
%50 = add nsw i32 %49, 1
%51 = icmp ne i32 %48, %50
br i1 %51, label %52, label %53
52: ; preds = %46
br label %46
53: ; preds = %46
store i32 0, i32* %3
store i32 34, i32* %4
%54 = load i32, i32* %2
%55 = call i32 @ioctl_reap_inquiry(i32 %54, i32 0)
store i32 %55, i32* %5
%56 = load i32, i32* %2
%57 = load i32, i32* %3
%58 = load i32, i32* %4
%59 = call i32 @ioctl_delete_ioq(i32 %56, i32 %57, i32 %58)
%60 = load i32, i32* %2
%61 = call i32 @ioctl_tst_ring_dbl(i32 %60, i32 0)
br label %62
62: ; preds = %68, %53
%63 = load i32, i32* %2
%64 = call i32 @ioctl_reap_inquiry(i32 %63, i32 0)
%65 = load i32, i32* %5
%66 = add nsw i32 %65, 1
%67 = icmp ne i32 %64, %66
br i1 %67, label %68, label %69
68: ; preds = %62
br label %62
69: ; preds = %62
store i32 4, i32* %3
store i32 21, i32* %4
%70 = load i32, i32* %2
%71 = call i32 @ioctl_reap_inquiry(i32 %70, i32 0)
store i32 %71, i32* %5
%72 = load i32, i32* %2
%73 = load i32, i32* %3
%74 = load i32, i32* %4
%75 = call i32 @ioctl_delete_ioq(i32 %72, i32 %73, i32 %74)
%76 = load i32, i32* %2
%77 = call i32 @ioctl_tst_ring_dbl(i32 %76, i32 0)
br label %78
78: ; preds = %84, %69
%79 = load i32, i32* %2
%80 = call i32 @ioctl_reap_inquiry(i32 %79, i32 0)
%81 = load i32, i32* %5
%82 = add nsw i32 %81, 1
%83 = icmp ne i32 %80, %82
br i1 %83, label %84, label %85
84: ; preds = %78
br label %78
85: ; preds = %78
store i32 4, i32* %3
store i32 22, i32* %4
%86 = load i32, i32* %2
%87 = call i32 @ioctl_reap_inquiry(i32 %86, i32 0)
store i32 %87, i32* %5
%88 = load i32, i32* %2
%89 = load i32, i32* %3
%90 = load i32, i32* %4
%91 = call i32 @ioctl_delete_ioq(i32 %88, i32 %89, i32 %90)
%92 = load i32, i32* %2
%93 = call i32 @ioctl_tst_ring_dbl(i32 %92, i32 0)
br label %94
94: ; preds = %100, %85
%95 = load i32, i32* %2
%96 = call i32 @ioctl_reap_inquiry(i32 %95, i32 0)
%97 = load i32, i32* %5
%98 = add nsw i32 %97, 1
%99 = icmp ne i32 %96, %98
br i1 %99, label %100, label %101
100: ; preds = %94
br label %94
101: ; preds = %94
store i32 4, i32* %3
store i32 23, i32* %4
%102 = load i32, i32* %2
%103 = call i32 @ioctl_reap_inquiry(i32 %102, i32 0)
store i32 %103, i32* %5
%104 = load i32, i32* %2
%105 = load i32, i32* %3
%106 = load i32, i32* %4
%107 = call i32 @ioctl_delete_ioq(i32 %104, i32 %105, i32 %106)
%108 = load i32, i32* %2
%109 = call i32 @ioctl_tst_ring_dbl(i32 %108, i32 0)
br label %110
110: ; preds = %116, %101
%111 = load i32, i32* %2
%112 = call i32 @ioctl_reap_inquiry(i32 %111, i32 0)
%113 = load i32, i32* %5
%114 = add nsw i32 %113, 1
%115 = icmp ne i32 %112, %114
br i1 %115, label %116, label %117
116: ; preds = %110
br label %110
117: ; preds = %110
store i32 4, i32* %3
store i32 20, i32* %4
%118 = load i32, i32* %2
%119 = call i32 @ioctl_reap_inquiry(i32 %118, i32 0)
store i32 %119, i32* %5
%120 = load i32, i32* %2
%121 = load i32, i32* %3
%122 = load i32, i32* %4
%123 = call i32 @ioctl_delete_ioq(i32 %120, i32 %121, i32 %122)
%124 = load i32, i32* %2
%125 = call i32 @ioctl_tst_ring_dbl(i32 %124, i32 0)
br label %126
126: ; preds = %132, %117
%127 = load i32, i32* %2
%128 = call i32 @ioctl_reap_inquiry(i32 %127, i32 0)
%129 = load i32, i32* %5
%130 = add nsw i32 %129, 1
%131 = icmp ne i32 %128, %130
br i1 %131, label %132, label %133
132: ; preds = %126
br label %126
133: ; preds = %126
ret void
}

LLVM IR (-O2):
define void @test_irq_delete(i32 %0) {
%2 = tail call i32 @ioctl_reap_inquiry(i32 %0, i32 0)
%3 = tail call i32 @ioctl_delete_ioq(i32 %0, i32 0, i32 32)
%4 = tail call i32 @ioctl_tst_ring_dbl(i32 %0, i32 0)
%5 = add nsw i32 %2, 1
br label %6
6: ; preds = %6, %1
%7 = tail call i32 @ioctl_reap_inquiry(i32 %0, i32 0)
%8 = icmp eq i32 %7, %5
br i1 %8, label %9, label %6
9: ; preds = %6
%10 = tail call i32 @ioctl_reap_inquiry(i32 %0, i32 0)
%11 = tail call i32 @ioctl_delete_ioq(i32 %0, i32 0, i32 31)
%12 = tail call i32 @ioctl_tst_ring_dbl(i32 %0, i32 0)
%13 = add nsw i32 %10, 1
br label %14
14: ; preds = %14, %9
%15 = tail call i32 @ioctl_reap_inquiry(i32 %0, i32 0)
%16 = icmp eq i32 %15, %13
br i1 %16, label %17, label %14
17: ; preds = %14
%18 = tail call i32 @ioctl_reap_inquiry(i32 %0, i32 0)
%19 = tail call i32 @ioctl_delete_ioq(i32 %0, i32 0, i32 33)
%20 = tail call i32 @ioctl_tst_ring_dbl(i32 %0, i32 0)
%21 = add nsw i32 %18, 1
br label %22
22: ; preds = %22, %17
%23 = tail call i32 @ioctl_reap_inquiry(i32 %0, i32 0)
%24 = icmp eq i32 %23, %21
br i1 %24, label %25, label %22
25: ; preds = %22
%26 = tail call i32 @ioctl_reap_inquiry(i32 %0, i32 0)
%27 = tail call i32 @ioctl_delete_ioq(i32 %0, i32 0, i32 34)
%28 = tail call i32 @ioctl_tst_ring_dbl(i32 %0, i32 0)
%29 = add nsw i32 %26, 1
br label %30
30: ; preds = %30, %25
%31 = tail call i32 @ioctl_reap_inquiry(i32 %0, i32 0)
%32 = icmp eq i32 %31, %29
br i1 %32, label %33, label %30
33: ; preds = %30
%34 = tail call i32 @ioctl_reap_inquiry(i32 %0, i32 0)
%35 = tail call i32 @ioctl_delete_ioq(i32 %0, i32 4, i32 21)
%36 = tail call i32 @ioctl_tst_ring_dbl(i32 %0, i32 0)
%37 = add nsw i32 %34, 1
br label %38
38: ; preds = %38, %33
%39 = tail call i32 @ioctl_reap_inquiry(i32 %0, i32 0)
%40 = icmp eq i32 %39, %37
br i1 %40, label %41, label %38
41: ; preds = %38
%42 = tail call i32 @ioctl_reap_inquiry(i32 %0, i32 0)
%43 = tail call i32 @ioctl_delete_ioq(i32 %0, i32 4, i32 22)
%44 = tail call i32 @ioctl_tst_ring_dbl(i32 %0, i32 0)
%45 = add nsw i32 %42, 1
br label %46
46: ; preds = %46, %41
%47 = tail call i32 @ioctl_reap_inquiry(i32 %0, i32 0)
%48 = icmp eq i32 %47, %45
br i1 %48, label %49, label %46
49: ; preds = %46
%50 = tail call i32 @ioctl_reap_inquiry(i32 %0, i32 0)
%51 = tail call i32 @ioctl_delete_ioq(i32 %0, i32 4, i32 23)
%52 = tail call i32 @ioctl_tst_ring_dbl(i32 %0, i32 0)
%53 = add nsw i32 %50, 1
br label %54
54: ; preds = %54, %49
%55 = tail call i32 @ioctl_reap_inquiry(i32 %0, i32 0)
%56 = icmp eq i32 %55, %53
br i1 %56, label %57, label %54
57: ; preds = %54
%58 = tail call i32 @ioctl_reap_inquiry(i32 %0, i32 0)
%59 = tail call i32 @ioctl_delete_ioq(i32 %0, i32 4, i32 20)
%60 = tail call i32 @ioctl_tst_ring_dbl(i32 %0, i32 0)
%61 = add nsw i32 %58, 1
br label %62
62: ; preds = %62, %57
%63 = tail call i32 @ioctl_reap_inquiry(i32 %0, i32 0)
%64 = icmp eq i32 %63, %61
br i1 %64, label %65, label %62
65: ; preds = %62
ret void
}