; LLVM IR from XiaoMi/mace :: mace/rpcmems/dmabufheap/dma_buf_heap_wrapper.ll (ZN4mace13DmaBufWrapperC2Ev)

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

%"class.mace::port::Logger" = type { %"class.std::__cxx11::basic_ostringstream.base", ptr, i32, i32, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_ostringstream.base" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.mace::DmaBufWrapper" = type { i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4mace13DmaBufWrapperC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.mace::port::Logger", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %6 = load ptr, ptr %2, align 8
  %7 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 0
  store i8 0, ptr %7, align 8, !tbaa !9
  %8 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 1
  store ptr null, ptr %8, align 8, !tbaa !12
  %9 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 2
  store ptr null, ptr %9, align 8, !tbaa !13
  %10 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 3
  store ptr null, ptr %10, align 8, !tbaa !14
  %11 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 4
  store ptr null, ptr %11, align 8, !tbaa !15
  %12 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 5
  store ptr null, ptr %12, align 8, !tbaa !16
  %13 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 6
  store ptr null, ptr %13, align 8, !tbaa !17
  %14 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 7
  store ptr null, ptr %14, align 8, !tbaa !18
  %15 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 8
  store ptr null, ptr %15, align 8, !tbaa !19
  %16 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 9
  store ptr null, ptr %16, align 8, !tbaa !20
  %17 = call ptr @dlopen(ptr noundef @.str, i32 noundef 1) #5
  %18 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 1
  store ptr %17, ptr %18, align 8, !tbaa !12
  %19 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 1
  %20 = load ptr, ptr %19, align 8, !tbaa !12
  %21 = icmp ne ptr %20, null
  br i1 %21, label %29, label %22

22:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 392, ptr %3) #5
  call void @_ZN4mace4port6LoggerC1EPKciNS_8LogLevelE(ptr noundef nonnull align 8 dereferenceable(128) %3, ptr noundef @.str.1, i32 noundef 43, i32 noundef 2)
  %23 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN4mace4port6LoggerEA29_cEOT_S5_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %3, ptr noundef nonnull align 1 dereferenceable(29) @.str.2)
          to label %24 unwind label %25

24:                                               ; preds = %22
  call void @_ZN4mace4port6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %3) #5
  call void @llvm.lifetime.end.p0(i64 392, ptr %3) #5
  br label %94

25:                                               ; preds = %22
  %26 = landingpad { ptr, i32 }
          cleanup
  %27 = extractvalue { ptr, i32 } %26, 0
  store ptr %27, ptr %4, align 8
  %28 = extractvalue { ptr, i32 } %26, 1
  store i32 %28, ptr %5, align 4
  call void @_ZN4mace4port6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %3) #5
  call void @llvm.lifetime.end.p0(i64 392, ptr %3) #5
  br label %95

29:                                               ; preds = %1
  %30 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 1
  %31 = load ptr, ptr %30, align 8, !tbaa !12
  %32 = call ptr @dlsym(ptr noundef %31, ptr noundef @.str.3) #5
  %33 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 2
  store ptr %32, ptr %33, align 8, !tbaa !13
  %34 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 2
  %35 = load ptr, ptr %34, align 8, !tbaa !13
  %36 = icmp eq ptr %35, null
  br i1 %36, label %37, label %38

37:                                               ; preds = %29
  br label %94

38:                                               ; preds = %29
  %39 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 1
  %40 = load ptr, ptr %39, align 8, !tbaa !12
  %41 = call ptr @dlsym(ptr noundef %40, ptr noundef @.str.4) #5
  %42 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 3
  store ptr %41, ptr %42, align 8, !tbaa !14
  %43 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 3
  %44 = load ptr, ptr %43, align 8, !tbaa !14
  %45 = icmp eq ptr %44, null
  br i1 %45, label %46, label %47

46:                                               ; preds = %38
  br label %94

47:                                               ; preds = %38
  %48 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 1
  %49 = load ptr, ptr %48, align 8, !tbaa !12
  %50 = call ptr @dlsym(ptr noundef %49, ptr noundef @.str.5) #5
  %51 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 4
  store ptr %50, ptr %51, align 8, !tbaa !15
  %52 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 4
  %53 = load ptr, ptr %52, align 8, !tbaa !15
  %54 = icmp eq ptr %53, null
  br i1 %54, label %55, label %56

55:                                               ; preds = %47
  br label %94

56:                                               ; preds = %47
  %57 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 1
  %58 = load ptr, ptr %57, align 8, !tbaa !12
  %59 = call ptr @dlsym(ptr noundef %58, ptr noundef @.str.6) #5
  %60 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 5
  store ptr %59, ptr %60, align 8, !tbaa !16
  %61 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 5
  %62 = load ptr, ptr %61, align 8, !tbaa !16
  %63 = icmp eq ptr %62, null
  br i1 %63, label %64, label %65

64:                                               ; preds = %56
  br label %94

65:                                               ; preds = %56
  %66 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 1
  %67 = load ptr, ptr %66, align 8, !tbaa !12
  %68 = call ptr @dlsym(ptr noundef %67, ptr noundef @.str.7) #5
  %69 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 6
  store ptr %68, ptr %69, align 8, !tbaa !17
  %70 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 6
  %71 = load ptr, ptr %70, align 8, !tbaa !17
  %72 = icmp eq ptr %71, null
  br i1 %72, label %73, label %74

73:                                               ; preds = %65
  br label %94

74:                                               ; preds = %65
  %75 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 1
  %76 = load ptr, ptr %75, align 8, !tbaa !12
  %77 = call ptr @dlsym(ptr noundef %76, ptr noundef @.str.8) #5
  %78 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 7
  store ptr %77, ptr %78, align 8, !tbaa !18
  %79 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 7
  %80 = load ptr, ptr %79, align 8, !tbaa !18
  %81 = icmp eq ptr %80, null
  br i1 %81, label %82, label %83

82:                                               ; preds = %74
  br label %94

83:                                               ; preds = %74
  %84 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 1
  %85 = load ptr, ptr %84, align 8, !tbaa !12
  %86 = call ptr @dlsym(ptr noundef %85, ptr noundef @.str.9) #5
  %87 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 8
  store ptr %86, ptr %87, align 8, !tbaa !19
  %88 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 8
  %89 = load ptr, ptr %88, align 8, !tbaa !19
  %90 = icmp eq ptr %89, null
  br i1 %90, label %91, label %92

91:                                               ; preds = %83
  br label %94

92:                                               ; preds = %83
  %93 = getelementptr inbounds %"class.mace::DmaBufWrapper", ptr %6, i32 0, i32 0
  store i8 1, ptr %93, align 8, !tbaa !9
  br label %94

94:                                               ; preds = %92, %91, %82, %73, %64, %55, %46, %37, %24
  ret void

95:                                               ; preds = %25
  %96 = load ptr, ptr %4, align 8
  %97 = load i32, ptr %5, align 4
  %98 = insertvalue { ptr, i32 } poison, ptr %96, 0
  %99 = insertvalue { ptr, i32 } %98, i32 %97, 1
  resume { ptr, i32 } %99
}

; Function Attrs: nounwind
declare ptr @dlopen(ptr noundef, i32 noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN4mace4port6LoggerEA29_cEOT_S5_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 1 dereferenceable(29)) #2

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

declare void @_ZN4mace4port6LoggerC1EPKciNS_8LogLevelE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, i32 noundef, i32 noundef) unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN4mace4port6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #1

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

; Function Attrs: nounwind
declare ptr @dlsym(ptr noundef, ptr noundef) #1

attributes #0 = { mustprogress 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 = { 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 #2 = { inlinehint mustprogress 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN4mace13DmaBufWrapperE", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72}
!11 = !{!"bool", !7, i64 0}
!12 = !{!10, !6, i64 8}
!13 = !{!10, !6, i64 16}
!14 = !{!10, !6, i64 24}
!15 = !{!10, !6, i64 32}
!16 = !{!10, !6, i64 40}
!17 = !{!10, !6, i64 48}
!18 = !{!10, !6, i64 56}
!19 = !{!10, !6, i64 64}
!20 = !{!10, !6, i64 72}


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

%"class.mace::port::Logger" = type { %"class.std::__cxx11::basic_ostringstream.base", ptr, i32, i32, %"class.std::basic_ios" }
%"class.std::__cxx11::basic_ostringstream.base" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }

@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4mace13DmaBufWrapperC2Ev(ptr nocapture noundef nonnull align 8 dereferenceable(80) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.mace::port::Logger", align 8
  store i8 0, ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = getelementptr inbounds i8, ptr %0, i64 32
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  %7 = getelementptr inbounds i8, ptr %0, i64 48
  %8 = getelementptr inbounds i8, ptr %0, i64 56
  %9 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(72) %3, i8 0, i64 72, i1 false)
  %10 = tail call ptr @dlopen(ptr noundef nonnull @.str, i32 noundef 1) #6
  store ptr %10, ptr %3, align 8, !tbaa !11
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %11, label %16

11:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %2) #6
  call void @_ZN4mace4port6LoggerC1EPKciNS_8LogLevelE(ptr noundef nonnull align 8 dereferenceable(128) %2, ptr noundef nonnull @.str.1, i32 noundef 43, i32 noundef 2)
  %12 = invoke noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN4mace4port6LoggerEA29_cEOT_S5_RKT0_(ptr noundef nonnull align 8 dereferenceable(128) %2, ptr noundef nonnull align 1 dereferenceable(29) @.str.2)
          to label %13 unwind label %14

13:                                               ; preds = %11
  call void @_ZN4mace4port6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %2) #6
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %2) #6
  br label %45

14:                                               ; preds = %11
  %15 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4mace4port6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(128) %2) #6
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %2) #6
  resume { ptr, i32 } %15

16:                                               ; preds = %1
  %17 = getelementptr inbounds i8, ptr %0, i64 16
  %18 = tail call ptr @dlsym(ptr noundef nonnull %10, ptr noundef nonnull @.str.3) #6
  store ptr %18, ptr %17, align 8, !tbaa !12
  %19 = icmp eq ptr %18, null
  br i1 %19, label %45, label %20

20:                                               ; preds = %16
  %21 = load ptr, ptr %3, align 8, !tbaa !11
  %22 = tail call ptr @dlsym(ptr noundef %21, ptr noundef nonnull @.str.4) #6
  store ptr %22, ptr %4, align 8, !tbaa !13
  %23 = icmp eq ptr %22, null
  br i1 %23, label %45, label %24

24:                                               ; preds = %20
  %25 = load ptr, ptr %3, align 8, !tbaa !11
  %26 = tail call ptr @dlsym(ptr noundef %25, ptr noundef nonnull @.str.5) #6
  store ptr %26, ptr %5, align 8, !tbaa !14
  %27 = icmp eq ptr %26, null
  br i1 %27, label %45, label %28

28:                                               ; preds = %24
  %29 = load ptr, ptr %3, align 8, !tbaa !11
  %30 = tail call ptr @dlsym(ptr noundef %29, ptr noundef nonnull @.str.6) #6
  store ptr %30, ptr %6, align 8, !tbaa !15
  %31 = icmp eq ptr %30, null
  br i1 %31, label %45, label %32

32:                                               ; preds = %28
  %33 = load ptr, ptr %3, align 8, !tbaa !11
  %34 = tail call ptr @dlsym(ptr noundef %33, ptr noundef nonnull @.str.7) #6
  store ptr %34, ptr %7, align 8, !tbaa !16
  %35 = icmp eq ptr %34, null
  br i1 %35, label %45, label %36

36:                                               ; preds = %32
  %37 = load ptr, ptr %3, align 8, !tbaa !11
  %38 = tail call ptr @dlsym(ptr noundef %37, ptr noundef nonnull @.str.8) #6
  store ptr %38, ptr %8, align 8, !tbaa !17
  %39 = icmp eq ptr %38, null
  br i1 %39, label %45, label %40

40:                                               ; preds = %36
  %41 = load ptr, ptr %3, align 8, !tbaa !11
  %42 = tail call ptr @dlsym(ptr noundef %41, ptr noundef nonnull @.str.9) #6
  store ptr %42, ptr %9, align 8, !tbaa !18
  %43 = icmp eq ptr %42, null
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  store i8 1, ptr %0, align 8, !tbaa !5
  br label %45

45:                                               ; preds = %40, %36, %32, %28, %24, %20, %16, %44, %13
  ret void
}

; Function Attrs: nounwind
declare ptr @dlopen(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(128) ptr @_ZStlsIN4mace4port6LoggerEA29_cEOT_S5_RKT0_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef nonnull align 1 dereferenceable(29)) local_unnamed_addr #2

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

declare void @_ZN4mace4port6LoggerC1EPKciNS_8LogLevelE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, i32 noundef, i32 noundef) unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN4mace4port6LoggerD1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #1

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

; Function Attrs: nounwind
declare ptr @dlsym(ptr noundef, ptr noundef) local_unnamed_addr #1

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

attributes #0 = { mustprogress 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 = { 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 #2 = { inlinehint mustprogress 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !7, i64 0}
!6 = !{!"_ZTSN4mace13DmaBufWrapperE", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!6, !10, i64 16}
!13 = !{!6, !10, i64 24}
!14 = !{!6, !10, i64 32}
!15 = !{!6, !10, i64 40}
!16 = !{!6, !10, i64 48}
!17 = !{!6, !10, i64 56}
!18 = !{!6, !10, i64 64}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass