; LLVM IR from erthink/libmdbx :: src (gc-get)

; 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.page_get_result = type { ptr, i32 }
%struct.MDBX_cursor = type { i32, %union.anon.6, i8, i8, ptr, ptr, ptr, ptr, ptr, [32 x ptr], [32 x i16], ptr, ptr }
%union.anon.6 = 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.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.troika = type { i8, i8, i8, i8, i32, [3 x i64] }
%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.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 }
%struct.page = type <{ i64, i16, i16, %union.anon.27, i32, [0 x i16] }>
%union.anon.27 = type { i32 }

@globals = external global %struct.libmdbx_globals, align 8
@.str.60 = external hidden unnamed_addr constant [32 x i8], align 1
@__func__.gc_alloc_single = external hidden unnamed_addr constant [16 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local { ptr, i32 } @gc_alloc_ex(ptr noundef, i64 noundef, i8 noundef zeroext) #0

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

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

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

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

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

; Function Attrs: hot nounwind uwtable
declare hidden i32 @repnl_get_single(ptr noundef) #5

declare zeroext i1 @txn_refund(ptr noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden { ptr, i32 } @page_alloc_finalize(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i64 noundef) #6

; Function Attrs: hot nounwind uwtable
define dso_local { ptr, i32 } @gc_alloc_single(ptr noundef %0) #5 {
  %2 = alloca %struct.page_get_result, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct.MDBX_cursor, ptr %7, i32 0, i32 5
  %9 = load ptr, ptr %8, align 8, !tbaa !9
  store ptr %9, ptr %4, align 8, !tbaa !5
  br label %10

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

21:                                               ; preds = %10
  br label %22

22:                                               ; preds = %21
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.MDBX_cursor, ptr %23, i32 0, i32 5
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = getelementptr inbounds %struct.MDBX_txn, ptr %25, i32 0, i32 1
  %27 = load i32, ptr %26, align 4, !tbaa !16
  %28 = and i32 %27, 4
  %29 = icmp ne i32 %28, 0
  %30 = xor i1 %29, true
  %31 = xor i1 %30, true
  %32 = xor i1 %31, true
  %33 = zext i1 %32 to i32
  %34 = sext i32 %33 to i64
  %35 = call i64 @llvm.expect.i64(i64 %34, i64 0)
  %36 = icmp ne i64 %35, 0
  br i1 %36, label %37, label %41

37:                                               ; preds = %22
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.MDBX_txn, ptr %38, i32 0, i32 9
  %40 = load ptr, ptr %39, align 8, !tbaa !21
  call void @mdbx_assert_fail(ptr noundef %40, ptr noundef @.str.60, ptr noundef @__func__.gc_alloc_single, i32 noundef 1336) #9
  unreachable

41:                                               ; preds = %22
  br label %42

42:                                               ; preds = %41
  br label %43

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43, %10
  br label %45

45:                                               ; preds = %44
  br label %46

46:                                               ; preds = %45
  br label %47

47:                                               ; preds = %46
  %48 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 4), align 1, !tbaa !12
  %49 = zext i8 %48 to i32
  %50 = and i32 %49, 1
  %51 = icmp ne i32 %50, 0
  %52 = xor i1 %51, true
  %53 = xor i1 %52, true
  %54 = zext i1 %53 to i32
  %55 = sext i32 %54 to i64
  %56 = call i64 @llvm.expect.i64(i64 %55, i64 1)
  %57 = icmp ne i64 %56, 0
  br i1 %57, label %58, label %80

58:                                               ; preds = %47
  br label %59

59:                                               ; preds = %58
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = call ptr @cursor_dbi_state(ptr noundef %60) #10
  %62 = load i8, ptr %61, align 1, !tbaa !22
  %63 = zext i8 %62 to i32
  %64 = and i32 %63, 145
  %65 = icmp eq i32 %64, 145
  %66 = xor i1 %65, true
  %67 = xor i1 %66, true
  %68 = xor i1 %67, true
  %69 = zext i1 %68 to i32
  %70 = sext i32 %69 to i64
  %71 = call i64 @llvm.expect.i64(i64 %70, i64 0)
  %72 = icmp ne i64 %71, 0
  br i1 %72, label %73, label %77

73:                                               ; preds = %59
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.MDBX_txn, ptr %74, i32 0, i32 9
  %76 = load ptr, ptr %75, align 8, !tbaa !21
  call void @mdbx_assert_fail(ptr noundef %76, ptr noundef @.str.61, ptr noundef @__func__.gc_alloc_single, i32 noundef 1337) #9
  unreachable

77:                                               ; preds = %59
  br label %78

78:                                               ; preds = %77
  br label %79

79:                                               ; preds = %78
  br label %80

80:                                               ; preds = %79, %47
  br label %81

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.MDBX_txn, ptr %84, i32 0, i32 17
  %86 = getelementptr inbounds %struct.anon.2, ptr %85, i32 0, i32 9
  %87 = load ptr, ptr %86, align 8, !tbaa !22
  %88 = icmp ne ptr %87, null
  %89 = xor i1 %88, true
  %90 = xor i1 %89, true
  %91 = zext i1 %90 to i32
  %92 = sext i32 %91 to i64
  %93 = call i64 @llvm.expect.i64(i64 %92, i64 1)
  %94 = icmp ne i64 %93, 0
  br i1 %94, label %95, label %270

95:                                               ; preds = %83
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.MDBX_txn, ptr %96, i32 0, i32 17
  %98 = getelementptr inbounds %struct.anon.2, ptr %97, i32 0, i32 4
  %99 = load i32, ptr %98, align 4, !tbaa !22
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.MDBX_txn, ptr %100, i32 0, i32 6
  %102 = getelementptr inbounds %struct.geo, ptr %101, i32 0, i32 5
  %103 = load i32, ptr %102, align 8, !tbaa !22
  %104 = icmp ugt i32 %99, %103
  %105 = xor i1 %104, true
  %106 = xor i1 %105, true
  %107 = zext i1 %106 to i32
  %108 = sext i32 %107 to i64
  %109 = call i64 @llvm.expect.i64(i64 %108, i64 0)
  %110 = icmp ne i64 %109, 0
  br i1 %110, label %111, label %121

111:                                              ; preds = %95
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = call zeroext i1 @txn_refund(ptr noundef %112)
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.MDBX_txn, ptr %114, i32 0, i32 17
  %116 = getelementptr inbounds %struct.anon.2, ptr %115, i32 0, i32 9
  %117 = load ptr, ptr %116, align 8, !tbaa !22
  %118 = icmp ne ptr %117, null
  br i1 %118, label %120, label %119

119:                                              ; preds = %111
  br label %270

120:                                              ; preds = %111
  br label %121

121:                                              ; preds = %120, %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #8
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.MDBX_txn, ptr %122, i32 0, i32 17
  %124 = getelementptr inbounds %struct.anon.2, ptr %123, i32 0, i32 9
  %125 = load ptr, ptr %124, align 8, !tbaa !22
  store ptr %125, ptr %5, align 8, !tbaa !5
  br label %126

126:                                              ; preds = %121
  br label %127

127:                                              ; preds = %126
  %128 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 5), align 2, !tbaa !23
  %129 = zext i8 %128 to i32
  %130 = icmp sle i32 6, %129
  %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 %145

137:                                              ; preds = %127
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.MDBX_txn, ptr %139, i32 0, i32 9
  %141 = load ptr, ptr %140, align 8, !tbaa !21
  %142 = getelementptr inbounds %struct.MDBX_env, ptr %141, i32 0, i32 2
  %143 = load i32, ptr %142, align 8, !tbaa !24
  %144 = zext i32 %143 to i64
  call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 6, ptr noundef @__func__.gc_alloc_single, i32 noundef 1350, ptr noundef @.str.62, ptr noundef %138, i64 noundef %144, i32 noundef 1350)
  br label %145

145:                                              ; preds = %137, %127
  br label %146

146:                                              ; preds = %145
  br label %147

147:                                              ; preds = %146
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  %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 !21
  %152 = getelementptr inbounds %struct.MDBX_env, ptr %151, i32 0, i32 2
  %153 = load i32, ptr %152, align 8, !tbaa !24
  br label %154

154:                                              ; preds = %147
  br label %155

155:                                              ; preds = %154
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.page, ptr %156, i32 0, i32 5
  %158 = getelementptr inbounds [0 x i16], ptr %157, i64 0, i64 0
  %159 = ptrtoint ptr %158 to i64
  %160 = add nsw i64 %159, 4
  %161 = inttoptr i64 %160 to ptr
  %162 = load ptr, ptr %161, align 8, !tbaa !5
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.MDBX_txn, ptr %163, i32 0, i32 17
  %165 = getelementptr inbounds %struct.anon.2, ptr %164, i32 0, i32 9
  store ptr %162, ptr %165, align 8, !tbaa !22
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.MDBX_txn, ptr %166, i32 0, i32 17
  %168 = getelementptr inbounds %struct.anon.2, ptr %167, i32 0, i32 10
  %169 = load i64, ptr %168, align 8, !tbaa !22
  %170 = add i64 %169, -1
  store i64 %170, ptr %168, align 8, !tbaa !22
  br label %171

171:                                              ; preds = %155
  %172 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 5), align 2, !tbaa !23
  %173 = zext i8 %172 to i32
  %174 = icmp sle i32 7, %173
  %175 = xor i1 %174, true
  %176 = xor i1 %175, true
  %177 = zext i1 %176 to i32
  %178 = sext i32 %177 to i64
  %179 = call i64 @llvm.expect.i64(i64 %178, i64 0)
  %180 = icmp ne i64 %179, 0
  br i1 %180, label %181, label %187

181:                                              ; preds = %171
  %182 = load ptr, ptr %3, align 8, !tbaa !5
  %183 = call i32 @cursor_dbi_dbg(ptr noundef %182)
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.page, ptr %184, i32 0, i32 4
  %186 = load i32, ptr %185, align 1, !tbaa !33
  call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 7, ptr noundef @__func__.gc_alloc_single, i32 noundef 1354, ptr noundef @.str.63, i32 noundef %183, i32 noundef %186)
  br label %187

187:                                              ; preds = %181, %171
  br label %188

188:                                              ; preds = %187
  br label %189

189:                                              ; preds = %188
  br label %190

190:                                              ; preds = %189
  %191 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 4), align 1, !tbaa !12
  %192 = zext i8 %191 to i32
  %193 = and i32 %192, 1
  %194 = icmp ne i32 %193, 0
  %195 = xor i1 %194, true
  %196 = xor i1 %195, true
  %197 = zext i1 %196 to i32
  %198 = sext i32 %197 to i64
  %199 = call i64 @llvm.expect.i64(i64 %198, i64 1)
  %200 = icmp ne i64 %199, 0
  br i1 %200, label %201, label %225

201:                                              ; preds = %190
  br label %202

202:                                              ; preds = %201
  %203 = load ptr, ptr %5, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.page, ptr %203, i32 0, i32 4
  %205 = load i32, ptr %204, align 1, !tbaa !33
  %206 = load ptr, ptr %4, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.MDBX_txn, ptr %206, i32 0, i32 6
  %208 = getelementptr inbounds %struct.geo, ptr %207, i32 0, i32 5
  %209 = load i32, ptr %208, align 8, !tbaa !22
  %210 = icmp ult i32 %205, %209
  %211 = xor i1 %210, true
  %212 = xor i1 %211, true
  %213 = xor i1 %212, true
  %214 = zext i1 %213 to i32
  %215 = sext i32 %214 to i64
  %216 = call i64 @llvm.expect.i64(i64 %215, i64 0)
  %217 = icmp ne i64 %216, 0
  br i1 %217, label %218, label %222

218:                                              ; preds = %202
  %219 = load ptr, ptr %4, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.MDBX_txn, ptr %219, i32 0, i32 9
  %221 = load ptr, ptr %220, align 8, !tbaa !21
  call void @mdbx_assert_fail(ptr noundef %221, ptr noundef @.str.64, ptr noundef @__func__.gc_alloc_single, i32 noundef 1355) #9
  unreachable

222:                                              ; preds = %202
  br label %223

223:                                              ; preds = %222
  br label %224

224:                                              ; preds = %223
  br label %225

225:                                              ; preds = %224, %190
  br label %226

226:                                              ; preds = %225
  br label %227

227:                                              ; preds = %226
  br label %228

228:                                              ; preds = %227
  %229 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 4), align 1, !tbaa !12
  %230 = zext i8 %229 to i32
  %231 = and i32 %230, 1
  %232 = icmp ne i32 %231, 0
  %233 = xor i1 %232, true
  %234 = xor i1 %233, true
  %235 = zext i1 %234 to i32
  %236 = sext i32 %235 to i64
  %237 = call i64 @llvm.expect.i64(i64 %236, i64 1)
  %238 = icmp ne i64 %237, 0
  br i1 %238, label %239, label %259

239:                                              ; preds = %228
  br label %240

240:                                              ; preds = %239
  %241 = load ptr, ptr %5, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.page, ptr %241, i32 0, i32 4
  %243 = load i32, ptr %242, align 1, !tbaa !33
  %244 = icmp uge i32 %243, 3
  %245 = xor i1 %244, true
  %246 = xor i1 %245, true
  %247 = xor i1 %246, true
  %248 = zext i1 %247 to i32
  %249 = sext i32 %248 to i64
  %250 = call i64 @llvm.expect.i64(i64 %249, i64 0)
  %251 = icmp ne i64 %250, 0
  br i1 %251, label %252, label %256

252:                                              ; preds = %240
  %253 = load ptr, ptr %4, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.MDBX_txn, ptr %253, i32 0, i32 9
  %255 = load ptr, ptr %254, align 8, !tbaa !21
  call void @mdbx_assert_fail(ptr noundef %255, ptr noundef @.str.65, ptr noundef @__func__.gc_alloc_single, i32 noundef 1356) #9
  unreachable

256:                                              ; preds = %240
  br label %257

257:                                              ; preds = %256
  br label %258

258:                                              ; preds = %257
  br label %259

259:                                              ; preds = %258, %228
  br label %260

260:                                              ; preds = %259
  br label %261

261:                                              ; preds = %260
  %262 = load ptr, ptr %4, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.MDBX_txn, ptr %262, i32 0, i32 8
  %264 = load i64, ptr %263, align 8, !tbaa !34
  %265 = load ptr, ptr %5, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.page, ptr %265, i32 0, i32 0
  store i64 %264, ptr %266, align 1, !tbaa !35
  %267 = getelementptr inbounds %struct.page_get_result, ptr %2, i32 0, i32 0
  %268 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %268, ptr %267, align 8, !tbaa !36
  %269 = getelementptr inbounds %struct.page_get_result, ptr %2, i32 0, i32 1
  store i32 0, ptr %269, align 8, !tbaa !38
  store i32 1, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  br label %305

270:                                              ; preds = %119, %83
  %271 = load ptr, ptr %4, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.MDBX_txn, ptr %271, i32 0, i32 17
  %273 = getelementptr inbounds %struct.anon.2, ptr %272, i32 0, i32 1
  %274 = load ptr, ptr %273, align 8, !tbaa !22
  %275 = getelementptr inbounds i32, ptr %274, i64 0
  %276 = load i32, ptr %275, align 4, !tbaa !33
  %277 = zext i32 %276 to i64
  %278 = icmp ugt i64 %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 1)
  %284 = icmp ne i64 %283, 0
  br i1 %284, label %285, label %298

285:                                              ; preds = %270
  %286 = load ptr, ptr %4, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.MDBX_txn, ptr %286, i32 0, i32 9
  %288 = load ptr, ptr %287, align 8, !tbaa !21
  %289 = load ptr, ptr %4, align 8, !tbaa !5
  %290 = load ptr, ptr %3, align 8, !tbaa !5
  %291 = load ptr, ptr %4, align 8, !tbaa !5
  %292 = call i32 @repnl_get_single(ptr noundef %291) #11
  %293 = call { ptr, i32 } @page_alloc_finalize(ptr noundef %288, ptr noundef %289, ptr noundef %290, i32 noundef %292, i64 noundef 1)
  %294 = getelementptr inbounds { ptr, i32 }, ptr %2, i32 0, i32 0
  %295 = extractvalue { ptr, i32 } %293, 0
  store ptr %295, ptr %294, align 8
  %296 = getelementptr inbounds { ptr, i32 }, ptr %2, i32 0, i32 1
  %297 = extractvalue { ptr, i32 } %293, 1
  store i32 %297, ptr %296, align 8
  store i32 1, ptr %6, align 4
  br label %305

298:                                              ; preds = %270
  %299 = load ptr, ptr %3, align 8, !tbaa !5
  %300 = call { ptr, i32 } @gc_alloc_ex(ptr noundef %299, i64 noundef 1, i8 noundef zeroext 0)
  %301 = getelementptr inbounds { ptr, i32 }, ptr %2, i32 0, i32 0
  %302 = extractvalue { ptr, i32 } %300, 0
  store ptr %302, ptr %301, align 8
  %303 = getelementptr inbounds { ptr, i32 }, ptr %2, i32 0, i32 1
  %304 = extractvalue { ptr, i32 } %300, 1
  store i32 %304, ptr %303, align 8
  store i32 1, ptr %6, align 4
  br label %305

305:                                              ; preds = %298, %285, %261
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  %306 = load { ptr, i32 }, ptr %2, align 8
  ret { ptr, i32 } %306
}

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare hidden ptr @cursor_dbi_state(ptr noundef) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @cursor_dbi_dbg(ptr noundef) #6

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


; 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.60 = external hidden unnamed_addr constant [32 x i8], align 1
@__func__.gc_alloc_single = external hidden unnamed_addr constant [16 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local { ptr, i32 } @gc_alloc_ex(ptr noundef, i64 noundef, i8 noundef zeroext) local_unnamed_addr #0

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

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

; Function Attrs: hot nounwind uwtable
declare hidden i32 @repnl_get_single(ptr noundef) local_unnamed_addr #3

declare zeroext i1 @txn_refund(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: hot nounwind uwtable
define dso_local { ptr, i32 } @gc_alloc_single(ptr noundef %0) local_unnamed_addr #3 {
  %2 = getelementptr inbounds i8, ptr %0, i64 16
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 25), align 1, !tbaa !11
  %5 = and i8 %4, 1
  %.not = icmp eq i8 %5, 0
  br i1 %.not, label %.thread, label %6, !prof !15

6:                                                ; preds = %1
  %7 = getelementptr inbounds i8, ptr %3, i64 4
  %8 = load i32, ptr %7, align 4, !tbaa !16
  %9 = and i32 %8, 4
  %.not34 = icmp eq i32 %9, 0
  br i1 %.not34, label %10, label %13, !prof !15

10:                                               ; preds = %6
  %11 = getelementptr inbounds i8, ptr %3, i64 80
  %12 = load ptr, ptr %11, align 8, !tbaa !21
  tail call void @mdbx_assert_fail(ptr noundef %12, ptr noundef nonnull @.str.60, ptr noundef nonnull @__func__.gc_alloc_single, i32 noundef 1336) #6
  unreachable

13:                                               ; preds = %6
  %14 = tail call ptr @cursor_dbi_state(ptr noundef nonnull %0) #7
  %15 = load i8, ptr %14, align 1, !tbaa !22
  %16 = and i8 %15, -111
  %.not36 = icmp eq i8 %16, -111
  br i1 %.not36, label %.thread, label %17, !prof !23

17:                                               ; preds = %13
  %18 = getelementptr inbounds i8, ptr %3, i64 80
  %19 = load ptr, ptr %18, align 8, !tbaa !21
  tail call void @mdbx_assert_fail(ptr noundef %19, ptr noundef nonnull @.str.61, ptr noundef nonnull @__func__.gc_alloc_single, i32 noundef 1337) #6
  unreachable

.thread:                                          ; preds = %1, %13
  %20 = getelementptr inbounds i8, ptr %3, i64 512
  %21 = load ptr, ptr %20, align 8, !tbaa !22
  %.not37 = icmp eq ptr %21, null
  br i1 %.not37, label %79, label %22, !prof !15

22:                                               ; preds = %.thread
  %23 = getelementptr inbounds i8, ptr %3, i64 476
  %24 = load i32, ptr %23, align 4, !tbaa !22
  %25 = getelementptr inbounds i8, ptr %3, i64 56
  %26 = load i32, ptr %25, align 8, !tbaa !22
  %27 = icmp ugt i32 %24, %26
  br i1 %27, label %28, label %31, !prof !15

28:                                               ; preds = %22
  %29 = tail call zeroext i1 @txn_refund(ptr noundef nonnull %3) #8
  %30 = load ptr, ptr %20, align 8, !tbaa !22
  %.not38 = icmp eq ptr %30, null
  br i1 %.not38, label %79, label %31

31:                                               ; preds = %28, %22
  %32 = phi ptr [ %30, %28 ], [ %21, %22 ]
  %33 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 26), align 2, !tbaa !24
  %34 = icmp ugt i8 %33, 5
  %35 = getelementptr inbounds i8, ptr %3, i64 80
  br i1 %34, label %44, label %.thread44, !prof !15

.thread44:                                        ; preds = %31
  %36 = getelementptr inbounds i8, ptr %32, i64 20
  %37 = ptrtoint ptr %36 to i64
  %38 = add nsw i64 %37, 4
  %39 = inttoptr i64 %38 to ptr
  %40 = load ptr, ptr %39, align 8, !tbaa !25
  store ptr %40, ptr %20, align 8, !tbaa !22
  %41 = getelementptr inbounds i8, ptr %3, i64 520
  %42 = load i64, ptr %41, align 8, !tbaa !22
  %43 = add i64 %42, -1
  store i64 %43, ptr %41, align 8, !tbaa !22
  br label %63

44:                                               ; preds = %31
  %45 = load ptr, ptr %35, align 8, !tbaa !21
  %46 = getelementptr inbounds i8, ptr %45, i64 8
  %47 = load i32, ptr %46, align 8, !tbaa !26
  %48 = zext i32 %47 to i64
  tail call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 6, ptr noundef nonnull @__func__.gc_alloc_single, i32 noundef 1350, ptr noundef nonnull @.str.62, ptr noundef nonnull %32, i64 noundef %48, i32 noundef 1350) #8
  %.pre = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 26), align 2, !tbaa !24
  %49 = icmp ugt i8 %.pre, 6
  %50 = getelementptr inbounds i8, ptr %3, i64 80
  %51 = getelementptr inbounds i8, ptr %32, i64 20
  %52 = ptrtoint ptr %51 to i64
  %53 = add nsw i64 %52, 4
  %54 = inttoptr i64 %53 to ptr
  %55 = load ptr, ptr %54, align 8, !tbaa !25
  store ptr %55, ptr %20, align 8, !tbaa !22
  %56 = getelementptr inbounds i8, ptr %3, i64 520
  %57 = load i64, ptr %56, align 8, !tbaa !22
  %58 = add i64 %57, -1
  store i64 %58, ptr %56, align 8, !tbaa !22
  br i1 %49, label %59, label %63, !prof !35

59:                                               ; preds = %44
  %60 = tail call i32 @cursor_dbi_dbg(ptr noundef nonnull %0)
  %61 = getelementptr inbounds i8, ptr %32, i64 16
  %62 = load i32, ptr %61, align 1, !tbaa !36
  tail call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 7, ptr noundef nonnull @__func__.gc_alloc_single, i32 noundef 1354, ptr noundef nonnull @.str.63, i32 noundef %60, i32 noundef %62) #8
  br label %63

63:                                               ; preds = %.thread44, %44, %59
  %64 = phi ptr [ %35, %.thread44 ], [ %50, %44 ], [ %50, %59 ]
  %65 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 25), align 1, !tbaa !11
  %66 = and i8 %65, 1
  %.not40 = icmp eq i8 %66, 0
  br i1 %.not40, label %.thread43, label %67, !prof !15

67:                                               ; preds = %63
  %68 = getelementptr inbounds i8, ptr %32, i64 16
  %69 = load i32, ptr %68, align 1, !tbaa !36
  %70 = load i32, ptr %25, align 8, !tbaa !22
  %.not41 = icmp ult i32 %69, %70
  br i1 %.not41, label %73, label %71, !prof !23

71:                                               ; preds = %67
  %72 = load ptr, ptr %64, align 8, !tbaa !21
  tail call void @mdbx_assert_fail(ptr noundef %72, ptr noundef nonnull @.str.64, ptr noundef nonnull @__func__.gc_alloc_single, i32 noundef 1355) #6
  unreachable

73:                                               ; preds = %67
  %74 = icmp ult i32 %69, 3
  br i1 %74, label %75, label %.thread43, !prof !15

75:                                               ; preds = %73
  %76 = load ptr, ptr %64, align 8, !tbaa !21
  tail call void @mdbx_assert_fail(ptr noundef %76, ptr noundef nonnull @.str.65, ptr noundef nonnull @__func__.gc_alloc_single, i32 noundef 1356) #6
  unreachable

.thread43:                                        ; preds = %63, %73
  %77 = getelementptr inbounds i8, ptr %3, i64 72
  %78 = load i64, ptr %77, align 8, !tbaa !37
  store i64 %78, ptr %32, align 1, !tbaa !38
  br label %94

79:                                               ; preds = %28, %.thread
  %80 = getelementptr inbounds i8, ptr %3, i64 200
  %81 = load ptr, ptr %80, align 8, !tbaa !22
  %82 = load i32, ptr %81, align 4, !tbaa !36
  %.not39 = icmp eq i32 %82, 0
  br i1 %.not39, label %90, label %83, !prof !15

83:                                               ; preds = %79
  %84 = getelementptr inbounds i8, ptr %3, i64 80
  %85 = load ptr, ptr %84, align 8, !tbaa !21
  %86 = tail call i32 @repnl_get_single(ptr noundef nonnull %3) #9
  %87 = tail call { ptr, i32 } @page_alloc_finalize(ptr noundef %85, ptr noundef nonnull %3, ptr noundef nonnull %0, i32 noundef %86, i64 noundef 1)
  %88 = extractvalue { ptr, i32 } %87, 0
  %89 = extractvalue { ptr, i32 } %87, 1
  br label %94

90:                                               ; preds = %79
  %91 = tail call { ptr, i32 } @gc_alloc_ex(ptr noundef nonnull %0, i64 noundef 1, i8 noundef zeroext 0)
  %92 = extractvalue { ptr, i32 } %91, 0
  %93 = extractvalue { ptr, i32 } %91, 1
  br label %94

94:                                               ; preds = %90, %83, %.thread43
  %.sroa.0.0 = phi ptr [ %32, %.thread43 ], [ %88, %83 ], [ %92, %90 ]
  %.sroa.4.0 = phi i32 [ 0, %.thread43 ], [ %89, %83 ], [ %93, %90 ]
  %.fca.0.insert = insertvalue { ptr, i32 } poison, ptr %.sroa.0.0, 0
  %.fca.1.insert = insertvalue { ptr, i32 } %.fca.0.insert, i32 %.sroa.4.0, 1
  ret { ptr, i32 } %.fca.1.insert
}

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

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

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


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