; LLVM IR from facebook/redex :: libresource/Serialize.ll (ZN4arsc17ResPackageBuilder9serializeEPN7android6VectorIcEE)

; 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.android::Vector" = type { %"class.android::VectorImpl" }
%"class.android::VectorImpl" = type { ptr, ptr, i64, i32, i64 }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair.168" = type { %"class.std::shared_ptr.170", %"struct.arsc::TypeInfo" }
%"class.std::shared_ptr.170" = type { %"class.std::__shared_ptr.171" }
%"class.std::__shared_ptr.171" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.arsc::TypeInfo" = type { ptr, %"class.std::vector.40" }
%"class.std::vector.40" = type { %"struct.std::_Vector_base.41" }
%"struct.std::_Vector_base.41" = type { %"struct.std::_Vector_base<android::ResTable_type *, std::allocator<android::ResTable_type *>>::_Vector_impl" }
%"struct.std::_Vector_base<android::ResTable_type *, std::allocator<android::ResTable_type *>>::_Vector_impl" = type { %"struct.std::_Vector_base<android::ResTable_type *, std::allocator<android::ResTable_type *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<android::ResTable_type *, std::allocator<android::ResTable_type *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.173" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.174" = type { ptr }
%"struct.std::_Rb_tree_iterator.175" = type { ptr }
%"struct.std::pair.146" = type { ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.176" = type { ptr }
%"class.arsc::ResPackageBuilder" = type { %"struct.std::pair.148", %"struct.std::pair.148", %"class.std::map.150", %"class.std::vector.156", %"class.std::vector.161", i32, i32, i32, i32, [128 x i16] }
%"struct.std::pair.148" = type { %"class.std::shared_ptr", ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::map.150" = type { %"class.std::_Rb_tree.151" }
%"class.std::_Rb_tree.151" = type { %"struct.std::_Rb_tree<unsigned char, std::pair<const unsigned char, std::pair<std::shared_ptr<arsc::ResTableTypeBuilder>, arsc::TypeInfo>>, std::_Select1st<std::pair<const unsigned char, std::pair<std::shared_ptr<arsc::ResTableTypeBuilder>, arsc::TypeInfo>>>, std::less<unsigned char>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned char, std::pair<const unsigned char, std::pair<std::shared_ptr<arsc::ResTableTypeBuilder>, arsc::TypeInfo>>, std::_Select1st<std::pair<const unsigned char, std::pair<std::shared_ptr<arsc::ResTableTypeBuilder>, arsc::TypeInfo>>>, std::less<unsigned char>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.156" = type { %"struct.std::_Vector_base.157" }
%"struct.std::_Vector_base.157" = type { %"struct.std::_Vector_base<arsc::OverlayInfo, std::allocator<arsc::OverlayInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<arsc::OverlayInfo, std::allocator<arsc::OverlayInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<arsc::OverlayInfo, std::allocator<arsc::OverlayInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<arsc::OverlayInfo, std::allocator<arsc::OverlayInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.161" = type { %"struct.std::_Vector_base.162" }
%"struct.std::_Vector_base.162" = type { %"struct.std::_Vector_base<android::ResChunk_header *, std::allocator<android::ResChunk_header *>>::_Vector_impl" }
%"struct.std::_Vector_base<android::ResChunk_header *, std::allocator<android::ResChunk_header *>>::_Vector_impl" = type { %"struct.std::_Vector_base<android::ResChunk_header *, std::allocator<android::ResChunk_header *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<android::ResChunk_header *, std::allocator<android::ResChunk_header *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair.166" = type { i8, %"struct.std::pair.168" }
%"struct.arsc::OverlayInfo" = type { ptr, %"class.std::map" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<android::ResTable_overlayable_policy_header *, std::pair<android::ResTable_overlayable_policy_header *const, unsigned int *>, std::_Select1st<std::pair<android::ResTable_overlayable_policy_header *const, unsigned int *>>, std::less<android::ResTable_overlayable_policy_header *>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<android::ResTable_overlayable_policy_header *, std::pair<android::ResTable_overlayable_policy_header *const, unsigned int *>, std::_Select1st<std::pair<android::ResTable_overlayable_policy_header *const, unsigned int *>>, std::less<android::ResTable_overlayable_policy_header *>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.android::ResTable_overlayable_policy_header" = type { %"struct.android::ResChunk_header", i32, i32 }
%"struct.android::ResChunk_header" = type { i16, i16, i32 }

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: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK7android6VectorIcE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4arsc10push_shortEtPN7android6VectorIcEE(i16 noundef zeroext, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4arsc9push_longEjPN7android6VectorIcEE(i32 noundef, ptr noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4arsc12_GLOBAL__N_18push_vecERN7android6VectorIcEEPS3_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4arsc11OverlayInfo12compute_sizeEPN7android34ResTable_overlayable_policy_headerE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef) #5 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4arsc17ResPackageBuilder9serializeEPN7android6VectorIcEE(ptr noundef nonnull align 8 dereferenceable(416) %0, ptr noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.android::Vector", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %11 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %"struct.std::pair.168", align 8
  %15 = alloca %"struct.arsc::TypeInfo", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.173", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.173", align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.174", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.174", align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca %"struct.std::_Rb_tree_iterator.175", align 8
  %27 = alloca %"struct.std::_Rb_tree_iterator.175", align 8
  %28 = alloca %"struct.std::pair.146", align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i64, align 8
  %34 = alloca ptr, align 8
  %35 = alloca %"class.__gnu_cxx::__normal_iterator.176", align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator.176", align 8
  %37 = alloca ptr, align 8
  %38 = alloca i64, align 8
  %39 = alloca i64, align 8
  %40 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %41 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %5) #6
  call void @_ZN7android6VectorIcEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5)
  %42 = getelementptr inbounds %"class.arsc::ResPackageBuilder", ptr %41, i32 0, i32 1
  invoke void @_ZN4arsc12_GLOBAL__N_117write_string_poolERSt4pairISt10shared_ptrINS_20ResStringPoolBuilderEEPN7android20ResStringPool_headerEEPNS5_6VectorIcEE(ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef %5)
          to label %43 unwind label %58

43:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %44 = invoke noundef i64 @_ZNK7android6VectorIcE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %45 unwind label %62

45:                                               ; preds = %43
  store i64 %44, ptr %8, align 8, !tbaa !9
  %46 = getelementptr inbounds %"class.arsc::ResPackageBuilder", ptr %41, i32 0, i32 0
  invoke void @_ZN4arsc12_GLOBAL__N_117write_string_poolERSt4pairISt10shared_ptrINS_20ResStringPoolBuilderEEPN7android20ResStringPool_headerEEPNS5_6VectorIcEE(ptr noundef nonnull align 8 dereferenceable(24) %46, ptr noundef %5)
          to label %47 unwind label %62

47:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %48 = getelementptr inbounds %"class.arsc::ResPackageBuilder", ptr %41, i32 0, i32 2
  store ptr %48, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = call ptr @_ZNSt3mapIhSt4pairISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS2_8TypeInfoEESt4lessIhESaIS0_IKhS6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %49) #6
  %51 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %10, i32 0, i32 0
  store ptr %50, ptr %51, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = call ptr @_ZNSt3mapIhSt4pairISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS2_8TypeInfoEESt4lessIhESaIS0_IKhS6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %52) #6
  %54 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %11, i32 0, i32 0
  store ptr %53, ptr %54, align 8
  br label %55

55:                                               ; preds = %127, %47
  %56 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKhS0_ISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS3_8TypeInfoEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br i1 %56, label %66, label %57

57:                                               ; preds = %55
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %131

58:                                               ; preds = %2
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %6, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %7, align 4
  br label %326

62:                                               ; preds = %45, %43
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %6, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %7, align 4
  br label %325

66:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %67 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKhS0_ISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS3_8TypeInfoEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  store ptr %67, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %14) #6
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.std::pair.166", ptr %68, i32 0, i32 1
  invoke void @_ZNSt4pairISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS1_8TypeInfoEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(48) %14, ptr noundef nonnull align 8 dereferenceable(48) %69)
          to label %70 unwind label %80

70:                                               ; preds = %66
  %71 = getelementptr inbounds %"struct.std::pair.168", ptr %14, i32 0, i32 0
  %72 = call noundef zeroext i1 @_ZStneIN4arsc19ResTableTypeBuilderEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %71, ptr null) #6
  br i1 %72, label %73, label %88

73:                                               ; preds = %70
  %74 = getelementptr inbounds %"struct.std::pair.168", ptr %14, i32 0, i32 0
  %75 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4arsc19ResTableTypeBuilderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %74) #6
  %76 = load ptr, ptr %75, align 8, !tbaa !11
  %77 = getelementptr inbounds ptr, ptr %76, i64 2
  %78 = load ptr, ptr %77, align 8
  invoke void %78(ptr noundef nonnull align 8 dereferenceable(15) %75, ptr noundef %5)
          to label %79 unwind label %84

79:                                               ; preds = %73
  br label %126

80:                                               ; preds = %66
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %6, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %7, align 4
  br label %130

84:                                               ; preds = %73
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %6, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %7, align 4
  br label %129

88:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  %89 = getelementptr inbounds %"struct.std::pair.168", ptr %14, i32 0, i32 1
  invoke void @_ZN4arsc8TypeInfoC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %89)
          to label %90 unwind label %104

90:                                               ; preds = %88
  %91 = getelementptr inbounds %"struct.arsc::TypeInfo", ptr %15, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8, !tbaa !13
  invoke void @_ZN4arsc12_GLOBAL__N_110push_chunkEPN7android15ResChunk_headerEPNS1_6VectorIcEE(ptr noundef %92, ptr noundef %5)
          to label %93 unwind label %108

93:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %94 = getelementptr inbounds %"struct.arsc::TypeInfo", ptr %15, i32 0, i32 1
  store ptr %94, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %95 = load ptr, ptr %16, align 8, !tbaa !5
  %96 = call ptr @_ZNSt6vectorIPN7android13ResTable_typeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #6
  %97 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.173", ptr %17, i32 0, i32 0
  store ptr %96, ptr %97, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %98 = load ptr, ptr %16, align 8, !tbaa !5
  %99 = call ptr @_ZNSt6vectorIPN7android13ResTable_typeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %98) #6
  %100 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.173", ptr %18, i32 0, i32 0
  store ptr %99, ptr %100, align 8
  br label %101

101:                                              ; preds = %117, %93
  %102 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7android13ResTable_typeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #6
  br i1 %102, label %112, label %103

103:                                              ; preds = %101
  store i32 4, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %123

104:                                              ; preds = %88
  %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
  br label %125

108:                                              ; preds = %90
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %6, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %7, align 4
  br label %124

112:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7android13ResTable_typeESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  %114 = load ptr, ptr %113, align 8, !tbaa !5
  store ptr %114, ptr %19, align 8, !tbaa !5
  %115 = load ptr, ptr %19, align 8, !tbaa !5
  invoke void @_ZN4arsc12_GLOBAL__N_110push_chunkEPN7android15ResChunk_headerEPNS1_6VectorIcEE(ptr noundef %115, ptr noundef %5)
          to label %116 unwind label %119

116:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %117

117:                                              ; preds = %116
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7android13ResTable_typeESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  br label %101

119:                                              ; preds = %112
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %6, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %124

123:                                              ; preds = %103
  call void @_ZN4arsc8TypeInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  br label %126

124:                                              ; preds = %119, %108
  call void @_ZN4arsc8TypeInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %125

125:                                              ; preds = %124, %104
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  br label %129

126:                                              ; preds = %123, %79
  call void @_ZNSt4pairISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS1_8TypeInfoEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %127

127:                                              ; preds = %126
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKhS0_ISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS3_8TypeInfoEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br label %55

129:                                              ; preds = %125, %84
  call void @_ZNSt4pairISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS1_8TypeInfoEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %14) #6
  br label %130

130:                                              ; preds = %129, %80
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %325

131:                                              ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %132 = getelementptr inbounds %"class.arsc::ResPackageBuilder", ptr %41, i32 0, i32 3
  store ptr %132, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %133 = load ptr, ptr %20, align 8, !tbaa !5
  %134 = call ptr @_ZNSt6vectorIN4arsc11OverlayInfoESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %133) #6
  %135 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.174", ptr %21, i32 0, i32 0
  store ptr %134, ptr %135, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %136 = load ptr, ptr %20, align 8, !tbaa !5
  %137 = call ptr @_ZNSt6vectorIN4arsc11OverlayInfoESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %136) #6
  %138 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.174", ptr %22, i32 0, i32 0
  store ptr %137, ptr %138, align 8
  br label %139

139:                                              ; preds = %227, %131
  %140 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4arsc11OverlayInfoESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  br i1 %140, label %142, label %141

141:                                              ; preds = %139
  store i32 6, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %231

142:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %143 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4arsc11OverlayInfoESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  store ptr %143, ptr %23, align 8, !tbaa !5
  %144 = load ptr, ptr %23, align 8, !tbaa !5
  %145 = invoke noundef zeroext i1 @_ZNK4arsc11OverlayInfo5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %144)
          to label %146 unwind label %148

146:                                              ; preds = %142
  br i1 %145, label %147, label %152

147:                                              ; preds = %146
  store i32 7, ptr %12, align 4
  br label %224

148:                                              ; preds = %142
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %6, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %7, align 4
  br label %230

152:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %153 = load ptr, ptr %23, align 8, !tbaa !5
  %154 = call noundef i32 @_ZNK4arsc11OverlayInfo12compute_sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %153)
  store i32 %154, ptr %24, align 4, !tbaa !19
  %155 = load ptr, ptr %23, align 8, !tbaa !5
  %156 = getelementptr inbounds %"struct.arsc::OverlayInfo", ptr %155, i32 0, i32 0
  %157 = load ptr, ptr %156, align 8, !tbaa !21
  %158 = load i32, ptr %24, align 4, !tbaa !19
  invoke void @_ZN4arsc12_GLOBAL__N_129push_header_with_updated_sizeEPN7android15ResChunk_headerEjPNS1_6VectorIcEE(ptr noundef %157, i32 noundef %158, ptr noundef %5)
          to label %159 unwind label %171

159:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %160 = load ptr, ptr %23, align 8, !tbaa !5
  %161 = getelementptr inbounds %"struct.arsc::OverlayInfo", ptr %160, i32 0, i32 1
  store ptr %161, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %162 = load ptr, ptr %25, align 8, !tbaa !5
  %163 = call ptr @_ZNSt3mapIPN7android34ResTable_overlayable_policy_headerEPjSt4lessIS2_ESaISt4pairIKS2_S3_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %162) #6
  %164 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.175", ptr %26, i32 0, i32 0
  store ptr %163, ptr %164, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %165 = load ptr, ptr %25, align 8, !tbaa !5
  %166 = call ptr @_ZNSt3mapIPN7android34ResTable_overlayable_policy_headerEPjSt4lessIS2_ESaISt4pairIKS2_S3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %165) #6
  %167 = getelementptr inbounds %"struct.std::_Rb_tree_iterator.175", ptr %27, i32 0, i32 0
  store ptr %166, ptr %167, align 8
  br label %168

168:                                              ; preds = %221, %159
  %169 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN7android34ResTable_overlayable_policy_headerEPjEES9_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  br i1 %169, label %175, label %170

170:                                              ; preds = %168
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %223

171:                                              ; preds = %152
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %6, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %7, align 4
  br label %229

175:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #6
  %176 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN7android34ResTable_overlayable_policy_headerEPjEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %28, ptr align 8 %176, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %177 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EKPN7android34ResTable_overlayable_policy_headerEPjEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS9_(ptr noundef nonnull align 8 dereferenceable(16) %28) #6
  store ptr %177, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EKPN7android34ResTable_overlayable_policy_headerEPjEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS9_(ptr noundef nonnull align 8 dereferenceable(16) %28) #6
  store ptr %178, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %179 = load ptr, ptr %29, align 8, !tbaa !5
  %180 = load ptr, ptr %179, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.android::ResTable_overlayable_policy_header", ptr %180, i32 0, i32 2
  %182 = load i32, ptr %181, align 4, !tbaa !31
  store i32 %182, ptr %31, align 4, !tbaa !19
  %183 = load i32, ptr %31, align 4, !tbaa !19
  %184 = icmp ugt i32 %183, 0
  br i1 %184, label %185, label %220

185:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  %186 = load ptr, ptr %23, align 8, !tbaa !5
  %187 = load ptr, ptr %29, align 8, !tbaa !5
  %188 = load ptr, ptr %187, align 8, !tbaa !5
  %189 = call noundef i32 @_ZNK4arsc11OverlayInfo12compute_sizeEPN7android34ResTable_overlayable_policy_headerE(ptr noundef nonnull align 8 dereferenceable(56) %186, ptr noundef %188)
  store i32 %189, ptr %32, align 4, !tbaa !19
  %190 = load ptr, ptr %29, align 8, !tbaa !5
  %191 = load ptr, ptr %190, align 8, !tbaa !5
  %192 = load i32, ptr %32, align 4, !tbaa !19
  invoke void @_ZN4arsc12_GLOBAL__N_129push_header_with_updated_sizeEPN7android15ResChunk_headerEjPNS1_6VectorIcEE(ptr noundef %191, i32 noundef %192, ptr noundef %5)
          to label %193 unwind label %200

193:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  store i64 0, ptr %33, align 8, !tbaa !9
  br label %194

194:                                              ; preds = %211, %193
  %195 = load i64, ptr %33, align 8, !tbaa !9
  %196 = load i32, ptr %31, align 4, !tbaa !19
  %197 = zext i32 %196 to i64
  %198 = icmp ult i64 %195, %197
  br i1 %198, label %204, label %199

199:                                              ; preds = %194
  store i32 10, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  br label %218

200:                                              ; preds = %185
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %6, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %7, align 4
  br label %219

204:                                              ; preds = %194
  %205 = load ptr, ptr %30, align 8, !tbaa !5
  %206 = load ptr, ptr %205, align 8, !tbaa !5
  %207 = load i64, ptr %33, align 8, !tbaa !9
  %208 = getelementptr inbounds i32, ptr %206, i64 %207
  %209 = load i32, ptr %208, align 4, !tbaa !19
  invoke void @_ZN4arsc9push_longEjPN7android6VectorIcEE(i32 noundef %209, ptr noundef %5)
          to label %210 unwind label %214

210:                                              ; preds = %204
  br label %211

211:                                              ; preds = %210
  %212 = load i64, ptr %33, align 8, !tbaa !9
  %213 = add i64 %212, 1
  store i64 %213, ptr %33, align 8, !tbaa !9
  br label %194, !llvm.loop !36

214:                                              ; preds = %204
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %6, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  br label %219

218:                                              ; preds = %199
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  br label %220

219:                                              ; preds = %214, %200
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  br label %229

220:                                              ; preds = %218, %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #6
  br label %221

221:                                              ; preds = %220
  %222 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPN7android34ResTable_overlayable_policy_headerEPjEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  br label %168

223:                                              ; preds = %170
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  store i32 0, ptr %12, align 4
  br label %224

224:                                              ; preds = %223, %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  %225 = load i32, ptr %12, align 4
  switch i32 %225, label %332 [
    i32 0, label %226
    i32 7, label %227
  ]

226:                                              ; preds = %224
  br label %227

227:                                              ; preds = %226, %224
  %228 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN4arsc11OverlayInfoESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  br label %139

229:                                              ; preds = %219, %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %230

230:                                              ; preds = %229, %148
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %325

231:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  %232 = getelementptr inbounds %"class.arsc::ResPackageBuilder", ptr %41, i32 0, i32 4
  store ptr %232, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %233 = load ptr, ptr %34, align 8, !tbaa !5
  %234 = call ptr @_ZNSt6vectorIPN7android15ResChunk_headerESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %233) #6
  %235 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.176", ptr %35, i32 0, i32 0
  store ptr %234, ptr %235, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %236 = load ptr, ptr %34, align 8, !tbaa !5
  %237 = call ptr @_ZNSt6vectorIPN7android15ResChunk_headerESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %236) #6
  %238 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.176", ptr %36, i32 0, i32 0
  store ptr %237, ptr %238, align 8
  br label %239

239:                                              ; preds = %247, %231
  %240 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7android15ResChunk_headerESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %36) #6
  br i1 %240, label %242, label %241

241:                                              ; preds = %239
  store i32 13, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  br label %253

242:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  %243 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7android15ResChunk_headerESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #6
  %244 = load ptr, ptr %243, align 8, !tbaa !5
  store ptr %244, ptr %37, align 8, !tbaa !5
  %245 = load ptr, ptr %37, align 8, !tbaa !5
  invoke void @_ZN4arsc12_GLOBAL__N_110push_chunkEPN7android15ResChunk_headerEPNS1_6VectorIcEE(ptr noundef %245, ptr noundef %5)
          to label %246 unwind label %249

246:                                              ; preds = %242
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  br label %247

247:                                              ; preds = %246
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7android15ResChunk_headerESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %35) #6
  br label %239

249:                                              ; preds = %242
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %6, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  br label %325

253:                                              ; preds = %241
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #6
  store i64 288, ptr %38, align 8, !tbaa !9
  %254 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4arsc10push_shortEtPN7android6VectorIcEE(i16 noundef zeroext 512, ptr noundef %254)
          to label %255 unwind label %276

255:                                              ; preds = %253
  %256 = load i64, ptr %38, align 8, !tbaa !9
  %257 = trunc i64 %256 to i16
  %258 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4arsc10push_shortEtPN7android6VectorIcEE(i16 noundef zeroext %257, ptr noundef %258)
          to label %259 unwind label %276

259:                                              ; preds = %255
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #6
  %260 = load i64, ptr %38, align 8, !tbaa !9
  %261 = invoke noundef i64 @_ZNK7android6VectorIcE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %262 unwind label %280

262:                                              ; preds = %259
  %263 = add i64 %260, %261
  store i64 %263, ptr %39, align 8, !tbaa !9
  %264 = load i64, ptr %39, align 8, !tbaa !9
  %265 = trunc i64 %264 to i32
  %266 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4arsc9push_longEjPN7android6VectorIcEE(i32 noundef %265, ptr noundef %266)
          to label %267 unwind label %280

267:                                              ; preds = %262
  %268 = getelementptr inbounds %"class.arsc::ResPackageBuilder", ptr %41, i32 0, i32 5
  %269 = load i32, ptr %268, align 8, !tbaa !38
  %270 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4arsc9push_longEjPN7android6VectorIcEE(i32 noundef %269, ptr noundef %270)
          to label %271 unwind label %280

271:                                              ; preds = %267
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #6
  store i64 0, ptr %40, align 8, !tbaa !9
  br label %272

272:                                              ; preds = %291, %271
  %273 = load i64, ptr %40, align 8, !tbaa !9
  %274 = icmp ult i64 %273, 128
  br i1 %274, label %284, label %275

275:                                              ; preds = %272
  store i32 15, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  br label %298

276:                                              ; preds = %255, %253
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %6, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %7, align 4
  br label %324

280:                                              ; preds = %320, %316, %312, %306, %302, %298, %267, %262, %259
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %6, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %7, align 4
  br label %323

284:                                              ; preds = %272
  %285 = getelementptr inbounds %"class.arsc::ResPackageBuilder", ptr %41, i32 0, i32 9
  %286 = load i64, ptr %40, align 8, !tbaa !9
  %287 = getelementptr inbounds [128 x i16], ptr %285, i64 0, i64 %286
  %288 = load i16, ptr %287, align 2, !tbaa !57
  %289 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4arsc10push_shortEtPN7android6VectorIcEE(i16 noundef zeroext %288, ptr noundef %289)
          to label %290 unwind label %294

290:                                              ; preds = %284
  br label %291

291:                                              ; preds = %290
  %292 = load i64, ptr %40, align 8, !tbaa !9
  %293 = add i64 %292, 1
  store i64 %293, ptr %40, align 8, !tbaa !9
  br label %272, !llvm.loop !58

294:                                              ; preds = %284
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %6, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  br label %323

298:                                              ; preds = %275
  %299 = load i64, ptr %38, align 8, !tbaa !9
  %300 = trunc i64 %299 to i32
  %301 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4arsc9push_longEjPN7android6VectorIcEE(i32 noundef %300, ptr noundef %301)
          to label %302 unwind label %280

302:                                              ; preds = %298
  %303 = getelementptr inbounds %"class.arsc::ResPackageBuilder", ptr %41, i32 0, i32 6
  %304 = load i32, ptr %303, align 4, !tbaa !59
  %305 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4arsc9push_longEjPN7android6VectorIcEE(i32 noundef %304, ptr noundef %305)
          to label %306 unwind label %280

306:                                              ; preds = %302
  %307 = load i64, ptr %38, align 8, !tbaa !9
  %308 = load i64, ptr %8, align 8, !tbaa !9
  %309 = add i64 %307, %308
  %310 = trunc i64 %309 to i32
  %311 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4arsc9push_longEjPN7android6VectorIcEE(i32 noundef %310, ptr noundef %311)
          to label %312 unwind label %280

312:                                              ; preds = %306
  %313 = getelementptr inbounds %"class.arsc::ResPackageBuilder", ptr %41, i32 0, i32 7
  %314 = load i32, ptr %313, align 8, !tbaa !60
  %315 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4arsc9push_longEjPN7android6VectorIcEE(i32 noundef %314, ptr noundef %315)
          to label %316 unwind label %280

316:                                              ; preds = %312
  %317 = getelementptr inbounds %"class.arsc::ResPackageBuilder", ptr %41, i32 0, i32 8
  %318 = load i32, ptr %317, align 4, !tbaa !61
  %319 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4arsc9push_longEjPN7android6VectorIcEE(i32 noundef %318, ptr noundef %319)
          to label %320 unwind label %280

320:                                              ; preds = %316
  %321 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4arsc12_GLOBAL__N_18push_vecERN7android6VectorIcEEPS3_(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef %321)
          to label %322 unwind label %280

322:                                              ; preds = %320
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @_ZN7android6VectorIcED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #6
  ret void

323:                                              ; preds = %294, %280
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  br label %324

324:                                              ; preds = %323, %276
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  br label %325

325:                                              ; preds = %324, %249, %230, %130, %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %326

326:                                              ; preds = %325, %58
  call void @_ZN7android6VectorIcED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #6
  br label %327

327:                                              ; preds = %326
  %328 = load ptr, ptr %6, align 8
  %329 = load i32, ptr %7, align 4
  %330 = insertvalue { ptr, i32 } poison, ptr %328, 0
  %331 = insertvalue { ptr, i32 } %330, i32 %329, 1
  resume { ptr, i32 } %331

332:                                              ; preds = %224
  unreachable
}

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4arsc12_GLOBAL__N_117write_string_poolERSt4pairISt10shared_ptrINS_20ResStringPoolBuilderEEPN7android20ResStringPool_headerEEPNS5_6VectorIcEE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4arsc12_GLOBAL__N_110push_chunkEPN7android15ResChunk_headerEPNS1_6VectorIcEE(ptr noundef, ptr noundef) #2

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4arsc12_GLOBAL__N_129push_header_with_updated_sizeEPN7android15ResChunk_headerEjPNS1_6VectorIcEE(ptr noundef, i32 noundef, ptr noundef) #2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EKPN7android34ResTable_overlayable_policy_headerEPjEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS9_(ptr noundef nonnull align 8 dereferenceable(16)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EKPN7android34ResTable_overlayable_policy_headerEPjEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS9_(ptr noundef nonnull align 8 dereferenceable(16)) #5

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSN4arsc8TypeInfoE", !6, i64 0, !15, i64 8}
!15 = !{!"_ZTSSt6vectorIPN7android13ResTable_typeESaIS2_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIPN7android13ResTable_typeESaIS2_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN7android13ResTable_typeESaIS2_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN7android13ResTable_typeESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!20, !20, i64 0}
!20 = !{!"int", !7, i64 0}
!21 = !{!22, !6, i64 0}
!22 = !{!"_ZTSN4arsc11OverlayInfoE", !6, i64 0, !23, i64 8}
!23 = !{!"_ZTSSt3mapIPN7android34ResTable_overlayable_policy_headerEPjSt4lessIS2_ESaISt4pairIKS2_S3_EEE", !24, i64 0}
!24 = !{!"_ZTSSt8_Rb_treeIPN7android34ResTable_overlayable_policy_headerESt4pairIKS2_PjESt10_Select1stIS6_ESt4lessIS2_ESaIS6_EE", !25, i64 0}
!25 = !{!"_ZTSNSt8_Rb_treeIPN7android34ResTable_overlayable_policy_headerESt4pairIKS2_PjESt10_Select1stIS6_ESt4lessIS2_ESaIS6_EE13_Rb_tree_implISA_Lb1EEE", !26, i64 0, !28, i64 8}
!26 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIPN7android34ResTable_overlayable_policy_headerEEE", !27, i64 0}
!27 = !{!"_ZTSSt4lessIPN7android34ResTable_overlayable_policy_headerEE"}
!28 = !{!"_ZTSSt15_Rb_tree_header", !29, i64 0, !10, i64 32}
!29 = !{!"_ZTSSt18_Rb_tree_node_base", !30, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!30 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!31 = !{!32, !20, i64 12}
!32 = !{!"_ZTSN7android34ResTable_overlayable_policy_headerE", !33, i64 0, !35, i64 8, !20, i64 12}
!33 = !{!"_ZTSN7android15ResChunk_headerE", !34, i64 0, !34, i64 2, !20, i64 4}
!34 = !{!"short", !7, i64 0}
!35 = !{!"_ZTSN7android34ResTable_overlayable_policy_header11PolicyFlagsE", !7, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!39, !20, i64 144}
!39 = !{!"_ZTSN4arsc17ResPackageBuilderE", !40, i64 0, !40, i64 24, !44, i64 48, !49, i64 96, !53, i64 120, !20, i64 144, !20, i64 148, !20, i64 152, !20, i64 156, !7, i64 160}
!40 = !{!"_ZTSSt4pairISt10shared_ptrIN4arsc20ResStringPoolBuilderEEPN7android20ResStringPool_headerEE", !41, i64 0, !6, i64 16}
!41 = !{!"_ZTSSt10shared_ptrIN4arsc20ResStringPoolBuilderEE", !42, i64 0}
!42 = !{!"_ZTSSt12__shared_ptrIN4arsc20ResStringPoolBuilderELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !43, i64 8}
!43 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!44 = !{!"_ZTSSt3mapIhSt4pairISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS2_8TypeInfoEESt4lessIhESaIS0_IKhS6_EEE", !45, i64 0}
!45 = !{!"_ZTSSt8_Rb_treeIhSt4pairIKhS0_ISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS3_8TypeInfoEEESt10_Select1stIS8_ESt4lessIhESaIS8_EE", !46, i64 0}
!46 = !{!"_ZTSNSt8_Rb_treeIhSt4pairIKhS0_ISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS3_8TypeInfoEEESt10_Select1stIS8_ESt4lessIhESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !47, i64 0, !28, i64 8}
!47 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIhEE", !48, i64 0}
!48 = !{!"_ZTSSt4lessIhE"}
!49 = !{!"_ZTSSt6vectorIN4arsc11OverlayInfoESaIS1_EE", !50, i64 0}
!50 = !{!"_ZTSSt12_Vector_baseIN4arsc11OverlayInfoESaIS1_EE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseIN4arsc11OverlayInfoESaIS1_EE12_Vector_implE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseIN4arsc11OverlayInfoESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!53 = !{!"_ZTSSt6vectorIPN7android15ResChunk_headerESaIS2_EE", !54, i64 0}
!54 = !{!"_ZTSSt12_Vector_baseIPN7android15ResChunk_headerESaIS2_EE", !55, i64 0}
!55 = !{!"_ZTSNSt12_Vector_baseIPN7android15ResChunk_headerESaIS2_EE12_Vector_implE", !56, i64 0}
!56 = !{!"_ZTSNSt12_Vector_baseIPN7android15ResChunk_headerESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!57 = !{!34, !34, i64 0}
!58 = distinct !{!58, !37}
!59 = !{!39, !20, i64 148}
!60 = !{!39, !20, i64 152}
!61 = !{!39, !20, i64 156}


; 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.android::Vector" = type { %"class.android::VectorImpl" }
%"class.android::VectorImpl" = type { ptr, ptr, i64, i32, i64 }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%"struct.std::pair.168" = type { %"class.std::shared_ptr.170", %"struct.arsc::TypeInfo" }
%"class.std::shared_ptr.170" = type { %"class.std::__shared_ptr.171" }
%"class.std::__shared_ptr.171" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.arsc::TypeInfo" = type { ptr, %"class.std::vector.40" }
%"class.std::vector.40" = type { %"struct.std::_Vector_base.41" }
%"struct.std::_Vector_base.41" = type { %"struct.std::_Vector_base<android::ResTable_type *, std::allocator<android::ResTable_type *>>::_Vector_impl" }
%"struct.std::_Vector_base<android::ResTable_type *, std::allocator<android::ResTable_type *>>::_Vector_impl" = type { %"struct.std::_Vector_base<android::ResTable_type *, std::allocator<android::ResTable_type *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<android::ResTable_type *, std::allocator<android::ResTable_type *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.173" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.174" = type { ptr }
%"struct.std::_Rb_tree_iterator.175" = type { ptr }
%"struct.std::pair.146" = type { ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.176" = 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: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK7android6VectorIcE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4arsc10push_shortEtPN7android6VectorIcEE(i16 noundef zeroext, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4arsc9push_longEjPN7android6VectorIcEE(i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4arsc12_GLOBAL__N_18push_vecERN7android6VectorIcEEPS3_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4arsc11OverlayInfo12compute_sizeEPN7android34ResTable_overlayable_policy_headerE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4arsc17ResPackageBuilder9serializeEPN7android6VectorIcEE(ptr noundef nonnull align 8 dereferenceable(416) %0, ptr noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.android::Vector", align 8
  %4 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %5 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %6 = alloca %"struct.std::pair.168", align 8
  %7 = alloca %"struct.arsc::TypeInfo", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.173", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.173", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.174", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.174", align 8
  %12 = alloca %"struct.std::_Rb_tree_iterator.175", align 8
  %13 = alloca %"struct.std::_Rb_tree_iterator.175", align 8
  %14 = alloca %"struct.std::pair.146", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator.176", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator.176", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #6
  call void @_ZN7android6VectorIcEC2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3)
  %17 = getelementptr inbounds i8, ptr %0, i64 24
  invoke void @_ZN4arsc12_GLOBAL__N_117write_string_poolERSt4pairISt10shared_ptrINS_20ResStringPoolBuilderEEPN7android20ResStringPool_headerEEPNS5_6VectorIcEE(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull %3)
          to label %18 unwind label %32

18:                                               ; preds = %2
  %19 = invoke noundef i64 @_ZNK7android6VectorIcE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %20 unwind label %34

20:                                               ; preds = %18
  invoke void @_ZN4arsc12_GLOBAL__N_117write_string_poolERSt4pairISt10shared_ptrINS_20ResStringPoolBuilderEEPN7android20ResStringPool_headerEEPNS5_6VectorIcEE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull %3)
          to label %21 unwind label %34

21:                                               ; preds = %20
  %22 = getelementptr inbounds i8, ptr %0, i64 48
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %23 = call ptr @_ZNSt3mapIhSt4pairISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS2_8TypeInfoEESt4lessIhESaIS0_IKhS6_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %22) #6
  store ptr %23, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %24 = call ptr @_ZNSt3mapIhSt4pairISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS2_8TypeInfoEESt4lessIhESaIS0_IKhS6_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %22) #6
  store ptr %24, ptr %5, align 8
  %25 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKhS0_ISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS3_8TypeInfoEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br i1 %25, label %.lr.ph79, label %._crit_edge80

.lr.ph79:                                         ; preds = %21
  %26 = getelementptr inbounds i8, ptr %6, i64 16
  %27 = getelementptr inbounds i8, ptr %7, i64 8
  br label %36

._crit_edge80:                                    ; preds = %70, %21
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %28 = getelementptr inbounds i8, ptr %0, i64 96
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %29 = call ptr @_ZNSt6vectorIN4arsc11OverlayInfoESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #6
  store ptr %29, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %30 = call ptr @_ZNSt6vectorIN4arsc11OverlayInfoESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #6
  store ptr %30, ptr %11, align 8
  %31 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4arsc11OverlayInfoESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br i1 %31, label %.lr.ph86, label %._crit_edge87

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

34:                                               ; preds = %20, %18
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %161

36:                                               ; preds = %.lr.ph79, %70
  %37 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKhS0_ISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS3_8TypeInfoEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #6
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  invoke void @_ZNSt4pairISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS1_8TypeInfoEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(48) %38)
          to label %39 unwind label %46

39:                                               ; preds = %36
  %40 = call noundef zeroext i1 @_ZStneIN4arsc19ResTableTypeBuilderEEbRKSt10shared_ptrIT_EDn(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr null) #6
  br i1 %40, label %41, label %50

41:                                               ; preds = %39
  %42 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4arsc19ResTableTypeBuilderELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %43, i64 16
  %45 = load ptr, ptr %44, align 8
  invoke void %45(ptr noundef nonnull align 8 dereferenceable(15) %42, ptr noundef nonnull %3)
          to label %70 unwind label %48

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

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

50:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  invoke void @_ZN4arsc8TypeInfoC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %26)
          to label %51 unwind label %57

51:                                               ; preds = %50
  %52 = load ptr, ptr %7, align 8, !tbaa !8
  invoke void @_ZN4arsc12_GLOBAL__N_110push_chunkEPN7android15ResChunk_headerEPNS1_6VectorIcEE(ptr noundef %52, ptr noundef nonnull %3)
          to label %53 unwind label %59

53:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %54 = call ptr @_ZNSt6vectorIPN7android13ResTable_typeESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  store ptr %54, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %55 = call ptr @_ZNSt6vectorIPN7android13ResTable_typeESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #6
  store ptr %55, ptr %9, align 8
  %56 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7android13ResTable_typeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br i1 %56, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %63, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @_ZN4arsc8TypeInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  br label %70

57:                                               ; preds = %50
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %69

59:                                               ; preds = %51
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %68

.lr.ph:                                           ; preds = %53, %63
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7android13ResTable_typeESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  %62 = load ptr, ptr %61, align 8, !tbaa !16
  invoke void @_ZN4arsc12_GLOBAL__N_110push_chunkEPN7android15ResChunk_headerEPNS1_6VectorIcEE(ptr noundef %62, ptr noundef nonnull %3)
          to label %63 unwind label %66

63:                                               ; preds = %.lr.ph
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7android13ResTable_typeESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  %65 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7android13ResTable_typeESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br i1 %65, label %.lr.ph, label %._crit_edge

66:                                               ; preds = %.lr.ph
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %68

68:                                               ; preds = %66, %59
  %.pn69 = phi { ptr, i32 } [ %67, %66 ], [ %60, %59 ]
  call void @_ZN4arsc8TypeInfoD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %69

69:                                               ; preds = %68, %57
  %.pn69.pn = phi { ptr, i32 } [ %.pn69, %68 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  br label %73

70:                                               ; preds = %41, %._crit_edge
  call void @_ZNSt4pairISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS1_8TypeInfoEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #6
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKhS0_ISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS3_8TypeInfoEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  %72 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKhS0_ISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS3_8TypeInfoEEEESB_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br i1 %72, label %36, label %._crit_edge80

73:                                               ; preds = %69, %48
  %.pn72 = phi { ptr, i32 } [ %49, %48 ], [ %.pn69.pn, %69 ]
  call void @_ZNSt4pairISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS1_8TypeInfoEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #6
  br label %74

74:                                               ; preds = %73, %46
  %.pn72.pn = phi { ptr, i32 } [ %.pn72, %73 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %161

._crit_edge87:                                    ; preds = %114, %._crit_edge80
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  %75 = getelementptr inbounds i8, ptr %0, i64 120
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  %76 = call ptr @_ZNSt6vectorIPN7android15ResChunk_headerESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %75) #6
  store ptr %76, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  %77 = call ptr @_ZNSt6vectorIPN7android15ResChunk_headerESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %75) #6
  store ptr %77, ptr %16, align 8
  %78 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7android15ResChunk_headerESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br i1 %78, label %.lr.ph89, label %._crit_edge90

.lr.ph86:                                         ; preds = %._crit_edge80, %114
  %79 = call noundef nonnull align 8 dereferenceable(56) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN4arsc11OverlayInfoESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %80 = call noundef zeroext i1 @_ZNK4arsc11OverlayInfo5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %79)
  br i1 %80, label %114, label %81

81:                                               ; preds = %.lr.ph86
  %82 = call noundef i32 @_ZNK4arsc11OverlayInfo12compute_sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %79)
  %83 = load ptr, ptr %79, align 8, !tbaa !17
  invoke void @_ZN4arsc12_GLOBAL__N_129push_header_with_updated_sizeEPN7android15ResChunk_headerEjPNS1_6VectorIcEE(ptr noundef %83, i32 noundef %82, ptr noundef nonnull %3)
          to label %84 unwind label %89

84:                                               ; preds = %81
  %85 = getelementptr inbounds i8, ptr %79, i64 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %86 = call ptr @_ZNSt3mapIPN7android34ResTable_overlayable_policy_headerEPjSt4lessIS2_ESaISt4pairIKS2_S3_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %85) #6
  store ptr %86, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  %87 = call ptr @_ZNSt3mapIPN7android34ResTable_overlayable_policy_headerEPjSt4lessIS2_ESaISt4pairIKS2_S3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %85) #6
  store ptr %87, ptr %13, align 8
  %88 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN7android34ResTable_overlayable_policy_headerEPjEES9_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br i1 %88, label %.lr.ph83, label %._crit_edge84

._crit_edge84:                                    ; preds = %.loopexit, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br label %114

89:                                               ; preds = %81
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %117

.lr.ph83:                                         ; preds = %84, %.loopexit
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #6
  %91 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKPN7android34ResTable_overlayable_policy_headerEPjEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %91, i64 16, i1 false)
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EKPN7android34ResTable_overlayable_policy_headerEPjEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS9_(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm1EKPN7android34ResTable_overlayable_policy_headerEPjEONSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeEOS9_(ptr noundef nonnull align 8 dereferenceable(16) %14) #6
  %94 = load ptr, ptr %92, align 8, !tbaa !16
  %95 = getelementptr inbounds i8, ptr %94, i64 12
  %96 = load i32, ptr %95, align 4, !tbaa !28
  %.not = icmp eq i32 %96, 0
  br i1 %.not, label %.loopexit, label %97

97:                                               ; preds = %.lr.ph83
  %98 = call noundef i32 @_ZNK4arsc11OverlayInfo12compute_sizeEPN7android34ResTable_overlayable_policy_headerE(ptr noundef nonnull align 8 dereferenceable(56) %79, ptr noundef nonnull %94)
  %99 = load ptr, ptr %92, align 8, !tbaa !16
  invoke void @_ZN4arsc12_GLOBAL__N_129push_header_with_updated_sizeEPN7android15ResChunk_headerEjPNS1_6VectorIcEE(ptr noundef %99, i32 noundef %98, ptr noundef nonnull %3)
          to label %.preheader77 unwind label %101

.preheader77:                                     ; preds = %97
  %100 = zext i32 %96 to i64
  br label %103

101:                                              ; preds = %97
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %111

103:                                              ; preds = %.preheader77, %107
  %.06281 = phi i64 [ 0, %.preheader77 ], [ %108, %107 ]
  %104 = load ptr, ptr %93, align 8, !tbaa !16
  %105 = getelementptr inbounds i32, ptr %104, i64 %.06281
  %106 = load i32, ptr %105, align 4, !tbaa !34
  invoke void @_ZN4arsc9push_longEjPN7android6VectorIcEE(i32 noundef %106, ptr noundef nonnull %3)
          to label %107 unwind label %109

107:                                              ; preds = %103
  %108 = add nuw nsw i64 %.06281, 1
  %exitcond.not = icmp eq i64 %108, %100
  br i1 %exitcond.not, label %.loopexit, label %103, !llvm.loop !35

109:                                              ; preds = %103
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %111

111:                                              ; preds = %109, %101
  %.pn66 = phi { ptr, i32 } [ %110, %109 ], [ %102, %101 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br label %117

.loopexit:                                        ; preds = %107, %.lr.ph83
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #6
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKPN7android34ResTable_overlayable_policy_headerEPjEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  %113 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKPN7android34ResTable_overlayable_policy_headerEPjEES9_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br i1 %113, label %.lr.ph83, label %._crit_edge84

114:                                              ; preds = %.lr.ph86, %._crit_edge84
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN4arsc11OverlayInfoESt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %116 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN4arsc11OverlayInfoESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESC_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br i1 %116, label %.lr.ph86, label %._crit_edge87

117:                                              ; preds = %111, %89
  %.pn66.pn = phi { ptr, i32 } [ %.pn66, %111 ], [ %90, %89 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %161

._crit_edge90:                                    ; preds = %120, %._crit_edge87
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  invoke void @_ZN4arsc10push_shortEtPN7android6VectorIcEE(i16 noundef zeroext 512, ptr noundef %1)
          to label %125 unwind label %136

.lr.ph89:                                         ; preds = %._crit_edge87, %120
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7android15ResChunk_headerESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  %119 = load ptr, ptr %118, align 8, !tbaa !16
  invoke void @_ZN4arsc12_GLOBAL__N_110push_chunkEPN7android15ResChunk_headerEPNS1_6VectorIcEE(ptr noundef %119, ptr noundef nonnull %3)
          to label %120 unwind label %123

120:                                              ; preds = %.lr.ph89
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7android15ResChunk_headerESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  %122 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7android15ResChunk_headerESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br i1 %122, label %.lr.ph89, label %._crit_edge90

123:                                              ; preds = %.lr.ph89
  %124 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  br label %161

125:                                              ; preds = %._crit_edge90
  invoke void @_ZN4arsc10push_shortEtPN7android6VectorIcEE(i16 noundef zeroext 288, ptr noundef %1)
          to label %126 unwind label %136

126:                                              ; preds = %125
  %127 = invoke noundef i64 @_ZNK7android6VectorIcE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %128 unwind label %138

128:                                              ; preds = %126
  %129 = trunc i64 %127 to i32
  %130 = add i32 %129, 288
  invoke void @_ZN4arsc9push_longEjPN7android6VectorIcEE(i32 noundef %130, ptr noundef %1)
          to label %131 unwind label %138

131:                                              ; preds = %128
  %132 = getelementptr inbounds i8, ptr %0, i64 144
  %133 = load i32, ptr %132, align 8, !tbaa !37
  invoke void @_ZN4arsc9push_longEjPN7android6VectorIcEE(i32 noundef %133, ptr noundef %1)
          to label %.preheader unwind label %138

.preheader:                                       ; preds = %131
  %134 = getelementptr inbounds i8, ptr %0, i64 160
  br label %140

135:                                              ; preds = %143
  invoke void @_ZN4arsc9push_longEjPN7android6VectorIcEE(i32 noundef 288, ptr noundef %1)
          to label %147 unwind label %138

136:                                              ; preds = %125, %._crit_edge90
  %137 = landingpad { ptr, i32 }
          cleanup
  br label %161

138:                                              ; preds = %159, %156, %153, %150, %147, %135, %131, %128, %126
  %139 = landingpad { ptr, i32 }
          cleanup
  br label %161

140:                                              ; preds = %.preheader, %143
  %.091 = phi i64 [ 0, %.preheader ], [ %144, %143 ]
  %141 = getelementptr inbounds [128 x i16], ptr %134, i64 0, i64 %.091
  %142 = load i16, ptr %141, align 2, !tbaa !56
  invoke void @_ZN4arsc10push_shortEtPN7android6VectorIcEE(i16 noundef zeroext %142, ptr noundef %1)
          to label %143 unwind label %145

143:                                              ; preds = %140
  %144 = add nuw nsw i64 %.091, 1
  %exitcond92.not = icmp eq i64 %144, 128
  br i1 %exitcond92.not, label %135, label %140, !llvm.loop !57

145:                                              ; preds = %140
  %146 = landingpad { ptr, i32 }
          cleanup
  br label %161

147:                                              ; preds = %135
  %148 = getelementptr inbounds i8, ptr %0, i64 148
  %149 = load i32, ptr %148, align 4, !tbaa !58
  invoke void @_ZN4arsc9push_longEjPN7android6VectorIcEE(i32 noundef %149, ptr noundef %1)
          to label %150 unwind label %138

150:                                              ; preds = %147
  %151 = trunc i64 %19 to i32
  %152 = add i32 %151, 288
  invoke void @_ZN4arsc9push_longEjPN7android6VectorIcEE(i32 noundef %152, ptr noundef %1)
          to label %153 unwind label %138

153:                                              ; preds = %150
  %154 = getelementptr inbounds i8, ptr %0, i64 152
  %155 = load i32, ptr %154, align 8, !tbaa !59
  invoke void @_ZN4arsc9push_longEjPN7android6VectorIcEE(i32 noundef %155, ptr noundef %1)
          to label %156 unwind label %138

156:                                              ; preds = %153
  %157 = getelementptr inbounds i8, ptr %0, i64 156
  %158 = load i32, ptr %157, align 4, !tbaa !60
  invoke void @_ZN4arsc9push_longEjPN7android6VectorIcEE(i32 noundef %158, ptr noundef %1)
          to label %159 unwind label %138

159:                                              ; preds = %156
  invoke void @_ZN4arsc12_GLOBAL__N_18push_vecERN7android6VectorIcEEPS3_(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef %1)
          to label %160 unwind label %138

160:                                              ; preds = %159
  call void @_ZN7android6VectorIcED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #6
  ret void

161:                                              ; preds = %34, %74, %117, %123, %138, %145, %136, %32
  %.pn72.pn.pn.pn = phi { ptr, i32 } [ %33, %32 ], [ %.pn72.pn, %74 ], [ %.pn66.pn, %117 ], [ %124, %123 ], [ %35, %34 ], [ %137, %136 ], [ %146, %145 ], [ %139, %138 ]
  call void @_ZN7android6VectorIcED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn72.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4arsc12_GLOBAL__N_117write_string_poolERSt4pairISt10shared_ptrINS_20ResStringPoolBuilderEEPN7android20ResStringPool_headerEEPNS5_6VectorIcEE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4arsc12_GLOBAL__N_110push_chunkEPN7android15ResChunk_headerEPNS1_6VectorIcEE(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4arsc12_GLOBAL__N_129push_header_with_updated_sizeEPN7android15ResChunk_headerEjPNS1_6VectorIcEE(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 0}
!9 = !{!"_ZTSN4arsc8TypeInfoE", !10, i64 0, !12, i64 8}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = !{!"_ZTSSt6vectorIPN7android13ResTable_typeESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIPN7android13ResTable_typeESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIPN7android13ResTable_typeESaIS2_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIPN7android13ResTable_typeESaIS2_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!16 = !{!10, !10, i64 0}
!17 = !{!18, !10, i64 0}
!18 = !{!"_ZTSN4arsc11OverlayInfoE", !10, i64 0, !19, i64 8}
!19 = !{!"_ZTSSt3mapIPN7android34ResTable_overlayable_policy_headerEPjSt4lessIS2_ESaISt4pairIKS2_S3_EEE", !20, i64 0}
!20 = !{!"_ZTSSt8_Rb_treeIPN7android34ResTable_overlayable_policy_headerESt4pairIKS2_PjESt10_Select1stIS6_ESt4lessIS2_ESaIS6_EE", !21, i64 0}
!21 = !{!"_ZTSNSt8_Rb_treeIPN7android34ResTable_overlayable_policy_headerESt4pairIKS2_PjESt10_Select1stIS6_ESt4lessIS2_ESaIS6_EE13_Rb_tree_implISA_Lb1EEE", !22, i64 0, !24, i64 8}
!22 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIPN7android34ResTable_overlayable_policy_headerEEE", !23, i64 0}
!23 = !{!"_ZTSSt4lessIPN7android34ResTable_overlayable_policy_headerEE"}
!24 = !{!"_ZTSSt15_Rb_tree_header", !25, i64 0, !27, i64 32}
!25 = !{!"_ZTSSt18_Rb_tree_node_base", !26, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!26 = !{!"_ZTSSt14_Rb_tree_color", !11, i64 0}
!27 = !{!"long", !11, i64 0}
!28 = !{!29, !32, i64 12}
!29 = !{!"_ZTSN7android34ResTable_overlayable_policy_headerE", !30, i64 0, !33, i64 8, !32, i64 12}
!30 = !{!"_ZTSN7android15ResChunk_headerE", !31, i64 0, !31, i64 2, !32, i64 4}
!31 = !{!"short", !11, i64 0}
!32 = !{!"int", !11, i64 0}
!33 = !{!"_ZTSN7android34ResTable_overlayable_policy_header11PolicyFlagsE", !11, i64 0}
!34 = !{!32, !32, i64 0}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = !{!38, !32, i64 144}
!38 = !{!"_ZTSN4arsc17ResPackageBuilderE", !39, i64 0, !39, i64 24, !43, i64 48, !48, i64 96, !52, i64 120, !32, i64 144, !32, i64 148, !32, i64 152, !32, i64 156, !11, i64 160}
!39 = !{!"_ZTSSt4pairISt10shared_ptrIN4arsc20ResStringPoolBuilderEEPN7android20ResStringPool_headerEE", !40, i64 0, !10, i64 16}
!40 = !{!"_ZTSSt10shared_ptrIN4arsc20ResStringPoolBuilderEE", !41, i64 0}
!41 = !{!"_ZTSSt12__shared_ptrIN4arsc20ResStringPoolBuilderELN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0, !42, i64 8}
!42 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !10, i64 0}
!43 = !{!"_ZTSSt3mapIhSt4pairISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS2_8TypeInfoEESt4lessIhESaIS0_IKhS6_EEE", !44, i64 0}
!44 = !{!"_ZTSSt8_Rb_treeIhSt4pairIKhS0_ISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS3_8TypeInfoEEESt10_Select1stIS8_ESt4lessIhESaIS8_EE", !45, i64 0}
!45 = !{!"_ZTSNSt8_Rb_treeIhSt4pairIKhS0_ISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS3_8TypeInfoEEESt10_Select1stIS8_ESt4lessIhESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !46, i64 0, !24, i64 8}
!46 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIhEE", !47, i64 0}
!47 = !{!"_ZTSSt4lessIhE"}
!48 = !{!"_ZTSSt6vectorIN4arsc11OverlayInfoESaIS1_EE", !49, i64 0}
!49 = !{!"_ZTSSt12_Vector_baseIN4arsc11OverlayInfoESaIS1_EE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseIN4arsc11OverlayInfoESaIS1_EE12_Vector_implE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseIN4arsc11OverlayInfoESaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!52 = !{!"_ZTSSt6vectorIPN7android15ResChunk_headerESaIS2_EE", !53, i64 0}
!53 = !{!"_ZTSSt12_Vector_baseIPN7android15ResChunk_headerESaIS2_EE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseIPN7android15ResChunk_headerESaIS2_EE12_Vector_implE", !55, i64 0}
!55 = !{!"_ZTSNSt12_Vector_baseIPN7android15ResChunk_headerESaIS2_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!56 = !{!31, !31, i64 0}
!57 = distinct !{!57, !36}
!58 = !{!38, !32, i64 148}
!59 = !{!38, !32, i64 152}
!60 = !{!38, !32, i64 156}


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