; LLVM IR from thepowersgang/mrustc :: src/hir/deserialise.ll (ZN15HirDeserialiser21deserialise_asm_paramEv)

; 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.HIR::Path" = type { %"class.HIR::Path::Data" }
%"class.HIR::Path::Data" = type { i32, %"union.HIR::Path::Data::DataUnion" }
%"union.HIR::Path::Data::DataUnion" = type { %"struct.HIR::Path::Data::Data_UfcsKnown" }
%"struct.HIR::Path::Data::Data_UfcsKnown" = type { %"class.HIR::TypeRef", %"class.HIR::GenericPath", %class.RcString, %"struct.HIR::PathParams", %"class.std::unique_ptr.22" }
%"class.HIR::TypeRef" = type { ptr }
%"class.HIR::GenericPath" = type { %"struct.HIR::SimplePath", %"struct.HIR::PathParams" }
%"struct.HIR::SimplePath" = type { %class.ThinVector }
%class.ThinVector = type { ptr }
%class.RcString = type { ptr }
%"struct.HIR::PathParams" = type { %class.ThinVector.19, %class.ThinVector.20, %class.ThinVector.21 }
%class.ThinVector.19 = type { ptr }
%class.ThinVector.20 = type { ptr }
%class.ThinVector.21 = type { ptr }
%"class.std::unique_ptr.22" = type { %"struct.std::__uniq_ptr_data.23" }
%"struct.std::__uniq_ptr_data.23" = type { %"class.std::__uniq_ptr_impl.24" }
%"class.std::__uniq_ptr_impl.24" = type { %"class.std::tuple.25" }
%"class.std::tuple.25" = type { %"struct.std::_Tuple_impl.26" }
%"struct.std::_Tuple_impl.26" = type { %"struct.std::_Head_base.29" }
%"struct.std::_Head_base.29" = type { ptr }
%"class.AsmCommon::RegisterSpec" = type { i32, %"union.AsmCommon::RegisterSpec::DataUnion" }
%"union.AsmCommon::RegisterSpec::DataUnion" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.179 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.179 = type { i64, [8 x i8] }
%"class.MIR::AsmParam" = type { i32, %"union.MIR::AsmParam::DataUnion" }
%"union.MIR::AsmParam::DataUnion" = type { %"class.HIR::Path" }
%"class.MIR::Constant" = type { i32, %"union.MIR::Constant::DataUnion" }
%"union.MIR::Constant::DataUnion" = type { %"class.std::__cxx11::basic_string" }
%"struct.MIR::AsmParam::Data_Reg" = type { i32, %"class.AsmCommon::RegisterSpec", %"class.std::unique_ptr.227", %"class.std::unique_ptr.235" }
%"class.std::unique_ptr.227" = type { %"struct.std::__uniq_ptr_data.228" }
%"struct.std::__uniq_ptr_data.228" = type { %"class.std::__uniq_ptr_impl.229" }
%"class.std::__uniq_ptr_impl.229" = type { %"class.std::tuple.230" }
%"class.std::tuple.230" = type { %"struct.std::_Tuple_impl.231" }
%"struct.std::_Tuple_impl.231" = type { %"struct.std::_Head_base.234" }
%"struct.std::_Head_base.234" = type { ptr }
%"class.std::unique_ptr.235" = type { %"struct.std::__uniq_ptr_data.236" }
%"struct.std::__uniq_ptr_data.236" = type { %"class.std::__uniq_ptr_impl.237" }
%"class.std::__uniq_ptr_impl.237" = type { %"class.std::tuple.238" }
%"class.std::tuple.238" = type { %"struct.std::_Tuple_impl.239" }
%"struct.std::_Tuple_impl.239" = type { %"struct.std::_Head_base.242" }
%"struct.std::_Head_base.242" = type { ptr }
%"class.MIR::Param" = type { i32, %"union.MIR::Param::DataUnion" }
%"union.MIR::Param::DataUnion" = type { %"struct.MIR::Param::Data_Borrow" }
%"struct.MIR::Param::Data_Borrow" = type { i32, %"struct.MIR::LValue" }
%"struct.MIR::LValue" = type { %"class.MIR::LValue::Storage", %"class.std::vector.194" }
%"class.MIR::LValue::Storage" = type { i64 }
%"class.std::vector.194" = type { %"struct.std::_Vector_base.195" }
%"struct.std::_Vector_base.195" = type { %"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl" }
%"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl" = type { %"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Span = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.243 = type { ptr }
%class.HirDeserialiser = type { %class.RcString, %"class.std::vector", ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<HIR::TypeRef, std::allocator<HIR::TypeRef>>::_Vector_impl" }
%"struct.std::_Vector_base<HIR::TypeRef, std::allocator<HIR::TypeRef>>::_Vector_impl" = type { %"struct.std::_Vector_base<HIR::TypeRef, std::allocator<HIR::TypeRef>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HIR::TypeRef, std::allocator<HIR::TypeRef>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant ptr

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

declare void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

; Function Attrs: nounwind
declare void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #3

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15HirDeserialiser16deserialise_pathEv(ptr dead_on_unwind noalias writable sret(%"class.HIR::Path") align 8, ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3HIR9serialise6Reader9read_boolEv(ptr noundef nonnull align 8 dereferenceable(96)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15HirDeserialiser20deserialise_asm_specEv(ptr dead_on_unwind noalias writable sret(%"class.AsmCommon::RegisterSpec") align 8, ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15HirDeserialiser21deserialise_asm_paramEv(ptr dead_on_unwind noalias writable sret(%"class.MIR::AsmParam") align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.HIR::Path", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.MIR::Constant", align 8
  %11 = alloca %"struct.MIR::AsmParam::Data_Reg", align 8
  %12 = alloca %"class.MIR::Param", align 8
  %13 = alloca i1, align 1
  %14 = alloca i1, align 1
  %15 = alloca %"struct.MIR::LValue", align 8
  %16 = alloca i1, align 1
  %17 = alloca i1, align 1
  %18 = alloca i1, align 1
  %19 = alloca i1, align 1
  %20 = alloca %struct.Span, align 8
  %21 = alloca %"class.std::function", align 8
  %22 = alloca %class.anon.243, align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %23 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  %24 = getelementptr inbounds %class.HirDeserialiser, ptr %23, i32 0, i32 2
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = call noundef i32 @_ZN3HIR9serialise6Reader8read_tagEv(ptr noundef nonnull align 8 dereferenceable(96) %25)
  store i32 %26, ptr %5, align 4, !tbaa !16
  %27 = load i32, ptr %5, align 4, !tbaa !16
  switch i32 %27, label %131 [
    i32 2, label %28
    i32 1, label %34
    i32 3, label %40
  ]

28:                                               ; preds = %2
  call void @_ZN15HirDeserialiser16deserialise_pathEv(ptr dead_on_unwind writable sret(%"class.HIR::Path") align 8 %6, ptr noundef nonnull align 8 dereferenceable(40) %23)
  invoke void @_ZN3MIR8AsmParam8make_SymEN3HIR4PathE(ptr dead_on_unwind writable sret(%"class.MIR::AsmParam") align 8 %0, ptr noundef %6)
          to label %29 unwind label %30

29:                                               ; preds = %28
  call void @_ZN3HIR4PathD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %6) #7
  store i32 1, ptr %9, align 4
  br label %147

30:                                               ; preds = %28
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %7, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %8, align 4
  call void @_ZN3HIR4PathD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %6) #7
  br label %151

34:                                               ; preds = %2
  call void @_ZN15HirDeserialiser24deserialise_mir_constantEv(ptr dead_on_unwind writable sret(%"class.MIR::Constant") align 8 %10, ptr noundef nonnull align 8 dereferenceable(40) %23)
  invoke void @_ZN3MIR8AsmParam10make_ConstENS_8ConstantE(ptr dead_on_unwind writable sret(%"class.MIR::AsmParam") align 8 %0, ptr noundef %10)
          to label %35 unwind label %36

35:                                               ; preds = %34
  call void @_ZN3MIR8ConstantD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #7
  store i32 1, ptr %9, align 4
  br label %147

36:                                               ; preds = %34
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %7, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %8, align 4
  call void @_ZN3MIR8ConstantD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #7
  br label %151

40:                                               ; preds = %2
  %41 = getelementptr inbounds %"struct.MIR::AsmParam::Data_Reg", ptr %11, i32 0, i32 0
  %42 = getelementptr inbounds %class.HirDeserialiser, ptr %23, i32 0, i32 2
  %43 = load ptr, ptr %42, align 8, !tbaa !9
  %44 = call noundef i32 @_ZN3HIR9serialise6Reader8read_tagEv(ptr noundef nonnull align 8 dereferenceable(96) %43)
  store i32 %44, ptr %41, align 8, !tbaa !18
  %45 = getelementptr inbounds %"struct.MIR::AsmParam::Data_Reg", ptr %11, i32 0, i32 1
  call void @_ZN15HirDeserialiser20deserialise_asm_specEv(ptr dead_on_unwind writable sret(%"class.AsmCommon::RegisterSpec") align 8 %45, ptr noundef nonnull align 8 dereferenceable(40) %23)
  store i1 true, ptr %19, align 1
  %46 = getelementptr inbounds %"struct.MIR::AsmParam::Data_Reg", ptr %11, i32 0, i32 2
  %47 = getelementptr inbounds %class.HirDeserialiser, ptr %23, i32 0, i32 2
  %48 = load ptr, ptr %47, align 8, !tbaa !9
  store i1 false, ptr %13, align 1
  store i1 false, ptr %14, align 1
  %49 = invoke noundef zeroext i1 @_ZN3HIR9serialise6Reader9read_boolEv(ptr noundef nonnull align 8 dereferenceable(96) %48)
          to label %50 unwind label %79

50:                                               ; preds = %40
  br i1 %49, label %51, label %54

51:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 48, ptr %12) #7
  store i1 true, ptr %13, align 1
  invoke void @_ZN15HirDeserialiser21deserialise_mir_paramEv(ptr dead_on_unwind writable sret(%"class.MIR::Param") align 8 %12, ptr noundef nonnull align 8 dereferenceable(40) %23)
          to label %52 unwind label %83

52:                                               ; preds = %51
  store i1 true, ptr %14, align 1
  invoke void @_ZSt11make_uniqueIN3MIR5ParamEJS1_EENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.227") align 8 %46, ptr noundef nonnull align 8 dereferenceable(48) %12)
          to label %53 unwind label %87

53:                                               ; preds = %52
  br label %55

54:                                               ; preds = %50
  call void @_ZNSt10unique_ptrIN3MIR5ParamESt14default_deleteIS1_EEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %46) #7
  br label %55

55:                                               ; preds = %54, %53
  store i1 true, ptr %18, align 1
  %56 = getelementptr inbounds %"struct.MIR::AsmParam::Data_Reg", ptr %11, i32 0, i32 3
  %57 = getelementptr inbounds %class.HirDeserialiser, ptr %23, i32 0, i32 2
  %58 = load ptr, ptr %57, align 8, !tbaa !9
  store i1 false, ptr %16, align 1
  store i1 false, ptr %17, align 1
  %59 = invoke noundef zeroext i1 @_ZN3HIR9serialise6Reader9read_boolEv(ptr noundef nonnull align 8 dereferenceable(96) %58)
          to label %60 unwind label %91

60:                                               ; preds = %55
  br i1 %59, label %61, label %64

61:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #7
  store i1 true, ptr %16, align 1
  invoke void @_ZN15HirDeserialiser22deserialise_mir_lvalueEv(ptr dead_on_unwind writable sret(%"struct.MIR::LValue") align 8 %15, ptr noundef nonnull align 8 dereferenceable(40) %23)
          to label %62 unwind label %95

62:                                               ; preds = %61
  store i1 true, ptr %17, align 1
  invoke void @_ZSt11make_uniqueIN3MIR6LValueEJS1_EENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.235") align 8 %56, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %63 unwind label %99

63:                                               ; preds = %62
  br label %65

64:                                               ; preds = %60
  call void @_ZNSt10unique_ptrIN3MIR6LValueESt14default_deleteIS1_EEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %56) #7
  br label %65

65:                                               ; preds = %64, %63
  store i1 false, ptr %18, align 1
  store i1 false, ptr %19, align 1
  invoke void @_ZN3MIR8AsmParam8make_RegENS0_8Data_RegE(ptr dead_on_unwind writable sret(%"class.MIR::AsmParam") align 8 %0, ptr noundef %11)
          to label %66 unwind label %103

66:                                               ; preds = %65
  call void @_ZN3MIR8AsmParam8Data_RegD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %11) #7
  %67 = load i1, ptr %17, align 1
  br i1 %67, label %68, label %69

68:                                               ; preds = %66
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  br label %69

69:                                               ; preds = %68, %66
  %70 = load i1, ptr %16, align 1
  br i1 %70, label %71, label %72

71:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  br label %72

72:                                               ; preds = %71, %69
  %73 = load i1, ptr %14, align 1
  br i1 %73, label %74, label %75

74:                                               ; preds = %72
  call void @_ZN3MIR5ParamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %12) #7
  br label %75

75:                                               ; preds = %74, %72
  %76 = load i1, ptr %13, align 1
  br i1 %76, label %77, label %78

77:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 48, ptr %12) #7
  br label %78

78:                                               ; preds = %77, %75
  store i32 1, ptr %9, align 4
  br label %147

79:                                               ; preds = %40
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %7, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %8, align 4
  br label %127

83:                                               ; preds = %51
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %7, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %8, align 4
  br label %123

87:                                               ; preds = %52
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %7, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %8, align 4
  br label %119

91:                                               ; preds = %55
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %7, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %8, align 4
  br label %115

95:                                               ; preds = %61
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %7, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %8, align 4
  br label %111

99:                                               ; preds = %62
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %7, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %8, align 4
  br label %107

103:                                              ; preds = %65
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %7, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %8, align 4
  call void @_ZN3MIR8AsmParam8Data_RegD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %11) #7
  br label %107

107:                                              ; preds = %103, %99
  %108 = load i1, ptr %17, align 1
  br i1 %108, label %109, label %110

109:                                              ; preds = %107
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  br label %110

110:                                              ; preds = %109, %107
  br label %111

111:                                              ; preds = %110, %95
  %112 = load i1, ptr %16, align 1
  br i1 %112, label %113, label %114

113:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  br label %114

114:                                              ; preds = %113, %111
  br label %115

115:                                              ; preds = %114, %91
  %116 = load i1, ptr %18, align 1
  br i1 %116, label %117, label %118

117:                                              ; preds = %115
  call void @_ZNSt10unique_ptrIN3MIR5ParamESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %46) #7
  br label %118

118:                                              ; preds = %117, %115
  br label %119

119:                                              ; preds = %118, %87
  %120 = load i1, ptr %14, align 1
  br i1 %120, label %121, label %122

121:                                              ; preds = %119
  call void @_ZN3MIR5ParamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %12) #7
  br label %122

122:                                              ; preds = %121, %119
  br label %123

123:                                              ; preds = %122, %83
  %124 = load i1, ptr %13, align 1
  br i1 %124, label %125, label %126

125:                                              ; preds = %123
  call void @llvm.lifetime.end.p0(i64 48, ptr %12) #7
  br label %126

126:                                              ; preds = %125, %123
  br label %127

127:                                              ; preds = %126, %79
  %128 = load i1, ptr %19, align 1
  br i1 %128, label %129, label %130

129:                                              ; preds = %127
  call void @_ZN9AsmCommon12RegisterSpecD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %45) #7
  br label %130

130:                                              ; preds = %129, %127
  br label %151

131:                                              ; preds = %2
  br label %132

132:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  call void @_ZN4SpanC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %20)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %133 = getelementptr inbounds %class.anon.243, ptr %22, i32 0, i32 0
  store ptr %5, ptr %133, align 8, !tbaa !5
  call void @"_ZNSt8functionIFvRSoEEC2IZN15HirDeserialiser21deserialise_asm_paramEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef %21)
          to label %134 unwind label %137

134:                                              ; preds = %132
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  %135 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %135, ptr noundef @.str.2)
          to label %136 unwind label %141

136:                                              ; preds = %134
  call void @__cxa_throw(ptr %135, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #8
  unreachable

137:                                              ; preds = %132
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %7, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %8, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %151

141:                                              ; preds = %134
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %7, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %8, align 4
  call void @__cxa_free_exception(ptr %135) #7
  br label %151

145:                                              ; No predecessors!
  br label %146

146:                                              ; preds = %145
  store i32 0, ptr %9, align 4
  br label %147

147:                                              ; preds = %146, %78, %35, %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  %148 = load i32, ptr %9, align 4
  switch i32 %148, label %158 [
    i32 0, label %149
    i32 1, label %152
  ]

149:                                              ; preds = %147
  br label %150

150:                                              ; preds = %149
  unreachable

151:                                              ; preds = %141, %137, %130, %36, %30
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %153

152:                                              ; preds = %147
  ret void

153:                                              ; preds = %151
  %154 = load ptr, ptr %7, align 8
  %155 = load i32, ptr %8, align 4
  %156 = insertvalue { ptr, i32 } poison, ptr %154, 0
  %157 = insertvalue { ptr, i32 } %156, i32 %155, 1
  resume { ptr, i32 } %157

158:                                              ; preds = %147
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR8AsmParam8make_SymEN3HIR4PathE(ptr dead_on_unwind noalias writable sret(%"class.MIR::AsmParam") align 8, ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR8AsmParam10make_ConstENS_8ConstantE(ptr dead_on_unwind noalias writable sret(%"class.MIR::AsmParam") align 8, ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15HirDeserialiser24deserialise_mir_constantEv(ptr dead_on_unwind noalias writable sret(%"class.MIR::Constant") align 8, ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR8AsmParam8make_RegENS0_8Data_RegE(ptr dead_on_unwind noalias writable sret(%"class.MIR::AsmParam") align 8, ptr noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN3MIR5ParamEJS1_EENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.227") align 8, ptr noundef nonnull align 8 dereferenceable(48)) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15HirDeserialiser21deserialise_mir_paramEv(ptr dead_on_unwind noalias writable sret(%"class.MIR::Param") align 8, ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN3MIR6LValueEJS1_EENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.235") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15HirDeserialiser22deserialise_mir_lvalueEv(ptr dead_on_unwind noalias writable sret(%"struct.MIR::LValue") align 8, ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZN15HirDeserialiser21deserialise_asm_paramEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn }

!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, !6, i64 32}
!10 = !{!"_ZTS15HirDeserialiser", !11, i64 0, !12, i64 8, !6, i64 32}
!11 = !{!"_ZTS8RcString", !6, i64 0}
!12 = !{!"_ZTSSt6vectorIN3HIR7TypeRefESaIS1_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIN3HIR7TypeRefESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN3HIR7TypeRefESaIS1_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN3HIR7TypeRefESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!19, !20, i64 0}
!19 = !{!"_ZTSN3MIR8AsmParam8Data_RegE", !20, i64 0, !21, i64 8, !23, i64 48, !29, i64 56}
!20 = !{!"_ZTSN9AsmCommon9DirectionE", !7, i64 0}
!21 = !{!"_ZTSN9AsmCommon12RegisterSpecE", !22, i64 0, !7, i64 8}
!22 = !{!"_ZTSN9AsmCommon12RegisterSpec3TagE", !7, i64 0}
!23 = !{!"_ZTSSt10unique_ptrIN3MIR5ParamESt14default_deleteIS1_EE", !24, i64 0}
!24 = !{!"_ZTSSt15__uniq_ptr_dataIN3MIR5ParamESt14default_deleteIS1_ELb1ELb1EE", !25, i64 0}
!25 = !{!"_ZTSSt15__uniq_ptr_implIN3MIR5ParamESt14default_deleteIS1_EE", !26, i64 0}
!26 = !{!"_ZTSSt5tupleIJPN3MIR5ParamESt14default_deleteIS1_EEE", !27, i64 0}
!27 = !{!"_ZTSSt11_Tuple_implILm0EJPN3MIR5ParamESt14default_deleteIS1_EEE", !28, i64 0}
!28 = !{!"_ZTSSt10_Head_baseILm0EPN3MIR5ParamELb0EE", !6, i64 0}
!29 = !{!"_ZTSSt10unique_ptrIN3MIR6LValueESt14default_deleteIS1_EE", !30, i64 0}
!30 = !{!"_ZTSSt15__uniq_ptr_dataIN3MIR6LValueESt14default_deleteIS1_ELb1ELb1EE", !31, i64 0}
!31 = !{!"_ZTSSt15__uniq_ptr_implIN3MIR6LValueESt14default_deleteIS1_EE", !32, i64 0}
!32 = !{!"_ZTSSt5tupleIJPN3MIR6LValueESt14default_deleteIS1_EEE", !33, i64 0}
!33 = !{!"_ZTSSt11_Tuple_implILm0EJPN3MIR6LValueESt14default_deleteIS1_EEE", !34, i64 0}
!34 = !{!"_ZTSSt10_Head_baseILm0EPN3MIR6LValueELb0EE", !6, i64 0}


; 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.HIR::Path" = type { %"class.HIR::Path::Data" }
%"class.HIR::Path::Data" = type { i32, %"union.HIR::Path::Data::DataUnion" }
%"union.HIR::Path::Data::DataUnion" = type { %"struct.HIR::Path::Data::Data_UfcsKnown" }
%"struct.HIR::Path::Data::Data_UfcsKnown" = type { %"class.HIR::TypeRef", %"class.HIR::GenericPath", %class.RcString, %"struct.HIR::PathParams", %"class.std::unique_ptr.22" }
%"class.HIR::TypeRef" = type { ptr }
%"class.HIR::GenericPath" = type { %"struct.HIR::SimplePath", %"struct.HIR::PathParams" }
%"struct.HIR::SimplePath" = type { %class.ThinVector }
%class.ThinVector = type { ptr }
%class.RcString = type { ptr }
%"struct.HIR::PathParams" = type { %class.ThinVector.19, %class.ThinVector.20, %class.ThinVector.21 }
%class.ThinVector.19 = type { ptr }
%class.ThinVector.20 = type { ptr }
%class.ThinVector.21 = type { ptr }
%"class.std::unique_ptr.22" = type { %"struct.std::__uniq_ptr_data.23" }
%"struct.std::__uniq_ptr_data.23" = type { %"class.std::__uniq_ptr_impl.24" }
%"class.std::__uniq_ptr_impl.24" = type { %"class.std::tuple.25" }
%"class.std::tuple.25" = type { %"struct.std::_Tuple_impl.26" }
%"struct.std::_Tuple_impl.26" = type { %"struct.std::_Head_base.29" }
%"struct.std::_Head_base.29" = type { ptr }
%"class.AsmCommon::RegisterSpec" = type { i32, %"union.AsmCommon::RegisterSpec::DataUnion" }
%"union.AsmCommon::RegisterSpec::DataUnion" = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.179 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.179 = type { i64, [8 x i8] }
%"class.MIR::AsmParam" = type { i32, %"union.MIR::AsmParam::DataUnion" }
%"union.MIR::AsmParam::DataUnion" = type { %"class.HIR::Path" }
%"class.MIR::Constant" = type { i32, %"union.MIR::Constant::DataUnion" }
%"union.MIR::Constant::DataUnion" = type { %"class.std::__cxx11::basic_string" }
%"struct.MIR::AsmParam::Data_Reg" = type { i32, %"class.AsmCommon::RegisterSpec", %"class.std::unique_ptr.227", %"class.std::unique_ptr.235" }
%"class.std::unique_ptr.227" = type { %"struct.std::__uniq_ptr_data.228" }
%"struct.std::__uniq_ptr_data.228" = type { %"class.std::__uniq_ptr_impl.229" }
%"class.std::__uniq_ptr_impl.229" = type { %"class.std::tuple.230" }
%"class.std::tuple.230" = type { %"struct.std::_Tuple_impl.231" }
%"struct.std::_Tuple_impl.231" = type { %"struct.std::_Head_base.234" }
%"struct.std::_Head_base.234" = type { ptr }
%"class.std::unique_ptr.235" = type { %"struct.std::__uniq_ptr_data.236" }
%"struct.std::__uniq_ptr_data.236" = type { %"class.std::__uniq_ptr_impl.237" }
%"class.std::__uniq_ptr_impl.237" = type { %"class.std::tuple.238" }
%"class.std::tuple.238" = type { %"struct.std::_Tuple_impl.239" }
%"struct.std::_Tuple_impl.239" = type { %"struct.std::_Head_base.242" }
%"struct.std::_Head_base.242" = type { ptr }
%"class.MIR::Param" = type { i32, %"union.MIR::Param::DataUnion" }
%"union.MIR::Param::DataUnion" = type { %"struct.MIR::Param::Data_Borrow" }
%"struct.MIR::Param::Data_Borrow" = type { i32, %"struct.MIR::LValue" }
%"struct.MIR::LValue" = type { %"class.MIR::LValue::Storage", %"class.std::vector.194" }
%"class.MIR::LValue::Storage" = type { i64 }
%"class.std::vector.194" = type { %"struct.std::_Vector_base.195" }
%"struct.std::_Vector_base.195" = type { %"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl" }
%"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl" = type { %"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MIR::LValue::Wrapper, std::allocator<MIR::LValue::Wrapper>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Span = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.243 = type { ptr }

@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@_ZTISt13runtime_error = external constant 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

declare void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #3

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15HirDeserialiser16deserialise_pathEv(ptr dead_on_unwind noalias writable sret(%"class.HIR::Path") align 8, ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3HIR9serialise6Reader9read_boolEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15HirDeserialiser20deserialise_asm_specEv(ptr dead_on_unwind noalias writable sret(%"class.AsmCommon::RegisterSpec") align 8, ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15HirDeserialiser21deserialise_asm_paramEv(ptr dead_on_unwind noalias writable sret(%"class.MIR::AsmParam") align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca %"class.HIR::Path", align 8
  %5 = alloca %"class.MIR::Constant", align 8
  %6 = alloca %"struct.MIR::AsmParam::Data_Reg", align 8
  %7 = alloca %"class.MIR::Param", align 8
  %8 = alloca %"struct.MIR::LValue", align 8
  %9 = alloca %struct.Span, align 8
  %10 = alloca %"class.std::function", align 8
  %11 = alloca %class.anon.243, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %12 = getelementptr inbounds i8, ptr %1, i64 32
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  %14 = tail call noundef i32 @_ZN3HIR9serialise6Reader8read_tagEv(ptr noundef nonnull align 8 dereferenceable(96) %13)
  store i32 %14, ptr %3, align 4, !tbaa !15
  switch i32 %14, label %59 [
    i32 2, label %15
    i32 1, label %19
    i32 3, label %23
  ]

15:                                               ; preds = %2
  call void @_ZN15HirDeserialiser16deserialise_pathEv(ptr dead_on_unwind nonnull writable sret(%"class.HIR::Path") align 8 %4, ptr noundef nonnull align 8 dereferenceable(40) %1)
  invoke void @_ZN3MIR8AsmParam8make_SymEN3HIR4PathE(ptr dead_on_unwind writable sret(%"class.MIR::AsmParam") align 8 %0, ptr noundef nonnull %4)
          to label %16 unwind label %17

16:                                               ; preds = %15
  call void @_ZN3HIR4PathD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %4) #7
  br label %.critedge47

17:                                               ; preds = %15
  %18 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3HIR4PathD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %4) #7
  br label %.thread91

19:                                               ; preds = %2
  call void @_ZN15HirDeserialiser24deserialise_mir_constantEv(ptr dead_on_unwind nonnull writable sret(%"class.MIR::Constant") align 8 %5, ptr noundef nonnull align 8 dereferenceable(40) %1)
  invoke void @_ZN3MIR8AsmParam10make_ConstENS_8ConstantE(ptr dead_on_unwind writable sret(%"class.MIR::AsmParam") align 8 %0, ptr noundef nonnull %5)
          to label %20 unwind label %21

20:                                               ; preds = %19
  call void @_ZN3MIR8ConstantD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #7
  br label %.critedge47

21:                                               ; preds = %19
  %22 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3MIR8ConstantD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #7
  br label %.thread91

23:                                               ; preds = %2
  %24 = load ptr, ptr %12, align 8, !tbaa !5
  %25 = tail call noundef i32 @_ZN3HIR9serialise6Reader8read_tagEv(ptr noundef nonnull align 8 dereferenceable(96) %24)
  store i32 %25, ptr %6, align 8, !tbaa !17
  %26 = getelementptr inbounds i8, ptr %6, i64 8
  call void @_ZN15HirDeserialiser20deserialise_asm_specEv(ptr dead_on_unwind nonnull writable sret(%"class.AsmCommon::RegisterSpec") align 8 %26, ptr noundef nonnull align 8 dereferenceable(40) %1)
  %27 = getelementptr inbounds i8, ptr %6, i64 48
  %28 = load ptr, ptr %12, align 8, !tbaa !5
  %29 = invoke noundef zeroext i1 @_ZN3HIR9serialise6Reader9read_boolEv(ptr noundef nonnull align 8 dereferenceable(96) %28)
          to label %30 unwind label %.thread86

30:                                               ; preds = %23
  br i1 %29, label %31, label %33

31:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #7
  invoke void @_ZN15HirDeserialiser21deserialise_mir_paramEv(ptr dead_on_unwind nonnull writable sret(%"class.MIR::Param") align 8 %7, ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %32 unwind label %.thread94

32:                                               ; preds = %31
  invoke void @_ZSt11make_uniqueIN3MIR5ParamEJS1_EENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.227") align 8 %27, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %34 unwind label %.thread74

33:                                               ; preds = %30
  call void @_ZNSt10unique_ptrIN3MIR5ParamESt14default_deleteIS1_EEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #7
  br label %34

34:                                               ; preds = %32, %33
  %35 = getelementptr inbounds i8, ptr %6, i64 56
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  %37 = invoke noundef zeroext i1 @_ZN3HIR9serialise6Reader9read_boolEv(ptr noundef nonnull align 8 dereferenceable(96) %36)
          to label %38 unwind label %.thread60

38:                                               ; preds = %34
  br i1 %37, label %39, label %41

39:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  invoke void @_ZN15HirDeserialiser22deserialise_mir_lvalueEv(ptr dead_on_unwind nonnull writable sret(%"struct.MIR::LValue") align 8 %8, ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %40 unwind label %.thread68

40:                                               ; preds = %39
  invoke void @_ZSt11make_uniqueIN3MIR6LValueEJS1_EENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.235") align 8 %35, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %42 unwind label %.thread71

41:                                               ; preds = %38
  call void @_ZNSt10unique_ptrIN3MIR6LValueESt14default_deleteIS1_EEC2IS3_vEEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #7
  br label %42

42:                                               ; preds = %40, %41
  invoke void @_ZN3MIR8AsmParam8make_RegENS0_8Data_RegE(ptr dead_on_unwind writable sret(%"class.MIR::AsmParam") align 8 %0, ptr noundef nonnull %6)
          to label %43 unwind label %52

43:                                               ; preds = %42
  call void @_ZN3MIR8AsmParam8Data_RegD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %6) #7
  br i1 %37, label %44, label %.critedge

44:                                               ; preds = %43
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %.critedge

.critedge:                                        ; preds = %43, %44
  br i1 %29, label %45, label %.critedge47

45:                                               ; preds = %.critedge
  call void @_ZN3MIR5ParamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #7
  br label %.critedge47

.thread86:                                        ; preds = %23
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %58

.thread94:                                        ; preds = %31
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #7
  br label %58

.thread74:                                        ; preds = %32
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %.thread98

.thread60:                                        ; preds = %34
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %55

.thread68:                                        ; preds = %39
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %55

.thread71:                                        ; preds = %40
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %55

52:                                               ; preds = %42
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3MIR8AsmParam8Data_RegD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %6) #7
  br i1 %37, label %54, label %56

54:                                               ; preds = %52
  call void @_ZN3MIR6LValueD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br i1 %29, label %57, label %.thread91

55:                                               ; preds = %.thread71, %.thread68, %.thread60
  %.pn.pn.pn63 = phi { ptr, i32 } [ %49, %.thread60 ], [ %50, %.thread68 ], [ %51, %.thread71 ]
  call void @_ZNSt10unique_ptrIN3MIR5ParamESt14default_deleteIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %27) #7
  br i1 %29, label %.thread98, label %58

56:                                               ; preds = %52
  br i1 %29, label %57, label %.thread91

.thread98:                                        ; preds = %.thread74, %55
  %.pn.pn.pn.pn78.ph = phi { ptr, i32 } [ %.pn.pn.pn63, %55 ], [ %48, %.thread74 ]
  call void @_ZN3MIR5ParamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #7
  br label %58

57:                                               ; preds = %56, %54
  call void @_ZN3MIR5ParamD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #7
  br label %.thread91

58:                                               ; preds = %.thread98, %.thread94, %55, %.thread86
  %.pn.pn.pn.pn.pn.pn89 = phi { ptr, i32 } [ %46, %.thread86 ], [ %.pn.pn.pn63, %55 ], [ %47, %.thread94 ], [ %.pn.pn.pn.pn78.ph, %.thread98 ]
  call void @_ZN9AsmCommon12RegisterSpecD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %26) #7
  br label %.thread91

59:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  call void @_ZN4SpanC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  store ptr %3, ptr %11, align 8, !tbaa !34
  call void @"_ZNSt8functionIFvRSoEEC2IZN15HirDeserialiser21deserialise_asm_paramEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #7
  invoke void @_ZNK4Span3bugESt8functionIFvRSoEE(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull %10)
          to label %60 unwind label %63

60:                                               ; preds = %59
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  %61 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %61, ptr noundef nonnull @.str.2)
          to label %62 unwind label %65

62:                                               ; preds = %60
  call void @__cxa_throw(ptr nonnull %61, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
  unreachable

63:                                               ; preds = %59
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @_ZN4SpanD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %.thread91

65:                                               ; preds = %60
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %61) #7
  br label %.thread91

.critedge47:                                      ; preds = %45, %.critedge, %20, %16
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  ret void

.thread91:                                        ; preds = %56, %54, %57, %58, %65, %63, %21, %17
  %.pn44 = phi { ptr, i32 } [ %66, %65 ], [ %64, %63 ], [ %.pn.pn.pn.pn.pn.pn89, %58 ], [ %22, %21 ], [ %18, %17 ], [ %53, %57 ], [ %53, %56 ], [ %53, %54 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn44
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR8AsmParam8make_SymEN3HIR4PathE(ptr dead_on_unwind noalias writable sret(%"class.MIR::AsmParam") align 8, ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR8AsmParam10make_ConstENS_8ConstantE(ptr dead_on_unwind noalias writable sret(%"class.MIR::AsmParam") align 8, ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15HirDeserialiser24deserialise_mir_constantEv(ptr dead_on_unwind noalias writable sret(%"class.MIR::Constant") align 8, ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3MIR8AsmParam8make_RegENS0_8Data_RegE(ptr dead_on_unwind noalias writable sret(%"class.MIR::AsmParam") align 8, ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN3MIR5ParamEJS1_EENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.227") align 8, ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15HirDeserialiser21deserialise_mir_paramEv(ptr dead_on_unwind noalias writable sret(%"class.MIR::Param") align 8, ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueIN3MIR6LValueEJS1_EENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.235") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15HirDeserialiser22deserialise_mir_lvalueEv(ptr dead_on_unwind noalias writable sret(%"struct.MIR::LValue") align 8, ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSoEEC2IZN15HirDeserialiser21deserialise_asm_paramEvE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn }

!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, !8, i64 32}
!6 = !{!"_ZTS15HirDeserialiser", !7, i64 0, !11, i64 8, !8, i64 32}
!7 = !{!"_ZTS8RcString", !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSSt6vectorIN3HIR7TypeRefESaIS1_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIN3HIR7TypeRefESaIS1_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIN3HIR7TypeRefESaIS1_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN3HIR7TypeRefESaIS1_EE17_Vector_impl_dataE", !8, i64 0, !8, i64 8, !8, i64 16}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !9, i64 0}
!17 = !{!18, !19, i64 0}
!18 = !{!"_ZTSN3MIR8AsmParam8Data_RegE", !19, i64 0, !20, i64 8, !22, i64 48, !28, i64 56}
!19 = !{!"_ZTSN9AsmCommon9DirectionE", !9, i64 0}
!20 = !{!"_ZTSN9AsmCommon12RegisterSpecE", !21, i64 0, !9, i64 8}
!21 = !{!"_ZTSN9AsmCommon12RegisterSpec3TagE", !9, i64 0}
!22 = !{!"_ZTSSt10unique_ptrIN3MIR5ParamESt14default_deleteIS1_EE", !23, i64 0}
!23 = !{!"_ZTSSt15__uniq_ptr_dataIN3MIR5ParamESt14default_deleteIS1_ELb1ELb1EE", !24, i64 0}
!24 = !{!"_ZTSSt15__uniq_ptr_implIN3MIR5ParamESt14default_deleteIS1_EE", !25, i64 0}
!25 = !{!"_ZTSSt5tupleIJPN3MIR5ParamESt14default_deleteIS1_EEE", !26, i64 0}
!26 = !{!"_ZTSSt11_Tuple_implILm0EJPN3MIR5ParamESt14default_deleteIS1_EEE", !27, i64 0}
!27 = !{!"_ZTSSt10_Head_baseILm0EPN3MIR5ParamELb0EE", !8, i64 0}
!28 = !{!"_ZTSSt10unique_ptrIN3MIR6LValueESt14default_deleteIS1_EE", !29, i64 0}
!29 = !{!"_ZTSSt15__uniq_ptr_dataIN3MIR6LValueESt14default_deleteIS1_ELb1ELb1EE", !30, i64 0}
!30 = !{!"_ZTSSt15__uniq_ptr_implIN3MIR6LValueESt14default_deleteIS1_EE", !31, i64 0}
!31 = !{!"_ZTSSt5tupleIJPN3MIR6LValueESt14default_deleteIS1_EEE", !32, i64 0}
!32 = !{!"_ZTSSt11_Tuple_implILm0EJPN3MIR6LValueESt14default_deleteIS1_EEE", !33, i64 0}
!33 = !{!"_ZTSSt10_Head_baseILm0EPN3MIR6LValueELb0EE", !8, i64 0}
!34 = !{!8, !8, i64 0}


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