; LLVM IR from Razakhel/RaZ :: src/RaZ/XR (XrSystem)

; 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.__gnu_cxx::__normal_iterator" = 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::allocator.35" = type { i8 }
%"class.Raz::XrSystem" = type <{ %"class.Raz::System", %"class.Raz::XrContext", %"class.Raz::XrSession", %"class.std::vector.25", i32, [4 x i8], %"class.std::vector.30", i32, i32, %"class.std::vector.25", i32, [4 x i8] }>
%"class.Raz::System" = type { ptr, %"class.std::vector", %"class.Raz::Bitset" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Raz::Entity *, std::allocator<Raz::Entity *>>::_Vector_impl" }
%"struct.std::_Vector_base<Raz::Entity *, std::allocator<Raz::Entity *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Raz::Entity *, std::allocator<Raz::Entity *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Raz::Entity *, std::allocator<Raz::Entity *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Raz::Bitset" = type { %"class.std::vector.0" }
%"class.std::vector.0" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.Raz::XrContext" = type { %"class.std::vector.4", %"class.std::vector.9", %"class.std::vector.4", %"class.std::vector.9", ptr, ptr, i64 }
%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.9" = type { %"struct.std::_Vector_base.10" }
%"struct.std::_Vector_base.10" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const char *, std::allocator<const char *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Raz::XrSession" = type { ptr, ptr, i32, i8, ptr, %"class.std::vector.14", %"class.std::vector.14", %"class.std::unordered_map" }
%"class.std::vector.14" = type { %"struct.std::_Vector_base.15" }
%"struct.std::_Vector_base.15" = type { %"struct.std::_Vector_base<XrSwapchain_T *, std::allocator<XrSwapchain_T *>>::_Vector_impl" }
%"struct.std::_Vector_base<XrSwapchain_T *, std::allocator<XrSwapchain_T *>>::_Vector_impl" = type { %"struct.std::_Vector_base<XrSwapchain_T *, std::allocator<XrSwapchain_T *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<XrSwapchain_T *, std::allocator<XrSwapchain_T *>>::_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.std::vector.30" = type { %"struct.std::_Vector_base.31" }
%"struct.std::_Vector_base.31" = type { %"struct.std::_Vector_base<XrViewConfigurationView, std::allocator<XrViewConfigurationView>>::_Vector_impl" }
%"struct.std::_Vector_base<XrViewConfigurationView, std::allocator<XrViewConfigurationView>>::_Vector_impl" = type { %"struct.std::_Vector_base<XrViewConfigurationView, std::allocator<XrViewConfigurationView>>::_Vector_impl_data" }
%"struct.std::_Vector_base<XrViewConfigurationView, std::allocator<XrViewConfigurationView>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.XrViewConfigurationView = type { i32, ptr, i32, i32, i32, i32, i32, i32 }

@_ZTVN3Raz8XrSystemE = external dso_local unnamed_addr constant { [8 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [103 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3Raz8XrSystemC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::allocator.35", align 1
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8
  call void @_ZN3Raz6SystemC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %13) #6
  store ptr getelementptr inbounds inrange(-16, 48) ({ [8 x ptr] }, ptr @_ZTVN3Raz8XrSystemE, i32 0, i32 0, i32 2), ptr %13, align 8, !tbaa !9
  %14 = getelementptr inbounds %"class.Raz::XrSystem", ptr %13, i32 0, i32 1
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN3Raz9XrContextC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(120) %14, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %16 unwind label %52

16:                                               ; preds = %2
  %17 = getelementptr inbounds %"class.Raz::XrSystem", ptr %13, i32 0, i32 2
  %18 = getelementptr inbounds %"class.Raz::XrSystem", ptr %13, i32 0, i32 1
  invoke void @_ZN3Raz9XrSessionC1ERKNS_9XrContextE(ptr noundef nonnull align 8 dereferenceable(136) %17, ptr noundef nonnull align 8 dereferenceable(120) %18)
          to label %19 unwind label %56

19:                                               ; preds = %16
  %20 = getelementptr inbounds %"class.Raz::XrSystem", ptr %13, i32 0, i32 3
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  %21 = getelementptr inbounds %"class.Raz::XrSystem", ptr %13, i32 0, i32 4
  store i32 0, ptr %21, align 8, !tbaa !11
  %22 = getelementptr inbounds %"class.Raz::XrSystem", ptr %13, i32 0, i32 6
  call void @_ZNSt6vectorI23XrViewConfigurationViewSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  %23 = getelementptr inbounds %"class.Raz::XrSystem", ptr %13, i32 0, i32 7
  store i32 0, ptr %23, align 8, !tbaa !55
  %24 = getelementptr inbounds %"class.Raz::XrSystem", ptr %13, i32 0, i32 8
  store i32 0, ptr %24, align 4, !tbaa !56
  %25 = getelementptr inbounds %"class.Raz::XrSystem", ptr %13, i32 0, i32 9
  call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  %26 = getelementptr inbounds %"class.Raz::XrSystem", ptr %13, i32 0, i32 10
  store i32 0, ptr %26, align 8, !tbaa !57
  invoke void @_ZN3Raz8XrSystem25recoverViewConfigurationsEv(ptr noundef nonnull align 8 dereferenceable(424) %13)
          to label %27 unwind label %60

27:                                               ; preds = %19
  %28 = getelementptr inbounds %"class.Raz::XrSystem", ptr %13, i32 0, i32 6
  %29 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI23XrViewConfigurationViewSaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #6
  %30 = getelementptr inbounds %struct.XrViewConfigurationView, ptr %29, i32 0, i32 2
  %31 = load i32, ptr %30, align 8, !tbaa !58
  %32 = getelementptr inbounds %"class.Raz::XrSystem", ptr %13, i32 0, i32 7
  store i32 %31, ptr %32, align 8, !tbaa !55
  %33 = getelementptr inbounds %"class.Raz::XrSystem", ptr %13, i32 0, i32 6
  %34 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI23XrViewConfigurationViewSaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #6
  %35 = getelementptr inbounds %struct.XrViewConfigurationView, ptr %34, i32 0, i32 4
  %36 = load i32, ptr %35, align 8, !tbaa !61
  %37 = getelementptr inbounds %"class.Raz::XrSystem", ptr %13, i32 0, i32 8
  store i32 %36, ptr %37, align 4, !tbaa !56
  %38 = getelementptr inbounds %"class.Raz::XrSystem", ptr %13, i32 0, i32 6
  %39 = call noundef i64 @_ZNKSt6vectorI23XrViewConfigurationViewSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %38) #6
  %40 = icmp ugt i64 %39, 1
  br i1 %40, label %41, label %95

41:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %42 = getelementptr inbounds %"class.Raz::XrSystem", ptr %13, i32 0, i32 6
  store ptr %42, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = call ptr @_ZNSt6vectorI23XrViewConfigurationViewSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #6
  %45 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %8, i32 0, i32 0
  store ptr %44, ptr %45, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = call ptr @_ZNSt6vectorI23XrViewConfigurationViewSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #6
  %48 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %9, i32 0, i32 0
  store ptr %47, ptr %48, align 8
  br label %49

49:                                               ; preds = %92, %41
  %50 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP23XrViewConfigurationViewSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br i1 %50, label %64, label %51

51:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %94

52:                                               ; preds = %2
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %5, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %6, align 4
  br label %99

56:                                               ; preds = %16
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %5, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %6, align 4
  br label %98

60:                                               ; preds = %95, %19
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %5, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %6, align 4
  br label %97

64:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %65 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP23XrViewConfigurationViewSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  store ptr %65, ptr %10, align 8, !tbaa !5
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.XrViewConfigurationView, ptr %66, i32 0, i32 2
  %68 = load i32, ptr %67, align 8, !tbaa !58
  %69 = getelementptr inbounds %"class.Raz::XrSystem", ptr %13, i32 0, i32 7
  %70 = load i32, ptr %69, align 8, !tbaa !55
  %71 = icmp ne i32 %68, %70
  br i1 %71, label %79, label %72

72:                                               ; preds = %64
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.XrViewConfigurationView, ptr %73, i32 0, i32 4
  %75 = load i32, ptr %74, align 8, !tbaa !61
  %76 = getelementptr inbounds %"class.Raz::XrSystem", ptr %13, i32 0, i32 8
  %77 = load i32, ptr %76, align 4, !tbaa !56
  %78 = icmp ne i32 %75, %77
  br i1 %78, label %79, label %91

79:                                               ; preds = %72, %64
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %80 unwind label %82

80:                                               ; preds = %79
  invoke void @_ZN3Raz6Logger4warnERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %81 unwind label %86

81:                                               ; preds = %80
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  br label %91

82:                                               ; preds = %79
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %5, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %6, align 4
  br label %90

86:                                               ; preds = %80
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %5, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %6, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #6
  br label %90

90:                                               ; preds = %86, %82
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %97

91:                                               ; preds = %81, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %92

92:                                               ; preds = %91
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP23XrViewConfigurationViewSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br label %49

94:                                               ; preds = %51
  br label %95

95:                                               ; preds = %94, %27
  invoke void @_ZN3Raz8XrSystem28recoverEnvironmentBlendModesEv(ptr noundef nonnull align 8 dereferenceable(424) %13)
          to label %96 unwind label %60

96:                                               ; preds = %95
  ret void

97:                                               ; preds = %90, %60
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #6
  call void @_ZNSt6vectorI23XrViewConfigurationViewSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  call void @_ZN3Raz9XrSessionD1Ev(ptr noundef nonnull align 8 dereferenceable(136) %17) #6
  br label %98

98:                                               ; preds = %97, %56
  call void @_ZN3Raz9XrContextD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %14) #6
  br label %99

99:                                               ; preds = %98, %52
  call void @_ZN3Raz6SystemD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %13) #6
  br label %100

100:                                              ; preds = %99
  %101 = load ptr, ptr %5, align 8
  %102 = load i32, ptr %6, align 4
  %103 = insertvalue { ptr, i32 } poison, ptr %101, 0
  %104 = insertvalue { ptr, i32 } %103, i32 %102, 1
  resume { ptr, i32 } %104
}

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

declare void @_ZN3Raz9XrContextC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

declare void @_ZN3Raz9XrSessionC1ERKNS_9XrContextE(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Raz8XrSystem25recoverViewConfigurationsEv(ptr noundef nonnull align 8 dereferenceable(424)) #0 align 2

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

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

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

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

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

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

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

declare void @_ZN3Raz6Logger4warnERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) #2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Raz8XrSystem28recoverEnvironmentBlendModesEv(ptr noundef nonnull align 8 dereferenceable(424)) #0 align 2

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

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

; Function Attrs: nounwind
declare void @_ZN3Raz9XrSessionD1Ev(ptr noundef nonnull align 8 dereferenceable(136)) unnamed_addr #5

; Function Attrs: nounwind
declare void @_ZN3Raz9XrContextD1Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #5

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

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 = { 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 #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #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 = { 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !25, i64 352}
!12 = !{!"_ZTSN3Raz8XrSystemE", !13, i64 0, !26, i64 72, !36, i64 192, !47, i64 328, !25, i64 352, !51, i64 360, !25, i64 384, !25, i64 388, !47, i64 392, !25, i64 416}
!13 = !{!"_ZTSN3Raz6SystemE", !14, i64 8, !18, i64 32}
!14 = !{!"_ZTSSt6vectorIPN3Raz6EntityESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIPN3Raz6EntityESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIPN3Raz6EntityESaIS2_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN3Raz6EntityESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"_ZTSN3Raz6BitsetE", !19, i64 0}
!19 = !{!"_ZTSSt6vectorIbSaIbEE", !20, i64 0}
!20 = !{!"_ZTSSt13_Bvector_baseISaIbEE", !21, i64 0}
!21 = !{!"_ZTSNSt13_Bvector_baseISaIbEE13_Bvector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt13_Bvector_baseISaIbEE18_Bvector_impl_dataE", !23, i64 0, !23, i64 16, !6, i64 32}
!23 = !{!"_ZTSSt13_Bit_iterator", !24, i64 0}
!24 = !{!"_ZTSSt18_Bit_iterator_base", !6, i64 0, !25, i64 8}
!25 = !{!"int", !7, i64 0}
!26 = !{!"_ZTSN3Raz9XrContextE", !27, i64 0, !31, i64 24, !27, i64 48, !31, i64 72, !6, i64 96, !6, i64 104, !35, i64 112}
!27 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!"_ZTSSt6vectorIPKcSaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIPKcSaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIPKcSaIS1_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIPKcSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!35 = !{!"long", !7, i64 0}
!36 = !{!"_ZTSN3Raz9XrSessionE", !6, i64 0, !6, i64 8, !25, i64 16, !37, i64 20, !6, i64 24, !38, i64 32, !38, i64 56, !42, i64 80}
!37 = !{!"bool", !7, i64 0}
!38 = !{!"_ZTSSt6vectorIP13XrSwapchain_TSaIS1_EE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseIP13XrSwapchain_TSaIS1_EE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIP13XrSwapchain_TSaIS1_EE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIP13XrSwapchain_TSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!42 = !{!"_ZTSSt13unordered_mapIP13XrSwapchain_TSt6vectorI25XrSwapchainImageOpenGLKHRSaIS3_EESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S5_EEE", !43, i64 0}
!43 = !{!"_ZTSSt10_HashtableIP13XrSwapchain_TSt4pairIKS1_St6vectorI25XrSwapchainImageOpenGLKHRSaIS5_EEESaIS8_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !35, i64 8, !44, i64 16, !35, i64 24, !45, i64 32, !6, i64 48}
!44 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!45 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !46, i64 0, !35, i64 8}
!46 = !{!"float", !7, i64 0}
!47 = !{!"_ZTSSt6vectorIjSaIjEE", !48, i64 0}
!48 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!51 = !{!"_ZTSSt6vectorI23XrViewConfigurationViewSaIS0_EE", !52, i64 0}
!52 = !{!"_ZTSSt12_Vector_baseI23XrViewConfigurationViewSaIS0_EE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseI23XrViewConfigurationViewSaIS0_EE12_Vector_implE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseI23XrViewConfigurationViewSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!55 = !{!12, !25, i64 384}
!56 = !{!12, !25, i64 388}
!57 = !{!12, !25, i64 416}
!58 = !{!59, !25, i64 16}
!59 = !{!"_ZTS23XrViewConfigurationView", !60, i64 0, !6, i64 8, !25, i64 16, !25, i64 20, !25, i64 24, !25, i64 28, !25, i64 32, !25, i64 36}
!60 = !{!"_ZTS15XrStructureType", !7, i64 0}
!61 = !{!59, !25, i64 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"

%"class.__gnu_cxx::__normal_iterator" = 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::allocator.35" = type { i8 }

@_ZTVN3Raz8XrSystemE = external dso_local unnamed_addr constant { [8 x ptr] }, align 8
@.str = external hidden unnamed_addr constant [103 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3Raz8XrSystemC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(424) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator.35", align 1
  tail call void @_ZN3Raz6SystemC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %0) #6
  store ptr getelementptr inbounds inrange(-16, 48) (i8, ptr @_ZTVN3Raz8XrSystemE, i64 16), ptr %0, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 72
  invoke void @_ZN3Raz9XrContextC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(120) %7, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %8 unwind label %31

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %0, i64 192
  invoke void @_ZN3Raz9XrSessionC1ERKNS_9XrContextE(ptr noundef nonnull align 8 dereferenceable(136) %9, ptr noundef nonnull align 8 dereferenceable(120) %7)
          to label %10 unwind label %33

10:                                               ; preds = %8
  %11 = getelementptr inbounds i8, ptr %0, i64 328
  tail call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  %12 = getelementptr inbounds i8, ptr %0, i64 352
  store i32 0, ptr %12, align 8, !tbaa !8
  %13 = getelementptr inbounds i8, ptr %0, i64 360
  tail call void @_ZNSt6vectorI23XrViewConfigurationViewSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %14 = getelementptr inbounds i8, ptr %0, i64 384
  store i32 0, ptr %14, align 8, !tbaa !54
  %15 = getelementptr inbounds i8, ptr %0, i64 388
  store i32 0, ptr %15, align 4, !tbaa !55
  %16 = getelementptr inbounds i8, ptr %0, i64 392
  tail call void @_ZNSt6vectorIjSaIjEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  %17 = getelementptr inbounds i8, ptr %0, i64 416
  store i32 0, ptr %17, align 8, !tbaa !56
  invoke void @_ZN3Raz8XrSystem25recoverViewConfigurationsEv(ptr noundef nonnull align 8 dereferenceable(424) %0)
          to label %18 unwind label %35

18:                                               ; preds = %10
  %19 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI23XrViewConfigurationViewSaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %20 = getelementptr inbounds i8, ptr %19, i64 16
  %21 = load i32, ptr %20, align 8, !tbaa !57
  store i32 %21, ptr %14, align 8, !tbaa !54
  %22 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorI23XrViewConfigurationViewSaIS0_EE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %23 = getelementptr inbounds i8, ptr %22, i64 24
  %24 = load i32, ptr %23, align 8, !tbaa !60
  store i32 %24, ptr %15, align 4, !tbaa !55
  %25 = tail call noundef i64 @_ZNKSt6vectorI23XrViewConfigurationViewSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %26 = icmp ugt i64 %25, 1
  br i1 %26, label %27, label %56

27:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %28 = tail call ptr @_ZNSt6vectorI23XrViewConfigurationViewSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  store ptr %28, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %29 = tail call ptr @_ZNSt6vectorI23XrViewConfigurationViewSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  store ptr %29, ptr %4, align 8
  %30 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP23XrViewConfigurationViewSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  br i1 %30, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %53, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %56

31:                                               ; preds = %2
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %60

33:                                               ; preds = %8
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %59

35:                                               ; preds = %56, %10
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %58

.lr.ph:                                           ; preds = %27, %53
  %37 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP23XrViewConfigurationViewSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %38 = getelementptr inbounds i8, ptr %37, i64 16
  %39 = load i32, ptr %38, align 8, !tbaa !57
  %40 = load i32, ptr %14, align 8, !tbaa !54
  %.not = icmp eq i32 %39, %40
  br i1 %.not, label %41, label %45

41:                                               ; preds = %.lr.ph
  %42 = getelementptr inbounds i8, ptr %37, i64 24
  %43 = load i32, ptr %42, align 8, !tbaa !60
  %44 = load i32, ptr %15, align 4, !tbaa !55
  %.not11 = icmp eq i32 %43, %44
  br i1 %.not11, label %53, label %45

45:                                               ; preds = %41, %.lr.ph
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %46 unwind label %48

46:                                               ; preds = %45
  invoke void @_ZN3Raz6Logger4warnERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %47 unwind label %50

47:                                               ; preds = %46
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  br label %53

48:                                               ; preds = %45
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %52

50:                                               ; preds = %46
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %52

52:                                               ; preds = %50, %48
  %.pn = phi { ptr, i32 } [ %51, %50 ], [ %49, %48 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  br label %58

53:                                               ; preds = %47, %41
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP23XrViewConfigurationViewSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %55 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP23XrViewConfigurationViewSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  br i1 %55, label %.lr.ph, label %._crit_edge

56:                                               ; preds = %._crit_edge, %18
  invoke void @_ZN3Raz8XrSystem28recoverEnvironmentBlendModesEv(ptr noundef nonnull align 8 dereferenceable(424) %0)
          to label %57 unwind label %35

57:                                               ; preds = %56
  ret void

58:                                               ; preds = %52, %35
  %.pn.pn = phi { ptr, i32 } [ %.pn, %52 ], [ %36, %35 ]
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @_ZNSt6vectorI23XrViewConfigurationViewSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  call void @_ZNSt6vectorIjSaIjEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @_ZN3Raz9XrSessionD1Ev(ptr noundef nonnull align 8 dereferenceable(136) %9) #6
  br label %59

59:                                               ; preds = %58, %33
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %58 ], [ %34, %33 ]
  call void @_ZN3Raz9XrContextD1Ev(ptr noundef nonnull align 8 dereferenceable(120) %7) #6
  br label %60

60:                                               ; preds = %59, %31
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %59 ], [ %32, %31 ]
  call void @_ZN3Raz6SystemD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %0) #6
  resume { ptr, i32 } %.pn.pn.pn.pn
}

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

declare void @_ZN3Raz9XrContextC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

declare void @_ZN3Raz9XrSessionC1ERKNS_9XrContextE(ptr noundef nonnull align 8 dereferenceable(136), ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Raz8XrSystem25recoverViewConfigurationsEv(ptr noundef nonnull align 8 dereferenceable(424)) local_unnamed_addr #0 align 2

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

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

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

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

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

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

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

declare void @_ZN3Raz6Logger4warnERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3Raz8XrSystem28recoverEnvironmentBlendModesEv(ptr noundef nonnull align 8 dereferenceable(424)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: nounwind
declare void @_ZN3Raz9XrSessionD1Ev(ptr noundef nonnull align 8 dereferenceable(136)) unnamed_addr #5

; Function Attrs: nounwind
declare void @_ZN3Raz9XrContextD1Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #5

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

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 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #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 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !24, i64 352}
!9 = !{!"_ZTSN3Raz8XrSystemE", !10, i64 0, !25, i64 72, !35, i64 192, !46, i64 328, !24, i64 352, !50, i64 360, !24, i64 384, !24, i64 388, !46, i64 392, !24, i64 416}
!10 = !{!"_ZTSN3Raz6SystemE", !11, i64 8, !17, i64 32}
!11 = !{!"_ZTSSt6vectorIPN3Raz6EntityESaIS2_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIPN3Raz6EntityESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIPN3Raz6EntityESaIS2_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIPN3Raz6EntityESaIS2_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !16, i64 0}
!16 = !{!"omnipotent char", !7, i64 0}
!17 = !{!"_ZTSN3Raz6BitsetE", !18, i64 0}
!18 = !{!"_ZTSSt6vectorIbSaIbEE", !19, i64 0}
!19 = !{!"_ZTSSt13_Bvector_baseISaIbEE", !20, i64 0}
!20 = !{!"_ZTSNSt13_Bvector_baseISaIbEE13_Bvector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt13_Bvector_baseISaIbEE18_Bvector_impl_dataE", !22, i64 0, !22, i64 16, !15, i64 32}
!22 = !{!"_ZTSSt13_Bit_iterator", !23, i64 0}
!23 = !{!"_ZTSSt18_Bit_iterator_base", !15, i64 0, !24, i64 8}
!24 = !{!"int", !16, i64 0}
!25 = !{!"_ZTSN3Raz9XrContextE", !26, i64 0, !30, i64 24, !26, i64 48, !30, i64 72, !15, i64 96, !15, i64 104, !34, i64 112}
!26 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!30 = !{!"_ZTSSt6vectorIPKcSaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIPKcSaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIPKcSaIS1_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIPKcSaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!34 = !{!"long", !16, i64 0}
!35 = !{!"_ZTSN3Raz9XrSessionE", !15, i64 0, !15, i64 8, !24, i64 16, !36, i64 20, !15, i64 24, !37, i64 32, !37, i64 56, !41, i64 80}
!36 = !{!"bool", !16, i64 0}
!37 = !{!"_ZTSSt6vectorIP13XrSwapchain_TSaIS1_EE", !38, i64 0}
!38 = !{!"_ZTSSt12_Vector_baseIP13XrSwapchain_TSaIS1_EE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIP13XrSwapchain_TSaIS1_EE12_Vector_implE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIP13XrSwapchain_TSaIS1_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!41 = !{!"_ZTSSt13unordered_mapIP13XrSwapchain_TSt6vectorI25XrSwapchainImageOpenGLKHRSaIS3_EESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S5_EEE", !42, i64 0}
!42 = !{!"_ZTSSt10_HashtableIP13XrSwapchain_TSt4pairIKS1_St6vectorI25XrSwapchainImageOpenGLKHRSaIS5_EEESaIS8_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb0ELb0ELb1EEEE", !15, i64 0, !34, i64 8, !43, i64 16, !34, i64 24, !44, i64 32, !15, i64 48}
!43 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !15, i64 0}
!44 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !45, i64 0, !34, i64 8}
!45 = !{!"float", !16, i64 0}
!46 = !{!"_ZTSSt6vectorIjSaIjEE", !47, i64 0}
!47 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!50 = !{!"_ZTSSt6vectorI23XrViewConfigurationViewSaIS0_EE", !51, i64 0}
!51 = !{!"_ZTSSt12_Vector_baseI23XrViewConfigurationViewSaIS0_EE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseI23XrViewConfigurationViewSaIS0_EE12_Vector_implE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseI23XrViewConfigurationViewSaIS0_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!54 = !{!9, !24, i64 384}
!55 = !{!9, !24, i64 388}
!56 = !{!9, !24, i64 416}
!57 = !{!58, !24, i64 16}
!58 = !{!"_ZTS23XrViewConfigurationView", !59, i64 0, !15, i64 8, !24, i64 16, !24, i64 20, !24, i64 24, !24, i64 28, !24, i64 32, !24, i64 36}
!59 = !{!"_ZTS15XrStructureType", !16, i64 0}
!60 = !{!58, !24, i64 24}


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