; 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.iovec = type { ptr, i64 }
%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.anon = type { i8, i8 }
%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.clc2 = type { %struct.clc, %struct.clc }
%struct.clc = type { ptr, i64, i64 }
%struct.tree = type { i16, i16, i32, i32, i32, i32, i32, i64, i64, i64 }

@globals = external global %struct.libmdbx_globals, align 8
@.str.90 = external hidden unnamed_addr constant [27 x i8], align 1
@__func__.cursor_put_checklen = external hidden unnamed_addr constant [20 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [44 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: hot nounwind uwtable
declare dso_local i32 @cursor_put(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: hot nounwind uwtable
define dso_local i32 @cursor_put_checklen(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #3 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca %struct.iovec, align 8
  %13 = alloca %struct.iovec, align 8
  %14 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  br label %15

15:                                               ; preds = %4
  %16 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 4), align 1, !tbaa !11
  %17 = zext i8 %16 to i32
  %18 = and i32 %17, 1
  %19 = icmp ne i32 %18, 0
  %20 = xor i1 %19, true
  %21 = xor i1 %20, true
  %22 = zext i1 %21 to i32
  %23 = sext i32 %22 to i64
  %24 = call i64 @llvm.expect.i64(i64 %23, i64 1)
  %25 = icmp ne i64 %24, 0
  br i1 %25, label %26, label %50

26:                                               ; preds = %15
  br label %27

27:                                               ; preds = %26
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.MDBX_cursor, ptr %28, i32 0, i32 1
  %30 = getelementptr inbounds %struct.anon, ptr %29, i32 0, i32 0
  %31 = load i8, ptr %30, align 4, !tbaa !15
  %32 = sext i8 %31 to i32
  %33 = and i32 %32, 1
  %34 = icmp eq i32 %33, 0
  %35 = xor i1 %34, true
  %36 = xor i1 %35, true
  %37 = xor i1 %36, true
  %38 = zext i1 %37 to i32
  %39 = sext i32 %38 to i64
  %40 = call i64 @llvm.expect.i64(i64 %39, i64 0)
  %41 = icmp ne i64 %40, 0
  br i1 %41, label %42, label %48

42:                                               ; preds = %27
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.MDBX_cursor, ptr %43, i32 0, i32 5
  %45 = load ptr, ptr %44, align 8, !tbaa !16
  %46 = getelementptr inbounds %struct.MDBX_txn, ptr %45, i32 0, i32 9
  %47 = load ptr, ptr %46, align 8, !tbaa !18
  call void @mdbx_assert_fail(ptr noundef %47, ptr noundef @.str.90, ptr noundef @__func__.cursor_put_checklen, i32 noundef 1458) #5
  unreachable

48:                                               ; preds = %27
  br label %49

49:                                               ; preds = %48
  br label %50

50:                                               ; preds = %49, %15
  br label %51

51:                                               ; preds = %50
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.iovec, ptr %52, i32 0, i32 1
  %54 = load i64, ptr %53, align 8, !tbaa !23
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.MDBX_cursor, ptr %55, i32 0, i32 7
  %57 = load ptr, ptr %56, align 8, !tbaa !25
  %58 = getelementptr inbounds %struct.clc2, ptr %57, i32 0, i32 0
  %59 = getelementptr inbounds %struct.clc, ptr %58, i32 0, i32 2
  %60 = load i64, ptr %59, align 8, !tbaa !26
  %61 = icmp ugt i64 %54, %60
  br i1 %61, label %73, label %62

62:                                               ; preds = %51
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.iovec, ptr %63, i32 0, i32 1
  %65 = load i64, ptr %64, align 8, !tbaa !23
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.MDBX_cursor, ptr %66, i32 0, i32 7
  %68 = load ptr, ptr %67, align 8, !tbaa !25
  %69 = getelementptr inbounds %struct.clc2, ptr %68, i32 0, i32 0
  %70 = getelementptr inbounds %struct.clc, ptr %69, i32 0, i32 1
  %71 = load i64, ptr %70, align 8, !tbaa !29
  %72 = icmp ult i64 %65, %71
  br label %73

73:                                               ; preds = %62, %51
  %74 = phi i1 [ true, %51 ], [ %72, %62 ]
  %75 = xor i1 %74, true
  %76 = xor i1 %75, true
  %77 = zext i1 %76 to i32
  %78 = sext i32 %77 to i64
  %79 = call i64 @llvm.expect.i64(i64 %78, i64 0)
  %80 = icmp ne i64 %79, 0
  br i1 %80, label %81, label %103

81:                                               ; preds = %73
  br label %82

82:                                               ; preds = %81
  %83 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 4), align 1, !tbaa !11
  %84 = zext i8 %83 to i32
  %85 = and i32 %84, 1
  %86 = icmp ne i32 %85, 0
  %87 = xor i1 %86, true
  %88 = xor i1 %87, true
  %89 = zext i1 %88 to i32
  %90 = sext i32 %89 to i64
  %91 = call i64 @llvm.expect.i64(i64 %90, i64 1)
  %92 = icmp ne i64 %91, 0
  br i1 %92, label %93, label %101

93:                                               ; preds = %82
  br label %94

94:                                               ; preds = %93
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.MDBX_cursor, ptr %95, i32 0, i32 5
  %97 = load ptr, ptr %96, align 8, !tbaa !16
  %98 = getelementptr inbounds %struct.MDBX_txn, ptr %97, i32 0, i32 9
  %99 = load ptr, ptr %98, align 8, !tbaa !18
  call void @mdbx_assert_fail(ptr noundef %99, ptr noundef @.str.91, ptr noundef @__func__.cursor_put_checklen, i32 noundef 1460) #5
  unreachable

100:                                              ; No predecessors!
  br label %101

101:                                              ; preds = %100, %82
  br label %102

102:                                              ; preds = %101
  store i32 -30781, ptr %5, align 4
  br label %371

103:                                              ; preds = %73
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.iovec, ptr %104, i32 0, i32 1
  %106 = load i64, ptr %105, align 8, !tbaa !23
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.MDBX_cursor, ptr %107, i32 0, i32 7
  %109 = load ptr, ptr %108, align 8, !tbaa !25
  %110 = getelementptr inbounds %struct.clc2, ptr %109, i32 0, i32 1
  %111 = getelementptr inbounds %struct.clc, ptr %110, i32 0, i32 2
  %112 = load i64, ptr %111, align 8, !tbaa !30
  %113 = icmp ugt i64 %106, %112
  br i1 %113, label %125, label %114

114:                                              ; preds = %103
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.iovec, ptr %115, i32 0, i32 1
  %117 = load i64, ptr %116, align 8, !tbaa !23
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.MDBX_cursor, ptr %118, i32 0, i32 7
  %120 = load ptr, ptr %119, align 8, !tbaa !25
  %121 = getelementptr inbounds %struct.clc2, ptr %120, i32 0, i32 1
  %122 = getelementptr inbounds %struct.clc, ptr %121, i32 0, i32 1
  %123 = load i64, ptr %122, align 8, !tbaa !31
  %124 = icmp ult i64 %117, %123
  br label %125

125:                                              ; preds = %114, %103
  %126 = phi i1 [ true, %103 ], [ %124, %114 ]
  %127 = xor i1 %126, true
  %128 = xor i1 %127, true
  %129 = zext i1 %128 to i32
  %130 = sext i32 %129 to i64
  %131 = call i64 @llvm.expect.i64(i64 %130, i64 0)
  %132 = icmp ne i64 %131, 0
  br i1 %132, label %133, label %155

133:                                              ; preds = %125
  br label %134

134:                                              ; preds = %133
  %135 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 4), align 1, !tbaa !11
  %136 = zext i8 %135 to i32
  %137 = and i32 %136, 1
  %138 = icmp ne i32 %137, 0
  %139 = xor i1 %138, true
  %140 = xor i1 %139, true
  %141 = zext i1 %140 to i32
  %142 = sext i32 %141 to i64
  %143 = call i64 @llvm.expect.i64(i64 %142, i64 1)
  %144 = icmp ne i64 %143, 0
  br i1 %144, label %145, label %153

145:                                              ; preds = %134
  br label %146

146:                                              ; preds = %145
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.MDBX_cursor, ptr %147, i32 0, i32 5
  %149 = load ptr, ptr %148, align 8, !tbaa !16
  %150 = getelementptr inbounds %struct.MDBX_txn, ptr %149, i32 0, i32 9
  %151 = load ptr, ptr %150, align 8, !tbaa !18
  call void @mdbx_assert_fail(ptr noundef %151, ptr noundef @.str.92, ptr noundef @__func__.cursor_put_checklen, i32 noundef 1464) #5
  unreachable

152:                                              ; No predecessors!
  br label %153

153:                                              ; preds = %152, %134
  br label %154

154:                                              ; preds = %153
  store i32 -30781, ptr %5, align 4
  br label %371

155:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.MDBX_cursor, ptr %156, i32 0, i32 6
  %158 = load ptr, ptr %157, align 8, !tbaa !32
  %159 = getelementptr inbounds %struct.tree, ptr %158, i32 0, i32 0
  %160 = load i16, ptr %159, align 4, !tbaa !33
  %161 = zext i16 %160 to i32
  %162 = and i32 %161, 8
  %163 = icmp ne i32 %162, 0
  br i1 %163, label %164, label %248

164:                                              ; preds = %155
  %165 = load ptr, ptr %7, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.iovec, ptr %165, i32 0, i32 1
  %167 = load i64, ptr %166, align 8, !tbaa !23
  %168 = icmp eq i64 %167, 8
  br i1 %168, label %169, label %193

169:                                              ; preds = %164
  %170 = load ptr, ptr %7, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.iovec, ptr %170, i32 0, i32 0
  %172 = load ptr, ptr %171, align 8, !tbaa !35
  %173 = ptrtoint ptr %172 to i64
  %174 = and i64 7, %173
  %175 = icmp ne i64 %174, 0
  %176 = xor i1 %175, true
  %177 = xor i1 %176, true
  %178 = zext i1 %177 to i32
  %179 = sext i32 %178 to i64
  %180 = call i64 @llvm.expect.i64(i64 %179, i64 0)
  %181 = icmp ne i64 %180, 0
  br i1 %181, label %182, label %192

182:                                              ; preds = %169
  %183 = load ptr, ptr %7, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.iovec, ptr %183, i32 0, i32 0
  %185 = load ptr, ptr %184, align 8, !tbaa !35
  %186 = call ptr @bcopy_8(ptr noundef %10, ptr noundef %185)
  %187 = getelementptr inbounds %struct.iovec, ptr %12, i32 0, i32 0
  store ptr %186, ptr %187, align 8, !tbaa !35
  %188 = load ptr, ptr %7, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.iovec, ptr %188, i32 0, i32 1
  %190 = load i64, ptr %189, align 8, !tbaa !23
  %191 = getelementptr inbounds %struct.iovec, ptr %12, i32 0, i32 1
  store i64 %190, ptr %191, align 8, !tbaa !23
  store ptr %12, ptr %7, align 8, !tbaa !5
  br label %192

192:                                              ; preds = %182, %169
  br label %247

193:                                              ; preds = %164
  %194 = load ptr, ptr %7, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.iovec, ptr %194, i32 0, i32 1
  %196 = load i64, ptr %195, align 8, !tbaa !23
  %197 = icmp eq i64 %196, 4
  br i1 %197, label %198, label %222

198:                                              ; preds = %193
  %199 = load ptr, ptr %7, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.iovec, ptr %199, i32 0, i32 0
  %201 = load ptr, ptr %200, align 8, !tbaa !35
  %202 = ptrtoint ptr %201 to i64
  %203 = and i64 3, %202
  %204 = icmp ne i64 %203, 0
  %205 = xor i1 %204, true
  %206 = xor i1 %205, true
  %207 = zext i1 %206 to i32
  %208 = sext i32 %207 to i64
  %209 = call i64 @llvm.expect.i64(i64 %208, i64 0)
  %210 = icmp ne i64 %209, 0
  br i1 %210, label %211, label %221

211:                                              ; preds = %198
  %212 = load ptr, ptr %7, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.iovec, ptr %212, i32 0, i32 0
  %214 = load ptr, ptr %213, align 8, !tbaa !35
  %215 = call ptr @bcopy_4(ptr noundef %10, ptr noundef %214)
  %216 = getelementptr inbounds %struct.iovec, ptr %12, i32 0, i32 0
  store ptr %215, ptr %216, align 8, !tbaa !35
  %217 = load ptr, ptr %7, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.iovec, ptr %217, i32 0, i32 1
  %219 = load i64, ptr %218, align 8, !tbaa !23
  %220 = getelementptr inbounds %struct.iovec, ptr %12, i32 0, i32 1
  store i64 %219, ptr %220, align 8, !tbaa !23
  store ptr %12, ptr %7, align 8, !tbaa !5
  br label %221

221:                                              ; preds = %211, %198
  br label %246

222:                                              ; preds = %193
  br label %223

223:                                              ; preds = %222
  %224 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 4), align 1, !tbaa !11
  %225 = zext i8 %224 to i32
  %226 = and i32 %225, 1
  %227 = icmp ne i32 %226, 0
  %228 = xor i1 %227, true
  %229 = xor i1 %228, true
  %230 = zext i1 %229 to i32
  %231 = sext i32 %230 to i64
  %232 = call i64 @llvm.expect.i64(i64 %231, i64 1)
  %233 = icmp ne i64 %232, 0
  br i1 %233, label %234, label %243

234:                                              ; preds = %223
  br label %235

235:                                              ; preds = %234
  %236 = load ptr, ptr %6, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.MDBX_cursor, ptr %236, i32 0, i32 5
  %238 = load ptr, ptr %237, align 8, !tbaa !16
  %239 = getelementptr inbounds %struct.MDBX_txn, ptr %238, i32 0, i32 9
  %240 = load ptr, ptr %239, align 8, !tbaa !18
  call void @mdbx_assert_fail(ptr noundef %240, ptr noundef @.str.93, ptr noundef @__func__.cursor_put_checklen, i32 noundef 1486) #5
  unreachable

241:                                              ; No predecessors!
  br label %242

242:                                              ; preds = %241
  br label %243

243:                                              ; preds = %242, %223
  br label %244

244:                                              ; preds = %243
  br label %245

245:                                              ; preds = %244
  store i32 -30781, ptr %5, align 4
  store i32 1, ptr %14, align 4
  br label %370

246:                                              ; preds = %221
  br label %247

247:                                              ; preds = %246, %192
  br label %248

248:                                              ; preds = %247, %155
  %249 = load ptr, ptr %6, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.MDBX_cursor, ptr %249, i32 0, i32 6
  %251 = load ptr, ptr %250, align 8, !tbaa !32
  %252 = getelementptr inbounds %struct.tree, ptr %251, i32 0, i32 0
  %253 = load i16, ptr %252, align 4, !tbaa !33
  %254 = zext i16 %253 to i32
  %255 = and i32 %254, 32
  %256 = icmp ne i32 %255, 0
  br i1 %256, label %257, label %364

257:                                              ; preds = %248
  %258 = load ptr, ptr %8, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.iovec, ptr %258, i32 0, i32 1
  %260 = load i64, ptr %259, align 8, !tbaa !23
  %261 = icmp eq i64 %260, 8
  br i1 %261, label %262, label %298

262:                                              ; preds = %257
  %263 = load ptr, ptr %8, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.iovec, ptr %263, i32 0, i32 0
  %265 = load ptr, ptr %264, align 8, !tbaa !35
  %266 = ptrtoint ptr %265 to i64
  %267 = and i64 7, %266
  %268 = icmp ne i64 %267, 0
  %269 = xor i1 %268, true
  %270 = xor i1 %269, true
  %271 = zext i1 %270 to i32
  %272 = sext i32 %271 to i64
  %273 = call i64 @llvm.expect.i64(i64 %272, i64 0)
  %274 = icmp ne i64 %273, 0
  br i1 %274, label %275, label %297

275:                                              ; preds = %262
  %276 = load i32, ptr %9, align 4, !tbaa !9
  %277 = and i32 %276, 524288
  %278 = icmp ne i32 %277, 0
  %279 = xor i1 %278, true
  %280 = xor i1 %279, true
  %281 = zext i1 %280 to i32
  %282 = sext i32 %281 to i64
  %283 = call i64 @llvm.expect.i64(i64 %282, i64 0)
  %284 = icmp ne i64 %283, 0
  br i1 %284, label %285, label %286

285:                                              ; preds = %275
  store i32 -30781, ptr %5, align 4
  store i32 1, ptr %14, align 4
  br label %370

286:                                              ; preds = %275
  %287 = load ptr, ptr %8, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.iovec, ptr %287, i32 0, i32 0
  %289 = load ptr, ptr %288, align 8, !tbaa !35
  %290 = call ptr @bcopy_8(ptr noundef %11, ptr noundef %289)
  %291 = getelementptr inbounds %struct.iovec, ptr %13, i32 0, i32 0
  store ptr %290, ptr %291, align 8, !tbaa !35
  %292 = load ptr, ptr %8, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.iovec, ptr %292, i32 0, i32 1
  %294 = load i64, ptr %293, align 8, !tbaa !23
  %295 = getelementptr inbounds %struct.iovec, ptr %13, i32 0, i32 1
  store i64 %294, ptr %295, align 8, !tbaa !23
  store ptr %13, ptr %8, align 8, !tbaa !5
  br label %296

296:                                              ; preds = %286
  br label %297

297:                                              ; preds = %296, %262
  br label %363

298:                                              ; preds = %257
  %299 = load ptr, ptr %8, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.iovec, ptr %299, i32 0, i32 1
  %301 = load i64, ptr %300, align 8, !tbaa !23
  %302 = icmp eq i64 %301, 4
  br i1 %302, label %303, label %338

303:                                              ; preds = %298
  %304 = load ptr, ptr %8, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.iovec, ptr %304, i32 0, i32 0
  %306 = load ptr, ptr %305, align 8, !tbaa !35
  %307 = ptrtoint ptr %306 to i64
  %308 = and i64 3, %307
  %309 = icmp ne i64 %308, 0
  %310 = xor i1 %309, true
  %311 = xor i1 %310, true
  %312 = zext i1 %311 to i32
  %313 = sext i32 %312 to i64
  %314 = call i64 @llvm.expect.i64(i64 %313, i64 0)
  %315 = icmp ne i64 %314, 0
  br i1 %315, label %316, label %337

316:                                              ; preds = %303
  %317 = load i32, ptr %9, align 4, !tbaa !9
  %318 = and i32 %317, 524288
  %319 = icmp ne i32 %318, 0
  %320 = xor i1 %319, true
  %321 = xor i1 %320, true
  %322 = zext i1 %321 to i32
  %323 = sext i32 %322 to i64
  %324 = call i64 @llvm.expect.i64(i64 %323, i64 0)
  %325 = icmp ne i64 %324, 0
  br i1 %325, label %326, label %327

326:                                              ; preds = %316
  store i32 -30781, ptr %5, align 4
  store i32 1, ptr %14, align 4
  br label %370

327:                                              ; preds = %316
  %328 = load ptr, ptr %8, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.iovec, ptr %328, i32 0, i32 0
  %330 = load ptr, ptr %329, align 8, !tbaa !35
  %331 = call ptr @bcopy_4(ptr noundef %11, ptr noundef %330)
  %332 = getelementptr inbounds %struct.iovec, ptr %13, i32 0, i32 0
  store ptr %331, ptr %332, align 8, !tbaa !35
  %333 = load ptr, ptr %8, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.iovec, ptr %333, i32 0, i32 1
  %335 = load i64, ptr %334, align 8, !tbaa !23
  %336 = getelementptr inbounds %struct.iovec, ptr %13, i32 0, i32 1
  store i64 %335, ptr %336, align 8, !tbaa !23
  store ptr %13, ptr %8, align 8, !tbaa !5
  br label %337

337:                                              ; preds = %327, %303
  br label %362

338:                                              ; preds = %298
  br label %339

339:                                              ; preds = %338
  %340 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 4), align 1, !tbaa !11
  %341 = zext i8 %340 to i32
  %342 = and i32 %341, 1
  %343 = icmp ne i32 %342, 0
  %344 = xor i1 %343, true
  %345 = xor i1 %344, true
  %346 = zext i1 %345 to i32
  %347 = sext i32 %346 to i64
  %348 = call i64 @llvm.expect.i64(i64 %347, i64 1)
  %349 = icmp ne i64 %348, 0
  br i1 %349, label %350, label %359

350:                                              ; preds = %339
  br label %351

351:                                              ; preds = %350
  %352 = load ptr, ptr %6, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.MDBX_cursor, ptr %352, i32 0, i32 5
  %354 = load ptr, ptr %353, align 8, !tbaa !16
  %355 = getelementptr inbounds %struct.MDBX_txn, ptr %354, i32 0, i32 9
  %356 = load ptr, ptr %355, align 8, !tbaa !18
  call void @mdbx_assert_fail(ptr noundef %356, ptr noundef @.str.94, ptr noundef @__func__.cursor_put_checklen, i32 noundef 1517) #5
  unreachable

357:                                              ; No predecessors!
  br label %358

358:                                              ; preds = %357
  br label %359

359:                                              ; preds = %358, %339
  br label %360

360:                                              ; preds = %359
  br label %361

361:                                              ; preds = %360
  store i32 -30781, ptr %5, align 4
  store i32 1, ptr %14, align 4
  br label %370

362:                                              ; preds = %337
  br label %363

363:                                              ; preds = %362, %297
  br label %364

364:                                              ; preds = %363, %248
  %365 = load ptr, ptr %6, align 8, !tbaa !5
  %366 = load ptr, ptr %7, align 8, !tbaa !5
  %367 = load ptr, ptr %8, align 8, !tbaa !5
  %368 = load i32, ptr %9, align 4, !tbaa !9
  %369 = call i32 @cursor_put(ptr noundef %365, ptr noundef %366, ptr noundef %367, i32 noundef %368) #7
  store i32 %369, ptr %5, align 4
  store i32 1, ptr %14, align 4
  br label %370

370:                                              ; preds = %364, %361, %326, %285, %245
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %371

371:                                              ; preds = %370, %154, %102
  %372 = load i32, ptr %5, align 4
  ret i32 %372
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @bcopy_8(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @bcopy_4(ptr noalias noundef, ptr noalias 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 = { hot 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 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 = { noreturn }
attributes #6 = { nounwind }
attributes #7 = { hot }

!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, !7, i64 25}
!12 = !{!"libmdbx_globals", !7, i64 0, !10, i64 16, !10, i64 20, !7, i64 24, !7, i64 25, !7, i64 26, !13, i64 27, !10, i64 28, !7, i64 32, !7, i64 40, !14, i64 80, !6, i64 88}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !6, i64 16}
!17 = !{!"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}
!18 = !{!19, !6, i64 80}
!19 = !{!"MDBX_txn", !10, i64 0, !10, i64 4, !14, i64 8, !14, i64 16, !6, i64 24, !6, i64 32, !20, i64 40, !14, i64 64, !14, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !22, i64 128, !6, i64 160, !7, i64 168}
!20 = !{!"geo", !21, i64 0, !21, i64 2, !10, i64 4, !10, i64 8, !7, i64 12, !7, i64 16}
!21 = !{!"short", !7, i64 0}
!22 = !{!"MDBX_canary", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!23 = !{!24, !14, i64 8}
!24 = !{!"iovec", !6, i64 0, !14, i64 8}
!25 = !{!17, !6, i64 32}
!26 = !{!27, !14, i64 16}
!27 = !{!"clc2", !28, i64 0, !28, i64 24}
!28 = !{!"clc", !6, i64 0, !14, i64 8, !14, i64 16}
!29 = !{!27, !14, i64 8}
!30 = !{!27, !14, i64 40}
!31 = !{!27, !14, i64 32}
!32 = !{!17, !6, i64 24}
!33 = !{!34, !21, i64 0}
!34 = !{!"tree", !21, i64 0, !21, i64 2, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !14, i64 24, !14, i64 32, !14, i64 40}
!35 = !{!24, !6, i64 0}


; 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 }
%struct.iovec = type { ptr, i64 }

@globals = external local_unnamed_addr global %struct.libmdbx_globals, align 8
@.str.90 = external hidden unnamed_addr constant [27 x i8], align 1
@__func__.cursor_put_checklen = external hidden unnamed_addr constant [20 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [44 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: hot nounwind uwtable
declare dso_local i32 @cursor_put(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: hot nounwind uwtable
define dso_local i32 @cursor_put_checklen(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #2 {
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca %struct.iovec, align 8
  %8 = alloca %struct.iovec, align 8
  %9 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 25), align 1, !tbaa !5
  %10 = and i8 %9, 1
  %.not = icmp eq i8 %10, 0
  br i1 %.not, label %20, label %11, !prof !13

11:                                               ; preds = %4
  %12 = getelementptr inbounds i8, ptr %0, i64 4
  %13 = load i8, ptr %12, align 4, !tbaa !14
  %14 = and i8 %13, 1
  %.not44 = icmp eq i8 %14, 0
  br i1 %.not44, label %20, label %15, !prof !15

15:                                               ; preds = %11
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  %17 = load ptr, ptr %16, align 8, !tbaa !16
  %18 = getelementptr inbounds i8, ptr %17, i64 80
  %19 = load ptr, ptr %18, align 8, !tbaa !18
  tail call void @mdbx_assert_fail(ptr noundef %19, ptr noundef nonnull @.str.90, ptr noundef nonnull @__func__.cursor_put_checklen, i32 noundef 1458) #4
  unreachable

20:                                               ; preds = %4, %11
  %21 = getelementptr inbounds i8, ptr %1, i64 8
  %22 = load i64, ptr %21, align 8, !tbaa !23
  %23 = getelementptr inbounds i8, ptr %0, i64 32
  %24 = load ptr, ptr %23, align 8, !tbaa !25
  %25 = getelementptr inbounds i8, ptr %24, i64 16
  %26 = load i64, ptr %25, align 8, !tbaa !26
  %27 = icmp ugt i64 %22, %26
  br i1 %27, label %.critedge, label %28, !prof !13

28:                                               ; preds = %20
  %29 = getelementptr inbounds i8, ptr %24, i64 8
  %30 = load i64, ptr %29, align 8, !tbaa !29
  %31 = icmp ult i64 %22, %30
  br i1 %31, label %.critedge, label %37, !prof !13

.critedge:                                        ; preds = %20, %28
  br i1 %.not, label %113, label %32, !prof !13

32:                                               ; preds = %.critedge
  %33 = getelementptr inbounds i8, ptr %0, i64 16
  %34 = load ptr, ptr %33, align 8, !tbaa !16
  %35 = getelementptr inbounds i8, ptr %34, i64 80
  %36 = load ptr, ptr %35, align 8, !tbaa !18
  tail call void @mdbx_assert_fail(ptr noundef %36, ptr noundef nonnull @.str.91, ptr noundef nonnull @__func__.cursor_put_checklen, i32 noundef 1460) #4
  unreachable

37:                                               ; preds = %28
  %38 = getelementptr inbounds i8, ptr %2, i64 8
  %39 = load i64, ptr %38, align 8, !tbaa !23
  %40 = getelementptr inbounds i8, ptr %24, i64 40
  %41 = load i64, ptr %40, align 8, !tbaa !30
  %42 = icmp ugt i64 %39, %41
  br i1 %42, label %.critedge58, label %43, !prof !13

43:                                               ; preds = %37
  %44 = getelementptr inbounds i8, ptr %24, i64 32
  %45 = load i64, ptr %44, align 8, !tbaa !31
  %46 = icmp ult i64 %39, %45
  br i1 %46, label %.critedge58, label %52, !prof !13

.critedge58:                                      ; preds = %37, %43
  br i1 %.not, label %113, label %47, !prof !13

47:                                               ; preds = %.critedge58
  %48 = getelementptr inbounds i8, ptr %0, i64 16
  %49 = load ptr, ptr %48, align 8, !tbaa !16
  %50 = getelementptr inbounds i8, ptr %49, i64 80
  %51 = load ptr, ptr %50, align 8, !tbaa !18
  tail call void @mdbx_assert_fail(ptr noundef %51, ptr noundef nonnull @.str.92, ptr noundef nonnull @__func__.cursor_put_checklen, i32 noundef 1464) #4
  unreachable

52:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  %53 = getelementptr inbounds i8, ptr %0, i64 24
  %54 = load ptr, ptr %53, align 8, !tbaa !32
  %55 = load i16, ptr %54, align 4, !tbaa !33
  %56 = and i16 %55, 8
  %.not45 = icmp eq i16 %56, 0
  br i1 %.not45, label %78, label %57

57:                                               ; preds = %52
  switch i64 %22, label %70 [
    i64 8, label %58
    i64 4, label %64
  ]

58:                                               ; preds = %57
  %59 = load ptr, ptr %1, align 8, !tbaa !35
  %60 = ptrtoint ptr %59 to i64
  %61 = and i64 %60, 7
  %.not48 = icmp eq i64 %61, 0
  br i1 %.not48, label %78, label %62, !prof !15

62:                                               ; preds = %58
  %63 = call ptr @bcopy_8(ptr noundef nonnull %5, ptr noundef %59)
  br label %.sink.split

64:                                               ; preds = %57
  %65 = load ptr, ptr %1, align 8, !tbaa !35
  %66 = ptrtoint ptr %65 to i64
  %67 = and i64 %66, 3
  %.not47 = icmp eq i64 %67, 0
  br i1 %.not47, label %78, label %68, !prof !15

68:                                               ; preds = %64
  %69 = call ptr @bcopy_4(ptr noundef nonnull %5, ptr noundef %65)
  br label %.sink.split

70:                                               ; preds = %57
  br i1 %.not, label %112, label %71, !prof !13

71:                                               ; preds = %70
  %72 = getelementptr inbounds i8, ptr %0, i64 16
  %73 = load ptr, ptr %72, align 8, !tbaa !16
  %74 = getelementptr inbounds i8, ptr %73, i64 80
  %75 = load ptr, ptr %74, align 8, !tbaa !18
  tail call void @mdbx_assert_fail(ptr noundef %75, ptr noundef nonnull @.str.93, ptr noundef nonnull @__func__.cursor_put_checklen, i32 noundef 1486) #4
  unreachable

.sink.split:                                      ; preds = %68, %62
  %storemerge = phi ptr [ %69, %68 ], [ %63, %62 ]
  store ptr %storemerge, ptr %7, align 8, !tbaa !35
  %76 = load i64, ptr %21, align 8, !tbaa !23
  %77 = getelementptr inbounds i8, ptr %7, i64 8
  store i64 %76, ptr %77, align 8, !tbaa !23
  br label %78

78:                                               ; preds = %.sink.split, %58, %64, %52
  %.039 = phi ptr [ %1, %58 ], [ %1, %64 ], [ %1, %52 ], [ %7, %.sink.split ]
  %79 = load ptr, ptr %53, align 8, !tbaa !32
  %80 = load i16, ptr %79, align 4, !tbaa !33
  %81 = and i16 %80, 32
  %.not49 = icmp eq i16 %81, 0
  br i1 %.not49, label %110, label %82

82:                                               ; preds = %78
  %83 = load i64, ptr %38, align 8, !tbaa !23
  switch i64 %83, label %100 [
    i64 8, label %84
    i64 4, label %92
  ]

84:                                               ; preds = %82
  %85 = load ptr, ptr %2, align 8, !tbaa !35
  %86 = ptrtoint ptr %85 to i64
  %87 = and i64 %86, 7
  %.not53 = icmp eq i64 %87, 0
  br i1 %.not53, label %110, label %88, !prof !15

88:                                               ; preds = %84
  %89 = and i32 %3, 524288
  %.not54 = icmp eq i32 %89, 0
  br i1 %.not54, label %90, label %112, !prof !15

90:                                               ; preds = %88
  %91 = call ptr @bcopy_8(ptr noundef nonnull %6, ptr noundef %85)
  br label %.sink.split60

92:                                               ; preds = %82
  %93 = load ptr, ptr %2, align 8, !tbaa !35
  %94 = ptrtoint ptr %93 to i64
  %95 = and i64 %94, 3
  %.not51 = icmp eq i64 %95, 0
  br i1 %.not51, label %110, label %96, !prof !15

96:                                               ; preds = %92
  %97 = and i32 %3, 524288
  %.not52 = icmp eq i32 %97, 0
  br i1 %.not52, label %98, label %112, !prof !15

98:                                               ; preds = %96
  %99 = call ptr @bcopy_4(ptr noundef nonnull %6, ptr noundef %93)
  br label %.sink.split60

100:                                              ; preds = %82
  %101 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 25), align 1, !tbaa !5
  %102 = and i8 %101, 1
  %.not50 = icmp eq i8 %102, 0
  br i1 %.not50, label %112, label %103, !prof !13

103:                                              ; preds = %100
  %104 = getelementptr inbounds i8, ptr %0, i64 16
  %105 = load ptr, ptr %104, align 8, !tbaa !16
  %106 = getelementptr inbounds i8, ptr %105, i64 80
  %107 = load ptr, ptr %106, align 8, !tbaa !18
  call void @mdbx_assert_fail(ptr noundef %107, ptr noundef nonnull @.str.94, ptr noundef nonnull @__func__.cursor_put_checklen, i32 noundef 1517) #4
  unreachable

.sink.split60:                                    ; preds = %98, %90
  %storemerge62 = phi ptr [ %99, %98 ], [ %91, %90 ]
  store ptr %storemerge62, ptr %8, align 8, !tbaa !35
  %108 = load i64, ptr %38, align 8, !tbaa !23
  %109 = getelementptr inbounds i8, ptr %8, i64 8
  store i64 %108, ptr %109, align 8, !tbaa !23
  br label %110

110:                                              ; preds = %.sink.split60, %84, %92, %78
  %.038 = phi ptr [ %2, %84 ], [ %2, %92 ], [ %2, %78 ], [ %8, %.sink.split60 ]
  %111 = call i32 @cursor_put(ptr noundef nonnull %0, ptr noundef nonnull %.039, ptr noundef nonnull %.038, i32 noundef %3) #6
  br label %112

112:                                              ; preds = %100, %96, %88, %70, %110
  %.0 = phi i32 [ %111, %110 ], [ -30781, %70 ], [ -30781, %88 ], [ -30781, %96 ], [ -30781, %100 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %113

113:                                              ; preds = %.critedge58, %.critedge, %112
  %.1 = phi i32 [ %.0, %112 ], [ -30781, %.critedge ], [ -30781, %.critedge58 ]
  ret i32 %.1
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @bcopy_8(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @bcopy_4(ptr noalias noundef, ptr noalias 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 = { hot 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 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 = { noreturn nounwind }
attributes #5 = { nounwind }
attributes #6 = { hot }

!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, !7, i64 25}
!6 = !{!"libmdbx_globals", !7, i64 0, !9, i64 16, !9, i64 20, !7, i64 24, !7, i64 25, !7, i64 26, !10, i64 27, !9, i64 28, !7, i64 32, !7, i64 40, !11, i64 80, !12, i64 88}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!"_Bool", !7, i64 0}
!11 = !{!"long", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!14 = !{!7, !7, i64 0}
!15 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!16 = !{!17, !12, i64 16}
!17 = !{!"MDBX_cursor", !9, i64 0, !7, i64 4, !7, i64 6, !7, i64 7, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !7, i64 48, !7, i64 304, !12, i64 368, !12, i64 376}
!18 = !{!19, !12, i64 80}
!19 = !{!"MDBX_txn", !9, i64 0, !9, i64 4, !11, i64 8, !11, i64 16, !12, i64 24, !12, i64 32, !20, i64 40, !11, i64 64, !11, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !22, i64 128, !12, i64 160, !7, i64 168}
!20 = !{!"geo", !21, i64 0, !21, i64 2, !9, i64 4, !9, i64 8, !7, i64 12, !7, i64 16}
!21 = !{!"short", !7, i64 0}
!22 = !{!"MDBX_canary", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!23 = !{!24, !11, i64 8}
!24 = !{!"iovec", !12, i64 0, !11, i64 8}
!25 = !{!17, !12, i64 32}
!26 = !{!27, !11, i64 16}
!27 = !{!"clc2", !28, i64 0, !28, i64 24}
!28 = !{!"clc", !12, i64 0, !11, i64 8, !11, i64 16}
!29 = !{!27, !11, i64 8}
!30 = !{!27, !11, i64 40}
!31 = !{!27, !11, i64 32}
!32 = !{!17, !12, i64 24}
!33 = !{!34, !21, i64 0}
!34 = !{!"tree", !21, i64 0, !21, i64 2, !9, i64 4, !9, i64 8, !9, i64 12, !9, i64 16, !9, i64 20, !11, i64 24, !11, i64 32, !11, i64 40}
!35 = !{!24, !12, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LowerExpectIntrinsicPass,SROAPass,SimplifyCFGPass,TailCallElimPass