; LLVM IR from facebook/redex :: libredex/DexCallSite.ll (ZNK11DexCallSite22as_encoded_value_arrayEv)

; 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.DexEncodedValueArray = type { %class.DexEncodedValue.base, i8, [6 x i8] }
%class.DexEncodedValue.base = type <{ %class.Gatherable, %"union.DexEncodedValue::Val", i8 }>
%class.Gatherable = type { ptr }
%"union.DexEncodedValue::Val" = type { i64 }
%"class.std::unique_ptr.26" = type { %"struct.std::__uniq_ptr_data.27" }
%"struct.std::__uniq_ptr_data.27" = type { %"class.std::__uniq_ptr_impl.28" }
%"class.std::__uniq_ptr_impl.28" = type { %"class.std::tuple.29" }
%"class.std::tuple.29" = type { %"struct.std::_Tuple_impl.30" }
%"struct.std::_Tuple_impl.30" = type { %"struct.std::_Head_base.33" }
%"struct.std::_Head_base.33" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.9" }
%"struct.std::_Head_base.9" = type { ptr }
%class.DexCallSite = type { ptr, ptr, ptr, %"class.std::vector.3" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<std::unique_ptr<DexEncodedValue>, std::allocator<std::unique_ptr<DexEncodedValue>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<DexEncodedValue>, std::allocator<std::unique_ptr<DexEncodedValue>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<DexEncodedValue>, std::allocator<std::unique_ptr<DexEncodedValue>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<DexEncodedValue>, std::allocator<std::unique_ptr<DexEncodedValue>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_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_cxxneIPKSt10unique_ptrI15DexEncodedValueSt14default_deleteIS2_EESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK11DexCallSite22as_encoded_value_arrayEv(ptr dead_on_unwind noalias writable sret(%class.DexEncodedValueArray) align 8 %0, ptr noundef nonnull align 8 dereferenceable(48) %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::unique_ptr.26", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.std::unique_ptr", align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %16 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  call void @_ZSt11make_uniqueISt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS2_EESaIS5_EEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.26") align 8 %5)
  %17 = call noundef ptr @_ZNKSt10unique_ptrISt6vectorIS_I15DexEncodedValueSt14default_deleteIS1_EESaIS4_EES2_IS6_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %18 = getelementptr inbounds %class.DexCallSite, ptr %16, i32 0, i32 3
  %19 = call noundef i64 @_ZNKSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #7
  %20 = add i64 %19, 3
  invoke void @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %20)
          to label %21 unwind label %56

21:                                               ; preds = %2
  %22 = call noundef ptr @_ZNKSt10unique_ptrISt6vectorIS_I15DexEncodedValueSt14default_deleteIS1_EESaIS4_EES2_IS6_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %23 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #8
          to label %24 unwind label %60

24:                                               ; preds = %21
  %25 = getelementptr inbounds %class.DexCallSite, ptr %16, i32 0, i32 0
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  invoke void @_ZN27DexEncodedValueMethodHandleC2EP15DexMethodHandle(ptr noundef nonnull align 8 dereferenceable(17) %23, ptr noundef %26)
          to label %27 unwind label %64

27:                                               ; preds = %24
  store ptr %23, ptr %8, align 8, !tbaa !5
  %28 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE12emplace_backIJP27DexEncodedValueMethodHandleEEERS4_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %29 unwind label %60

29:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  %30 = call noundef ptr @_ZNKSt10unique_ptrISt6vectorIS_I15DexEncodedValueSt14default_deleteIS1_EESaIS4_EES2_IS6_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %31 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #8
          to label %32 unwind label %69

32:                                               ; preds = %29
  %33 = getelementptr inbounds %class.DexCallSite, ptr %16, i32 0, i32 1
  %34 = load ptr, ptr %33, align 8, !tbaa !15
  invoke void @_ZN21DexEncodedValueStringC2EPK9DexString(ptr noundef nonnull align 8 dereferenceable(17) %31, ptr noundef %34)
          to label %35 unwind label %73

35:                                               ; preds = %32
  store ptr %31, ptr %9, align 8, !tbaa !5
  %36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE12emplace_backIJP21DexEncodedValueStringEEERS4_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %37 unwind label %69

37:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  %38 = call noundef ptr @_ZNKSt10unique_ptrISt6vectorIS_I15DexEncodedValueSt14default_deleteIS1_EESaIS4_EES2_IS6_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %39 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #8
          to label %40 unwind label %78

40:                                               ; preds = %37
  %41 = getelementptr inbounds %class.DexCallSite, ptr %16, i32 0, i32 2
  %42 = load ptr, ptr %41, align 8, !tbaa !16
  invoke void @_ZN25DexEncodedValueMethodTypeC2EP8DexProto(ptr noundef nonnull align 8 dereferenceable(17) %39, ptr noundef %42)
          to label %43 unwind label %82

43:                                               ; preds = %40
  store ptr %39, ptr %10, align 8, !tbaa !5
  %44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE12emplace_backIJP25DexEncodedValueMethodTypeEEERS4_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %45 unwind label %78

45:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %46 = getelementptr inbounds %class.DexCallSite, ptr %16, i32 0, i32 3
  store ptr %46, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = call ptr @_ZNKSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #7
  %49 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %48, ptr %49, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = call ptr @_ZNKSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #7
  %52 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %51, ptr %52, align 8
  br label %53

53:                                               ; preds = %98, %45
  %54 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt10unique_ptrI15DexEncodedValueSt14default_deleteIS2_EESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  br i1 %54, label %87, label %55

55:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %109

56:                                               ; preds = %109, %2
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %6, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %7, align 4
  br label %112

60:                                               ; preds = %27, %21
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %6, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %7, align 4
  br label %68

64:                                               ; preds = %24
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %6, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %7, align 4
  call void @_ZdlPvm(ptr noundef %23, i64 noundef 24) #9
  br label %68

68:                                               ; preds = %64, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %112

69:                                               ; preds = %35, %29
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %6, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %7, align 4
  br label %77

73:                                               ; preds = %32
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %6, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %7, align 4
  call void @_ZdlPvm(ptr noundef %31, i64 noundef 24) #9
  br label %77

77:                                               ; preds = %73, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %112

78:                                               ; preds = %43, %37
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %6, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %7, align 4
  br label %86

82:                                               ; preds = %40
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %6, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %7, align 4
  call void @_ZdlPvm(ptr noundef %39, i64 noundef 24) #9
  br label %86

86:                                               ; preds = %82, %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %112

87:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt10unique_ptrI15DexEncodedValueSt14default_deleteIS2_EESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  store ptr %88, ptr %14, align 8, !tbaa !5
  %89 = call noundef ptr @_ZNKSt10unique_ptrISt6vectorIS_I15DexEncodedValueSt14default_deleteIS1_EESaIS4_EES2_IS6_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  %91 = call noundef ptr @_ZNKSt10unique_ptrI15DexEncodedValueSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %90) #7
  %92 = load ptr, ptr %91, align 8, !tbaa !17
  %93 = getelementptr inbounds ptr, ptr %92, i64 14
  %94 = load ptr, ptr %93, align 8
  invoke void %94(ptr dead_on_unwind writable sret(%"class.std::unique_ptr") align 8 %15, ptr noundef nonnull align 8 dereferenceable(17) %91)
          to label %95 unwind label %100

95:                                               ; preds = %87
  %96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE12emplace_backIJS4_EEERS4_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %89, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %97 unwind label %104

97:                                               ; preds = %95
  call void @_ZNSt10unique_ptrI15DexEncodedValueSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %98

98:                                               ; preds = %97
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt10unique_ptrI15DexEncodedValueSt14default_deleteIS2_EESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  br label %53

100:                                              ; preds = %87
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %6, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %7, align 4
  br label %108

104:                                              ; preds = %95
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %6, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, ptr %7, align 4
  call void @_ZNSt10unique_ptrI15DexEncodedValueSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  br label %108

108:                                              ; preds = %104, %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %112

109:                                              ; preds = %55
  %110 = call noundef ptr @_ZNSt10unique_ptrISt6vectorIS_I15DexEncodedValueSt14default_deleteIS1_EESaIS4_EES2_IS6_EE7releaseEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  invoke void @_ZN20DexEncodedValueArrayC2EPSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS2_EESaIS5_EEb(ptr noundef nonnull align 8 dereferenceable(18) %0, ptr noundef %110, i1 noundef zeroext true)
          to label %111 unwind label %56

111:                                              ; preds = %109
  call void @_ZNSt10unique_ptrISt6vectorIS_I15DexEncodedValueSt14default_deleteIS1_EESaIS4_EES2_IS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  ret void

112:                                              ; preds = %108, %86, %77, %68, %56
  call void @_ZNSt10unique_ptrISt6vectorIS_I15DexEncodedValueSt14default_deleteIS1_EESaIS4_EES2_IS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %113

113:                                              ; preds = %112
  %114 = load ptr, ptr %6, align 8
  %115 = load i32, ptr %7, align 4
  %116 = insertvalue { ptr, i32 } poison, ptr %114, 0
  %117 = insertvalue { ptr, i32 } %116, i32 %115, 1
  resume { ptr, i32 } %117
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueISt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS2_EESaIS5_EEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.26") align 8) #4

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

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

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #5

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #6

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN20DexEncodedValueArrayC2EPSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS2_EESaIS5_EEb(ptr noundef nonnull align 8 dereferenceable(18), ptr noundef, i1 noundef zeroext) unnamed_addr #3 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { nobuiltin allocsize(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 = { nobuiltin 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 #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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, !6, i64 0}
!10 = !{!"_ZTS11DexCallSite", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24}
!11 = !{!"_ZTSSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!10, !6, i64 8}
!16 = !{!10, !6, i64 16}
!17 = !{!18, !18, i64 0}
!18 = !{!"vtable pointer", !8, 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.DexEncodedValueArray = type { %class.DexEncodedValue.base, i8, [6 x i8] }
%class.DexEncodedValue.base = type <{ %class.Gatherable, %"union.DexEncodedValue::Val", i8 }>
%class.Gatherable = type { ptr }
%"union.DexEncodedValue::Val" = type { i64 }
%"class.std::unique_ptr.26" = type { %"struct.std::__uniq_ptr_data.27" }
%"struct.std::__uniq_ptr_data.27" = type { %"class.std::__uniq_ptr_impl.28" }
%"class.std::__uniq_ptr_impl.28" = type { %"class.std::tuple.29" }
%"class.std::tuple.29" = type { %"struct.std::_Tuple_impl.30" }
%"struct.std::_Tuple_impl.30" = type { %"struct.std::_Head_base.33" }
%"struct.std::_Head_base.33" = type { ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.9" }
%"struct.std::_Head_base.9" = type { ptr }

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_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_cxxneIPKSt10unique_ptrI15DexEncodedValueSt14default_deleteIS2_EESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK11DexCallSite22as_encoded_value_arrayEv(ptr dead_on_unwind noalias writable sret(%class.DexEncodedValueArray) align 8 %0, ptr noundef nonnull align 8 dereferenceable(48) %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::unique_ptr.26", align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.std::unique_ptr", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @_ZSt11make_uniqueISt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS2_EESaIS5_EEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.26") align 8 %3)
  %10 = call noundef ptr @_ZNKSt10unique_ptrISt6vectorIS_I15DexEncodedValueSt14default_deleteIS1_EESaIS4_EES2_IS6_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  %11 = getelementptr inbounds i8, ptr %1, i64 24
  %12 = call noundef i64 @_ZNKSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %13 = add i64 %12, 3
  invoke void @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %13)
          to label %14 unwind label %42

14:                                               ; preds = %2
  %15 = call noundef ptr @_ZNKSt10unique_ptrISt6vectorIS_I15DexEncodedValueSt14default_deleteIS1_EESaIS4_EES2_IS6_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %16 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #8
          to label %17 unwind label %44

17:                                               ; preds = %14
  %18 = load ptr, ptr %1, align 8, !tbaa !5
  invoke void @_ZN27DexEncodedValueMethodHandleC2EP15DexMethodHandle(ptr noundef nonnull align 8 dereferenceable(17) %16, ptr noundef %18)
          to label %19 unwind label %46

19:                                               ; preds = %17
  store ptr %16, ptr %4, align 8, !tbaa !14
  %20 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE12emplace_backIJP27DexEncodedValueMethodHandleEEERS4_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %21 unwind label %44

21:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  %22 = call noundef ptr @_ZNKSt10unique_ptrISt6vectorIS_I15DexEncodedValueSt14default_deleteIS1_EESaIS4_EES2_IS6_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %23 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #8
          to label %24 unwind label %49

24:                                               ; preds = %21
  %25 = getelementptr inbounds i8, ptr %1, i64 8
  %26 = load ptr, ptr %25, align 8, !tbaa !15
  invoke void @_ZN21DexEncodedValueStringC2EPK9DexString(ptr noundef nonnull align 8 dereferenceable(17) %23, ptr noundef %26)
          to label %27 unwind label %51

27:                                               ; preds = %24
  store ptr %23, ptr %5, align 8, !tbaa !14
  %28 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE12emplace_backIJP21DexEncodedValueStringEEERS4_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %29 unwind label %49

29:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %30 = call noundef ptr @_ZNKSt10unique_ptrISt6vectorIS_I15DexEncodedValueSt14default_deleteIS1_EESaIS4_EES2_IS6_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %31 = invoke noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #8
          to label %32 unwind label %54

32:                                               ; preds = %29
  %33 = getelementptr inbounds i8, ptr %1, i64 16
  %34 = load ptr, ptr %33, align 8, !tbaa !16
  invoke void @_ZN25DexEncodedValueMethodTypeC2EP8DexProto(ptr noundef nonnull align 8 dereferenceable(17) %31, ptr noundef %34)
          to label %35 unwind label %56

35:                                               ; preds = %32
  store ptr %31, ptr %6, align 8, !tbaa !14
  %36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE12emplace_backIJP25DexEncodedValueMethodTypeEEERS4_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %37 unwind label %54

37:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %38 = call ptr @_ZNKSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  store ptr %38, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %39 = call ptr @_ZNKSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  store ptr %39, ptr %8, align 8
  %40 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt10unique_ptrI15DexEncodedValueSt14default_deleteIS2_EESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  br i1 %40, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %67, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %41 = call noundef ptr @_ZNSt10unique_ptrISt6vectorIS_I15DexEncodedValueSt14default_deleteIS1_EESaIS4_EES2_IS6_EE7releaseEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  invoke void @_ZN20DexEncodedValueArrayC2EPSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS2_EESaIS5_EEb(ptr noundef nonnull align 8 dereferenceable(18) %0, ptr noundef %41, i1 noundef zeroext true)
          to label %75 unwind label %42

42:                                               ; preds = %._crit_edge, %2
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %76

44:                                               ; preds = %19, %14
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %48

46:                                               ; preds = %17
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %16, i64 noundef 24) #9
  br label %48

48:                                               ; preds = %46, %44
  %.pn = phi { ptr, i32 } [ %45, %44 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %76

49:                                               ; preds = %27, %21
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %53

51:                                               ; preds = %24
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %23, i64 noundef 24) #9
  br label %53

53:                                               ; preds = %51, %49
  %.pn11 = phi { ptr, i32 } [ %50, %49 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %76

54:                                               ; preds = %35, %29
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %58

56:                                               ; preds = %32
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %31, i64 noundef 24) #9
  br label %58

58:                                               ; preds = %56, %54
  %.pn13 = phi { ptr, i32 } [ %55, %54 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %76

.lr.ph:                                           ; preds = %37, %67
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt10unique_ptrI15DexEncodedValueSt14default_deleteIS2_EESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %60 = call noundef ptr @_ZNKSt10unique_ptrISt6vectorIS_I15DexEncodedValueSt14default_deleteIS1_EESaIS4_EES2_IS6_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %61 = call noundef ptr @_ZNKSt10unique_ptrI15DexEncodedValueSt14default_deleteIS0_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %59) #7
  %62 = load ptr, ptr %61, align 8, !tbaa !17
  %63 = getelementptr inbounds i8, ptr %62, i64 112
  %64 = load ptr, ptr %63, align 8
  invoke void %64(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr") align 8 %9, ptr noundef nonnull align 8 dereferenceable(17) %61)
          to label %65 unwind label %70

65:                                               ; preds = %.lr.ph
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE12emplace_backIJS4_EEERS4_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %60, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %67 unwind label %72

67:                                               ; preds = %65
  call void @_ZNSt10unique_ptrI15DexEncodedValueSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKSt10unique_ptrI15DexEncodedValueSt14default_deleteIS2_EESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %69 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKSt10unique_ptrI15DexEncodedValueSt14default_deleteIS2_EESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  br i1 %69, label %.lr.ph, label %._crit_edge

70:                                               ; preds = %.lr.ph
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %74

72:                                               ; preds = %65
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt10unique_ptrI15DexEncodedValueSt14default_deleteIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  br label %74

74:                                               ; preds = %72, %70
  %.pn15 = phi { ptr, i32 } [ %73, %72 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %76

75:                                               ; preds = %._crit_edge
  call void @_ZNSt10unique_ptrISt6vectorIS_I15DexEncodedValueSt14default_deleteIS1_EESaIS4_EES2_IS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  ret void

76:                                               ; preds = %74, %58, %53, %48, %42
  %.pn15.pn = phi { ptr, i32 } [ %.pn15, %74 ], [ %43, %42 ], [ %.pn13, %58 ], [ %.pn11, %53 ], [ %.pn, %48 ]
  call void @_ZNSt10unique_ptrISt6vectorIS_I15DexEncodedValueSt14default_deleteIS1_EESaIS4_EES2_IS6_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn15.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueISt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS2_EESaIS5_EEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.26") align 8) local_unnamed_addr #4

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

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

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #5

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #6

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN20DexEncodedValueArrayC2EPSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS2_EESaIS5_EEb(ptr noundef nonnull align 8 dereferenceable(18), ptr noundef, i1 noundef zeroext) unnamed_addr #3 align 2

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS11DexCallSite", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseISt10unique_ptrI15DexEncodedValueSt14default_deleteIS1_EESaIS4_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!14 = !{!7, !7, i64 0}
!15 = !{!6, !7, i64 8}
!16 = !{!6, !7, i64 16}
!17 = !{!18, !18, i64 0}
!18 = !{!"vtable pointer", !9, i64 0}


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