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

; 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.9 }
%struct.anon.9 = 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 }
%union.mdbx_atomic_uint32_t = type { i32 }
%struct.rthc_entry = type { 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, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, i64, %struct.anon.0, %struct.anon.4, i8, ptr, ptr, ptr, %struct.anon.5, %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, i32, i64, i64, i64 }
%union.anon = type { ptr }
%struct.anon = type { ptr, ptr, ptr, ptr }
%struct.anon.0 = type { i32, i32, i32, i32, i64, i8, i8, i8, i8, i32, i32, i8, i8, i8, %struct.anon.1, %union.anon.2 }
%struct.anon.1 = type { i16, i16, i16, i16 }
%union.anon.2 = type { i32 }
%struct.anon.4 = type { i64, i64, i64, i64, i64 }
%struct.anon.5 = type { i64 }
%struct.osal_ioring = type { i32, i32, i32, ptr, ptr, ptr }
%union.mdbx_atomic_uint64_t = type { i64 }

@rthc_count = external hidden global i32, align 4
@rthc_table = external hidden global ptr, align 8
@globals = external global %struct.libmdbx_globals, align 8
@rthc_pending = external hidden global %union.mdbx_atomic_uint32_t, align 4
@rthc_limit = external hidden global i32, align 4
@rthc_table_static = external hidden global [1 x %struct.rthc_entry], align 8
@__func__.rthc_afterfork = external hidden unnamed_addr constant [15 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [14 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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @__Wpedantic_format_voidptr(ptr noundef) #3

; Function Attrs: cold nounwind optsize uwtable
declare hidden i32 @rthc_drown(ptr noundef) #4

; Function Attrs: nounwind
declare void @free(ptr noundef) #5

; Function Attrs: cold nounwind optsize uwtable
define dso_local void @rthc_afterfork() #4 {
  %1 = alloca i64, align 8
  %2 = alloca ptr, align 8
  br label %3

3:                                                ; preds = %0
  %4 = load i8, ptr getelementptr inbounds (%struct.libmdbx_globals, ptr @globals, i32 0, i32 5), align 2, !tbaa !5
  %5 = zext i8 %4 to i32
  %6 = icmp sle i32 3, %5
  %7 = xor i1 %6, true
  %8 = xor i1 %7, true
  %9 = zext i1 %8 to i32
  %10 = sext i32 %9 to i64
  %11 = call i64 @llvm.expect.i64(i64 %10, i64 0)
  %12 = icmp ne i64 %11, 0
  br i1 %12, label %13, label %15

13:                                               ; preds = %3
  %14 = load i32, ptr @rthc_count, align 4, !tbaa !13
  call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 3, ptr noundef @__func__.rthc_afterfork, i32 noundef 432, ptr noundef @.str.30, i32 noundef %14)
  br label %15

15:                                               ; preds = %13, %3
  br label %16

16:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #7
  store i64 0, ptr %1, align 8, !tbaa !14
  br label %17

17:                                               ; preds = %71, %16
  %18 = load i64, ptr %1, align 8, !tbaa !14
  %19 = load i32, ptr @rthc_count, align 4, !tbaa !13
  %20 = zext i32 %19 to i64
  %21 = icmp ult i64 %18, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #7
  br label %74

23:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  %24 = load ptr, ptr @rthc_table, align 8, !tbaa !15
  %25 = load i64, ptr %1, align 8, !tbaa !14
  %26 = getelementptr inbounds %struct.rthc_entry, ptr %24, i64 %25
  %27 = getelementptr inbounds %struct.rthc_entry, ptr %26, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8, !tbaa !16
  store ptr %28, ptr %2, align 8, !tbaa !15
  br label %29

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

39:                                               ; preds = %29
  %40 = load ptr, ptr %2, align 8, !tbaa !15
  %41 = call ptr @__Wpedantic_format_voidptr(ptr noundef %40)
  call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 3, ptr noundef @__func__.rthc_afterfork, i32 noundef 435, ptr noundef @.str.31, ptr noundef %41)
  br label %42

42:                                               ; preds = %39, %29
  br label %43

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43
  %45 = load ptr, ptr %2, align 8, !tbaa !15
  %46 = getelementptr inbounds %struct.MDBX_env, ptr %45, i32 0, i32 6
  %47 = getelementptr inbounds %struct.osal_mmap, ptr %46, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8, !tbaa !18
  %49 = icmp ne ptr %48, null
  br i1 %49, label %50, label %54

50:                                               ; preds = %44
  %51 = load ptr, ptr %2, align 8, !tbaa !15
  %52 = getelementptr inbounds %struct.MDBX_env, ptr %51, i32 0, i32 6
  %53 = call i32 @osal_munmap(ptr noundef %52)
  br label %54

54:                                               ; preds = %50, %44
  %55 = load ptr, ptr %2, align 8, !tbaa !15
  %56 = getelementptr inbounds %struct.MDBX_env, ptr %55, i32 0, i32 3
  %57 = getelementptr inbounds %struct.osal_mmap, ptr %56, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8, !tbaa !18
  %59 = icmp ne ptr %58, null
  br i1 %59, label %60, label %64

60:                                               ; preds = %54
  %61 = load ptr, ptr %2, align 8, !tbaa !15
  %62 = getelementptr inbounds %struct.MDBX_env, ptr %61, i32 0, i32 3
  %63 = call i32 @osal_munmap(ptr noundef %62)
  br label %64

64:                                               ; preds = %60, %54
  %65 = load ptr, ptr %2, align 8, !tbaa !15
  %66 = call ptr @lckless_stub(ptr noundef %65) #8
  %67 = load ptr, ptr %2, align 8, !tbaa !15
  %68 = getelementptr inbounds %struct.MDBX_env, ptr %67, i32 0, i32 7
  store ptr %66, ptr %68, align 8, !tbaa !19
  %69 = load ptr, ptr %2, align 8, !tbaa !15
  %70 = call i32 @rthc_drown(ptr noundef %69) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  br label %71

71:                                               ; preds = %64
  %72 = load i64, ptr %1, align 8, !tbaa !14
  %73 = add i64 %72, 1
  store i64 %73, ptr %1, align 8, !tbaa !14
  br label %17, !llvm.loop !29

74:                                               ; preds = %22
  %75 = load ptr, ptr @rthc_table, align 8, !tbaa !15
  %76 = icmp ne ptr %75, @rthc_table_static
  br i1 %76, label %77, label %79

77:                                               ; preds = %74
  %78 = load ptr, ptr @rthc_table, align 8, !tbaa !15
  call void @free(ptr noundef %78) #7
  br label %79

79:                                               ; preds = %77, %74
  store i32 0, ptr @rthc_count, align 4, !tbaa !13
  store ptr @rthc_table_static, ptr @rthc_table, align 8, !tbaa !15
  store i32 1, ptr @rthc_limit, align 4, !tbaa !13
  store volatile i32 0, ptr @rthc_pending, align 4, !tbaa !18
  ret void
}

declare i32 @osal_munmap(ptr noundef) #2

; Function Attrs: inlinehint nounwind willreturn memory(none) uwtable
declare hidden ptr @lckless_stub(ptr noundef) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(none) }
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 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 = { cold nounwind optsize 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 = { nounwind "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 willreturn memory(none) 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(none) }
attributes #9 = { cold }

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

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


; 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.9 }
%struct.anon.9 = 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 }
%union.mdbx_atomic_uint32_t = type { i32 }
%struct.rthc_entry = type { ptr }

@rthc_count = external hidden local_unnamed_addr global i32, align 4
@rthc_table = external hidden local_unnamed_addr global ptr, align 8
@globals = external local_unnamed_addr global %struct.libmdbx_globals, align 8
@rthc_pending = external hidden global %union.mdbx_atomic_uint32_t, align 4
@rthc_limit = external hidden local_unnamed_addr global i32, align 4
@rthc_table_static = external hidden global [1 x %struct.rthc_entry], align 8
@__func__.rthc_afterfork = external hidden unnamed_addr constant [15 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [14 x i8], align 1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @__Wpedantic_format_voidptr(ptr noundef) local_unnamed_addr #1

; Function Attrs: cold nounwind optsize uwtable
declare hidden i32 @rthc_drown(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: cold nounwind optsize uwtable
define dso_local void @rthc_afterfork() local_unnamed_addr #2 {
  %1 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 26), align 2, !tbaa !5
  %2 = icmp ugt i8 %1, 2
  br i1 %2, label %3, label %5, !prof !13

3:                                                ; preds = %0
  %4 = load i32, ptr @rthc_count, align 4, !tbaa !14
  tail call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 3, ptr noundef nonnull @__func__.rthc_afterfork, i32 noundef 432, ptr noundef nonnull @.str.30, i32 noundef %4) #5
  br label %5

5:                                                ; preds = %0, %3
  %6 = load i32, ptr @rthc_count, align 4, !tbaa !14
  %.not14 = icmp eq i32 %6, 0
  br i1 %.not14, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %25, %5
  %7 = load ptr, ptr @rthc_table, align 8, !tbaa !15
  %.not = icmp eq ptr %7, @rthc_table_static
  br i1 %.not, label %34, label %33

.lr.ph:                                           ; preds = %5, %25
  %.013 = phi i64 [ %29, %25 ], [ 0, %5 ]
  %8 = load ptr, ptr @rthc_table, align 8, !tbaa !15
  %9 = getelementptr inbounds %struct.rthc_entry, ptr %8, i64 %.013
  %10 = load ptr, ptr %9, align 8, !tbaa !16
  %11 = load i8, ptr getelementptr inbounds (i8, ptr @globals, i64 26), align 2, !tbaa !5
  %12 = icmp ugt i8 %11, 2
  br i1 %12, label %13, label %15, !prof !13

13:                                               ; preds = %.lr.ph
  %14 = tail call ptr @__Wpedantic_format_voidptr(ptr noundef %10)
  tail call void (i32, ptr, i32, ptr, ...) @debug_log(i32 noundef 3, ptr noundef nonnull @__func__.rthc_afterfork, i32 noundef 435, ptr noundef nonnull @.str.31, ptr noundef %14) #5
  br label %15

15:                                               ; preds = %13, %.lr.ph
  %16 = getelementptr inbounds i8, ptr %10, i64 64
  %17 = load ptr, ptr %16, align 8, !tbaa !18
  %.not11 = icmp eq ptr %17, null
  br i1 %.not11, label %20, label %18

18:                                               ; preds = %15
  %19 = tail call i32 @osal_munmap(ptr noundef nonnull %16) #5
  br label %20

20:                                               ; preds = %18, %15
  %21 = getelementptr inbounds i8, ptr %10, i64 16
  %22 = load ptr, ptr %21, align 8, !tbaa !18
  %.not12 = icmp eq ptr %22, null
  br i1 %.not12, label %25, label %23

23:                                               ; preds = %20
  %24 = tail call i32 @osal_munmap(ptr noundef nonnull %21) #5
  br label %25

25:                                               ; preds = %23, %20
  %26 = tail call ptr @lckless_stub(ptr noundef nonnull %10) #6
  %27 = getelementptr inbounds i8, ptr %10, i64 104
  store ptr %26, ptr %27, align 8, !tbaa !19
  %28 = tail call i32 @rthc_drown(ptr noundef nonnull %10) #7
  %29 = add nuw nsw i64 %.013, 1
  %30 = load i32, ptr @rthc_count, align 4, !tbaa !14
  %31 = zext i32 %30 to i64
  %32 = icmp ult i64 %29, %31
  br i1 %32, label %.lr.ph, label %._crit_edge, !llvm.loop !29

33:                                               ; preds = %._crit_edge
  tail call void @free(ptr noundef %7) #5
  br label %34

34:                                               ; preds = %33, %._crit_edge
  store i32 0, ptr @rthc_count, align 4, !tbaa !14
  store ptr @rthc_table_static, ptr @rthc_table, align 8, !tbaa !15
  store i32 1, ptr @rthc_limit, align 4, !tbaa !14
  store volatile i32 0, ptr @rthc_pending, align 4, !tbaa !18
  ret void
}

declare i32 @osal_munmap(ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare hidden ptr @lckless_stub(ptr noundef) local_unnamed_addr #4

attributes #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 = { 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 #2 = { cold nounwind optsize 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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 mustprogress nofree nosync nounwind willreturn memory(none) 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 = { nounwind }
attributes #6 = { nounwind willreturn memory(none) }
attributes #7 = { cold }

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

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


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