; LLVM IR from erthink/libmdbx :: src (api-env)

; 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.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.1, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, i64, %struct.anon.2, %struct.anon.6, i8, ptr, ptr, ptr, %struct.anon.7, %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 }
%union.mdbx_atomic_uint32_t = type { i32 }
%struct.anon.1 = type { ptr, ptr, ptr, ptr }
%struct.anon.2 = type { i32, i32, i32, i32, i64, i8, i8, i8, i8, i32, i32, i8, i8, i8, %struct.anon.3, %union.anon.4 }
%struct.anon.3 = type { i16, i16, i16, i16 }
%union.anon.4 = type { i32 }
%struct.anon.6 = type { i64, i64, i64, i64, i64 }
%struct.anon.7 = type { i64 }
%struct.osal_ioring = type { i32, i32, i32, ptr, ptr, 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_uint64_t = type { i64 }

@__func__.mdbx_env_resurrect_after_fork = external hidden unnamed_addr constant [30 x i8], align 1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @log_if_error(i32 noundef, ptr noundef, i32 noundef) #1

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

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

declare i32 @env_open(ptr noundef, i32 noundef) #3

declare i32 @env_close(ptr noundef, i1 noundef zeroext) #3

; Function Attrs: cold nounwind optsize uwtable
define dso_local i32 @mdbx_env_resurrect_after_fork(ptr noundef %0) #4 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = icmp ne ptr %7, null
  %9 = xor i1 %8, true
  %10 = xor i1 %9, true
  %11 = xor i1 %10, true
  %12 = zext i1 %11 to i32
  %13 = sext i32 %12 to i64
  %14 = call i64 @llvm.expect.i64(i64 %13, i64 0)
  %15 = icmp ne i64 %14, 0
  br i1 %15, label %16, label %18

16:                                               ; preds = %1
  %17 = call i32 @log_if_error(i32 noundef 22, ptr noundef @__func__.mdbx_env_resurrect_after_fork, i32 noundef 540)
  store i32 %17, ptr %2, align 4
  br label %139

18:                                               ; preds = %1
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.MDBX_env, ptr %19, i32 0, i32 0
  %21 = load volatile i32, ptr %20, align 8, !tbaa !9
  %22 = icmp ne i32 %21, 445224513
  %23 = xor i1 %22, true
  %24 = xor i1 %23, true
  %25 = zext i1 %24 to i32
  %26 = sext i32 %25 to i64
  %27 = call i64 @llvm.expect.i64(i64 %26, i64 0)
  %28 = icmp ne i64 %27, 0
  br i1 %28, label %29, label %31

29:                                               ; preds = %18
  %30 = call i32 @log_if_error(i32 noundef -30420, ptr noundef @__func__.mdbx_env_resurrect_after_fork, i32 noundef 543)
  store i32 %30, ptr %2, align 4
  br label %139

31:                                               ; preds = %18
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.MDBX_env, ptr %32, i32 0, i32 1
  %34 = load i32, ptr %33, align 4, !tbaa !10
  %35 = and i32 %34, -2147483648
  %36 = icmp ne i32 %35, 0
  %37 = xor i1 %36, true
  %38 = xor i1 %37, true
  %39 = zext i1 %38 to i32
  %40 = sext i32 %39 to i64
  %41 = call i64 @llvm.expect.i64(i64 %40, i64 0)
  %42 = icmp ne i64 %41, 0
  br i1 %42, label %43, label %45

43:                                               ; preds = %31
  %44 = call i32 @log_if_error(i32 noundef -30795, ptr noundef @__func__.mdbx_env_resurrect_after_fork, i32 noundef 546)
  store i32 %44, ptr %2, align 4
  br label %139

45:                                               ; preds = %31
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.MDBX_env, ptr %46, i32 0, i32 1
  %48 = load i32, ptr %47, align 4, !tbaa !10
  %49 = and i32 %48, 536870912
  %50 = icmp eq i32 %49, 0
  %51 = xor i1 %50, true
  %52 = xor i1 %51, true
  %53 = zext i1 %52 to i32
  %54 = sext i32 %53 to i64
  %55 = call i64 @llvm.expect.i64(i64 %54, i64 0)
  %56 = icmp ne i64 %55, 0
  br i1 %56, label %57, label %58

57:                                               ; preds = %45
  store i32 0, ptr %2, align 4
  br label %139

58:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %59 = call i32 @osal_getpid()
  store i32 %59, ptr %4, align 4, !tbaa !23
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.MDBX_env, ptr %60, i32 0, i32 20
  %62 = load i32, ptr %61, align 4, !tbaa !24
  %63 = load i32, ptr %4, align 4, !tbaa !23
  %64 = icmp eq i32 %62, %63
  %65 = xor i1 %64, true
  %66 = xor i1 %65, true
  %67 = zext i1 %66 to i32
  %68 = sext i32 %67 to i64
  %69 = call i64 @llvm.expect.i64(i64 %68, i64 0)
  %70 = icmp ne i64 %69, 0
  br i1 %70, label %71, label %72

71:                                               ; preds = %58
  store i32 0, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %138

72:                                               ; preds = %58
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.MDBX_env, ptr %73, i32 0, i32 0
  %75 = call zeroext i1 @atomic_cas32(ptr noundef %74, i32 noundef 445224513, i32 noundef -445224514)
  br i1 %75, label %78, label %76

76:                                               ; preds = %72
  %77 = call i32 @log_if_error(i32 noundef -30420, ptr noundef @__func__.mdbx_env_resurrect_after_fork, i32 noundef 556)
  store i32 %77, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %138

78:                                               ; preds = %72
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.MDBX_env, ptr %79, i32 0, i32 39
  %81 = load ptr, ptr %80, align 8, !tbaa !25
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %88

83:                                               ; preds = %78
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.MDBX_env, ptr %84, i32 0, i32 24
  %86 = load ptr, ptr %85, align 8, !tbaa !26
  %87 = call i32 @txn_abort(ptr noundef %86)
  br label %88

88:                                               ; preds = %83, %78
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.MDBX_env, ptr %89, i32 0, i32 30
  store i32 0, ptr %90, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = call i32 @env_close(ptr noundef %91, i1 noundef zeroext true)
  store i32 %92, ptr %6, align 4, !tbaa !23
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.MDBX_env, ptr %93, i32 0, i32 0
  store volatile i32 445224513, ptr %94, align 8, !tbaa !9
  %95 = load i32, ptr %6, align 4, !tbaa !23
  %96 = icmp eq i32 %95, 0
  %97 = xor i1 %96, true
  %98 = xor i1 %97, true
  %99 = zext i1 %98 to i32
  %100 = sext i32 %99 to i64
  %101 = call i64 @llvm.expect.i64(i64 %100, i64 1)
  %102 = icmp ne i64 %101, 0
  br i1 %102, label %103, label %135

103:                                              ; preds = %88
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.MDBX_env, ptr %104, i32 0, i32 1
  %106 = load i32, ptr %105, align 4, !tbaa !10
  %107 = and i32 %106, 4194304
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %110

109:                                              ; preds = %103
  br label %113

110:                                              ; preds = %103
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = call i32 @env_open(ptr noundef %111, i32 noundef 0)
  br label %113

113:                                              ; preds = %110, %109
  %114 = phi i32 [ -30778, %109 ], [ %112, %110 ]
  store i32 %114, ptr %6, align 4, !tbaa !23
  %115 = load i32, ptr %6, align 4, !tbaa !23
  %116 = icmp ne i32 %115, 0
  br i1 %116, label %117, label %121

117:                                              ; preds = %113
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = call i32 @env_close(ptr noundef %118, i1 noundef zeroext false)
  %120 = icmp ne i32 %119, 0
  br label %121

121:                                              ; preds = %117, %113
  %122 = phi i1 [ false, %113 ], [ %120, %117 ]
  %123 = xor i1 %122, true
  %124 = xor i1 %123, true
  %125 = zext i1 %124 to i32
  %126 = sext i32 %125 to i64
  %127 = call i64 @llvm.expect.i64(i64 %126, i64 0)
  %128 = icmp ne i64 %127, 0
  br i1 %128, label %129, label %134

129:                                              ; preds = %121
  store i32 -30795, ptr %6, align 4, !tbaa !23
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.MDBX_env, ptr %130, i32 0, i32 1
  %132 = load i32, ptr %131, align 4, !tbaa !10
  %133 = or i32 %132, -2147483648
  store i32 %133, ptr %131, align 4, !tbaa !10
  br label %134

134:                                              ; preds = %129, %121
  br label %135

135:                                              ; preds = %134, %88
  %136 = load i32, ptr %6, align 4, !tbaa !23
  %137 = call i32 @log_if_error(i32 noundef %136, ptr noundef @__func__.mdbx_env_resurrect_after_fork, i32 noundef 570)
  store i32 %137, ptr %2, align 4
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %138

138:                                              ; preds = %135, %76, %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %139

139:                                              ; preds = %138, %57, %43, %29, %16
  %140 = load i32, ptr %2, align 4
  ret i32 %140
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @osal_getpid() #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden zeroext i1 @atomic_cas32(ptr noundef, i32 noundef, i32 noundef) #5

declare i32 @txn_abort(ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(none) }
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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { alwaysinline nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !12, i64 4}
!11 = !{!"MDBX_env", !7, i64 0, !12, i64 4, !12, i64 8, !13, i64 16, !12, i64 56, !12, i64 60, !13, i64 64, !6, i64 104, !15, i64 112, !15, i64 114, !15, i64 116, !15, i64 118, !15, i64 120, !15, i64 122, !7, i64 124, !7, i64 128, !7, i64 129, !15, i64 130, !12, i64 132, !12, i64 136, !12, i64 140, !12, i64 144, !16, i64 152, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !12, i64 224, !12, i64 228, !12, i64 232, !6, i64 240, !6, i64 248, !14, i64 256, !17, i64 264, !20, i64 320, !18, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !21, i64 392, !7, i64 400, !12, i64 440, !12, i64 444, !6, i64 448, !22, i64 456, !7, i64 496, !7, i64 536}
!12 = !{!"int", !7, i64 0}
!13 = !{!"osal_mmap", !7, i64 0, !12, i64 8, !14, i64 16, !14, i64 24, !14, i64 32}
!14 = !{!"long", !7, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !14, i64 16, !7, i64 24, !7, i64 25, !7, i64 26, !7, i64 27, !12, i64 28, !12, i64 32, !18, i64 36, !18, i64 37, !18, i64 38, !19, i64 40, !7, i64 48}
!18 = !{!"_Bool", !7, i64 0}
!19 = !{!"", !15, i64 0, !15, i64 2, !15, i64 4, !15, i64 6}
!20 = !{!"", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32}
!21 = !{!"", !14, i64 0}
!22 = !{!"osal_ioring", !12, i64 0, !12, i64 4, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!23 = !{!12, !12, i64 0}
!24 = !{!11, !12, i64 140}
!25 = !{!11, !6, i64 384}
!26 = !{!11, !6, i64 192}
!27 = !{!11, !12, i64 232}


; 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"

@__func__.mdbx_env_resurrect_after_fork = external hidden unnamed_addr constant [30 x i8], align 1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @log_if_error(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

declare i32 @env_open(ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @env_close(ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

; Function Attrs: cold nounwind optsize uwtable
define dso_local i32 @mdbx_env_resurrect_after_fork(ptr noundef %0) local_unnamed_addr #2 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %2, label %4, !prof !5

2:                                                ; preds = %1
  %3 = tail call i32 @log_if_error(i32 noundef 22, ptr noundef nonnull @__func__.mdbx_env_resurrect_after_fork, i32 noundef 540)
  br label %47

4:                                                ; preds = %1
  %5 = load volatile i32, ptr %0, align 8, !tbaa !6
  %.not21 = icmp eq i32 %5, 445224513
  br i1 %.not21, label %8, label %6, !prof !9

6:                                                ; preds = %4
  %7 = tail call i32 @log_if_error(i32 noundef -30420, ptr noundef nonnull @__func__.mdbx_env_resurrect_after_fork, i32 noundef 543)
  br label %47

8:                                                ; preds = %4
  %9 = getelementptr inbounds i8, ptr %0, i64 4
  %10 = load i32, ptr %9, align 4, !tbaa !10
  %.not22 = icmp sgt i32 %10, -1
  br i1 %.not22, label %13, label %11, !prof !9

11:                                               ; preds = %8
  %12 = tail call i32 @log_if_error(i32 noundef -30795, ptr noundef nonnull @__func__.mdbx_env_resurrect_after_fork, i32 noundef 546)
  br label %47

13:                                               ; preds = %8
  %14 = and i32 %10, 536870912
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %47, label %16, !prof !5

16:                                               ; preds = %13
  %17 = tail call i32 @osal_getpid()
  %18 = getelementptr inbounds i8, ptr %0, i64 140
  %19 = load i32, ptr %18, align 4, !tbaa !24
  %20 = icmp eq i32 %19, %17
  br i1 %20, label %47, label %21, !prof !5

21:                                               ; preds = %16
  %22 = tail call zeroext i1 @atomic_cas32(ptr noundef nonnull %0, i32 noundef 445224513, i32 noundef -445224514)
  br i1 %22, label %25, label %23

23:                                               ; preds = %21
  %24 = tail call i32 @log_if_error(i32 noundef -30420, ptr noundef nonnull @__func__.mdbx_env_resurrect_after_fork, i32 noundef 556)
  br label %47

25:                                               ; preds = %21
  %26 = getelementptr inbounds i8, ptr %0, i64 384
  %27 = load ptr, ptr %26, align 8, !tbaa !25
  %.not23 = icmp eq ptr %27, null
  br i1 %.not23, label %32, label %28

28:                                               ; preds = %25
  %29 = getelementptr inbounds i8, ptr %0, i64 192
  %30 = load ptr, ptr %29, align 8, !tbaa !26
  %31 = tail call i32 @txn_abort(ptr noundef %30) #4
  br label %32

32:                                               ; preds = %28, %25
  %33 = getelementptr inbounds i8, ptr %0, i64 232
  store i32 0, ptr %33, align 8, !tbaa !27
  %34 = tail call i32 @env_close(ptr noundef nonnull %0, i1 noundef zeroext true) #4
  store volatile i32 445224513, ptr %0, align 8, !tbaa !6
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %.critedge, !prof !9

36:                                               ; preds = %32
  %37 = load i32, ptr %9, align 4, !tbaa !10
  %38 = and i32 %37, 4194304
  %.not24 = icmp eq i32 %38, 0
  br i1 %.not24, label %39, label %.thread

39:                                               ; preds = %36
  %40 = tail call i32 @env_open(ptr noundef nonnull %0, i32 noundef 0) #4
  %.not25 = icmp eq i32 %40, 0
  br i1 %.not25, label %.critedge, label %.thread

.thread:                                          ; preds = %36, %39
  %41 = phi i32 [ %40, %39 ], [ -30778, %36 ]
  %42 = tail call i32 @env_close(ptr noundef nonnull %0, i1 noundef zeroext false) #4
  %.not27 = icmp eq i32 %42, 0
  br i1 %.not27, label %.critedge, label %43, !prof !9

43:                                               ; preds = %.thread
  %44 = load i32, ptr %9, align 4, !tbaa !10
  %45 = or i32 %44, -2147483648
  store i32 %45, ptr %9, align 4, !tbaa !10
  br label %.critedge

.critedge:                                        ; preds = %39, %.thread, %43, %32
  %.0 = phi i32 [ -30795, %43 ], [ %41, %.thread ], [ %34, %32 ], [ 0, %39 ]
  %46 = tail call i32 @log_if_error(i32 noundef %.0, ptr noundef nonnull @__func__.mdbx_env_resurrect_after_fork, i32 noundef 570)
  br label %47

47:                                               ; preds = %23, %.critedge, %16, %13, %11, %6, %2
  %.1 = phi i32 [ %3, %2 ], [ %7, %6 ], [ %12, %11 ], [ 0, %13 ], [ %46, %.critedge ], [ %24, %23 ], [ 0, %16 ]
  ret i32 %.1
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @osal_getpid() local_unnamed_addr #0

; Function Attrs: alwaysinline nounwind uwtable
declare hidden zeroext i1 @atomic_cas32(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare i32 @txn_abort(ptr noundef) local_unnamed_addr #1

attributes #0 = { 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 #1 = { "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 = { alwaysinline nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!10 = !{!11, !12, i64 4}
!11 = !{!"MDBX_env", !7, i64 0, !12, i64 4, !12, i64 8, !13, i64 16, !12, i64 56, !12, i64 60, !13, i64 64, !15, i64 104, !16, i64 112, !16, i64 114, !16, i64 116, !16, i64 118, !16, i64 120, !16, i64 122, !7, i64 124, !7, i64 128, !7, i64 129, !16, i64 130, !12, i64 132, !12, i64 136, !12, i64 140, !12, i64 144, !17, i64 152, !15, i64 184, !15, i64 192, !15, i64 200, !15, i64 208, !15, i64 216, !12, i64 224, !12, i64 228, !12, i64 232, !15, i64 240, !15, i64 248, !14, i64 256, !18, i64 264, !21, i64 320, !19, i64 360, !15, i64 368, !15, i64 376, !15, i64 384, !22, i64 392, !7, i64 400, !12, i64 440, !12, i64 444, !15, i64 448, !23, i64 456, !7, i64 496, !7, i64 536}
!12 = !{!"int", !7, i64 0}
!13 = !{!"osal_mmap", !7, i64 0, !12, i64 8, !14, i64 16, !14, i64 24, !14, i64 32}
!14 = !{!"long", !7, i64 0}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!"", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24}
!18 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !14, i64 16, !7, i64 24, !7, i64 25, !7, i64 26, !7, i64 27, !12, i64 28, !12, i64 32, !19, i64 36, !19, i64 37, !19, i64 38, !20, i64 40, !7, i64 48}
!19 = !{!"_Bool", !7, i64 0}
!20 = !{!"", !16, i64 0, !16, i64 2, !16, i64 4, !16, i64 6}
!21 = !{!"", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32}
!22 = !{!"", !14, i64 0}
!23 = !{!"osal_ioring", !12, i64 0, !12, i64 4, !12, i64 8, !15, i64 16, !15, i64 24, !15, i64 32}
!24 = !{!11, !12, i64 140}
!25 = !{!11, !15, i64 384}
!26 = !{!11, !15, i64 192}
!27 = !{!11, !12, i64 232}


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