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

; 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.0 }
%struct.anon.0 = type { i64, i64 }
%union.logger_union = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%struct.MDBX_cursor = type { i32, %union.anon, i8, i8, ptr, ptr, ptr, ptr, ptr, [32 x ptr], [32 x i16], ptr, ptr }
%union.anon = type { i16 }
%struct.anon = type { i8, i8 }
%struct.page = type <{ i64, i16, i16, %union.anon.2, i32, [0 x i16] }>
%union.anon.2 = type { i32 }
%struct.iovec = type { ptr, i64 }
%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.6 }
%struct.geo = type { i16, i16, i32, i32, %union.anon.4, %union.anon.5 }
%union.anon.4 = type { i32 }
%union.anon.5 = type { i32 }
%struct.MDBX_canary = type { i64, i64, i64, i64 }
%union.anon.6 = type { %struct.anon.8 }
%struct.anon.8 = type { %struct.troika, ptr, %struct.anon.9, i8, i32, i32, i64, ptr, ptr, ptr, i64, %union.anon.10 }
%struct.troika = type { i8, i8, i8, i8, i32, [3 x i64] }
%struct.anon.9 = type { %struct.MDBX_rkl, i64, %struct.MDBX_rkl }
%struct.MDBX_rkl = type { i64, i64, i32, i32, ptr, [12 x i64] }
%union.anon.10 = type { %struct.anon.11 }
%struct.anon.11 = type { i64, ptr }
%struct.anon.3 = type { i16, i16 }

@globals = external global %struct.libmdbx_globals, align 8
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [14 x i8], align 1
@__func__.node_add_branch = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [34 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: noreturn
declare void @mdbx_assert_fail(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

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

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

declare ptr @mdbx_dump_val(ptr noundef, ptr noundef, i64 noundef) #3

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

; 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) #5

; 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 @node_add_branch(ptr noundef %0, i64 noundef %1, ptr noundef %2, i32 noundef %3) #6 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca [510 x i8], align 16
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i64 %1, ptr %7, align 8, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.MDBX_cursor, ptr %19, i32 0, i32 9
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.MDBX_cursor, ptr %21, i32 0, i32 1
  %23 = getelementptr inbounds %struct.anon, ptr %22, i32 0, i32 1
  %24 = load i8, ptr %23, align 1, !tbaa !13
  %25 = sext i8 %24 to i64
  %26 = getelementptr inbounds [32 x ptr], ptr %20, i64 0, i64 %25
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  store ptr %27, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 510, ptr %11) #8
  br label %28

28:                                               ; preds = %4
  %29 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 5), align 2, !tbaa !14
  %30 = zext i8 %29 to i32
  %31 = icmp sle i32 5, %30
  %32 = xor i1 %31, true
  %33 = xor i1 %32, true
  %34 = zext i1 %33 to i32
  %35 = sext i32 %34 to i64
  %36 = call i64 @llvm.expect.i64(i64 %35, i64 0)
  %37 = icmp ne i64 %36, 0
  br i1 %37, label %38, label %60

38:                                               ; preds = %28
  %39 = load ptr, ptr %10, align 8, !tbaa !5
  %40 = call zeroext i1 @is_subpage(ptr noundef %39) #9
  %41 = zext i1 %40 to i64
  %42 = select i1 %40, ptr @.str.2, ptr @.str.3
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.page, ptr %43, i32 0, i32 4
  %45 = load i32, ptr %44, align 1, !tbaa !11
  %46 = load i64, ptr %7, align 8, !tbaa !9
  %47 = load i32, ptr %9, align 4, !tbaa !11
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = icmp ne ptr %48, null
  br i1 %49, label %50, label %54

50:                                               ; preds = %38
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.iovec, ptr %51, i32 0, i32 1
  %53 = load i64, ptr %52, align 8, !tbaa !17
  br label %55

54:                                               ; preds = %38
  br label %55

55:                                               ; preds = %54, %50
  %56 = phi i64 [ %53, %50 ], [ 0, %54 ]
  %57 = load ptr, ptr %8, align 8, !tbaa !5
  %58 = getelementptr inbounds [510 x i8], ptr %11, i64 0, i64 0
  %59 = call ptr @mdbx_dump_val(ptr noundef %57, ptr noundef %58, i64 noundef 255)
  call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 5, ptr noundef @__func__.node_add_branch, i32 noundef 50, ptr noundef @.str.9, ptr noundef %42, i32 noundef %45, i64 noundef %46, i32 noundef %47, i64 noundef %56, ptr noundef %59)
  br label %60

60:                                               ; preds = %55, %28
  br label %61

61:                                               ; preds = %60
  br label %62

62:                                               ; preds = %61
  br label %63

63:                                               ; preds = %62
  %64 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 4), align 1, !tbaa !19
  %65 = zext i8 %64 to i32
  %66 = and i32 %65, 1
  %67 = icmp ne i32 %66, 0
  %68 = xor i1 %67, true
  %69 = xor i1 %68, true
  %70 = zext i1 %69 to i32
  %71 = sext i32 %70 to i64
  %72 = call i64 @llvm.expect.i64(i64 %71, i64 1)
  %73 = icmp ne i64 %72, 0
  br i1 %73, label %74, label %96

74:                                               ; preds = %63
  br label %75

75:                                               ; preds = %74
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = call zeroext i8 @page_type(ptr noundef %76) #9
  %78 = zext i8 %77 to i32
  %79 = icmp eq i32 %78, 1
  %80 = xor i1 %79, true
  %81 = xor i1 %80, true
  %82 = xor i1 %81, true
  %83 = zext i1 %82 to i32
  %84 = sext i32 %83 to i64
  %85 = call i64 @llvm.expect.i64(i64 %84, i64 0)
  %86 = icmp ne i64 %85, 0
  br i1 %86, label %87, label %93

87:                                               ; preds = %75
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.MDBX_cursor, ptr %88, i32 0, i32 5
  %90 = load ptr, ptr %89, align 8, !tbaa !20
  %91 = getelementptr inbounds %struct.MDBX_txn, ptr %90, i32 0, i32 9
  %92 = load ptr, ptr %91, align 8, !tbaa !22
  call void @mdbx_assert_fail(ptr noundef %92, ptr noundef @.str.10, ptr noundef @__func__.node_add_branch, i32 noundef 52) #10
  unreachable

93:                                               ; preds = %75
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95, %63
  br label %97

97:                                               ; preds = %96
  br label %98

98:                                               ; preds = %97
  br label %99

99:                                               ; preds = %98
  %100 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 4), align 1, !tbaa !19
  %101 = zext i8 %100 to i32
  %102 = and i32 %101, 1
  %103 = icmp ne i32 %102, 0
  %104 = xor i1 %103, true
  %105 = xor i1 %104, true
  %106 = zext i1 %105 to i32
  %107 = sext i32 %106 to i64
  %108 = call i64 @llvm.expect.i64(i64 %107, i64 1)
  %109 = icmp ne i64 %108, 0
  br i1 %109, label %110, label %137

110:                                              ; preds = %99
  br label %111

111:                                              ; preds = %110
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.page, ptr %112, i32 0, i32 0
  %114 = load i64, ptr %113, align 1, !tbaa !9
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.MDBX_cursor, ptr %115, i32 0, i32 5
  %117 = load ptr, ptr %116, align 8, !tbaa !20
  %118 = getelementptr inbounds %struct.MDBX_txn, ptr %117, i32 0, i32 8
  %119 = load i64, ptr %118, align 8, !tbaa !27
  %120 = icmp uge i64 %114, %119
  %121 = xor i1 %120, true
  %122 = xor i1 %121, true
  %123 = xor i1 %122, true
  %124 = zext i1 %123 to i32
  %125 = sext i32 %124 to i64
  %126 = call i64 @llvm.expect.i64(i64 %125, i64 0)
  %127 = icmp ne i64 %126, 0
  br i1 %127, label %128, label %134

128:                                              ; preds = %111
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.MDBX_cursor, ptr %129, i32 0, i32 5
  %131 = load ptr, ptr %130, align 8, !tbaa !20
  %132 = getelementptr inbounds %struct.MDBX_txn, ptr %131, i32 0, i32 9
  %133 = load ptr, ptr %132, align 8, !tbaa !22
  call void @mdbx_assert_fail(ptr noundef %133, ptr noundef @.str.11, ptr noundef @__func__.node_add_branch, i32 noundef 53) #10
  unreachable

134:                                              ; preds = %111
  br label %135

135:                                              ; preds = %134
  br label %136

136:                                              ; preds = %135
  br label %137

137:                                              ; preds = %136, %99
  br label %138

138:                                              ; preds = %137
  br label %139

139:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.MDBX_cursor, ptr %140, i32 0, i32 5
  %142 = load ptr, ptr %141, align 8, !tbaa !20
  %143 = getelementptr inbounds %struct.MDBX_txn, ptr %142, i32 0, i32 9
  %144 = load ptr, ptr %143, align 8, !tbaa !22
  %145 = load ptr, ptr %8, align 8, !tbaa !5
  %146 = call i64 @branch_size(ptr noundef %144, ptr noundef %145) #9
  store i64 %146, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %147 = load ptr, ptr %10, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.page, ptr %147, i32 0, i32 3
  %149 = getelementptr inbounds %struct.anon.3, ptr %148, i32 0, i32 0
  %150 = load i16, ptr %149, align 1, !tbaa !13
  %151 = zext i16 %150 to i64
  %152 = add i64 %151, 2
  store i64 %152, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %153 = load ptr, ptr %10, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.page, ptr %153, i32 0, i32 3
  %155 = getelementptr inbounds %struct.anon.3, ptr %154, i32 0, i32 1
  %156 = load i16, ptr %155, align 1, !tbaa !13
  %157 = zext i16 %156 to i64
  %158 = load i64, ptr %12, align 8, !tbaa !9
  %159 = sub i64 %158, 2
  %160 = sub i64 %157, %159
  store i64 %160, ptr %14, align 8, !tbaa !9
  %161 = load i64, ptr %13, align 8, !tbaa !9
  %162 = load i64, ptr %14, align 8, !tbaa !9
  %163 = icmp sgt i64 %161, %162
  %164 = xor i1 %163, true
  %165 = xor i1 %164, true
  %166 = zext i1 %165 to i32
  %167 = sext i32 %166 to i64
  %168 = call i64 @llvm.expect.i64(i64 %167, i64 0)
  %169 = icmp ne i64 %168, 0
  br i1 %169, label %170, label %177

170:                                              ; preds = %139
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.MDBX_cursor, ptr %171, i32 0, i32 5
  %173 = load ptr, ptr %172, align 8, !tbaa !20
  %174 = getelementptr inbounds %struct.MDBX_txn, ptr %173, i32 0, i32 1
  %175 = load i32, ptr %174, align 4, !tbaa !28
  %176 = or i32 %175, 2
  store i32 %176, ptr %174, align 4, !tbaa !28
  store i32 -30786, ptr %5, align 4
  store i32 1, ptr %15, align 4
  br label %283

177:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %178 = load ptr, ptr %10, align 8, !tbaa !5
  %179 = call i64 @page_numkeys(ptr noundef %178) #9
  store i64 %179, ptr %16, align 8, !tbaa !9
  br label %180

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

191:                                              ; preds = %180
  br label %192

192:                                              ; preds = %191
  %193 = load i64, ptr %16, align 8, !tbaa !9
  %194 = load i64, ptr %7, align 8, !tbaa !9
  %195 = icmp uge i64 %193, %194
  %196 = xor i1 %195, true
  %197 = xor i1 %196, true
  %198 = xor i1 %197, true
  %199 = zext i1 %198 to i32
  %200 = sext i32 %199 to i64
  %201 = call i64 @llvm.expect.i64(i64 %200, i64 0)
  %202 = icmp ne i64 %201, 0
  br i1 %202, label %203, label %209

203:                                              ; preds = %192
  %204 = load ptr, ptr %6, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.MDBX_cursor, ptr %204, i32 0, i32 5
  %206 = load ptr, ptr %205, align 8, !tbaa !20
  %207 = getelementptr inbounds %struct.MDBX_txn, ptr %206, i32 0, i32 9
  %208 = load ptr, ptr %207, align 8, !tbaa !22
  call void @mdbx_assert_fail(ptr noundef %208, ptr noundef @.str.8, ptr noundef @__func__.node_add_branch, i32 noundef 67) #10
  unreachable

209:                                              ; preds = %192
  br label %210

210:                                              ; preds = %209
  br label %211

211:                                              ; preds = %210
  br label %212

212:                                              ; preds = %211, %180
  br label %213

213:                                              ; preds = %212
  br label %214

214:                                              ; preds = %213
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %215 = load i64, ptr %16, align 8, !tbaa !9
  store i64 %215, ptr %17, align 8, !tbaa !9
  br label %216

216:                                              ; preds = %232, %214
  %217 = load i64, ptr %17, align 8, !tbaa !9
  %218 = load i64, ptr %7, align 8, !tbaa !9
  %219 = icmp ugt i64 %217, %218
  br i1 %219, label %221, label %220

220:                                              ; preds = %216
  store i32 16, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %235

221:                                              ; preds = %216
  %222 = load ptr, ptr %10, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.page, ptr %222, i32 0, i32 5
  %224 = load i64, ptr %17, align 8, !tbaa !9
  %225 = sub i64 %224, 1
  %226 = getelementptr inbounds [0 x i16], ptr %223, i64 0, i64 %225
  %227 = load i16, ptr %226, align 1, !tbaa !29
  %228 = load ptr, ptr %10, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.page, ptr %228, i32 0, i32 5
  %230 = load i64, ptr %17, align 8, !tbaa !9
  %231 = getelementptr inbounds [0 x i16], ptr %229, i64 0, i64 %230
  store i16 %227, ptr %231, align 1, !tbaa !29
  br label %232

232:                                              ; preds = %221
  %233 = load i64, ptr %17, align 8, !tbaa !9
  %234 = add i64 %233, -1
  store i64 %234, ptr %17, align 8, !tbaa !9
  br label %216, !llvm.loop !30

235:                                              ; preds = %220
  %236 = load i64, ptr %13, align 8, !tbaa !9
  %237 = trunc i64 %236 to i16
  %238 = load ptr, ptr %10, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.page, ptr %238, i32 0, i32 3
  %240 = getelementptr inbounds %struct.anon.3, ptr %239, i32 0, i32 0
  store i16 %237, ptr %240, align 1, !tbaa !13
  %241 = load i64, ptr %14, align 8, !tbaa !9
  %242 = trunc i64 %241 to i16
  %243 = load ptr, ptr %10, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.page, ptr %243, i32 0, i32 3
  %245 = getelementptr inbounds %struct.anon.3, ptr %244, i32 0, i32 1
  store i16 %242, ptr %245, align 1, !tbaa !13
  %246 = load ptr, ptr %10, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.page, ptr %246, i32 0, i32 5
  %248 = load i64, ptr %7, align 8, !tbaa !9
  %249 = getelementptr inbounds [0 x i16], ptr %247, i64 0, i64 %248
  store i16 %242, ptr %249, align 1, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %250 = load ptr, ptr %10, align 8, !tbaa !5
  %251 = load i64, ptr %7, align 8, !tbaa !9
  %252 = call ptr @page_node(ptr noundef %250, i64 noundef %251) #9
  store ptr %252, ptr %18, align 8, !tbaa !5
  %253 = load ptr, ptr %18, align 8, !tbaa !5
  %254 = load i32, ptr %9, align 4, !tbaa !11
  call void @node_set_pgno(ptr noundef %253, i32 noundef %254)
  %255 = load ptr, ptr %18, align 8, !tbaa !5
  call void @node_set_flags(ptr noundef %255, i8 noundef zeroext 0)
  %256 = load ptr, ptr %18, align 8, !tbaa !5
  %257 = ptrtoint ptr %256 to i64
  %258 = add nsw i64 %257, 5
  %259 = inttoptr i64 %258 to ptr
  call void @poke_u8(ptr noundef %259, i8 noundef zeroext 0)
  %260 = load ptr, ptr %18, align 8, !tbaa !5
  call void @node_set_ks(ptr noundef %260, i64 noundef 0)
  %261 = load ptr, ptr %8, align 8, !tbaa !5
  %262 = icmp ne ptr %261, null
  %263 = xor i1 %262, true
  %264 = xor i1 %263, true
  %265 = zext i1 %264 to i32
  %266 = sext i32 %265 to i64
  %267 = call i64 @llvm.expect.i64(i64 %266, i64 1)
  %268 = icmp ne i64 %267, 0
  br i1 %268, label %269, label %282

269:                                              ; preds = %235
  %270 = load ptr, ptr %18, align 8, !tbaa !5
  %271 = load ptr, ptr %8, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.iovec, ptr %271, i32 0, i32 1
  %273 = load i64, ptr %272, align 8, !tbaa !17
  call void @node_set_ks(ptr noundef %270, i64 noundef %273)
  %274 = load ptr, ptr %18, align 8, !tbaa !5
  %275 = call ptr @node_key(ptr noundef %274) #9
  %276 = load ptr, ptr %8, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.iovec, ptr %276, i32 0, i32 0
  %278 = load ptr, ptr %277, align 8, !tbaa !32
  %279 = load ptr, ptr %8, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.iovec, ptr %279, i32 0, i32 1
  %281 = load i64, ptr %280, align 8, !tbaa !17
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %275, ptr align 1 %278, i64 %281, i1 false)
  br label %282

282:                                              ; preds = %269, %235
  store i32 0, ptr %5, align 4
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %283

283:                                              ; preds = %282, %170
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 510, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  %284 = load i32, ptr %5, align 4
  ret i32 %284
}

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @node_set_pgno(ptr noalias noundef, i32 noundef) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @node_set_flags(ptr noalias noundef, i8 noundef zeroext) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @poke_u8(ptr noalias noundef, i8 noundef zeroext) #7

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @node_set_ks(ptr noalias noundef, i64 noundef) #7

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

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

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !7, i64 26}
!15 = !{!"libmdbx_globals", !7, i64 0, !12, i64 16, !12, i64 20, !7, i64 24, !7, i64 25, !7, i64 26, !16, i64 27, !12, i64 28, !7, i64 32, !7, i64 40, !10, i64 80, !6, i64 88}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!18, !10, i64 8}
!18 = !{!"iovec", !6, i64 0, !10, i64 8}
!19 = !{!15, !7, i64 25}
!20 = !{!21, !6, i64 16}
!21 = !{!"MDBX_cursor", !12, 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}
!22 = !{!23, !6, i64 80}
!23 = !{!"MDBX_txn", !12, i64 0, !12, i64 4, !10, i64 8, !10, i64 16, !6, i64 24, !6, i64 32, !24, i64 40, !10, i64 64, !10, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !26, i64 128, !6, i64 160, !7, i64 168}
!24 = !{!"geo", !25, i64 0, !25, i64 2, !12, i64 4, !12, i64 8, !7, i64 12, !7, i64 16}
!25 = !{!"short", !7, i64 0}
!26 = !{!"MDBX_canary", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!27 = !{!23, !10, i64 72}
!28 = !{!23, !12, i64 4}
!29 = !{!25, !25, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!18, !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.0 }
%struct.anon.0 = 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.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [14 x i8], align 1
@__func__.node_add_branch = external hidden unnamed_addr constant [16 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [34 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: 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: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare hidden zeroext i1 @is_subpage(ptr noundef) local_unnamed_addr #3

declare ptr @mdbx_dump_val(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

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

; 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) #4

; 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 range(i32 -30786, 1) i32 @node_add_branch(ptr nocapture noundef readonly %0, i64 noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #5 {
  %5 = alloca [510 x i8], align 16
  %6 = getelementptr inbounds i8, ptr %0, i64 48
  %7 = getelementptr inbounds i8, ptr %0, i64 5
  %8 = load i8, ptr %7, align 1, !tbaa !5
  %9 = sext i8 %8 to i64
  %10 = getelementptr inbounds [32 x ptr], ptr %6, i64 0, i64 %9
  %11 = load ptr, ptr %10, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 510, ptr nonnull %5) #7
  %12 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 26), align 2, !tbaa !10
  %13 = icmp ugt i8 %12, 4
  br i1 %13, label %14, label %25, !prof !15

14:                                               ; preds = %4
  %15 = tail call zeroext i1 @is_subpage(ptr noundef %11) #8
  %16 = select i1 %15, ptr @.str.2, ptr @.str.3
  %17 = getelementptr inbounds i8, ptr %11, i64 16
  %18 = load i32, ptr %17, align 1, !tbaa !16
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %22, label %19

19:                                               ; preds = %14
  %20 = getelementptr inbounds i8, ptr %2, i64 8
  %21 = load i64, ptr %20, align 8, !tbaa !17
  br label %22

22:                                               ; preds = %14, %19
  %23 = phi i64 [ %21, %19 ], [ 0, %14 ]
  %24 = call ptr @mdbx_dump_val(ptr noundef %2, ptr noundef nonnull %5, i64 noundef 255) #7
  call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 5, ptr noundef nonnull @__func__.node_add_branch, i32 noundef 50, ptr noundef nonnull @.str.9, ptr noundef nonnull %16, i32 noundef %18, i64 noundef %1, i32 noundef %3, i64 noundef %23, ptr noundef %24) #7
  br label %25

25:                                               ; preds = %4, %22
  %26 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 25), align 1, !tbaa !19
  %27 = and i8 %26, 1
  %.not58 = icmp eq i8 %27, 0
  br i1 %.not58, label %..thread_crit_edge, label %28, !prof !15

..thread_crit_edge:                               ; preds = %25
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 16
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !20
  br label %.thread

28:                                               ; preds = %25
  %29 = call zeroext i8 @page_type(ptr noundef %11) #8
  %.not59 = icmp eq i8 %29, 1
  br i1 %.not59, label %35, label %30, !prof !22

30:                                               ; preds = %28
  %31 = getelementptr inbounds i8, ptr %0, i64 16
  %32 = load ptr, ptr %31, align 8, !tbaa !20
  %33 = getelementptr inbounds i8, ptr %32, i64 80
  %34 = load ptr, ptr %33, align 8, !tbaa !23
  call void @mdbx_assert_fail(ptr noundef %34, ptr noundef nonnull @.str.10, ptr noundef nonnull @__func__.node_add_branch, i32 noundef 52) #9
  unreachable

35:                                               ; preds = %28
  %36 = load i64, ptr %11, align 1, !tbaa !28
  %37 = getelementptr inbounds i8, ptr %0, i64 16
  %38 = load ptr, ptr %37, align 8, !tbaa !20
  %39 = getelementptr inbounds i8, ptr %38, i64 72
  %40 = load i64, ptr %39, align 8, !tbaa !29
  %.not61 = icmp ult i64 %36, %40
  br i1 %.not61, label %41, label %.thread, !prof !15

41:                                               ; preds = %35
  %42 = getelementptr inbounds i8, ptr %38, i64 80
  %43 = load ptr, ptr %42, align 8, !tbaa !23
  call void @mdbx_assert_fail(ptr noundef %43, ptr noundef nonnull @.str.11, ptr noundef nonnull @__func__.node_add_branch, i32 noundef 53) #9
  unreachable

.thread:                                          ; preds = %..thread_crit_edge, %35
  %44 = phi ptr [ %.pre, %..thread_crit_edge ], [ %38, %35 ]
  %45 = getelementptr inbounds i8, ptr %44, i64 80
  %46 = load ptr, ptr %45, align 8, !tbaa !23
  %47 = call i64 @branch_size(ptr noundef %46, ptr noundef %2) #8
  %48 = getelementptr inbounds i8, ptr %11, i64 12
  %49 = load i16, ptr %48, align 1, !tbaa !5
  %50 = zext i16 %49 to i64
  %51 = add nuw nsw i64 %50, 2
  %52 = getelementptr inbounds i8, ptr %11, i64 14
  %53 = load i16, ptr %52, align 1, !tbaa !5
  %54 = zext i16 %53 to i64
  %reass.sub = sub i64 %54, %47
  %55 = add i64 %reass.sub, 2
  %56 = icmp sgt i64 %51, %55
  br i1 %56, label %57, label %61, !prof !15

57:                                               ; preds = %.thread
  %58 = getelementptr inbounds i8, ptr %44, i64 4
  %59 = load i32, ptr %58, align 4, !tbaa !30
  %60 = or i32 %59, 2
  store i32 %60, ptr %58, align 4, !tbaa !30
  br label %94

61:                                               ; preds = %.thread
  %62 = call i64 @page_numkeys(ptr noundef nonnull %11) #8
  %.not62 = icmp ne i8 %27, 0
  %.not63 = icmp ult i64 %62, %1
  %or.cond = select i1 %.not62, i1 %.not63, i1 false
  br i1 %or.cond, label %74, label %.preheader, !prof !31

.preheader:                                       ; preds = %61
  %63 = icmp ugt i64 %62, %1
  br i1 %63, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %64 = getelementptr inbounds i8, ptr %11, i64 20
  %65 = sub i64 %62, %1
  %min.iters.check = icmp ult i64 %65, 16
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %.05366.ph = phi i64 [ %62, %.lr.ph ], [ %ind.end, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %65, -16
  %ind.end = sub i64 %62, %n.vec
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = sub i64 %62, %index
  %66 = add i64 %offset.idx, -1
  %67 = getelementptr inbounds [0 x i16], ptr %64, i64 0, i64 %66
  %68 = getelementptr inbounds i8, ptr %67, i64 -14
  %69 = getelementptr inbounds i8, ptr %67, i64 -30
  %wide.load = load <8 x i16>, ptr %68, align 1, !tbaa !32
  %wide.load68 = load <8 x i16>, ptr %69, align 1, !tbaa !32
  %70 = getelementptr inbounds [0 x i16], ptr %64, i64 0, i64 %offset.idx
  %71 = getelementptr inbounds i8, ptr %70, i64 -14
  %72 = getelementptr inbounds i8, ptr %70, i64 -30
  store <8 x i16> %wide.load, ptr %71, align 1, !tbaa !32
  store <8 x i16> %wide.load68, ptr %72, align 1, !tbaa !32
  %index.next = add nuw i64 %index, 16
  %73 = icmp eq i64 %index.next, %n.vec
  br i1 %73, label %middle.block, label %vector.body, !llvm.loop !33

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %65, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

74:                                               ; preds = %61
  call void @mdbx_assert_fail(ptr noundef %46, ptr noundef nonnull @.str.8, ptr noundef nonnull @__func__.node_add_branch, i32 noundef 67) #9
  unreachable

._crit_edge:                                      ; preds = %scalar.ph, %middle.block, %.preheader
  %75 = trunc i64 %51 to i16
  store i16 %75, ptr %48, align 1, !tbaa !5
  %76 = trunc i64 %55 to i16
  store i16 %76, ptr %52, align 1, !tbaa !5
  %77 = getelementptr inbounds i8, ptr %11, i64 20
  %78 = getelementptr inbounds [0 x i16], ptr %77, i64 0, i64 %1
  store i16 %76, ptr %78, align 1, !tbaa !32
  %79 = call ptr @page_node(ptr noundef nonnull %11, i64 noundef %1) #8
  call void @node_set_pgno(ptr noundef %79, i32 noundef %3)
  call void @node_set_flags(ptr noundef %79, i8 noundef zeroext 0)
  %80 = ptrtoint ptr %79 to i64
  %81 = add nsw i64 %80, 5
  %82 = inttoptr i64 %81 to ptr
  call void @poke_u8(ptr noundef %82, i8 noundef zeroext 0)
  call void @node_set_ks(ptr noundef %79, i64 noundef 0)
  %.not64 = icmp eq ptr %2, null
  br i1 %.not64, label %94, label %88, !prof !15

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %.05366 = phi i64 [ %83, %scalar.ph ], [ %.05366.ph, %scalar.ph.preheader ]
  %83 = add i64 %.05366, -1
  %84 = getelementptr inbounds [0 x i16], ptr %64, i64 0, i64 %83
  %85 = load i16, ptr %84, align 1, !tbaa !32
  %86 = getelementptr inbounds [0 x i16], ptr %64, i64 0, i64 %.05366
  store i16 %85, ptr %86, align 1, !tbaa !32
  %87 = icmp ugt i64 %83, %1
  br i1 %87, label %scalar.ph, label %._crit_edge, !llvm.loop !37

88:                                               ; preds = %._crit_edge
  %89 = getelementptr inbounds i8, ptr %2, i64 8
  %90 = load i64, ptr %89, align 8, !tbaa !17
  call void @node_set_ks(ptr noundef %79, i64 noundef %90)
  %91 = call ptr @node_key(ptr noundef %79) #8
  %92 = load ptr, ptr %2, align 8, !tbaa !38
  %93 = load i64, ptr %89, align 8, !tbaa !17
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %91, ptr align 1 %92, i64 %93, i1 false)
  br label %94

94:                                               ; preds = %._crit_edge, %88, %57
  %.0 = phi i32 [ -30786, %57 ], [ 0, %88 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 510, ptr nonnull %5) #7
  ret i32 %.0
}

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @node_set_pgno(ptr noalias noundef, i32 noundef) local_unnamed_addr #6

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @node_set_flags(ptr noalias noundef, i8 noundef zeroext) local_unnamed_addr #6

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @poke_u8(ptr noalias noundef, i8 noundef zeroext) local_unnamed_addr #6

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @node_set_ks(ptr noalias noundef, i64 noundef) local_unnamed_addr #6

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

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

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


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,LowerExpectIntrinsicPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass