; LLVM IR from erthink/libmdbx :: src (txn-basal)

; 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.7 }
%struct.anon.7 = 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.troika = type { i8, i8, i8, i8, i32, [3 x i64] }
%struct.meta_ptr = type { i64, %union.anon.6, i64 }
%union.anon.6 = type { ptr }
%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.1 }
%struct.geo = type { i16, i16, i32, i32, %union.anon, %union.anon.0 }
%union.anon = type { i32 }
%union.anon.0 = type { i32 }
%struct.MDBX_canary = type { i64, i64, i64, i64 }
%union.anon.1 = type { %struct.anon.2 }
%struct.anon.2 = type { %struct.troika, ptr, %struct.anon.3, i8, i32, i32, i64, ptr, ptr, ptr, i64, %union.anon.4 }
%struct.anon.3 = type { %struct.MDBX_rkl, i64, %struct.MDBX_rkl }
%struct.MDBX_rkl = type { i64, i64, i32, i32, ptr, [12 x i64] }
%union.anon.4 = type { %struct.anon.5 }
%struct.anon.5 = type { i64, ptr }
%struct.tree = type { i16, i16, i32, i32, i32, i32, i32, i64, i64, i64 }
%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.10, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, i64, %struct.anon.11, %struct.anon.15, i8, ptr, ptr, ptr, %struct.anon.16, %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.9, i32, i64, i64, i64 }
%union.anon.9 = type { ptr }
%union.mdbx_atomic_uint32_t = type { i32 }
%struct.anon.10 = type { ptr, ptr, ptr, ptr }
%struct.anon.11 = type { i32, i32, i32, i32, i64, i8, i8, i8, i8, i32, i32, i8, i8, i8, %struct.anon.12, %union.anon.13 }
%struct.anon.12 = type { i16, i16, i16, i16 }
%union.anon.13 = type { i32 }
%struct.anon.15 = type { i64, i64, i64, i64, i64 }
%struct.anon.16 = 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.1 = external hidden unnamed_addr constant [37 x i8], align 1
@__func__.txn_basal_start = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [33 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @txn_basal_start(ptr noundef %0, i32 noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca %struct.troika, align 8
  %8 = alloca %struct.meta_ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.MDBX_txn, ptr %13, i32 0, i32 9
  %15 = load ptr, ptr %14, align 8, !tbaa !11
  store ptr %15, ptr %6, align 8, !tbaa !5
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.MDBX_txn, ptr %16, i32 0, i32 17
  %18 = getelementptr inbounds %struct.anon.2, ptr %17, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #9
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  call void @meta_tap(ptr dead_on_unwind writable sret(%struct.troika) align 8 %7, ptr noundef %19)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %7, i64 32, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #9
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.MDBX_txn, ptr %21, i32 0, i32 17
  %23 = getelementptr inbounds %struct.anon.2, ptr %22, i32 0, i32 0
  call void @meta_recent(ptr dead_on_unwind writable sret(%struct.meta_ptr) align 8 %8, ptr noundef %20, ptr noundef %23)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  store i64 0, ptr %9, align 8, !tbaa !19
  br label %24

24:                                               ; preds = %51, %2
  br label %25

25:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = call i32 @coherency_fetch_head(ptr noundef %26, ptr noundef byval(%struct.meta_ptr) align 8 %8, ptr noundef %9)
  store i32 %27, ptr %10, align 4, !tbaa !9
  %28 = load i32, ptr %10, align 4, !tbaa !9
  %29 = icmp eq i32 %28, 0
  %30 = xor i1 %29, true
  %31 = xor i1 %30, true
  %32 = zext i1 %31 to i32
  %33 = sext i32 %32 to i64
  %34 = call i64 @llvm.expect.i64(i64 %33, i64 1)
  %35 = icmp ne i64 %34, 0
  br i1 %35, label %36, label %37

36:                                               ; preds = %25
  store i32 3, ptr %11, align 4
  br label %49

37:                                               ; preds = %25
  %38 = load i32, ptr %10, align 4, !tbaa !9
  %39 = icmp ne i32 %38, -1
  %40 = xor i1 %39, true
  %41 = xor i1 %40, true
  %42 = zext i1 %41 to i32
  %43 = sext i32 %42 to i64
  %44 = call i64 @llvm.expect.i64(i64 %43, i64 0)
  %45 = icmp ne i64 %44, 0
  br i1 %45, label %46, label %48

46:                                               ; preds = %37
  %47 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %47, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %49

48:                                               ; preds = %37
  store i32 0, ptr %11, align 4
  br label %49

49:                                               ; preds = %48, %46, %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  %50 = load i32, ptr %11, align 4
  switch i32 %50, label %291 [
    i32 0, label %51
    i32 3, label %52
  ]

51:                                               ; preds = %49
  br label %24, !llvm.loop !20

52:                                               ; preds = %49
  br label %53

53:                                               ; preds = %52
  %54 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 4), align 1, !tbaa !22
  %55 = zext i8 %54 to i32
  %56 = and i32 %55, 1
  %57 = icmp ne i32 %56, 0
  %58 = xor i1 %57, true
  %59 = xor i1 %58, true
  %60 = zext i1 %59 to i32
  %61 = sext i32 %60 to i64
  %62 = call i64 @llvm.expect.i64(i64 %61, i64 1)
  %63 = icmp ne i64 %62, 0
  br i1 %63, label %64, label %85

64:                                               ; preds = %53
  br label %65

65:                                               ; preds = %64
  %66 = getelementptr inbounds %struct.meta_ptr, ptr %8, i32 0, i32 1
  %67 = load ptr, ptr %66, align 8, !tbaa !18
  %68 = call i64 @meta_txnid(ptr noundef %67)
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.MDBX_txn, ptr %69, i32 0, i32 7
  %71 = load i64, ptr %70, align 8, !tbaa !25
  %72 = icmp eq i64 %68, %71
  %73 = xor i1 %72, true
  %74 = xor i1 %73, true
  %75 = xor i1 %74, true
  %76 = zext i1 %75 to i32
  %77 = sext i32 %76 to i64
  %78 = call i64 @llvm.expect.i64(i64 %77, i64 0)
  %79 = icmp ne i64 %78, 0
  br i1 %79, label %80, label %82

80:                                               ; preds = %65
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  call void @mdbx_assert_fail(ptr noundef %81, ptr noundef @.str.1, ptr noundef @__func__.txn_basal_start, i32 noundef 109) #10
  unreachable

82:                                               ; preds = %65
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83
  br label %85

85:                                               ; preds = %84, %53
  br label %86

86:                                               ; preds = %85
  br label %87

87:                                               ; preds = %86
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.MDBX_txn, ptr %88, i32 0, i32 7
  %90 = load i64, ptr %89, align 8, !tbaa !25
  %91 = call i64 @safe64_txnid_next(i64 noundef %90)
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.MDBX_txn, ptr %92, i32 0, i32 7
  store i64 %91, ptr %93, align 8, !tbaa !25
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.MDBX_txn, ptr %94, i32 0, i32 7
  %96 = load i64, ptr %95, align 8, !tbaa !25
  %97 = icmp ugt i64 %96, -4294967297
  %98 = xor i1 %97, true
  %99 = xor i1 %98, true
  %100 = zext i1 %99 to i32
  %101 = sext i32 %100 to i64
  %102 = call i64 @llvm.expect.i64(i64 %101, i64 0)
  %103 = icmp ne i64 %102, 0
  br i1 %103, label %104, label %119

104:                                              ; preds = %87
  br label %105

105:                                              ; preds = %104
  %106 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 5), align 2, !tbaa !26
  %107 = zext i8 %106 to i32
  %108 = icmp sle i32 1, %107
  %109 = xor i1 %108, true
  %110 = xor i1 %109, true
  %111 = zext i1 %110 to i32
  %112 = sext i32 %111 to i64
  %113 = call i64 @llvm.expect.i64(i64 %112, i64 0)
  %114 = icmp ne i64 %113, 0
  br i1 %114, label %115, label %116

115:                                              ; preds = %105
  call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 1, ptr noundef @__func__.txn_basal_start, i32 noundef 112, ptr noundef @.str.2, i32 noundef -30788)
  br label %116

116:                                              ; preds = %115, %105
  br label %117

117:                                              ; preds = %116
  br label %118

118:                                              ; preds = %117
  store i32 -30788, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %291

119:                                              ; preds = %87
  br label %120

120:                                              ; preds = %119
  %121 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 4), align 1, !tbaa !22
  %122 = zext i8 %121 to i32
  %123 = and i32 %122, 1
  %124 = icmp ne i32 %123, 0
  %125 = xor i1 %124, true
  %126 = xor i1 %125, true
  %127 = zext i1 %126 to i32
  %128 = sext i32 %127 to i64
  %129 = call i64 @llvm.expect.i64(i64 %128, i64 1)
  %130 = icmp ne i64 %129, 0
  br i1 %130, label %131, label %155

131:                                              ; preds = %120
  br label %132

132:                                              ; preds = %131
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.MDBX_txn, ptr %133, i32 0, i32 10
  %135 = load ptr, ptr %134, align 8, !tbaa !27
  %136 = getelementptr inbounds %struct.tree, ptr %135, i64 0
  %137 = getelementptr inbounds %struct.tree, ptr %136, i32 0, i32 0
  %138 = load i16, ptr %137, align 4, !tbaa !28
  %139 = zext i16 %138 to i32
  %140 = icmp eq i32 %139, 8
  %141 = xor i1 %140, true
  %142 = xor i1 %141, true
  %143 = xor i1 %142, true
  %144 = zext i1 %143 to i32
  %145 = sext i32 %144 to i64
  %146 = call i64 @llvm.expect.i64(i64 %145, i64 0)
  %147 = icmp ne i64 %146, 0
  br i1 %147, label %148, label %152

148:                                              ; preds = %132
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.MDBX_txn, ptr %149, i32 0, i32 9
  %151 = load ptr, ptr %150, align 8, !tbaa !11
  call void @mdbx_assert_fail(ptr noundef %151, ptr noundef @.str.3, ptr noundef @__func__.txn_basal_start, i32 noundef 116) #10
  unreachable

152:                                              ; preds = %132
  br label %153

153:                                              ; preds = %152
  br label %154

154:                                              ; preds = %153
  br label %155

155:                                              ; preds = %154, %120
  br label %156

156:                                              ; preds = %155
  br label %157

157:                                              ; preds = %156
  br label %158

158:                                              ; preds = %157
  %159 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 4), align 1, !tbaa !22
  %160 = zext i8 %159 to i32
  %161 = and i32 %160, 1
  %162 = icmp ne i32 %161, 0
  %163 = xor i1 %162, true
  %164 = xor i1 %163, true
  %165 = zext i1 %164 to i32
  %166 = sext i32 %165 to i64
  %167 = call i64 @llvm.expect.i64(i64 %166, i64 1)
  %168 = icmp ne i64 %167, 0
  br i1 %168, label %169, label %193

169:                                              ; preds = %158
  br label %170

170:                                              ; preds = %169
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.MDBX_txn, ptr %171, i32 0, i32 10
  %173 = load ptr, ptr %172, align 8, !tbaa !27
  %174 = getelementptr inbounds %struct.tree, ptr %173, i64 1
  %175 = getelementptr inbounds %struct.tree, ptr %174, i32 0, i32 0
  %176 = load i16, ptr %175, align 4, !tbaa !28
  %177 = zext i16 %176 to i32
  %178 = call zeroext i1 @check_table_flags(i32 noundef %177)
  %179 = xor i1 %178, true
  %180 = xor i1 %179, true
  %181 = xor i1 %180, true
  %182 = zext i1 %181 to i32
  %183 = sext i32 %182 to i64
  %184 = call i64 @llvm.expect.i64(i64 %183, i64 0)
  %185 = icmp ne i64 %184, 0
  br i1 %185, label %186, label %190

186:                                              ; preds = %170
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.MDBX_txn, ptr %187, i32 0, i32 9
  %189 = load ptr, ptr %188, align 8, !tbaa !11
  call void @mdbx_assert_fail(ptr noundef %189, ptr noundef @.str.4, ptr noundef @__func__.txn_basal_start, i32 noundef 117) #10
  unreachable

190:                                              ; preds = %170
  br label %191

191:                                              ; preds = %190
  br label %192

192:                                              ; preds = %191
  br label %193

193:                                              ; preds = %192, %158
  br label %194

194:                                              ; preds = %193
  br label %195

195:                                              ; preds = %194
  %196 = load i32, ptr %5, align 4, !tbaa !9
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.MDBX_txn, ptr %197, i32 0, i32 1
  store i32 %196, ptr %198, align 4, !tbaa !30
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.MDBX_txn, ptr %199, i32 0, i32 5
  store ptr null, ptr %200, align 8, !tbaa !31
  %201 = load ptr, ptr %4, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.MDBX_txn, ptr %201, i32 0, i32 17
  %203 = getelementptr inbounds %struct.anon.2, ptr %202, i32 0, i32 9
  store ptr null, ptr %203, align 8, !tbaa !18
  %204 = load ptr, ptr %4, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.MDBX_txn, ptr %204, i32 0, i32 17
  %206 = getelementptr inbounds %struct.anon.2, ptr %205, i32 0, i32 10
  store i64 0, ptr %206, align 8, !tbaa !18
  %207 = load ptr, ptr %4, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.MDBX_txn, ptr %207, i32 0, i32 17
  %209 = getelementptr inbounds %struct.anon.2, ptr %208, i32 0, i32 4
  store i32 0, ptr %209, align 4, !tbaa !18
  br label %210

210:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  store i64 0, ptr %12, align 8, !tbaa !19
  br label %211

211:                                              ; preds = %210
  %212 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 4), align 1, !tbaa !22
  %213 = zext i8 %212 to i32
  %214 = and i32 %213, 1
  %215 = icmp ne i32 %214, 0
  %216 = xor i1 %215, true
  %217 = xor i1 %216, true
  %218 = zext i1 %217 to i32
  %219 = sext i32 %218 to i64
  %220 = call i64 @llvm.expect.i64(i64 %219, i64 1)
  %221 = icmp ne i64 %220, 0
  br i1 %221, label %222, label %226

222:                                              ; preds = %211
  br label %223

223:                                              ; preds = %222
  br label %224

224:                                              ; preds = %223
  br label %225

225:                                              ; preds = %224
  br label %226

226:                                              ; preds = %225, %211
  br label %227

227:                                              ; preds = %226
  br label %228

228:                                              ; preds = %227
  %229 = load ptr, ptr %4, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.MDBX_txn, ptr %229, i32 0, i32 17
  %231 = getelementptr inbounds %struct.anon.2, ptr %230, i32 0, i32 8
  %232 = load ptr, ptr %231, align 8, !tbaa !18
  %233 = getelementptr inbounds i32, ptr %232, i64 0
  store i32 0, ptr %233, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  br label %234

234:                                              ; preds = %228
  br label %235

235:                                              ; preds = %234
  %236 = load ptr, ptr %4, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.MDBX_txn, ptr %236, i32 0, i32 17
  %238 = getelementptr inbounds %struct.anon.2, ptr %237, i32 0, i32 11
  %239 = getelementptr inbounds %struct.anon.5, ptr %238, i32 0, i32 1
  store ptr null, ptr %239, align 8, !tbaa !18
  %240 = load ptr, ptr %4, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.MDBX_txn, ptr %240, i32 0, i32 17
  %242 = getelementptr inbounds %struct.anon.2, ptr %241, i32 0, i32 11
  %243 = getelementptr inbounds %struct.anon.5, ptr %242, i32 0, i32 0
  store i64 0, ptr %243, align 8, !tbaa !18
  %244 = load ptr, ptr %4, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.MDBX_txn, ptr %244, i32 0, i32 17
  %246 = getelementptr inbounds %struct.anon.2, ptr %245, i32 0, i32 2
  %247 = getelementptr inbounds %struct.anon.3, ptr %246, i32 0, i32 1
  store i64 0, ptr %247, align 8, !tbaa !18
  br label %248

248:                                              ; preds = %235
  %249 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 4), align 1, !tbaa !22
  %250 = zext i8 %249 to i32
  %251 = and i32 %250, 1
  %252 = icmp ne i32 %251, 0
  %253 = xor i1 %252, true
  %254 = xor i1 %253, true
  %255 = zext i1 %254 to i32
  %256 = sext i32 %255 to i64
  %257 = call i64 @llvm.expect.i64(i64 %256, i64 1)
  %258 = icmp ne i64 %257, 0
  br i1 %258, label %259, label %280

259:                                              ; preds = %248
  br label %260

260:                                              ; preds = %259
  %261 = load ptr, ptr %4, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.MDBX_txn, ptr %261, i32 0, i32 17
  %263 = getelementptr inbounds %struct.anon.2, ptr %262, i32 0, i32 2
  %264 = getelementptr inbounds %struct.anon.3, ptr %263, i32 0, i32 0
  %265 = call zeroext i1 @rkl_empty(ptr noundef %264) #11
  %266 = xor i1 %265, true
  %267 = xor i1 %266, true
  %268 = xor i1 %267, true
  %269 = zext i1 %268 to i32
  %270 = sext i32 %269 to i64
  %271 = call i64 @llvm.expect.i64(i64 %270, i64 0)
  %272 = icmp ne i64 %271, 0
  br i1 %272, label %273, label %277

273:                                              ; preds = %260
  %274 = load ptr, ptr %4, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.MDBX_txn, ptr %274, i32 0, i32 9
  %276 = load ptr, ptr %275, align 8, !tbaa !11
  call void @mdbx_assert_fail(ptr noundef %276, ptr noundef @.str.5, ptr noundef @__func__.txn_basal_start, i32 noundef 129) #10
  unreachable

277:                                              ; preds = %260
  br label %278

278:                                              ; preds = %277
  br label %279

279:                                              ; preds = %278
  br label %280

280:                                              ; preds = %279, %248
  br label %281

281:                                              ; preds = %280
  br label %282

282:                                              ; preds = %281
  %283 = load ptr, ptr %4, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.MDBX_txn, ptr %283, i32 0, i32 9
  %285 = load ptr, ptr %284, align 8, !tbaa !11
  %286 = getelementptr inbounds %struct.MDBX_env, ptr %285, i32 0, i32 40
  %287 = getelementptr inbounds %struct.anon.16, ptr %286, i32 0, i32 0
  store i64 0, ptr %287, align 8, !tbaa !32
  %288 = load ptr, ptr %4, align 8, !tbaa !5
  %289 = load ptr, ptr %6, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.MDBX_env, ptr %289, i32 0, i32 39
  store ptr %288, ptr %290, align 8, !tbaa !41
  store i32 0, ptr %3, align 4
  store i32 1, ptr %11, align 4
  br label %291

291:                                              ; preds = %282, %118, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  %292 = load i32, ptr %3, align 4
  ret i32 %292
}

declare void @meta_tap(ptr dead_on_unwind writable sret(%struct.troika) align 8, ptr noundef) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @meta_recent(ptr dead_on_unwind noalias writable sret(%struct.meta_ptr) align 8, ptr noundef, ptr noundef) #5

declare i32 @coherency_fetch_head(ptr noundef, ptr noundef byval(%struct.meta_ptr) align 8, ptr noundef) #3

declare i64 @meta_txnid(ptr noundef) #3

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i64 @safe64_txnid_next(i64 noundef) #7

declare void @debug_log(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @check_table_flags(i32 noundef) #5

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(none) }
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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #7 = { 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 #8 = { 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 #9 = { nounwind }
attributes #10 = { noreturn }
attributes #11 = { 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, !6, i64 80}
!12 = !{!"MDBX_txn", !10, i64 0, !10, i64 4, !13, i64 8, !13, i64 16, !6, i64 24, !6, i64 32, !14, i64 40, !13, i64 64, !13, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !16, i64 128, !6, i64 160, !7, i64 168}
!13 = !{!"long", !7, i64 0}
!14 = !{!"geo", !15, i64 0, !15, i64 2, !10, i64 4, !10, i64 8, !7, i64 12, !7, i64 16}
!15 = !{!"short", !7, i64 0}
!16 = !{!"MDBX_canary", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!17 = !{i64 0, i64 1, !18, i64 1, i64 1, !18, i64 2, i64 1, !18, i64 3, i64 1, !18, i64 4, i64 4, !9, i64 8, i64 24, !18}
!18 = !{!7, !7, i64 0}
!19 = !{!13, !13, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !7, i64 25}
!23 = !{!"libmdbx_globals", !7, i64 0, !10, i64 16, !10, i64 20, !7, i64 24, !7, i64 25, !7, i64 26, !24, i64 27, !10, i64 28, !7, i64 32, !7, i64 40, !13, i64 80, !6, i64 88}
!24 = !{!"_Bool", !7, i64 0}
!25 = !{!12, !13, i64 64}
!26 = !{!23, !7, i64 26}
!27 = !{!12, !6, i64 88}
!28 = !{!29, !15, i64 0}
!29 = !{!"tree", !15, i64 0, !15, i64 2, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !13, i64 24, !13, i64 32, !13, i64 40}
!30 = !{!12, !10, i64 4}
!31 = !{!12, !6, i64 32}
!32 = !{!33, !13, i64 392}
!33 = !{!"MDBX_env", !7, i64 0, !10, i64 4, !10, i64 8, !34, i64 16, !10, i64 56, !10, i64 60, !34, i64 64, !6, i64 104, !15, i64 112, !15, i64 114, !15, i64 116, !15, i64 118, !15, i64 120, !15, i64 122, !7, i64 124, !7, i64 128, !7, i64 129, !15, i64 130, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !35, 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, !13, i64 256, !36, i64 264, !38, i64 320, !24, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !39, i64 392, !7, i64 400, !10, i64 440, !10, i64 444, !6, i64 448, !40, i64 456, !7, i64 496, !7, i64 536}
!34 = !{!"osal_mmap", !7, i64 0, !10, i64 8, !13, i64 16, !13, i64 24, !13, i64 32}
!35 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!36 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !13, i64 16, !7, i64 24, !7, i64 25, !7, i64 26, !7, i64 27, !10, i64 28, !10, i64 32, !24, i64 36, !24, i64 37, !24, i64 38, !37, i64 40, !7, i64 48}
!37 = !{!"", !15, i64 0, !15, i64 2, !15, i64 4, !15, i64 6}
!38 = !{!"", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32}
!39 = !{!"", !13, i64 0}
!40 = !{!"osal_ioring", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!41 = !{!33, !6, i64 384}


; 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.7 }
%struct.anon.7 = 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.troika = type { i8, i8, i8, i8, i32, [3 x i64] }
%struct.meta_ptr = type { i64, %union.anon.6, i64 }
%union.anon.6 = type { ptr }

@globals = external local_unnamed_addr global %struct.libmdbx_globals, align 8
@.str.1 = external hidden unnamed_addr constant [37 x i8], align 1
@__func__.txn_basal_start = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [33 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @txn_basal_start(ptr noundef %0, i32 noundef %1) local_unnamed_addr #1 {
  %3 = alloca %struct.troika, align 8
  %4 = alloca %struct.meta_ptr, align 8
  %5 = alloca i64, align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 80
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 168
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #9
  call void @meta_tap(ptr dead_on_unwind nonnull writable sret(%struct.troika) align 8 %3, ptr noundef %7) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %3, i64 32, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #9
  call void @meta_recent(ptr dead_on_unwind nonnull writable sret(%struct.meta_ptr) align 8 %4, ptr noundef %7, ptr noundef nonnull %8)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  store i64 0, ptr %5, align 8, !tbaa !18
  br label %9

9:                                                ; preds = %9, %2
  %10 = call i32 @coherency_fetch_head(ptr noundef %0, ptr noundef nonnull byval(%struct.meta_ptr) align 8 %4, ptr noundef nonnull %5) #9
  switch i32 %10, label %.thread [
    i32 0, label %11
    i32 -1, label %9
  ], !prof !19

11:                                               ; preds = %9
  %12 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 25), align 1, !tbaa !20
  %13 = and i8 %12, 1
  %.not36 = icmp eq i8 %13, 0
  br i1 %.not36, label %._crit_edge, label %14, !prof !23

._crit_edge:                                      ; preds = %11
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 64
  %.pre = load i64, ptr %.phi.trans.insert, align 8, !tbaa !24
  br label %21

14:                                               ; preds = %11
  %15 = getelementptr inbounds i8, ptr %4, i64 8
  %16 = load ptr, ptr %15, align 8, !tbaa !16
  %17 = call i64 @meta_txnid(ptr noundef %16) #9
  %18 = getelementptr inbounds i8, ptr %0, i64 64
  %19 = load i64, ptr %18, align 8, !tbaa !24
  %.not37 = icmp eq i64 %17, %19
  br i1 %.not37, label %21, label %20, !prof !25

20:                                               ; preds = %14
  call void @mdbx_assert_fail(ptr noundef %7, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.txn_basal_start, i32 noundef 109) #10
  unreachable

21:                                               ; preds = %._crit_edge, %14
  %22 = phi i64 [ %.pre, %._crit_edge ], [ %17, %14 ]
  %23 = getelementptr inbounds i8, ptr %0, i64 64
  %24 = call i64 @safe64_txnid_next(i64 noundef %22)
  store i64 %24, ptr %23, align 8, !tbaa !24
  %25 = icmp ugt i64 %24, -4294967297
  br i1 %25, label %26, label %29, !prof !23

26:                                               ; preds = %21
  %27 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 26), align 2, !tbaa !26
  %.not42 = icmp eq i8 %27, 0
  br i1 %.not42, label %.thread, label %28, !prof !25

28:                                               ; preds = %26
  call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 1, ptr noundef nonnull @__func__.txn_basal_start, i32 noundef 112, ptr noundef nonnull @.str.2, i32 noundef -30788) #9
  br label %.thread

29:                                               ; preds = %21
  %30 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 25), align 1, !tbaa !20
  %31 = and i8 %30, 1
  %.not38 = icmp eq i8 %31, 0
  br i1 %.not38, label %.thread48, label %32, !prof !23

32:                                               ; preds = %29
  %33 = getelementptr inbounds i8, ptr %0, i64 88
  %34 = load ptr, ptr %33, align 8, !tbaa !27
  %35 = load i16, ptr %34, align 4, !tbaa !28
  %.not39 = icmp eq i16 %35, 8
  br i1 %.not39, label %38, label %36, !prof !25

36:                                               ; preds = %32
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  call void @mdbx_assert_fail(ptr noundef %37, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.txn_basal_start, i32 noundef 116) #10
  unreachable

38:                                               ; preds = %32
  %39 = getelementptr inbounds i8, ptr %34, i64 48
  %40 = load i16, ptr %39, align 4, !tbaa !28
  %41 = zext i16 %40 to i32
  %42 = call zeroext i1 @check_table_flags(i32 noundef %41)
  br i1 %42, label %..thread48_crit_edge, label %44, !prof !25

..thread48_crit_edge:                             ; preds = %38
  %.pre51 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 25), align 1, !tbaa !20
  %.pre52 = and i8 %.pre51, 1
  %43 = icmp eq i8 %.pre52, 0
  br label %.thread48

44:                                               ; preds = %38
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  call void @mdbx_assert_fail(ptr noundef %45, ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__.txn_basal_start, i32 noundef 117) #10
  unreachable

.thread48:                                        ; preds = %..thread48_crit_edge, %29
  %.pre-phi = phi i1 [ %43, %..thread48_crit_edge ], [ true, %29 ]
  %46 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 %1, ptr %46, align 4, !tbaa !30
  %47 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr null, ptr %47, align 8, !tbaa !31
  %48 = getelementptr inbounds i8, ptr %0, i64 512
  %49 = getelementptr inbounds i8, ptr %0, i64 476
  store i32 0, ptr %49, align 4, !tbaa !16
  %50 = getelementptr inbounds i8, ptr %0, i64 504
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %48, i8 0, i64 16, i1 false)
  %51 = load ptr, ptr %50, align 8, !tbaa !16
  store i32 0, ptr %51, align 4, !tbaa !17
  %52 = getelementptr inbounds i8, ptr %0, i64 528
  %53 = getelementptr inbounds i8, ptr %0, i64 336
  store i64 0, ptr %53, align 8, !tbaa !16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %52, i8 0, i64 16, i1 false)
  br i1 %.pre-phi, label %59, label %54, !prof !23

54:                                               ; preds = %.thread48
  %55 = getelementptr inbounds i8, ptr %0, i64 208
  %56 = call zeroext i1 @rkl_empty(ptr noundef nonnull %55) #11
  br i1 %56, label %59, label %57, !prof !25

57:                                               ; preds = %54
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  call void @mdbx_assert_fail(ptr noundef %58, ptr noundef nonnull @.str.5, ptr noundef nonnull @__func__.txn_basal_start, i32 noundef 129) #10
  unreachable

59:                                               ; preds = %54, %.thread48
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i64 392
  store i64 0, ptr %61, align 8, !tbaa !32
  %62 = getelementptr inbounds i8, ptr %7, i64 384
  store ptr %0, ptr %62, align 8, !tbaa !41
  br label %.thread

.thread:                                          ; preds = %9, %26, %28, %59
  %.2 = phi i32 [ 0, %59 ], [ -30788, %28 ], [ -30788, %26 ], [ %10, %9 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #9
  ret i32 %.2
}

declare void @meta_tap(ptr dead_on_unwind writable sret(%struct.troika) align 8, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @meta_recent(ptr dead_on_unwind noalias writable sret(%struct.meta_ptr) align 8, ptr noundef, ptr noundef) local_unnamed_addr #4

declare i32 @coherency_fetch_head(ptr noundef, ptr noundef byval(%struct.meta_ptr) align 8, ptr noundef) local_unnamed_addr #2

declare i64 @meta_txnid(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i64 @safe64_txnid_next(i64 noundef) local_unnamed_addr #6

declare void @debug_log(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @check_table_flags(i32 noundef) local_unnamed_addr #4

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 "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 = { 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 #8 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { nounwind }
attributes #10 = { noreturn nounwind }
attributes #11 = { 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, !11, i64 80}
!6 = !{!"MDBX_txn", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !11, i64 24, !11, i64 32, !12, i64 40, !10, i64 64, !10, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !14, i64 128, !11, i64 160, !8, i64 168}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"geo", !13, i64 0, !13, i64 2, !7, i64 4, !7, i64 8, !8, i64 12, !8, i64 16}
!13 = !{!"short", !8, i64 0}
!14 = !{!"MDBX_canary", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!15 = !{i64 0, i64 1, !16, i64 1, i64 1, !16, i64 2, i64 1, !16, i64 3, i64 1, !16, i64 4, i64 4, !17, i64 8, i64 24, !16}
!16 = !{!8, !8, i64 0}
!17 = !{!7, !7, i64 0}
!18 = !{!10, !10, i64 0}
!19 = !{!"branch_weights", i32 1, i32 4002000, i32 2000}
!20 = !{!21, !8, i64 25}
!21 = !{!"libmdbx_globals", !8, i64 0, !7, i64 16, !7, i64 20, !8, i64 24, !8, i64 25, !8, i64 26, !22, i64 27, !7, i64 28, !8, i64 32, !8, i64 40, !10, i64 80, !11, i64 88}
!22 = !{!"_Bool", !8, i64 0}
!23 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!24 = !{!6, !10, i64 64}
!25 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!26 = !{!21, !8, i64 26}
!27 = !{!6, !11, i64 88}
!28 = !{!29, !13, i64 0}
!29 = !{!"tree", !13, i64 0, !13, i64 2, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !10, i64 24, !10, i64 32, !10, i64 40}
!30 = !{!6, !7, i64 4}
!31 = !{!6, !11, i64 32}
!32 = !{!33, !10, i64 392}
!33 = !{!"MDBX_env", !8, i64 0, !7, i64 4, !7, i64 8, !34, i64 16, !7, i64 56, !7, i64 60, !34, i64 64, !11, i64 104, !13, i64 112, !13, i64 114, !13, i64 116, !13, i64 118, !13, i64 120, !13, i64 122, !8, i64 124, !8, i64 128, !8, i64 129, !13, i64 130, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !35, i64 152, !11, i64 184, !11, i64 192, !11, i64 200, !11, i64 208, !11, i64 216, !7, i64 224, !7, i64 228, !7, i64 232, !11, i64 240, !11, i64 248, !10, i64 256, !36, i64 264, !38, i64 320, !22, i64 360, !11, i64 368, !11, i64 376, !11, i64 384, !39, i64 392, !8, i64 400, !7, i64 440, !7, i64 444, !11, i64 448, !40, i64 456, !8, i64 496, !8, i64 536}
!34 = !{!"osal_mmap", !8, i64 0, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!35 = !{!"", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!36 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !8, i64 24, !8, i64 25, !8, i64 26, !8, i64 27, !7, i64 28, !7, i64 32, !22, i64 36, !22, i64 37, !22, i64 38, !37, i64 40, !8, i64 48}
!37 = !{!"", !13, i64 0, !13, i64 2, !13, i64 4, !13, i64 6}
!38 = !{!"", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!39 = !{!"", !10, i64 0}
!40 = !{!"osal_ioring", !7, i64 0, !7, i64 4, !7, i64 8, !11, i64 16, !11, i64 24, !11, i64 32}
!41 = !{!33, !11, i64 384}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,LowerExpectIntrinsicPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass