; LLVM IR from Razakhel/RaZ :: extern/openxr/src/loader (loader_logger)

; 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.XrLoaderLogMessengerCallbackData = type { ptr, ptr, ptr, i8, ptr, i8, ptr }
%struct.NamesAndLabels = type { %"class.std::vector", %"class.std::vector.59", %"class.std::vector.64" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<XrSdkLogObjectInfo, std::allocator<XrSdkLogObjectInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<XrSdkLogObjectInfo, std::allocator<XrSdkLogObjectInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<XrSdkLogObjectInfo, std::allocator<XrSdkLogObjectInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<XrSdkLogObjectInfo, std::allocator<XrSdkLogObjectInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.59" = type { %"struct.std::_Vector_base.60" }
%"struct.std::_Vector_base.60" = type { %"struct.std::_Vector_base<XrDebugUtilsObjectNameInfoEXT, std::allocator<XrDebugUtilsObjectNameInfoEXT>>::_Vector_impl" }
%"struct.std::_Vector_base<XrDebugUtilsObjectNameInfoEXT, std::allocator<XrDebugUtilsObjectNameInfoEXT>>::_Vector_impl" = type { %"struct.std::_Vector_base<XrDebugUtilsObjectNameInfoEXT, std::allocator<XrDebugUtilsObjectNameInfoEXT>>::_Vector_impl_data" }
%"struct.std::_Vector_base<XrDebugUtilsObjectNameInfoEXT, std::allocator<XrDebugUtilsObjectNameInfoEXT>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.64" = type { %"struct.std::_Vector_base.65" }
%"struct.std::_Vector_base.65" = type { %"struct.std::_Vector_base<XrDebugUtilsLabelEXT, std::allocator<XrDebugUtilsLabelEXT>>::_Vector_impl" }
%"struct.std::_Vector_base<XrDebugUtilsLabelEXT, std::allocator<XrDebugUtilsLabelEXT>>::_Vector_impl" = type { %"struct.std::_Vector_base<XrDebugUtilsLabelEXT, std::allocator<XrDebugUtilsLabelEXT>>::_Vector_impl_data" }
%"struct.std::_Vector_base<XrDebugUtilsLabelEXT, std::allocator<XrDebugUtilsLabelEXT>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::shared_lock" = type <{ ptr, i8, [7 x i8] }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.LoaderLogger = type { %"class.std::shared_timed_mutex", %"class.std::vector.3", %"class.std::unordered_map", %class.DebugUtilsData }
%"class.std::shared_timed_mutex" = type { %"class.std::__shared_mutex_pthread" }
%"class.std::__shared_mutex_pthread" = type { %union.pthread_rwlock_t }
%union.pthread_rwlock_t = type { %struct.__pthread_rwlock_arch_t }
%struct.__pthread_rwlock_arch_t = type { i32, i32, i32, i32, i32, i32, i32, i32, i8, [7 x i8], i64, i32 }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<std::unique_ptr<LoaderLogRecorder>, std::allocator<std::unique_ptr<LoaderLogRecorder>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<LoaderLogRecorder>, std::allocator<std::unique_ptr<LoaderLogRecorder>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<LoaderLogRecorder>, std::allocator<std::unique_ptr<LoaderLogRecorder>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<LoaderLogRecorder>, std::allocator<std::unique_ptr<LoaderLogRecorder>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%class.DebugUtilsData = type { %"class.std::unordered_map.13", %class.ObjectInfoCollection }
%"class.std::unordered_map.13" = type { %"class.std::_Hashtable.14" }
%"class.std::_Hashtable.14" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%class.ObjectInfoCollection = type { %"class.std::vector" }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI18XrSdkLogObjectInfoSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN12LoaderLogger10LogMessageEmmRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_RKSt6vectorI18XrSdkLogObjectInfoSaIS9_EE(ptr noundef nonnull align 8 dereferenceable(216) %0, i64 noundef %1, i64 noundef %2, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(24) %6) #3 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %struct.XrLoaderLogMessengerCallbackData, align 8
  %16 = alloca %struct.NamesAndLabels, align 8
  %17 = alloca %"class.std::vector", align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::shared_lock", align 8
  %21 = alloca i8, align 1
  %22 = alloca ptr, align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca ptr, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i64 %1, ptr %9, align 8, !tbaa !9
  store i64 %2, ptr %10, align 8, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  %26 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr %15) #6
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 56, i1 false)
  %27 = load ptr, ptr %11, align 8, !tbaa !5
  %28 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %27) #6
  %29 = getelementptr inbounds %struct.XrLoaderLogMessengerCallbackData, ptr %15, i32 0, i32 0
  store ptr %28, ptr %29, align 8, !tbaa !11
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  %31 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %30) #6
  %32 = getelementptr inbounds %struct.XrLoaderLogMessengerCallbackData, ptr %15, i32 0, i32 1
  store ptr %31, ptr %32, align 8, !tbaa !13
  %33 = load ptr, ptr %13, align 8, !tbaa !5
  %34 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %33) #6
  %35 = getelementptr inbounds %struct.XrLoaderLogMessengerCallbackData, ptr %15, i32 0, i32 2
  store ptr %34, ptr %35, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 72, ptr %16) #6
  %36 = getelementptr inbounds %class.LoaderLogger, ptr %26, i32 0, i32 3
  %37 = load ptr, ptr %14, align 8, !tbaa !5
  call void @_ZNSt6vectorI18XrSdkLogObjectInfoSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %37)
  invoke void @_ZNK14DebugUtilsData22PopulateNamesAndLabelsESt6vectorI18XrSdkLogObjectInfoSaIS1_EE(ptr dead_on_unwind writable sret(%struct.NamesAndLabels) align 8 %16, ptr noundef nonnull align 8 dereferenceable(80) %36, ptr noundef %17)
          to label %38 unwind label %77

38:                                               ; preds = %7
  call void @_ZNSt6vectorI18XrSdkLogObjectInfoSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  %39 = getelementptr inbounds %struct.NamesAndLabels, ptr %16, i32 0, i32 0
  %40 = call noundef zeroext i1 @_ZNKSt6vectorI18XrSdkLogObjectInfoSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %39) #6
  br i1 %40, label %41, label %42

41:                                               ; preds = %38
  br label %45

42:                                               ; preds = %38
  %43 = getelementptr inbounds %struct.NamesAndLabels, ptr %16, i32 0, i32 0
  %44 = call noundef ptr @_ZNSt6vectorI18XrSdkLogObjectInfoSaIS0_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #6
  br label %45

45:                                               ; preds = %42, %41
  %46 = phi ptr [ null, %41 ], [ %44, %42 ]
  %47 = getelementptr inbounds %struct.XrLoaderLogMessengerCallbackData, ptr %15, i32 0, i32 4
  store ptr %46, ptr %47, align 8, !tbaa !15
  %48 = getelementptr inbounds %struct.NamesAndLabels, ptr %16, i32 0, i32 1
  %49 = call noundef i64 @_ZNKSt6vectorI29XrDebugUtilsObjectNameInfoEXTSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %48) #6
  %50 = trunc i64 %49 to i8
  %51 = getelementptr inbounds %struct.XrLoaderLogMessengerCallbackData, ptr %15, i32 0, i32 3
  store i8 %50, ptr %51, align 8, !tbaa !16
  %52 = getelementptr inbounds %struct.NamesAndLabels, ptr %16, i32 0, i32 2
  %53 = call noundef zeroext i1 @_ZNKSt6vectorI20XrDebugUtilsLabelEXTSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %52) #6
  br i1 %53, label %54, label %55

54:                                               ; preds = %45
  br label %58

55:                                               ; preds = %45
  %56 = getelementptr inbounds %struct.NamesAndLabels, ptr %16, i32 0, i32 2
  %57 = call noundef ptr @_ZNSt6vectorI20XrDebugUtilsLabelEXTSaIS0_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %56) #6
  br label %58

58:                                               ; preds = %55, %54
  %59 = phi ptr [ null, %54 ], [ %57, %55 ]
  %60 = getelementptr inbounds %struct.XrLoaderLogMessengerCallbackData, ptr %15, i32 0, i32 6
  store ptr %59, ptr %60, align 8, !tbaa !17
  %61 = getelementptr inbounds %struct.NamesAndLabels, ptr %16, i32 0, i32 2
  %62 = call noundef i64 @_ZNKSt6vectorI20XrDebugUtilsLabelEXTSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #6
  %63 = trunc i64 %62 to i8
  %64 = getelementptr inbounds %struct.XrLoaderLogMessengerCallbackData, ptr %15, i32 0, i32 5
  store i8 %63, ptr %64, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  %65 = getelementptr inbounds %class.LoaderLogger, ptr %26, i32 0, i32 0
  invoke void @_ZNSt11shared_lockISt18shared_timed_mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(9) %20, ptr noundef nonnull align 8 dereferenceable(56) %65)
          to label %66 unwind label %81

66:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #6
  store i8 0, ptr %21, align 1, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %67 = getelementptr inbounds %class.LoaderLogger, ptr %26, i32 0, i32 1
  store ptr %67, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %68 = load ptr, ptr %22, align 8, !tbaa !5
  %69 = call ptr @_ZNSt6vectorISt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS1_EESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %68) #6
  %70 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %69, ptr %70, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %71 = load ptr, ptr %22, align 8, !tbaa !5
  %72 = call ptr @_ZNSt6vectorISt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS1_EESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %71) #6
  %73 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %72, ptr %73, align 8
  br label %74

74:                                               ; preds = %126, %66
  %75 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS2_EESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  br i1 %75, label %85, label %76

76:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %128

77:                                               ; preds = %7
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %18, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %19, align 4
  call void @_ZNSt6vectorI18XrSdkLogObjectInfoSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  br label %132

81:                                               ; preds = %58
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %18, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %19, align 4
  br label %131

85:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS2_EESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  store ptr %86, ptr %25, align 8, !tbaa !5
  %87 = load ptr, ptr %25, align 8, !tbaa !5
  %88 = call noundef ptr @_ZNKSt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %87) #6
  %89 = invoke noundef i64 @_ZN17LoaderLogRecorder17MessageSeveritiesEv(ptr noundef nonnull align 8 dereferenceable(48) %88)
          to label %90 unwind label %121

90:                                               ; preds = %85
  %91 = load i64, ptr %9, align 8, !tbaa !9
  %92 = and i64 %89, %91
  %93 = load i64, ptr %9, align 8, !tbaa !9
  %94 = icmp eq i64 %92, %93
  br i1 %94, label %95, label %125

95:                                               ; preds = %90
  %96 = load ptr, ptr %25, align 8, !tbaa !5
  %97 = call noundef ptr @_ZNKSt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %96) #6
  %98 = invoke noundef i64 @_ZN17LoaderLogRecorder12MessageTypesEv(ptr noundef nonnull align 8 dereferenceable(48) %97)
          to label %99 unwind label %121

99:                                               ; preds = %95
  %100 = load i64, ptr %10, align 8, !tbaa !9
  %101 = and i64 %98, %100
  %102 = load i64, ptr %10, align 8, !tbaa !9
  %103 = icmp eq i64 %101, %102
  br i1 %103, label %104, label %125

104:                                              ; preds = %99
  %105 = load ptr, ptr %25, align 8, !tbaa !5
  %106 = call noundef ptr @_ZNKSt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %105) #6
  %107 = load i64, ptr %9, align 8, !tbaa !9
  %108 = load i64, ptr %10, align 8, !tbaa !9
  %109 = load ptr, ptr %106, align 8, !tbaa !21
  %110 = getelementptr inbounds ptr, ptr %109, i64 6
  %111 = load ptr, ptr %110, align 8
  %112 = invoke noundef zeroext i1 %111(ptr noundef nonnull align 8 dereferenceable(48) %106, i64 noundef %107, i64 noundef %108, ptr noundef %15)
          to label %113 unwind label %121

113:                                              ; preds = %104
  %114 = zext i1 %112 to i32
  %115 = load i8, ptr %21, align 1, !tbaa !19, !range !23, !noundef !24
  %116 = trunc i8 %115 to i1
  %117 = zext i1 %116 to i32
  %118 = or i32 %117, %114
  %119 = icmp ne i32 %118, 0
  %120 = zext i1 %119 to i8
  store i8 %120, ptr %21, align 1, !tbaa !19
  br label %125

121:                                              ; preds = %104, %95, %85
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %18, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  call void @_ZNSt11shared_lockISt18shared_timed_mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %20) #6
  br label %131

125:                                              ; preds = %113, %99, %90
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %126

126:                                              ; preds = %125
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS2_EESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %23) #6
  br label %74

128:                                              ; preds = %76
  %129 = load i8, ptr %21, align 1, !tbaa !19, !range !23, !noundef !24
  %130 = trunc i8 %129 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  call void @_ZNSt11shared_lockISt18shared_timed_mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @_ZN14NamesAndLabelsD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %16) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %15) #6
  ret i1 %130

131:                                              ; preds = %121, %81
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @_ZN14NamesAndLabelsD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %16) #6
  br label %132

132:                                              ; preds = %131, %77
  call void @llvm.lifetime.end.p0(i64 72, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %15) #6
  br label %133

133:                                              ; preds = %132
  %134 = load ptr, ptr %18, align 8
  %135 = load i32, ptr %19, align 4
  %136 = insertvalue { ptr, i32 } poison, ptr %134, 0
  %137 = insertvalue { ptr, i32 } %136, i32 %135, 1
  resume { ptr, i32 } %137
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

declare void @_ZNK14DebugUtilsData22PopulateNamesAndLabelsESt6vectorI18XrSdkLogObjectInfoSaIS1_EE(ptr dead_on_unwind writable sret(%struct.NamesAndLabels) align 8, ptr noundef nonnull align 8 dereferenceable(80), ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI18XrSdkLogObjectInfoSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorI18XrSdkLogObjectInfoSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNSt6vectorI18XrSdkLogObjectInfoSaIS0_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI29XrDebugUtilsObjectNameInfoEXTSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorI20XrDebugUtilsLabelEXTSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNSt6vectorI20XrDebugUtilsLabelEXTSaIS0_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI20XrDebugUtilsLabelEXTSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt11shared_lockISt18shared_timed_mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS1_EESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS1_EESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS2_EESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS2_EESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN17LoaderLogRecorder17MessageSeveritiesEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN17LoaderLogRecorder12MessageTypesEv(ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS2_EESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt11shared_lockISt18shared_timed_mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN14NamesAndLabelsD2Ev(ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #5 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { mustprogress 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 #3 = { 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 #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 = { inlinehint mustprogress 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTS32XrLoaderLogMessengerCallbackData", !6, i64 0, !6, i64 8, !6, i64 16, !7, i64 24, !6, i64 32, !7, i64 40, !6, i64 48}
!13 = !{!12, !6, i64 8}
!14 = !{!12, !6, i64 16}
!15 = !{!12, !6, i64 32}
!16 = !{!12, !7, i64 24}
!17 = !{!12, !6, i64 48}
!18 = !{!12, !7, i64 40}
!19 = !{!20, !20, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{!22, !22, i64 0}
!22 = !{!"vtable pointer", !8, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}


; 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.XrLoaderLogMessengerCallbackData = type { ptr, ptr, ptr, i8, ptr, i8, ptr }
%struct.NamesAndLabels = type { %"class.std::vector", %"class.std::vector.59", %"class.std::vector.64" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<XrSdkLogObjectInfo, std::allocator<XrSdkLogObjectInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<XrSdkLogObjectInfo, std::allocator<XrSdkLogObjectInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<XrSdkLogObjectInfo, std::allocator<XrSdkLogObjectInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<XrSdkLogObjectInfo, std::allocator<XrSdkLogObjectInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.59" = type { %"struct.std::_Vector_base.60" }
%"struct.std::_Vector_base.60" = type { %"struct.std::_Vector_base<XrDebugUtilsObjectNameInfoEXT, std::allocator<XrDebugUtilsObjectNameInfoEXT>>::_Vector_impl" }
%"struct.std::_Vector_base<XrDebugUtilsObjectNameInfoEXT, std::allocator<XrDebugUtilsObjectNameInfoEXT>>::_Vector_impl" = type { %"struct.std::_Vector_base<XrDebugUtilsObjectNameInfoEXT, std::allocator<XrDebugUtilsObjectNameInfoEXT>>::_Vector_impl_data" }
%"struct.std::_Vector_base<XrDebugUtilsObjectNameInfoEXT, std::allocator<XrDebugUtilsObjectNameInfoEXT>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.64" = type { %"struct.std::_Vector_base.65" }
%"struct.std::_Vector_base.65" = type { %"struct.std::_Vector_base<XrDebugUtilsLabelEXT, std::allocator<XrDebugUtilsLabelEXT>>::_Vector_impl" }
%"struct.std::_Vector_base<XrDebugUtilsLabelEXT, std::allocator<XrDebugUtilsLabelEXT>>::_Vector_impl" = type { %"struct.std::_Vector_base<XrDebugUtilsLabelEXT, std::allocator<XrDebugUtilsLabelEXT>>::_Vector_impl_data" }
%"struct.std::_Vector_base<XrDebugUtilsLabelEXT, std::allocator<XrDebugUtilsLabelEXT>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::shared_lock" = type <{ ptr, i8, [7 x i8] }>
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorI18XrSdkLogObjectInfoSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN12LoaderLogger10LogMessageEmmRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_S7_RKSt6vectorI18XrSdkLogObjectInfoSaIS9_EE(ptr noundef nonnull align 8 dereferenceable(216) %0, i64 noundef %1, i64 noundef %2, ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(24) %6) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %struct.XrLoaderLogMessengerCallbackData, align 8
  %9 = alloca %struct.NamesAndLabels, align 8
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca %"class.std::shared_lock", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #6
  %14 = getelementptr inbounds i8, ptr %8, i64 24
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %14, i8 0, i64 32, i1 false)
  %15 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  store ptr %15, ptr %8, align 8, !tbaa !5
  %16 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %17 = getelementptr inbounds i8, ptr %8, i64 8
  store ptr %16, ptr %17, align 8, !tbaa !10
  %18 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  %19 = getelementptr inbounds i8, ptr %8, i64 16
  store ptr %18, ptr %19, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %9) #6
  %20 = getelementptr inbounds i8, ptr %0, i64 136
  call void @_ZNSt6vectorI18XrSdkLogObjectInfoSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %6)
  invoke void @_ZNK14DebugUtilsData22PopulateNamesAndLabelsESt6vectorI18XrSdkLogObjectInfoSaIS1_EE(ptr dead_on_unwind nonnull writable sret(%struct.NamesAndLabels) align 8 %9, ptr noundef nonnull align 8 dereferenceable(80) %20, ptr noundef nonnull %10)
          to label %21 unwind label %47

21:                                               ; preds = %7
  call void @_ZNSt6vectorI18XrSdkLogObjectInfoSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %22 = call noundef zeroext i1 @_ZNKSt6vectorI18XrSdkLogObjectInfoSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  br i1 %22, label %25, label %23

23:                                               ; preds = %21
  %24 = call noundef ptr @_ZNSt6vectorI18XrSdkLogObjectInfoSaIS0_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  br label %25

25:                                               ; preds = %21, %23
  %26 = phi ptr [ %24, %23 ], [ null, %21 ]
  %27 = getelementptr inbounds i8, ptr %8, i64 32
  store ptr %26, ptr %27, align 8, !tbaa !12
  %28 = getelementptr inbounds i8, ptr %9, i64 24
  %29 = call noundef i64 @_ZNKSt6vectorI29XrDebugUtilsObjectNameInfoEXTSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #6
  %30 = trunc i64 %29 to i8
  %31 = getelementptr inbounds i8, ptr %8, i64 24
  store i8 %30, ptr %31, align 8, !tbaa !13
  %32 = getelementptr inbounds i8, ptr %9, i64 48
  %33 = call noundef zeroext i1 @_ZNKSt6vectorI20XrDebugUtilsLabelEXTSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  br i1 %33, label %36, label %34

34:                                               ; preds = %25
  %35 = call noundef ptr @_ZNSt6vectorI20XrDebugUtilsLabelEXTSaIS0_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  br label %36

36:                                               ; preds = %25, %34
  %37 = phi ptr [ %35, %34 ], [ null, %25 ]
  %38 = getelementptr inbounds i8, ptr %8, i64 48
  store ptr %37, ptr %38, align 8, !tbaa !14
  %39 = call noundef i64 @_ZNKSt6vectorI20XrDebugUtilsLabelEXTSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #6
  %40 = trunc i64 %39 to i8
  %41 = getelementptr inbounds i8, ptr %8, i64 40
  store i8 %40, ptr %41, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  invoke void @_ZNSt11shared_lockISt18shared_timed_mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(9) %11, ptr noundef nonnull align 8 dereferenceable(56) %0)
          to label %42 unwind label %49

42:                                               ; preds = %36
  %43 = getelementptr inbounds i8, ptr %0, i64 56
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %44 = call ptr @_ZNSt6vectorISt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS1_EESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #6
  store ptr %44, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  %45 = call ptr @_ZNSt6vectorISt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS1_EESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #6
  store ptr %45, ptr %13, align 8
  %46 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS2_EESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br i1 %46, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %71, %42
  %.021.lcssa = phi i1 [ false, %42 ], [ %.122, %71 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @_ZNSt11shared_lockISt18shared_timed_mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @_ZN14NamesAndLabelsD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %9) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #6
  ret i1 %.021.lcssa

47:                                               ; preds = %7
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI18XrSdkLogObjectInfoSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  br label %75

49:                                               ; preds = %36
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %74

.lr.ph:                                           ; preds = %42, %71
  %.02128 = phi i1 [ %.122, %71 ], [ false, %42 ]
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS2_EESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  %52 = call noundef ptr @_ZNKSt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %51) #6
  %53 = call noundef i64 @_ZN17LoaderLogRecorder17MessageSeveritiesEv(ptr noundef nonnull align 8 dereferenceable(48) %52)
  %54 = and i64 %53, %1
  %55 = icmp eq i64 %54, %1
  br i1 %55, label %56, label %71

56:                                               ; preds = %.lr.ph
  %57 = call noundef ptr @_ZNKSt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %51) #6
  %58 = call noundef i64 @_ZN17LoaderLogRecorder12MessageTypesEv(ptr noundef nonnull align 8 dereferenceable(48) %57)
  %59 = and i64 %58, %2
  %60 = icmp eq i64 %59, %2
  br i1 %60, label %61, label %71

61:                                               ; preds = %56
  %62 = call noundef ptr @_ZNKSt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %51) #6
  %63 = load ptr, ptr %62, align 8, !tbaa !16
  %64 = getelementptr inbounds i8, ptr %63, i64 48
  %65 = load ptr, ptr %64, align 8
  %66 = invoke noundef zeroext i1 %65(ptr noundef nonnull align 8 dereferenceable(48) %62, i64 noundef %1, i64 noundef %2, ptr noundef nonnull %8)
          to label %67 unwind label %69

67:                                               ; preds = %61
  %68 = or i1 %.02128, %66
  br label %71

69:                                               ; preds = %61
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @_ZNSt11shared_lockISt18shared_timed_mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9) %11) #6
  br label %74

71:                                               ; preds = %67, %56, %.lr.ph
  %.122 = phi i1 [ %68, %67 ], [ %.02128, %56 ], [ %.02128, %.lr.ph ]
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS2_EESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  %73 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS2_EESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br i1 %73, label %.lr.ph, label %._crit_edge

74:                                               ; preds = %69, %49
  %.pn = phi { ptr, i32 } [ %70, %69 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @_ZN14NamesAndLabelsD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %9) #6
  br label %75

75:                                               ; preds = %74, %47
  %.pn.pn = phi { ptr, i32 } [ %.pn, %74 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #6
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

declare void @_ZNK14DebugUtilsData22PopulateNamesAndLabelsESt6vectorI18XrSdkLogObjectInfoSaIS1_EE(ptr dead_on_unwind writable sret(%struct.NamesAndLabels) align 8, ptr noundef nonnull align 8 dereferenceable(80), ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI18XrSdkLogObjectInfoSaIS0_EEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorI18XrSdkLogObjectInfoSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNSt6vectorI18XrSdkLogObjectInfoSaIS0_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI29XrDebugUtilsObjectNameInfoEXTSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorI20XrDebugUtilsLabelEXTSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNSt6vectorI20XrDebugUtilsLabelEXTSaIS0_EE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI20XrDebugUtilsLabelEXTSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt11shared_lockISt18shared_timed_mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS1_EESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS1_EESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS2_EESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS2_EESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN17LoaderLogRecorder17MessageSeveritiesEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN17LoaderLogRecorder12MessageTypesEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt10unique_ptrI17LoaderLogRecorderSt14default_deleteIS2_EESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt11shared_lockISt18shared_timed_mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(9)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN14NamesAndLabelsD2Ev(ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #5 align 2

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


; Effective O3 passes: AggressiveInstCombinePass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass