; LLVM IR from erthink/libmdbx :: src (cursor)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.libmdbx_globals = type { %union.bin128, i32, i32, i8, i8, i8, i8, i32, %union.logger_union, %union.pthread_mutex_t, i64, ptr }
%union.bin128 = type { %struct.anon.8 }
%struct.anon.8 = type { i64, i64 }
%union.logger_union = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%struct.MDBX_cursor = type { i32, %union.anon, i8, i8, ptr, ptr, ptr, ptr, ptr, [32 x ptr], [32 x i16], ptr, ptr }
%union.anon = type { i16 }
%struct.MDBX_txn = type { i32, i32, i64, i64, ptr, ptr, %struct.geo, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, %struct.MDBX_canary, ptr, %union.anon.2 }
%struct.geo = type { i16, i16, i32, i32, %union.anon.0, %union.anon.1 }
%union.anon.0 = type { i32 }
%union.anon.1 = type { i32 }
%struct.MDBX_canary = type { i64, i64, i64, i64 }
%union.anon.2 = type { %struct.anon.4 }
%struct.anon.4 = type { %struct.troika, ptr, %struct.anon.5, i8, i32, i32, i64, ptr, ptr, ptr, i64, %union.anon.6 }
%struct.troika = type { i8, i8, i8, i8, i32, [3 x i64] }
%struct.anon.5 = type { %struct.MDBX_rkl, i64, %struct.MDBX_rkl }
%struct.MDBX_rkl = type { i64, i64, i32, i32, ptr, [12 x i64] }
%union.anon.6 = type { %struct.anon.7 }
%struct.anon.7 = type { i64, ptr }
%struct.MDBX_env = type { %union.mdbx_atomic_uint32_t, i32, i32, %struct.osal_mmap, i32, i32, %struct.osal_mmap, ptr, i16, i16, i16, i16, i16, i16, %union.mdbx_atomic_uint32_t, i8, i8, i16, i32, i32, i32, i32, %struct.anon.11, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, i64, %struct.anon.12, %struct.anon.16, i8, ptr, ptr, ptr, %struct.anon.17, %union.pthread_mutex_t, i32, i32, ptr, %struct.osal_ioring, %union.pthread_mutex_t, [71 x %union.mdbx_atomic_uint64_t] }
%struct.osal_mmap = type { %union.anon.10, i32, i64, i64, i64 }
%union.anon.10 = type { ptr }
%union.mdbx_atomic_uint32_t = type { i32 }
%struct.anon.11 = type { ptr, ptr, ptr, ptr }
%struct.anon.12 = type { i32, i32, i32, i32, i64, i8, i8, i8, i8, i32, i32, i8, i8, i8, %struct.anon.13, %union.anon.14 }
%struct.anon.13 = type { i16, i16, i16, i16 }
%union.anon.14 = type { i32 }
%struct.anon.16 = type { i64, i64, i64, i64, i64 }
%struct.anon.17 = type { i64 }
%struct.osal_ioring = type { i32, i32, i32, ptr, ptr, ptr }
%union.mdbx_atomic_uint64_t = type { i64 }

@globals = external global %struct.libmdbx_globals, align 8
@.str.125 = external hidden unnamed_addr constant [151 x i8], align 1
@__func__.cursor_check = external hidden unnamed_addr constant [13 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [72 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #0

; Function Attrs: noreturn
declare void @mdbx_assert_fail(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @cursor_is_tracked(ptr noundef) #3

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare hidden i64 @cursor_dbi(ptr noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @dbi_check(ptr noundef, i64 noundef) #5

; Function Attrs: nounwind uwtable
define dso_local i32 @cursor_check(ptr noundef %0, i32 noundef %1) #3 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca [8 x i8], align 1
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  %10 = icmp eq ptr %9, null
  %11 = xor i1 %10, true
  %12 = xor i1 %11, true
  %13 = zext i1 %12 to i32
  %14 = sext i32 %13 to i64
  %15 = call i64 @llvm.expect.i64(i64 %14, i64 0)
  %16 = icmp ne i64 %15, 0
  br i1 %16, label %17, label %18

17:                                               ; preds = %2
  store i32 22, ptr %3, align 4
  br label %318

18:                                               ; preds = %2
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.MDBX_cursor, ptr %19, i32 0, i32 0
  %21 = load i32, ptr %20, align 8, !tbaa !11
  %22 = icmp ne i32 %21, 2114311601
  %23 = xor i1 %22, true
  %24 = xor i1 %23, true
  %25 = zext i1 %24 to i32
  %26 = sext i32 %25 to i64
  %27 = call i64 @llvm.expect.i64(i64 %26, i64 0)
  %28 = icmp ne i64 %27, 0
  br i1 %28, label %29, label %40

29:                                               ; preds = %18
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.MDBX_cursor, ptr %30, i32 0, i32 0
  %32 = load i32, ptr %31, align 8, !tbaa !11
  %33 = icmp ne i32 %32, 672636999
  br i1 %33, label %34, label %35

34:                                               ; preds = %29
  store i32 -30420, ptr %3, align 4
  br label %318

35:                                               ; preds = %29
  %36 = load i32, ptr %5, align 4, !tbaa !9
  %37 = icmp sgt i32 %36, 1
  %38 = zext i1 %37 to i64
  %39 = select i1 %37, i32 22, i32 0
  store i32 %39, ptr %3, align 4
  br label %318

40:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  br label %41

41:                                               ; preds = %40
  %42 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 4), align 1, !tbaa !13
  %43 = zext i8 %42 to i32
  %44 = and i32 %43, 1
  %45 = icmp ne i32 %44, 0
  %46 = xor i1 %45, true
  %47 = xor i1 %46, true
  %48 = zext i1 %47 to i32
  %49 = sext i32 %48 to i64
  %50 = call i64 @llvm.expect.i64(i64 %49, i64 1)
  %51 = icmp ne i64 %50, 0
  br i1 %51, label %52, label %94

52:                                               ; preds = %41
  br label %53

53:                                               ; preds = %52
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = call zeroext i1 @cursor_is_tracked(ptr noundef %54)
  br i1 %55, label %76, label %56

56:                                               ; preds = %53
  %57 = load i32, ptr %5, align 4, !tbaa !9
  %58 = and i32 %57, 131072
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %74, label %60

60:                                               ; preds = %56
  %61 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 0
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = icmp ult ptr %61, %62
  br i1 %63, label %64, label %74

64:                                               ; preds = %60
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 0
  %67 = ptrtoint ptr %65 to i64
  %68 = ptrtoint ptr %66 to i64
  %69 = sub i64 %67, %68
  %70 = load i32, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 1), align 8, !tbaa !17
  %71 = zext i32 %70 to i64
  %72 = mul nsw i64 %71, 4
  %73 = icmp slt i64 %69, %72
  br label %74

74:                                               ; preds = %64, %60, %56
  %75 = phi i1 [ false, %60 ], [ false, %56 ], [ %73, %64 ]
  br label %76

76:                                               ; preds = %74, %53
  %77 = phi i1 [ true, %53 ], [ %75, %74 ]
  %78 = xor i1 %77, true
  %79 = xor i1 %78, true
  %80 = xor i1 %79, true
  %81 = zext i1 %80 to i32
  %82 = sext i32 %81 to i64
  %83 = call i64 @llvm.expect.i64(i64 %82, i64 0)
  %84 = icmp ne i64 %83, 0
  br i1 %84, label %85, label %91

85:                                               ; preds = %76
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.MDBX_cursor, ptr %86, i32 0, i32 5
  %88 = load ptr, ptr %87, align 8, !tbaa !18
  %89 = getelementptr inbounds %struct.MDBX_txn, ptr %88, i32 0, i32 9
  %90 = load ptr, ptr %89, align 8, !tbaa !19
  call void @mdbx_assert_fail(ptr noundef %90, ptr noundef @.str.125, ptr noundef @__func__.cursor_check, i32 noundef 2375) #8
  unreachable

91:                                               ; preds = %76
  br label %92

92:                                               ; preds = %91
  br label %93

93:                                               ; preds = %92
  br label %94

94:                                               ; preds = %93, %41
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95
  %97 = load i32, ptr %5, align 4, !tbaa !9
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %316

99:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.MDBX_cursor, ptr %100, i32 0, i32 5
  %102 = load ptr, ptr %101, align 8, !tbaa !18
  %103 = load i32, ptr %5, align 4, !tbaa !9
  %104 = and i32 %103, -17
  %105 = call i32 @check_txn(ptr noundef %102, i32 noundef %104)
  store i32 %105, ptr %7, align 4, !tbaa !9
  %106 = load i32, ptr %7, align 4, !tbaa !9
  %107 = icmp ne i32 %106, 0
  %108 = xor i1 %107, true
  %109 = xor i1 %108, true
  %110 = zext i1 %109 to i32
  %111 = sext i32 %110 to i64
  %112 = call i64 @llvm.expect.i64(i64 %111, i64 0)
  %113 = icmp ne i64 %112, 0
  br i1 %113, label %114, label %150

114:                                              ; preds = %99
  br label %115

115:                                              ; preds = %114
  %116 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 4), align 1, !tbaa !13
  %117 = zext i8 %116 to i32
  %118 = and i32 %117, 1
  %119 = icmp ne i32 %118, 0
  %120 = xor i1 %119, true
  %121 = xor i1 %120, true
  %122 = zext i1 %121 to i32
  %123 = sext i32 %122 to i64
  %124 = call i64 @llvm.expect.i64(i64 %123, i64 1)
  %125 = icmp ne i64 %124, 0
  br i1 %125, label %126, label %146

126:                                              ; preds = %115
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %7, align 4, !tbaa !9
  %129 = icmp ne i32 %128, -1
  %130 = xor i1 %129, true
  %131 = xor i1 %130, true
  %132 = xor i1 %131, true
  %133 = zext i1 %132 to i32
  %134 = sext i32 %133 to i64
  %135 = call i64 @llvm.expect.i64(i64 %134, i64 0)
  %136 = icmp ne i64 %135, 0
  br i1 %136, label %137, label %143

137:                                              ; preds = %127
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.MDBX_cursor, ptr %138, i32 0, i32 5
  %140 = load ptr, ptr %139, align 8, !tbaa !18
  %141 = getelementptr inbounds %struct.MDBX_txn, ptr %140, i32 0, i32 9
  %142 = load ptr, ptr %141, align 8, !tbaa !19
  call void @mdbx_assert_fail(ptr noundef %142, ptr noundef @.str.126, ptr noundef @__func__.cursor_check, i32 noundef 2380) #8
  unreachable

143:                                              ; preds = %127
  br label %144

144:                                              ; preds = %143
  br label %145

145:                                              ; preds = %144
  br label %146

146:                                              ; preds = %145, %115
  br label %147

147:                                              ; preds = %146
  br label %148

148:                                              ; preds = %147
  %149 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %149, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %313

150:                                              ; preds = %99
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.MDBX_cursor, ptr %151, i32 0, i32 5
  %153 = load ptr, ptr %152, align 8, !tbaa !18
  %154 = getelementptr inbounds %struct.MDBX_txn, ptr %153, i32 0, i32 1
  %155 = load i32, ptr %154, align 4, !tbaa !24
  %156 = and i32 %155, 16
  %157 = icmp eq i32 %156, 0
  %158 = xor i1 %157, true
  %159 = xor i1 %158, true
  %160 = zext i1 %159 to i32
  %161 = sext i32 %160 to i64
  %162 = call i64 @llvm.expect.i64(i64 %161, i64 1)
  %163 = icmp ne i64 %162, 0
  br i1 %163, label %164, label %176

164:                                              ; preds = %150
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = call zeroext i1 @cursor_dbi_changed(ptr noundef %165) #9
  %167 = xor i1 %166, true
  %168 = xor i1 %167, true
  %169 = xor i1 %168, true
  %170 = zext i1 %169 to i32
  %171 = sext i32 %170 to i64
  %172 = call i64 @llvm.expect.i64(i64 %171, i64 1)
  %173 = icmp ne i64 %172, 0
  %174 = zext i1 %173 to i64
  %175 = select i1 %173, i32 0, i32 -30780
  store i32 %175, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %313

176:                                              ; preds = %150
  br label %177

177:                                              ; preds = %176
  %178 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 4), align 1, !tbaa !13
  %179 = zext i8 %178 to i32
  %180 = and i32 %179, 1
  %181 = icmp ne i32 %180, 0
  %182 = xor i1 %181, true
  %183 = xor i1 %182, true
  %184 = zext i1 %183 to i32
  %185 = sext i32 %184 to i64
  %186 = call i64 @llvm.expect.i64(i64 %185, i64 1)
  %187 = icmp ne i64 %186, 0
  br i1 %187, label %188, label %236

188:                                              ; preds = %177
  br label %189

189:                                              ; preds = %188
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.MDBX_cursor, ptr %190, i32 0, i32 5
  %192 = load ptr, ptr %191, align 8, !tbaa !18
  %193 = getelementptr inbounds %struct.MDBX_txn, ptr %192, i32 0, i32 1
  %194 = load i32, ptr %193, align 4, !tbaa !24
  %195 = and i32 %194, 131072
  %196 = icmp eq i32 %195, 0
  br i1 %196, label %197, label %218

197:                                              ; preds = %189
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.MDBX_cursor, ptr %198, i32 0, i32 5
  %200 = load ptr, ptr %199, align 8, !tbaa !18
  %201 = load ptr, ptr %4, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.MDBX_cursor, ptr %201, i32 0, i32 5
  %203 = load ptr, ptr %202, align 8, !tbaa !18
  %204 = getelementptr inbounds %struct.MDBX_txn, ptr %203, i32 0, i32 9
  %205 = load ptr, ptr %204, align 8, !tbaa !19
  %206 = getelementptr inbounds %struct.MDBX_env, ptr %205, i32 0, i32 39
  %207 = load ptr, ptr %206, align 8, !tbaa !25
  %208 = icmp ne ptr %200, %207
  br i1 %208, label %209, label %218

209:                                              ; preds = %197
  %210 = load ptr, ptr %4, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.MDBX_cursor, ptr %210, i32 0, i32 5
  %212 = load ptr, ptr %211, align 8, !tbaa !18
  %213 = getelementptr inbounds %struct.MDBX_txn, ptr %212, i32 0, i32 9
  %214 = load ptr, ptr %213, align 8, !tbaa !19
  %215 = getelementptr inbounds %struct.MDBX_env, ptr %214, i32 0, i32 39
  %216 = load ptr, ptr %215, align 8, !tbaa !25
  %217 = icmp ne ptr %216, null
  br label %218

218:                                              ; preds = %209, %197, %189
  %219 = phi i1 [ false, %197 ], [ false, %189 ], [ %217, %209 ]
  %220 = xor i1 %219, true
  %221 = xor i1 %220, true
  %222 = xor i1 %221, true
  %223 = zext i1 %222 to i32
  %224 = sext i32 %223 to i64
  %225 = call i64 @llvm.expect.i64(i64 %224, i64 0)
  %226 = icmp ne i64 %225, 0
  br i1 %226, label %227, label %233

227:                                              ; preds = %218
  %228 = load ptr, ptr %4, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.MDBX_cursor, ptr %228, i32 0, i32 5
  %230 = load ptr, ptr %229, align 8, !tbaa !18
  %231 = getelementptr inbounds %struct.MDBX_txn, ptr %230, i32 0, i32 9
  %232 = load ptr, ptr %231, align 8, !tbaa !19
  call void @mdbx_assert_fail(ptr noundef %232, ptr noundef @.str.127, ptr noundef @__func__.cursor_check, i32 noundef 2387) #8
  unreachable

233:                                              ; preds = %218
  br label %234

234:                                              ; preds = %233
  br label %235

235:                                              ; preds = %234
  br label %236

236:                                              ; preds = %235, %177
  br label %237

237:                                              ; preds = %236
  br label %238

238:                                              ; preds = %237
  %239 = load ptr, ptr %4, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.MDBX_cursor, ptr %239, i32 0, i32 5
  %241 = load ptr, ptr %240, align 8, !tbaa !18
  %242 = getelementptr inbounds %struct.MDBX_txn, ptr %241, i32 0, i32 9
  %243 = load ptr, ptr %242, align 8, !tbaa !19
  %244 = getelementptr inbounds %struct.MDBX_env, ptr %243, i32 0, i32 39
  %245 = load ptr, ptr %244, align 8, !tbaa !25
  %246 = load ptr, ptr %4, align 8, !tbaa !5
  %247 = call i64 @cursor_dbi(ptr noundef %246) #9
  %248 = call i32 @dbi_check(ptr noundef %245, i64 noundef %247)
  store i32 %248, ptr %7, align 4, !tbaa !9
  %249 = load i32, ptr %7, align 4, !tbaa !9
  %250 = icmp ne i32 %249, 0
  %251 = xor i1 %250, true
  %252 = xor i1 %251, true
  %253 = zext i1 %252 to i32
  %254 = sext i32 %253 to i64
  %255 = call i64 @llvm.expect.i64(i64 %254, i64 0)
  %256 = icmp ne i64 %255, 0
  br i1 %256, label %257, label %259

257:                                              ; preds = %238
  %258 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %258, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %313

259:                                              ; preds = %238
  br label %260

260:                                              ; preds = %259
  %261 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 4), align 1, !tbaa !13
  %262 = zext i8 %261 to i32
  %263 = and i32 %262, 1
  %264 = icmp ne i32 %263, 0
  %265 = xor i1 %264, true
  %266 = xor i1 %265, true
  %267 = zext i1 %266 to i32
  %268 = sext i32 %267 to i64
  %269 = call i64 @llvm.expect.i64(i64 %268, i64 1)
  %270 = icmp ne i64 %269, 0
  br i1 %270, label %271, label %310

271:                                              ; preds = %260
  br label %272

272:                                              ; preds = %271
  %273 = load ptr, ptr %4, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.MDBX_cursor, ptr %273, i32 0, i32 5
  %275 = load ptr, ptr %274, align 8, !tbaa !18
  %276 = getelementptr inbounds %struct.MDBX_txn, ptr %275, i32 0, i32 1
  %277 = load i32, ptr %276, align 4, !tbaa !24
  %278 = and i32 %277, 131072
  %279 = icmp eq i32 %278, 0
  br i1 %279, label %280, label %292

280:                                              ; preds = %272
  %281 = load ptr, ptr %4, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.MDBX_cursor, ptr %281, i32 0, i32 5
  %283 = load ptr, ptr %282, align 8, !tbaa !18
  %284 = load ptr, ptr %4, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.MDBX_cursor, ptr %284, i32 0, i32 5
  %286 = load ptr, ptr %285, align 8, !tbaa !18
  %287 = getelementptr inbounds %struct.MDBX_txn, ptr %286, i32 0, i32 9
  %288 = load ptr, ptr %287, align 8, !tbaa !19
  %289 = getelementptr inbounds %struct.MDBX_env, ptr %288, i32 0, i32 39
  %290 = load ptr, ptr %289, align 8, !tbaa !25
  %291 = icmp eq ptr %283, %290
  br label %292

292:                                              ; preds = %280, %272
  %293 = phi i1 [ false, %272 ], [ %291, %280 ]
  %294 = xor i1 %293, true
  %295 = xor i1 %294, true
  %296 = xor i1 %295, true
  %297 = zext i1 %296 to i32
  %298 = sext i32 %297 to i64
  %299 = call i64 @llvm.expect.i64(i64 %298, i64 0)
  %300 = icmp ne i64 %299, 0
  br i1 %300, label %301, label %307

301:                                              ; preds = %292
  %302 = load ptr, ptr %4, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.MDBX_cursor, ptr %302, i32 0, i32 5
  %304 = load ptr, ptr %303, align 8, !tbaa !18
  %305 = getelementptr inbounds %struct.MDBX_txn, ptr %304, i32 0, i32 9
  %306 = load ptr, ptr %305, align 8, !tbaa !19
  call void @mdbx_assert_fail(ptr noundef %306, ptr noundef @.str.128, ptr noundef @__func__.cursor_check, i32 noundef 2392) #8
  unreachable

307:                                              ; preds = %292
  br label %308

308:                                              ; preds = %307
  br label %309

309:                                              ; preds = %308
  br label %310

310:                                              ; preds = %309, %260
  br label %311

311:                                              ; preds = %310
  br label %312

312:                                              ; preds = %311
  store i32 0, ptr %8, align 4
  br label %313

313:                                              ; preds = %312, %257, %164, %148
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  %314 = load i32, ptr %8, align 4
  switch i32 %314, label %317 [
    i32 0, label %315
  ]

315:                                              ; preds = %313
  br label %316

316:                                              ; preds = %315, %96
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %317

317:                                              ; preds = %316, %313
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %318

318:                                              ; preds = %317, %35, %34, %17
  %319 = load i32, ptr %3, align 4
  ret i32 %319
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @check_txn(ptr noundef, i32 noundef) #6

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare hidden zeroext i1 @cursor_dbi_changed(ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #1 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { alwaysinline nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn }
attributes #9 = { nounwind willreturn memory(read) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"MDBX_cursor", !10, i64 0, !7, i64 4, !7, i64 6, !7, i64 7, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !7, i64 48, !7, i64 304, !6, i64 368, !6, i64 376}
!13 = !{!14, !7, i64 25}
!14 = !{!"libmdbx_globals", !7, i64 0, !10, i64 16, !10, i64 20, !7, i64 24, !7, i64 25, !7, i64 26, !15, i64 27, !10, i64 28, !7, i64 32, !7, i64 40, !16, i64 80, !6, i64 88}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!14, !10, i64 16}
!18 = !{!12, !6, i64 16}
!19 = !{!20, !6, i64 80}
!20 = !{!"MDBX_txn", !10, i64 0, !10, i64 4, !16, i64 8, !16, i64 16, !6, i64 24, !6, i64 32, !21, i64 40, !16, i64 64, !16, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !23, i64 128, !6, i64 160, !7, i64 168}
!21 = !{!"geo", !22, i64 0, !22, i64 2, !10, i64 4, !10, i64 8, !7, i64 12, !7, i64 16}
!22 = !{!"short", !7, i64 0}
!23 = !{!"MDBX_canary", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24}
!24 = !{!20, !10, i64 4}
!25 = !{!26, !6, i64 384}
!26 = !{!"MDBX_env", !7, i64 0, !10, i64 4, !10, i64 8, !27, i64 16, !10, i64 56, !10, i64 60, !27, i64 64, !6, i64 104, !22, i64 112, !22, i64 114, !22, i64 116, !22, i64 118, !22, i64 120, !22, i64 122, !7, i64 124, !7, i64 128, !7, i64 129, !22, i64 130, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !28, i64 152, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !10, i64 224, !10, i64 228, !10, i64 232, !6, i64 240, !6, i64 248, !16, i64 256, !29, i64 264, !31, i64 320, !15, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !32, i64 392, !7, i64 400, !10, i64 440, !10, i64 444, !6, i64 448, !33, i64 456, !7, i64 496, !7, i64 536}
!27 = !{!"osal_mmap", !7, i64 0, !10, i64 8, !16, i64 16, !16, i64 24, !16, i64 32}
!28 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!29 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !16, i64 16, !7, i64 24, !7, i64 25, !7, i64 26, !7, i64 27, !10, i64 28, !10, i64 32, !15, i64 36, !15, i64 37, !15, i64 38, !30, i64 40, !7, i64 48}
!30 = !{!"", !22, i64 0, !22, i64 2, !22, i64 4, !22, i64 6}
!31 = !{!"", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !16, i64 32}
!32 = !{!"", !16, i64 0}
!33 = !{!"osal_ioring", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.libmdbx_globals = type { %union.bin128, i32, i32, i8, i8, i8, i8, i32, %union.logger_union, %union.pthread_mutex_t, i64, ptr }
%union.bin128 = type { %struct.anon.8 }
%struct.anon.8 = type { i64, i64 }
%union.logger_union = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }

@globals = external local_unnamed_addr global %struct.libmdbx_globals, align 8
@.str.125 = external hidden unnamed_addr constant [151 x i8], align 1
@__func__.cursor_check = external hidden unnamed_addr constant [13 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [72 x i8], align 1

; Function Attrs: noreturn
declare void @mdbx_assert_fail(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @cursor_is_tracked(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare hidden i64 @cursor_dbi(ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @dbi_check(ptr noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local i32 @cursor_check(ptr noundef %0, i32 noundef %1) local_unnamed_addr #2 {
  %3 = alloca [8 x i8], align 1
  %4 = icmp eq ptr %0, null
  br i1 %4, label %81, label %5, !prof !5

5:                                                ; preds = %2
  %6 = load i32, ptr %0, align 8, !tbaa !6
  switch i32 %6, label %81 [
    i32 2114311601, label %10
    i32 672636999, label %7
  ], !prof !12

7:                                                ; preds = %5
  %8 = icmp sgt i32 %1, 1
  %9 = select i1 %8, i32 22, i32 0
  br label %81

10:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %11 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 25), align 1, !tbaa !13
  %12 = and i8 %11, 1
  %.not42 = icmp eq i8 %12, 0
  br i1 %.not42, label %.critedge, label %13, !prof !5

13:                                               ; preds = %10
  %14 = tail call zeroext i1 @cursor_is_tracked(ptr noundef nonnull %0)
  br i1 %14, label %.critedge, label %15

15:                                               ; preds = %13
  %16 = and i32 %1, 131072
  %17 = icmp eq i32 %16, 0
  %18 = icmp ult ptr %3, %0
  %or.cond = and i1 %17, %18
  br i1 %or.cond, label %19, label %.critedge53

19:                                               ; preds = %15
  %20 = ptrtoint ptr %0 to i64
  %21 = ptrtoint ptr %3 to i64
  %22 = sub i64 %20, %21
  %23 = load i32, ptr getelementptr inbounds (i8, ptr @globals, i64 16), align 8, !tbaa !17
  %24 = zext i32 %23 to i64
  %25 = shl nuw nsw i64 %24, 2
  %.not = icmp slt i64 %22, %25
  br i1 %.not, label %.critedge, label %.critedge53, !prof !18

.critedge53:                                      ; preds = %15, %19
  %26 = getelementptr inbounds i8, ptr %0, i64 16
  %27 = load ptr, ptr %26, align 8, !tbaa !19
  %28 = getelementptr inbounds i8, ptr %27, i64 80
  %29 = load ptr, ptr %28, align 8, !tbaa !20
  call void @mdbx_assert_fail(ptr noundef %29, ptr noundef nonnull @.str.125, ptr noundef nonnull @__func__.cursor_check, i32 noundef 2375) #7
  unreachable

.critedge:                                        ; preds = %13, %19, %10
  %.not43 = icmp eq i32 %1, 0
  br i1 %.not43, label %.thread, label %30

30:                                               ; preds = %.critedge
  %31 = getelementptr inbounds i8, ptr %0, i64 16
  %32 = load ptr, ptr %31, align 8, !tbaa !19
  %33 = and i32 %1, -17
  %34 = call i32 @check_txn(ptr noundef %32, i32 noundef %33)
  %.not44 = icmp eq i32 %34, 0
  br i1 %.not44, label %42, label %35, !prof !18

35:                                               ; preds = %30
  %36 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 25), align 1, !tbaa !13
  %37 = and i8 %36, 1
  %.not49 = icmp ne i8 %37, 0
  %.not50 = icmp eq i32 %34, -1
  %or.cond54 = and i1 %.not50, %.not49
  br i1 %or.cond54, label %38, label %.thread, !prof !25

38:                                               ; preds = %35
  %39 = load ptr, ptr %31, align 8, !tbaa !19
  %40 = getelementptr inbounds i8, ptr %39, i64 80
  %41 = load ptr, ptr %40, align 8, !tbaa !20
  call void @mdbx_assert_fail(ptr noundef %41, ptr noundef nonnull @.str.126, ptr noundef nonnull @__func__.cursor_check, i32 noundef 2380) #7
  unreachable

42:                                               ; preds = %30
  %43 = load ptr, ptr %31, align 8, !tbaa !19
  %44 = getelementptr inbounds i8, ptr %43, i64 4
  %45 = load i32, ptr %44, align 4, !tbaa !26
  %46 = and i32 %45, 16
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %48, label %51, !prof !18

48:                                               ; preds = %42
  %49 = call zeroext i1 @cursor_dbi_changed(ptr noundef nonnull %0) #8
  %50 = select i1 %49, i32 -30780, i32 0, !prof !5
  br label %.thread

51:                                               ; preds = %42
  %52 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 25), align 1, !tbaa !13
  %53 = and i8 %52, 1
  %.not45 = icmp eq i8 %53, 0
  br i1 %.not45, label %._crit_edge, label %54, !prof !5

._crit_edge:                                      ; preds = %51
  %.phi.trans.insert62 = getelementptr inbounds i8, ptr %43, i64 80
  %.pre63 = load ptr, ptr %.phi.trans.insert62, align 8, !tbaa !20
  %.phi.trans.insert64 = getelementptr inbounds i8, ptr %.pre63, i64 384
  %.pre65 = load ptr, ptr %.phi.trans.insert64, align 8, !tbaa !27
  br label %63

54:                                               ; preds = %51
  %55 = and i32 %45, 131072
  %56 = icmp eq i32 %55, 0
  %57 = getelementptr inbounds i8, ptr %43, i64 80
  %58 = load ptr, ptr %57, align 8, !tbaa !20
  br i1 %56, label %59, label %.critedge56, !prof !18

59:                                               ; preds = %54
  %60 = getelementptr inbounds i8, ptr %58, i64 384
  %61 = load ptr, ptr %60, align 8, !tbaa !27
  %.not46 = icmp eq ptr %43, %61
  %62 = icmp eq ptr %61, null
  %spec.select = or i1 %.not46, %62
  br i1 %spec.select, label %.critedge56, label %63, !prof !5

.critedge56:                                      ; preds = %54, %59
  call void @mdbx_assert_fail(ptr noundef %58, ptr noundef nonnull @.str.127, ptr noundef nonnull @__func__.cursor_check, i32 noundef 2387) #7
  unreachable

63:                                               ; preds = %._crit_edge, %59
  %64 = phi ptr [ %.pre65, %._crit_edge ], [ %61, %59 ]
  %65 = call i64 @cursor_dbi(ptr noundef nonnull %0) #8
  %66 = call i32 @dbi_check(ptr noundef %64, i64 noundef %65)
  %.not47 = icmp eq i32 %66, 0
  br i1 %.not47, label %67, label %.thread, !prof !18

67:                                               ; preds = %63
  %68 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 25), align 1, !tbaa !13
  %69 = and i8 %68, 1
  %.not48 = icmp eq i8 %69, 0
  br i1 %.not48, label %.thread, label %70, !prof !5

70:                                               ; preds = %67
  %71 = load ptr, ptr %31, align 8, !tbaa !19
  %72 = getelementptr inbounds i8, ptr %71, i64 4
  %73 = load i32, ptr %72, align 4, !tbaa !26
  %74 = and i32 %73, 131072
  %75 = icmp eq i32 %74, 0
  %76 = getelementptr inbounds i8, ptr %71, i64 80
  %77 = load ptr, ptr %76, align 8, !tbaa !20
  br i1 %75, label %78, label %.critedge58, !prof !18

78:                                               ; preds = %70
  %79 = getelementptr inbounds i8, ptr %77, i64 384
  %80 = load ptr, ptr %79, align 8, !tbaa !27
  %.not61 = icmp eq ptr %71, %80
  br i1 %.not61, label %.thread, label %.critedge58, !prof !18

.critedge58:                                      ; preds = %70, %78
  call void @mdbx_assert_fail(ptr noundef %77, ptr noundef nonnull @.str.128, ptr noundef nonnull @__func__.cursor_check, i32 noundef 2392) #7
  unreachable

.thread:                                          ; preds = %63, %35, %48, %.critedge, %67, %78
  %.1 = phi i32 [ 0, %78 ], [ 0, %67 ], [ 0, %.critedge ], [ %66, %63 ], [ %34, %35 ], [ %50, %48 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %81

81:                                               ; preds = %5, %2, %.thread, %7
  %.2 = phi i32 [ %9, %7 ], [ %.1, %.thread ], [ 22, %2 ], [ -30420, %5 ]
  ret i32 %.2
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @check_txn(ptr noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare hidden zeroext i1 @cursor_dbi_changed(ptr noundef) local_unnamed_addr #3

attributes #0 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { alwaysinline nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { noreturn nounwind }
attributes #8 = { nounwind willreturn memory(read) }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!6 = !{!7, !8, i64 0}
!7 = !{!"MDBX_cursor", !8, i64 0, !9, i64 4, !9, i64 6, !9, i64 7, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !9, i64 48, !9, i64 304, !11, i64 368, !11, i64 376}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"branch_weights", i32 1, i32 4000, i32 1}
!13 = !{!14, !9, i64 25}
!14 = !{!"libmdbx_globals", !9, i64 0, !8, i64 16, !8, i64 20, !9, i64 24, !9, i64 25, !9, i64 26, !15, i64 27, !8, i64 28, !9, i64 32, !9, i64 40, !16, i64 80, !11, i64 88}
!15 = !{!"_Bool", !9, i64 0}
!16 = !{!"long", !9, i64 0}
!17 = !{!14, !8, i64 16}
!18 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!19 = !{!7, !11, i64 16}
!20 = !{!21, !11, i64 80}
!21 = !{!"MDBX_txn", !8, i64 0, !8, i64 4, !16, i64 8, !16, i64 16, !11, i64 24, !11, i64 32, !22, i64 40, !16, i64 64, !16, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !24, i64 128, !11, i64 160, !9, i64 168}
!22 = !{!"geo", !23, i64 0, !23, i64 2, !8, i64 4, !8, i64 8, !9, i64 12, !9, i64 16}
!23 = !{!"short", !9, i64 0}
!24 = !{!"MDBX_canary", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24}
!25 = !{!"branch_weights", i32 2000, i32 4002001}
!26 = !{!21, !8, i64 4}
!27 = !{!28, !11, i64 384}
!28 = !{!"MDBX_env", !9, i64 0, !8, i64 4, !8, i64 8, !29, i64 16, !8, i64 56, !8, i64 60, !29, i64 64, !11, i64 104, !23, i64 112, !23, i64 114, !23, i64 116, !23, i64 118, !23, i64 120, !23, i64 122, !9, i64 124, !9, i64 128, !9, i64 129, !23, i64 130, !8, i64 132, !8, i64 136, !8, i64 140, !8, i64 144, !30, i64 152, !11, i64 184, !11, i64 192, !11, i64 200, !11, i64 208, !11, i64 216, !8, i64 224, !8, i64 228, !8, i64 232, !11, i64 240, !11, i64 248, !16, i64 256, !31, i64 264, !33, i64 320, !15, i64 360, !11, i64 368, !11, i64 376, !11, i64 384, !34, i64 392, !9, i64 400, !8, i64 440, !8, i64 444, !11, i64 448, !35, i64 456, !9, i64 496, !9, i64 536}
!29 = !{!"osal_mmap", !9, i64 0, !8, i64 8, !16, i64 16, !16, i64 24, !16, i64 32}
!30 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!31 = !{!"", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !16, i64 16, !9, i64 24, !9, i64 25, !9, i64 26, !9, i64 27, !8, i64 28, !8, i64 32, !15, i64 36, !15, i64 37, !15, i64 38, !32, i64 40, !9, i64 48}
!32 = !{!"", !23, i64 0, !23, i64 2, !23, i64 4, !23, i64 6}
!33 = !{!"", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !16, i64 32}
!34 = !{!"", !16, i64 0}
!35 = !{!"osal_ioring", !8, i64 0, !8, i64 4, !8, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LowerExpectIntrinsicPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass