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

; 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.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.135 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.135 = type { i64, [8 x i8] }
%"class.arsc::SimpleXmlParser" = type { %"class.arsc::XmlFileVisitor", ptr, %"class.android::ResStringPool", ptr, i64, ptr }
%"class.arsc::XmlFileVisitor" = type { %"class.arsc::VisitorBase" }
%"class.arsc::VisitorBase" = type { ptr, ptr, i64 }
%"class.android::ResStringPool" = type <{ ptr, i32, [4 x i8], ptr, ptr, i64, %"class.std::mutex", ptr, ptr, ptr, ptr, i32, [4 x i8], ptr, i32, [4 x i8] }>
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.arsc::ResStringPoolBuilder" = type { i32, %"class.std::vector.122", %"class.std::vector.127" }
%"class.std::vector.122" = type { %"struct.std::_Vector_base.123" }
%"struct.std::_Vector_base.123" = type { %"struct.std::_Vector_base<arsc::StringHolder, std::allocator<arsc::StringHolder>>::_Vector_impl" }
%"struct.std::_Vector_base<arsc::StringHolder, std::allocator<arsc::StringHolder>>::_Vector_impl" = type { %"struct.std::_Vector_base<arsc::StringHolder, std::allocator<arsc::StringHolder>>::_Vector_impl_data" }
%"struct.std::_Vector_base<arsc::StringHolder, std::allocator<arsc::StringHolder>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.127" = type { %"struct.std::_Vector_base.128" }
%"struct.std::_Vector_base.128" = type { %"struct.std::_Vector_base<arsc::StyleInfo, std::allocator<arsc::StyleInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<arsc::StyleInfo, std::allocator<arsc::StyleInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<arsc::StyleInfo, std::allocator<arsc::StyleInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<arsc::StyleInfo, std::allocator<arsc::StyleInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.arsc::ResXmlIdsBuilder" = type { %"class.std::vector.32" }
%"class.std::vector.32" = type { %"struct.std::_Vector_base.33" }
%"struct.std::_Vector_base.33" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.arsc::ResFileManipulator" = type { %"class.std::unordered_map.188", %"class.std::unordered_map.208", ptr, i64 }
%"class.std::unordered_map.188" = type { %"class.std::_Hashtable.189" }
%"class.std::_Hashtable.189" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::unordered_map.208" = type { %"class.std::_Hashtable.209" }
%"class.std::_Hashtable.209" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.boost::optional" = type { %"class.boost::optional_detail::tc_optional_base" }
%"class.boost::optional_detail::tc_optional_base" = type { i8, i64 }
%"struct.boost::none_t" = type { i8 }
%"class.std::unordered_map.256" = type { %"class.std::_Hashtable.257" }
%"class.std::_Hashtable.257" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::pair.270" = type <{ %"struct.std::__detail::_Node_iterator.272", i8, [7 x i8] }>
%"struct.std::__detail::_Node_iterator.272" = type { %"struct.std::__detail::_Node_iterator_base.273" }
%"struct.std::__detail::_Node_iterator_base.273" = type { ptr }
%"class.arsc::XmlStringRefRemapper" = type { %"class.arsc::SimpleXmlParser", %"class.std::unordered_map.256", %"class.std::unordered_set.275" }
%"class.std::unordered_set.275" = type { %"class.std::_Hashtable.276" }
%"class.std::_Hashtable.276" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [35 x i8], align 1

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: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: noreturn nounwind
declare void @abort() #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4arsc20ResStringPoolBuilder10add_stringENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef) #4 align 2

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4arsc18ResFileManipulatorC2EPcm(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, i64 noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4arsc18ResFileManipulator9delete_atEPvm(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, i64 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4arsc18ResFileManipulator19add_serializable_atINS_20ResStringPoolBuilderEEEvPvRT_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, ptr noundef nonnull align 8 dereferenceable(56)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4arsc18ResFileManipulator9serializeEPN7android6VectorIcEE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4arsc25ensure_string_in_xml_poolEPKvmRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7android6VectorIcEEPm(ptr noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef) #4

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

declare noundef zeroext i1 @_ZN4arsc14XmlFileVisitor5visitEPvm(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i64 noundef) unnamed_addr #7

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4arsc20get_string_from_poolB5cxx11ERKN7android13ResStringPoolEm(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(132), i64 noundef) #1

declare noundef zeroext i1 @_ZNK7android13ResStringPool6isUTF8Ev(ptr noundef nonnull align 8 dereferenceable(132)) #7

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4arsc20ResStringPoolBuilder10add_stringERKN7android13ResStringPoolEm(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(132), i64 noundef) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN4arsc27ensure_attribute_in_xml_docEPKvmRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKjPN7android6VectorIcEEPm(ptr noundef %0, i64 noundef %1, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef %4, ptr noundef %5) #4 personality ptr @__gxx_personality_v0 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.arsc::SimpleXmlParser", align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca %"class.arsc::ResStringPoolBuilder", align 8
  %22 = alloca %"class.arsc::ResXmlIdsBuilder", align 8
  %23 = alloca i64, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca i64, align 8
  %30 = alloca %"class.arsc::ResFileManipulator", align 8
  %31 = alloca ptr, align 8
  %32 = alloca i64, align 8
  %33 = alloca %"class.boost::optional", align 8
  %34 = alloca %"class.boost::optional", align 8
  %35 = alloca %"struct.boost::none_t", align 1
  %36 = alloca %"struct.boost::none_t", align 1
  %37 = alloca ptr, align 8
  %38 = alloca %"class.std::unordered_map.256", align 8
  %39 = alloca i64, align 8
  %40 = alloca i64, align 8
  %41 = alloca %"struct.std::pair.270", align 8
  %42 = alloca %"class.arsc::XmlStringRefRemapper", align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i64 %1, ptr %9, align 8, !tbaa !9
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  br label %43

43:                                               ; preds = %6
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  %45 = call noundef zeroext i1 @_ZNK7android6VectorIcE5emptyEv(ptr noundef nonnull align 8 dereferenceable(40) %44)
  br i1 %45, label %63, label %46

46:                                               ; preds = %43
  br label %47

47:                                               ; preds = %46
  %48 = load ptr, ptr @stderr, align 8, !tbaa !5
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef @.str) #8
  %50 = load ptr, ptr @stderr, align 8, !tbaa !5
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef @.str.22) #8
  %52 = load ptr, ptr @stderr, align 8, !tbaa !5
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef @.str.5) #8
  br label %54

54:                                               ; preds = %47
  br label %55

55:                                               ; preds = %54
  %56 = load ptr, ptr @stderr, align 8, !tbaa !5
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef @.str) #8
  %58 = load ptr, ptr @stderr, align 8, !tbaa !5
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef @.str.23) #8
  %60 = load ptr, ptr @stderr, align 8, !tbaa !5
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef @.str.5) #8
  br label %62

62:                                               ; preds = %55
  call void @abort() #9
  unreachable

63:                                               ; preds = %43
  br label %64

64:                                               ; preds = %63
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  %66 = load i32, ptr %65, align 4, !tbaa !11
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %68, label %75

68:                                               ; preds = %64
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = load i64, ptr %9, align 8, !tbaa !9
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  %74 = call noundef i32 @_ZN4arsc25ensure_string_in_xml_poolEPKvmRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7android6VectorIcEEPm(ptr noundef %69, i64 noundef %70, ptr noundef nonnull align 8 dereferenceable(32) %71, ptr noundef %72, ptr noundef %73)
  store i32 %74, ptr %7, align 4
  br label %409

75:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  store i64 -1, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %76, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 192, ptr %16) #8
  call void @_ZN4arsc15SimpleXmlParserC2Ev(ptr noundef nonnull align 8 dereferenceable(192) %16)
  br label %77

77:                                               ; preds = %75
  %78 = load ptr, ptr %15, align 8, !tbaa !5
  %79 = load i64, ptr %9, align 8, !tbaa !9
  %80 = invoke noundef zeroext i1 @_ZN4arsc14XmlFileVisitor5visitEPvm(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef %78, i64 noundef %79)
          to label %81 unwind label %101

81:                                               ; preds = %77
  br i1 %80, label %105, label %82

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82
  %84 = load ptr, ptr @stderr, align 8, !tbaa !5
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef @.str) #8
  %86 = load ptr, ptr @stderr, align 8, !tbaa !5
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef @.str.24) #8
  %88 = load ptr, ptr @stderr, align 8, !tbaa !5
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef @.str.5) #8
  br label %90

90:                                               ; preds = %83
  br label %91

91:                                               ; preds = %90
  br label %92

92:                                               ; preds = %91
  %93 = load ptr, ptr @stderr, align 8, !tbaa !5
  %94 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str) #8
  %95 = load ptr, ptr @stderr, align 8, !tbaa !5
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef @.str.21) #8
  %97 = load ptr, ptr @stderr, align 8, !tbaa !5
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %97, ptr noundef @.str.5) #8
  br label %99

99:                                               ; preds = %92
  br label %100

100:                                              ; preds = %99
  call void @abort() #9
  unreachable

101:                                              ; preds = %77
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %17, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %18, align 4
  br label %408

105:                                              ; preds = %81
  br label %106

106:                                              ; preds = %105
  br label %107

107:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %108 = invoke noundef nonnull align 8 dereferenceable(132) ptr @_ZN4arsc15SimpleXmlParser14global_stringsEv(ptr noundef nonnull align 8 dereferenceable(192) %16)
          to label %109 unwind label %122

109:                                              ; preds = %107
  store ptr %108, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  store i64 -1, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 56, ptr %21) #8
  %110 = load ptr, ptr %19, align 8, !tbaa !5
  %111 = invoke noundef zeroext i1 @_ZNK7android13ResStringPool6isUTF8Ev(ptr noundef nonnull align 8 dereferenceable(132) %110)
          to label %112 unwind label %126

112:                                              ; preds = %109
  %113 = zext i1 %111 to i64
  %114 = select i1 %111, i32 256, i32 0
  invoke void @_ZN4arsc20ResStringPoolBuilderC2Ej(ptr noundef nonnull align 8 dereferenceable(56) %21, i32 noundef %114)
          to label %115 unwind label %126

115:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #8
  call void @_ZN4arsc16ResXmlIdsBuilderC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %116

116:                                              ; preds = %204, %115
  %117 = load i64, ptr %23, align 8, !tbaa !9
  %118 = invoke noundef i64 @_ZN4arsc15SimpleXmlParser15attribute_countEv(ptr noundef nonnull align 8 dereferenceable(192) %16)
          to label %119 unwind label %130

119:                                              ; preds = %116
  %120 = icmp ult i64 %117, %118
  br i1 %120, label %134, label %121

121:                                              ; preds = %119
  store i32 14, ptr %24, align 4
  br label %210

122:                                              ; preds = %107
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %17, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %18, align 4
  br label %407

126:                                              ; preds = %112, %109
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %17, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %18, align 4
  br label %406

130:                                              ; preds = %116
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %17, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %18, align 4
  br label %212

134:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %135 = load i64, ptr %23, align 8, !tbaa !9
  %136 = invoke noundef i32 @_ZN4arsc15SimpleXmlParser16get_attribute_idEm(ptr noundef nonnull align 8 dereferenceable(192) %16, i64 noundef %135)
          to label %137 unwind label %160

137:                                              ; preds = %134
  store i32 %136, ptr %25, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #8
  %138 = load ptr, ptr %19, align 8, !tbaa !5
  %139 = load i64, ptr %23, align 8, !tbaa !9
  invoke void @_ZN4arsc20get_string_from_poolB5cxx11ERKN7android13ResStringPoolEm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %26, ptr noundef nonnull align 8 dereferenceable(132) %138, i64 noundef %139)
          to label %140 unwind label %164

140:                                              ; preds = %137
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  %142 = load i32, ptr %141, align 4, !tbaa !11
  %143 = load i32, ptr %25, align 4, !tbaa !11
  %144 = icmp eq i32 %142, %143
  br i1 %144, label %145, label %171

145:                                              ; preds = %140
  %146 = load ptr, ptr %10, align 8, !tbaa !5
  %147 = call noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EESA_(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull align 8 dereferenceable(32) %146) #8
  br i1 %147, label %148, label %168

148:                                              ; preds = %145
  br label %149

149:                                              ; preds = %148
  %150 = load ptr, ptr @stderr, align 8, !tbaa !5
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %150, ptr noundef @.str.25) #8
  %152 = load ptr, ptr @stderr, align 8, !tbaa !5
  %153 = load i32, ptr %25, align 4, !tbaa !11
  %154 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %26) #8
  %155 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef @.str.26, i32 noundef %153, ptr noundef %154) #8
  %156 = load ptr, ptr @stderr, align 8, !tbaa !5
  %157 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %156, ptr noundef @.str.5) #8
  br label %158

158:                                              ; preds = %149
  br label %159

159:                                              ; preds = %158
  store i32 -17, ptr %7, align 4
  store i32 1, ptr %24, align 4
  br label %201

160:                                              ; preds = %134
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %17, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %18, align 4
  br label %209

164:                                              ; preds = %137
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %17, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %18, align 4
  br label %208

168:                                              ; preds = %145
  %169 = load i64, ptr %23, align 8, !tbaa !9
  %170 = load ptr, ptr %13, align 8, !tbaa !5
  store i64 %169, ptr %170, align 8, !tbaa !9
  store i32 0, ptr %7, align 4
  store i32 1, ptr %24, align 4
  br label %201

171:                                              ; preds = %140
  %172 = load i64, ptr %20, align 8, !tbaa !9
  %173 = icmp eq i64 %172, -1
  br i1 %173, label %174, label %195

174:                                              ; preds = %171
  %175 = load i32, ptr %25, align 4, !tbaa !11
  %176 = load ptr, ptr %11, align 8, !tbaa !5
  %177 = load i32, ptr %176, align 4, !tbaa !11
  %178 = icmp ugt i32 %175, %177
  br i1 %178, label %179, label %195

179:                                              ; preds = %174
  %180 = load i64, ptr %23, align 8, !tbaa !9
  store i64 %180, ptr %20, align 8, !tbaa !9
  %181 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(32) %181)
          to label %182 unwind label %187

182:                                              ; preds = %179
  invoke void @_ZN4arsc20ResStringPoolBuilder10add_stringENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(56) %21, ptr noundef %27)
          to label %183 unwind label %191

183:                                              ; preds = %182
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #8
  %184 = load ptr, ptr %11, align 8, !tbaa !5
  %185 = load i32, ptr %184, align 4, !tbaa !11
  invoke void @_ZN4arsc16ResXmlIdsBuilder6add_idEj(ptr noundef nonnull align 8 dereferenceable(24) %22, i32 noundef %185)
          to label %186 unwind label %187

186:                                              ; preds = %183
  br label %195

187:                                              ; preds = %198, %195, %183, %179
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %17, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %18, align 4
  br label %207

191:                                              ; preds = %182
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %17, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %18, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #8
  br label %207

195:                                              ; preds = %186, %174, %171
  %196 = load ptr, ptr %19, align 8, !tbaa !5
  %197 = load i64, ptr %23, align 8, !tbaa !9
  invoke void @_ZN4arsc20ResStringPoolBuilder10add_stringERKN7android13ResStringPoolEm(ptr noundef nonnull align 8 dereferenceable(56) %21, ptr noundef nonnull align 8 dereferenceable(132) %196, i64 noundef %197)
          to label %198 unwind label %187

198:                                              ; preds = %195
  %199 = load i32, ptr %25, align 4, !tbaa !11
  invoke void @_ZN4arsc16ResXmlIdsBuilder6add_idEj(ptr noundef nonnull align 8 dereferenceable(24) %22, i32 noundef %199)
          to label %200 unwind label %187

200:                                              ; preds = %198
  store i32 0, ptr %24, align 4
  br label %201

201:                                              ; preds = %200, %168, %159
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  %202 = load i32, ptr %24, align 4
  switch i32 %202, label %210 [
    i32 0, label %203
  ]

203:                                              ; preds = %201
  br label %204

204:                                              ; preds = %203
  %205 = load i64, ptr %23, align 8, !tbaa !9
  %206 = add i64 %205, 1
  store i64 %206, ptr %23, align 8, !tbaa !9
  br label %116, !llvm.loop !13

207:                                              ; preds = %191, %187
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #8
  br label %208

208:                                              ; preds = %207, %164
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #8
  br label %209

209:                                              ; preds = %208, %160
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %212

210:                                              ; preds = %201, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  %211 = load i32, ptr %24, align 4
  switch i32 %211, label %404 [
    i32 14, label %213
  ]

212:                                              ; preds = %209, %130
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %405

213:                                              ; preds = %210
  %214 = load i64, ptr %20, align 8, !tbaa !9
  %215 = icmp eq i64 %214, -1
  br i1 %215, label %216, label %233

216:                                              ; preds = %213
  %217 = invoke noundef i64 @_ZN4arsc15SimpleXmlParser15attribute_countEv(ptr noundef nonnull align 8 dereferenceable(192) %16)
          to label %218 unwind label %225

218:                                              ; preds = %216
  store i64 %217, ptr %20, align 8, !tbaa !9
  %219 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(32) %219)
          to label %220 unwind label %225

220:                                              ; preds = %218
  invoke void @_ZN4arsc20ResStringPoolBuilder10add_stringENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(56) %21, ptr noundef %28)
          to label %221 unwind label %229

221:                                              ; preds = %220
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #8
  %222 = load ptr, ptr %11, align 8, !tbaa !5
  %223 = load i32, ptr %222, align 4, !tbaa !11
  invoke void @_ZN4arsc16ResXmlIdsBuilder6add_idEj(ptr noundef nonnull align 8 dereferenceable(24) %22, i32 noundef %223)
          to label %224 unwind label %225

224:                                              ; preds = %221
  br label %233

225:                                              ; preds = %221, %218, %216
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %17, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %18, align 4
  br label %405

229:                                              ; preds = %220
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %17, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %18, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #8
  br label %405

233:                                              ; preds = %224, %213
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %234 = invoke noundef i64 @_ZN4arsc15SimpleXmlParser15attribute_countEv(ptr noundef nonnull align 8 dereferenceable(192) %16)
          to label %235 unwind label %246

235:                                              ; preds = %233
  store i64 %234, ptr %29, align 8, !tbaa !9
  br label %236

236:                                              ; preds = %254, %235
  %237 = load i64, ptr %29, align 8, !tbaa !9
  %238 = load ptr, ptr %19, align 8, !tbaa !5
  %239 = load ptr, ptr %238, align 8, !tbaa !15
  %240 = getelementptr inbounds ptr, ptr %239, i64 4
  %241 = load ptr, ptr %240, align 8
  %242 = invoke noundef i64 %241(ptr noundef nonnull align 8 dereferenceable(132) %238)
          to label %243 unwind label %246

243:                                              ; preds = %236
  %244 = icmp ult i64 %237, %242
  br i1 %244, label %250, label %245

245:                                              ; preds = %243
  store i32 19, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %257

246:                                              ; preds = %250, %236, %233
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %17, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %405

250:                                              ; preds = %243
  %251 = load ptr, ptr %19, align 8, !tbaa !5
  %252 = load i64, ptr %29, align 8, !tbaa !9
  invoke void @_ZN4arsc20ResStringPoolBuilder10add_stringERKN7android13ResStringPoolEm(ptr noundef nonnull align 8 dereferenceable(56) %21, ptr noundef nonnull align 8 dereferenceable(132) %251, i64 noundef %252)
          to label %253 unwind label %246

253:                                              ; preds = %250
  br label %254

254:                                              ; preds = %253
  %255 = load i64, ptr %29, align 8, !tbaa !9
  %256 = add i64 %255, 1
  store i64 %256, ptr %29, align 8, !tbaa !9
  br label %236, !llvm.loop !17

257:                                              ; preds = %245
  call void @llvm.lifetime.start.p0(i64 128, ptr %30) #8
  %258 = load ptr, ptr %15, align 8, !tbaa !5
  %259 = load i64, ptr %9, align 8, !tbaa !9
  invoke void @_ZN4arsc18ResFileManipulatorC2EPcm(ptr noundef nonnull align 8 dereferenceable(128) %30, ptr noundef %258, i64 noundef %259)
          to label %260 unwind label %300

260:                                              ; preds = %257
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %261 = load ptr, ptr %15, align 8, !tbaa !5
  %262 = invoke noundef i64 @_ZN4arsc15SimpleXmlParser18string_pool_offsetEv(ptr noundef nonnull align 8 dereferenceable(192) %16)
          to label %263 unwind label %304

263:                                              ; preds = %260
  %264 = getelementptr inbounds i8, ptr %261, i64 %262
  store ptr %264, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %265 = invoke noundef i64 @_ZN4arsc15SimpleXmlParser21string_pool_data_sizeEv(ptr noundef nonnull align 8 dereferenceable(192) %16)
          to label %266 unwind label %308

266:                                              ; preds = %263
  store i64 %265, ptr %32, align 8, !tbaa !9
  %267 = load ptr, ptr %31, align 8, !tbaa !5
  %268 = load i64, ptr %32, align 8, !tbaa !9
  invoke void @_ZN4arsc18ResFileManipulator9delete_atEPvm(ptr noundef nonnull align 8 dereferenceable(128) %30, ptr noundef %267, i64 noundef %268)
          to label %269 unwind label %308

269:                                              ; preds = %266
  %270 = load ptr, ptr %31, align 8, !tbaa !5
  invoke void @_ZN4arsc18ResFileManipulator19add_serializable_atINS_20ResStringPoolBuilderEEEvPvRT_(ptr noundef nonnull align 8 dereferenceable(128) %30, ptr noundef %270, ptr noundef nonnull align 8 dereferenceable(56) %21)
          to label %271 unwind label %308

271:                                              ; preds = %269
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #8
  %272 = invoke { i8, i64 } @_ZN4arsc15SimpleXmlParser24attributes_header_offsetEv(ptr noundef nonnull align 8 dereferenceable(192) %16)
          to label %273 unwind label %312

273:                                              ; preds = %271
  %274 = getelementptr inbounds %"class.boost::optional", ptr %33, i32 0, i32 0
  %275 = getelementptr inbounds { i8, i64 }, ptr %274, i32 0, i32 0
  %276 = extractvalue { i8, i64 } %272, 0
  store i8 %276, ptr %275, align 8
  %277 = getelementptr inbounds { i8, i64 }, ptr %274, i32 0, i32 1
  %278 = extractvalue { i8, i64 } %272, 1
  store i64 %278, ptr %277, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #8
  %279 = invoke { i8, i64 } @_ZN4arsc15SimpleXmlParser20attributes_data_sizeEv(ptr noundef nonnull align 8 dereferenceable(192) %16)
          to label %280 unwind label %316

280:                                              ; preds = %273
  %281 = getelementptr inbounds %"class.boost::optional", ptr %34, i32 0, i32 0
  %282 = getelementptr inbounds { i8, i64 }, ptr %281, i32 0, i32 0
  %283 = extractvalue { i8, i64 } %279, 0
  store i8 %283, ptr %282, align 8
  %284 = getelementptr inbounds { i8, i64 }, ptr %281, i32 0, i32 1
  %285 = extractvalue { i8, i64 } %279, 1
  store i64 %285, ptr %284, align 8
  %286 = call noundef zeroext i1 @_ZN5boostneImEEbRKNS_8optionalIT_EENS_6none_tE(ptr noundef nonnull align 8 dereferenceable(16) %33) #8
  br i1 %286, label %287, label %324

287:                                              ; preds = %280
  %288 = call noundef zeroext i1 @_ZN5boostneImEEbRKNS_8optionalIT_EENS_6none_tE(ptr noundef nonnull align 8 dereferenceable(16) %34) #8
  br i1 %288, label %289, label %324

289:                                              ; preds = %287
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #8
  %290 = load ptr, ptr %15, align 8, !tbaa !5
  %291 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNR5boost8optionalImEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %33)
          to label %292 unwind label %320

292:                                              ; preds = %289
  %293 = load i64, ptr %291, align 8, !tbaa !9
  %294 = getelementptr inbounds i8, ptr %290, i64 %293
  store ptr %294, ptr %37, align 8, !tbaa !5
  %295 = load ptr, ptr %37, align 8, !tbaa !5
  %296 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNR5boost8optionalImEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %34)
          to label %297 unwind label %320

297:                                              ; preds = %292
  %298 = load i64, ptr %296, align 8, !tbaa !9
  invoke void @_ZN4arsc18ResFileManipulator9delete_atEPvm(ptr noundef nonnull align 8 dereferenceable(128) %30, ptr noundef %295, i64 noundef %298)
          to label %299 unwind label %320

299:                                              ; preds = %297
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  br label %324

300:                                              ; preds = %257
  %301 = landingpad { ptr, i32 }
          cleanup
  %302 = extractvalue { ptr, i32 } %301, 0
  store ptr %302, ptr %17, align 8
  %303 = extractvalue { ptr, i32 } %301, 1
  store i32 %303, ptr %18, align 4
  br label %403

304:                                              ; preds = %260
  %305 = landingpad { ptr, i32 }
          cleanup
  %306 = extractvalue { ptr, i32 } %305, 0
  store ptr %306, ptr %17, align 8
  %307 = extractvalue { ptr, i32 } %305, 1
  store i32 %307, ptr %18, align 4
  br label %402

308:                                              ; preds = %269, %266, %263
  %309 = landingpad { ptr, i32 }
          cleanup
  %310 = extractvalue { ptr, i32 } %309, 0
  store ptr %310, ptr %17, align 8
  %311 = extractvalue { ptr, i32 } %309, 1
  store i32 %311, ptr %18, align 4
  br label %401

312:                                              ; preds = %271
  %313 = landingpad { ptr, i32 }
          cleanup
  %314 = extractvalue { ptr, i32 } %313, 0
  store ptr %314, ptr %17, align 8
  %315 = extractvalue { ptr, i32 } %313, 1
  store i32 %315, ptr %18, align 4
  br label %400

316:                                              ; preds = %328, %324, %273
  %317 = landingpad { ptr, i32 }
          cleanup
  %318 = extractvalue { ptr, i32 } %317, 0
  store ptr %318, ptr %17, align 8
  %319 = extractvalue { ptr, i32 } %317, 1
  store i32 %319, ptr %18, align 4
  br label %399

320:                                              ; preds = %297, %292, %289
  %321 = landingpad { ptr, i32 }
          cleanup
  %322 = extractvalue { ptr, i32 } %321, 0
  store ptr %322, ptr %17, align 8
  %323 = extractvalue { ptr, i32 } %321, 1
  store i32 %323, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #8
  br label %399

324:                                              ; preds = %299, %287, %280
  %325 = load ptr, ptr %31, align 8, !tbaa !5
  %326 = load i64, ptr %32, align 8, !tbaa !9
  %327 = getelementptr inbounds i8, ptr %325, i64 %326
  invoke void @_ZN4arsc18ResFileManipulator19add_serializable_atINS_16ResXmlIdsBuilderEEEvPvRT_(ptr noundef nonnull align 8 dereferenceable(128) %30, ptr noundef %327, ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %328 unwind label %316

328:                                              ; preds = %324
  %329 = load ptr, ptr %12, align 8, !tbaa !5
  invoke void @_ZN4arsc18ResFileManipulator9serializeEPN7android6VectorIcEE(ptr noundef nonnull align 8 dereferenceable(128) %30, ptr noundef %329)
          to label %330 unwind label %316

330:                                              ; preds = %328
  call void @llvm.lifetime.start.p0(i64 56, ptr %38) #8
  call void @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %38) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #8
  %331 = load i64, ptr %20, align 8, !tbaa !9
  store i64 %331, ptr %39, align 8, !tbaa !9
  br label %332

332:                                              ; preds = %355, %330
  %333 = load i64, ptr %39, align 8, !tbaa !9
  %334 = load ptr, ptr %19, align 8, !tbaa !5
  %335 = load ptr, ptr %334, align 8, !tbaa !15
  %336 = getelementptr inbounds ptr, ptr %335, i64 4
  %337 = load ptr, ptr %336, align 8
  %338 = invoke noundef i64 %337(ptr noundef nonnull align 8 dereferenceable(132) %334)
          to label %339 unwind label %342

339:                                              ; preds = %332
  %340 = icmp ult i64 %333, %338
  br i1 %340, label %346, label %341

341:                                              ; preds = %339
  store i32 22, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  br label %363

342:                                              ; preds = %332
  %343 = landingpad { ptr, i32 }
          cleanup
  %344 = extractvalue { ptr, i32 } %343, 0
  store ptr %344, ptr %17, align 8
  %345 = extractvalue { ptr, i32 } %343, 1
  store i32 %345, ptr %18, align 4
  br label %362

346:                                              ; preds = %339
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  %347 = load i64, ptr %39, align 8, !tbaa !9
  %348 = add i64 %347, 1
  store i64 %348, ptr %40, align 8, !tbaa !9
  %349 = invoke { ptr, i8 } @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE7emplaceIJRmmEEES4_INSt8__detail14_Node_iteratorIS6_Lb0ELb0EEEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(56) %38, ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(8) %40)
          to label %350 unwind label %358

350:                                              ; preds = %346
  %351 = getelementptr inbounds { ptr, i8 }, ptr %41, i32 0, i32 0
  %352 = extractvalue { ptr, i8 } %349, 0
  store ptr %352, ptr %351, align 8
  %353 = getelementptr inbounds { ptr, i8 }, ptr %41, i32 0, i32 1
  %354 = extractvalue { ptr, i8 } %349, 1
  store i8 %354, ptr %353, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  br label %355

355:                                              ; preds = %350
  %356 = load i64, ptr %39, align 8, !tbaa !9
  %357 = add i64 %356, 1
  store i64 %357, ptr %39, align 8, !tbaa !9
  br label %332, !llvm.loop !18

358:                                              ; preds = %346
  %359 = landingpad { ptr, i32 }
          cleanup
  %360 = extractvalue { ptr, i32 } %359, 0
  store ptr %360, ptr %17, align 8
  %361 = extractvalue { ptr, i32 } %359, 1
  store i32 %361, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  br label %362

362:                                              ; preds = %358, %342
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #8
  br label %398

363:                                              ; preds = %341
  call void @llvm.lifetime.start.p0(i64 304, ptr %42) #8
  invoke void @_ZN4arsc20XmlStringRefRemapperC2ERKSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE(ptr noundef nonnull align 8 dereferenceable(304) %42, ptr noundef nonnull align 8 dereferenceable(56) %38)
          to label %364 unwind label %376

364:                                              ; preds = %363
  %365 = load ptr, ptr %12, align 8, !tbaa !5
  %366 = invoke noundef ptr @_ZNK7android6VectorIcE5arrayEv(ptr noundef nonnull align 8 dereferenceable(40) %365)
          to label %367 unwind label %380

367:                                              ; preds = %364
  %368 = load ptr, ptr %12, align 8, !tbaa !5
  %369 = invoke noundef i64 @_ZNK7android6VectorIcE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %368)
          to label %370 unwind label %380

370:                                              ; preds = %367
  %371 = invoke noundef zeroext i1 @_ZN4arsc14XmlFileVisitor5visitEPvm(ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef %366, i64 noundef %369)
          to label %372 unwind label %380

372:                                              ; preds = %370
  br i1 %371, label %373, label %384

373:                                              ; preds = %372
  %374 = load i64, ptr %20, align 8, !tbaa !9
  %375 = load ptr, ptr %13, align 8, !tbaa !5
  store i64 %374, ptr %375, align 8, !tbaa !9
  store i32 0, ptr %7, align 4
  store i32 1, ptr %24, align 4
  call void @_ZN4arsc20XmlStringRefRemapperD2Ev(ptr noundef nonnull align 8 dereferenceable(304) %42) #8
  call void @llvm.lifetime.end.p0(i64 304, ptr %42) #8
  call void @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %38) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @_ZN4arsc18ResFileManipulatorD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %30) #8
  call void @llvm.lifetime.end.p0(i64 128, ptr %30) #8
  br label %404

376:                                              ; preds = %363
  %377 = landingpad { ptr, i32 }
          cleanup
  %378 = extractvalue { ptr, i32 } %377, 0
  store ptr %378, ptr %17, align 8
  %379 = extractvalue { ptr, i32 } %377, 1
  store i32 %379, ptr %18, align 4
  br label %397

380:                                              ; preds = %370, %367, %364
  %381 = landingpad { ptr, i32 }
          cleanup
  %382 = extractvalue { ptr, i32 } %381, 0
  store ptr %382, ptr %17, align 8
  %383 = extractvalue { ptr, i32 } %381, 1
  store i32 %383, ptr %18, align 4
  call void @_ZN4arsc20XmlStringRefRemapperD2Ev(ptr noundef nonnull align 8 dereferenceable(304) %42) #8
  br label %397

384:                                              ; preds = %372
  br label %385

385:                                              ; preds = %384
  br label %386

386:                                              ; preds = %385
  %387 = load ptr, ptr @stderr, align 8, !tbaa !5
  %388 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %387, ptr noundef @.str) #8
  %389 = load ptr, ptr @stderr, align 8, !tbaa !5
  %390 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %389, ptr noundef @.str.27) #8
  %391 = load ptr, ptr @stderr, align 8, !tbaa !5
  %392 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %391, ptr noundef @.str.5) #8
  br label %393

393:                                              ; preds = %386
  br label %394

394:                                              ; preds = %393
  call void @abort() #9
  unreachable

395:                                              ; No predecessors!
  br label %396

396:                                              ; preds = %395
  unreachable

397:                                              ; preds = %380, %376
  call void @llvm.lifetime.end.p0(i64 304, ptr %42) #8
  br label %398

398:                                              ; preds = %397, %362
  call void @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %38) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %38) #8
  br label %399

399:                                              ; preds = %398, %320, %316
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #8
  br label %400

400:                                              ; preds = %399, %312
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #8
  br label %401

401:                                              ; preds = %400, %308
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %402

402:                                              ; preds = %401, %304
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @_ZN4arsc18ResFileManipulatorD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %30) #8
  br label %403

403:                                              ; preds = %402, %300
  call void @llvm.lifetime.end.p0(i64 128, ptr %30) #8
  br label %405

404:                                              ; preds = %373, %210
  call void @_ZN4arsc16ResXmlIdsBuilderD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  call void @_ZN4arsc20ResStringPoolBuilderD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %21) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @_ZN4arsc15SimpleXmlParserD2Ev(ptr noundef nonnull align 8 dereferenceable(192) %16) #8
  call void @llvm.lifetime.end.p0(i64 192, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %409

405:                                              ; preds = %403, %246, %229, %225, %212
  call void @_ZN4arsc16ResXmlIdsBuilderD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  call void @_ZN4arsc20ResStringPoolBuilderD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %21) #8
  br label %406

406:                                              ; preds = %405, %126
  call void @llvm.lifetime.end.p0(i64 56, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %407

407:                                              ; preds = %406, %122
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %408

408:                                              ; preds = %407, %101
  call void @_ZN4arsc15SimpleXmlParserD2Ev(ptr noundef nonnull align 8 dereferenceable(192) %16) #8
  call void @llvm.lifetime.end.p0(i64 192, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %411

409:                                              ; preds = %404, %68
  %410 = load i32, ptr %7, align 4
  ret i32 %410

411:                                              ; preds = %408
  %412 = load ptr, ptr %17, align 8
  %413 = load i32, ptr %18, align 4
  %414 = insertvalue { ptr, i32 } poison, ptr %412, 0
  %415 = insertvalue { ptr, i32 } %414, i32 %413, 1
  resume { ptr, i32 } %415
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4arsc16ResXmlIdsBuilder6add_idEj(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN4arsc15SimpleXmlParser18string_pool_offsetEv(ptr noundef nonnull align 8 dereferenceable(192)) #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { i8, i64 } @_ZN4arsc15SimpleXmlParser24attributes_header_offsetEv(ptr noundef nonnull align 8 dereferenceable(192)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i8, i64 } @_ZN4arsc15SimpleXmlParser20attributes_data_sizeEv(ptr noundef nonnull align 8 dereferenceable(192)) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4arsc18ResFileManipulator19add_serializable_atINS_16ResXmlIdsBuilderEEEvPvRT_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE7emplaceIJRmmEEES4_INSt8__detail14_Node_iteratorIS6_Lb0ELb0EEEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4arsc20XmlStringRefRemapperC2ERKSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE(ptr noundef nonnull align 8 dereferenceable(304), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4arsc16ResXmlIdsBuilderD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #6 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress 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 #7 = { "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 #8 = { nounwind }
attributes #9 = { noreturn 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 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}


; 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.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.135 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.135 = type { i64, [8 x i8] }
%"class.arsc::SimpleXmlParser" = type { %"class.arsc::XmlFileVisitor", ptr, %"class.android::ResStringPool", ptr, i64, ptr }
%"class.arsc::XmlFileVisitor" = type { %"class.arsc::VisitorBase" }
%"class.arsc::VisitorBase" = type { ptr, ptr, i64 }
%"class.android::ResStringPool" = type <{ ptr, i32, [4 x i8], ptr, ptr, i64, %"class.std::mutex", ptr, ptr, ptr, ptr, i32, [4 x i8], ptr, i32, [4 x i8] }>
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.arsc::ResStringPoolBuilder" = type { i32, %"class.std::vector.122", %"class.std::vector.127" }
%"class.std::vector.122" = type { %"struct.std::_Vector_base.123" }
%"struct.std::_Vector_base.123" = type { %"struct.std::_Vector_base<arsc::StringHolder, std::allocator<arsc::StringHolder>>::_Vector_impl" }
%"struct.std::_Vector_base<arsc::StringHolder, std::allocator<arsc::StringHolder>>::_Vector_impl" = type { %"struct.std::_Vector_base<arsc::StringHolder, std::allocator<arsc::StringHolder>>::_Vector_impl_data" }
%"struct.std::_Vector_base<arsc::StringHolder, std::allocator<arsc::StringHolder>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.127" = type { %"struct.std::_Vector_base.128" }
%"struct.std::_Vector_base.128" = type { %"struct.std::_Vector_base<arsc::StyleInfo, std::allocator<arsc::StyleInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<arsc::StyleInfo, std::allocator<arsc::StyleInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<arsc::StyleInfo, std::allocator<arsc::StyleInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<arsc::StyleInfo, std::allocator<arsc::StyleInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.arsc::ResXmlIdsBuilder" = type { %"class.std::vector.32" }
%"class.std::vector.32" = type { %"struct.std::_Vector_base.33" }
%"struct.std::_Vector_base.33" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.arsc::ResFileManipulator" = type { %"class.std::unordered_map.188", %"class.std::unordered_map.208", ptr, i64 }
%"class.std::unordered_map.188" = type { %"class.std::_Hashtable.189" }
%"class.std::_Hashtable.189" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.std::unordered_map.208" = type { %"class.std::_Hashtable.209" }
%"class.std::_Hashtable.209" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.boost::optional" = type { %"class.boost::optional_detail::tc_optional_base" }
%"class.boost::optional_detail::tc_optional_base" = type { i8, i64 }
%"class.std::unordered_map.256" = type { %"class.std::_Hashtable.257" }
%"class.std::_Hashtable.257" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.arsc::XmlStringRefRemapper" = type { %"class.arsc::SimpleXmlParser", %"class.std::unordered_map.256", %"class.std::unordered_set.275" }
%"class.std::unordered_set.275" = type { %"class.std::_Hashtable.276" }
%"class.std::_Hashtable.276" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [35 x i8], align 1

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: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4arsc20ResStringPoolBuilder10add_stringENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4arsc18ResFileManipulatorC2EPcm(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, i64 noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4arsc18ResFileManipulator9delete_atEPvm(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, i64 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4arsc18ResFileManipulator19add_serializable_atINS_20ResStringPoolBuilderEEEvPvRT_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4arsc18ResFileManipulator9serializeEPN7android6VectorIcEE(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4arsc25ensure_string_in_xml_poolEPKvmRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7android6VectorIcEEPm(ptr noundef, i64 noundef, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef) local_unnamed_addr #4

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

declare noundef zeroext i1 @_ZN4arsc14XmlFileVisitor5visitEPvm(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, i64 noundef) unnamed_addr #7

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4arsc20get_string_from_poolB5cxx11ERKN7android13ResStringPoolEm(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(132), i64 noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZNK7android13ResStringPool6isUTF8Ev(ptr noundef nonnull align 8 dereferenceable(132)) local_unnamed_addr #7

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4arsc20ResStringPoolBuilder10add_stringERKN7android13ResStringPoolEm(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(132), i64 noundef) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN4arsc27ensure_attribute_in_xml_docEPKvmRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKjPN7android6VectorIcEEPm(ptr noundef %0, i64 noundef %1, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr nocapture noundef nonnull readonly align 4 dereferenceable(4) %3, ptr noundef nonnull %4, ptr noundef %5) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %7 = alloca %"class.arsc::SimpleXmlParser", align 8
  %8 = alloca %"class.arsc::ResStringPoolBuilder", align 8
  %9 = alloca %"class.arsc::ResXmlIdsBuilder", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.arsc::ResFileManipulator", align 8
  %14 = alloca %"class.boost::optional", align 8
  %15 = alloca %"class.boost::optional", align 8
  %16 = alloca %"class.std::unordered_map.256", align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca %"class.arsc::XmlStringRefRemapper", align 8
  %20 = tail call noundef zeroext i1 @_ZNK7android6VectorIcE5emptyEv(ptr noundef nonnull align 8 dereferenceable(40) %4)
  br i1 %20, label %34, label %21

21:                                               ; preds = %6
  %22 = load ptr, ptr @stderr, align 8, !tbaa !5
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef nonnull @.str) #8
  %24 = load ptr, ptr @stderr, align 8, !tbaa !5
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str.22) #8
  %26 = load ptr, ptr @stderr, align 8, !tbaa !5
  %27 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.5) #8
  %28 = load ptr, ptr @stderr, align 8, !tbaa !5
  %29 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef nonnull @.str) #8
  %30 = load ptr, ptr @stderr, align 8, !tbaa !5
  %31 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull @.str.23) #8
  %32 = load ptr, ptr @stderr, align 8, !tbaa !5
  %33 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.5) #8
  tail call void @abort() #9
  unreachable

34:                                               ; preds = %6
  %35 = load i32, ptr %3, align 4, !tbaa !9
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %39

37:                                               ; preds = %34
  %38 = tail call noundef i32 @_ZN4arsc25ensure_string_in_xml_poolEPKvmRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7android6VectorIcEEPm(ptr noundef %0, i64 noundef %1, ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull %4, ptr noundef %5)
  br label %213

39:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %7) #10
  call void @_ZN4arsc15SimpleXmlParserC2Ev(ptr noundef nonnull align 8 dereferenceable(192) %7)
  %40 = invoke noundef zeroext i1 @_ZN4arsc14XmlFileVisitor5visitEPvm(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef %0, i64 noundef %1)
          to label %41 unwind label %55

41:                                               ; preds = %39
  br i1 %40, label %57, label %42

42:                                               ; preds = %41
  %43 = load ptr, ptr @stderr, align 8, !tbaa !5
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef nonnull @.str) #8
  %45 = load ptr, ptr @stderr, align 8, !tbaa !5
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str.24) #8
  %47 = load ptr, ptr @stderr, align 8, !tbaa !5
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str.5) #8
  %49 = load ptr, ptr @stderr, align 8, !tbaa !5
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef nonnull @.str) #8
  %51 = load ptr, ptr @stderr, align 8, !tbaa !5
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef nonnull @.str.21) #8
  %53 = load ptr, ptr @stderr, align 8, !tbaa !5
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str.5) #8
  call void @abort() #9
  unreachable

55:                                               ; preds = %39
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %212

57:                                               ; preds = %41
  %58 = call noundef nonnull align 8 dereferenceable(132) ptr @_ZN4arsc15SimpleXmlParser14global_stringsEv(ptr noundef nonnull align 8 dereferenceable(192) %7)
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #10
  %59 = invoke noundef zeroext i1 @_ZNK7android13ResStringPool6isUTF8Ev(ptr noundef nonnull align 8 dereferenceable(132) %58)
          to label %60 unwind label %63

60:                                               ; preds = %57
  %61 = select i1 %59, i32 256, i32 0
  call void @_ZN4arsc20ResStringPoolBuilderC2Ej(ptr noundef nonnull align 8 dereferenceable(56) %8, i32 noundef %61)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #10
  call void @_ZN4arsc16ResXmlIdsBuilderC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #10
  %62 = call noundef i64 @_ZN4arsc15SimpleXmlParser15attribute_countEv(ptr noundef nonnull align 8 dereferenceable(192) %7)
  %.not92122.not = icmp eq i64 %62, 0
  br i1 %.not92122.not, label %._crit_edge.thread, label %.lr.ph

63:                                               ; preds = %57
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %211

.lr.ph:                                           ; preds = %60, %95
  %.078124 = phi i64 [ %.179, %95 ], [ -1, %60 ]
  %.083123 = phi i64 [ %96, %95 ], [ 0, %60 ]
  %65 = call noundef i32 @_ZN4arsc15SimpleXmlParser16get_attribute_idEm(ptr noundef nonnull align 8 dereferenceable(192) %7, i64 noundef %.083123)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #10
  invoke void @_ZN4arsc20get_string_from_poolB5cxx11ERKN7android13ResStringPoolEm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull align 8 dereferenceable(132) %58, i64 noundef %.083123)
          to label %66 unwind label %78

66:                                               ; preds = %.lr.ph
  %67 = load i32, ptr %3, align 4, !tbaa !9
  %.not = icmp eq i32 %67, %65
  br i1 %.not, label %68, label %81

68:                                               ; preds = %66
  %69 = call noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EESA_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %2) #10
  br i1 %69, label %70, label %80

70:                                               ; preds = %68
  %71 = load ptr, ptr @stderr, align 8, !tbaa !5
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.25) #8
  %73 = load ptr, ptr @stderr, align 8, !tbaa !5
  %74 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef nonnull @.str.26, i32 noundef %65, ptr noundef %74) #8
  %76 = load ptr, ptr @stderr, align 8, !tbaa !5
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef nonnull @.str.5) #8
  br label %.thread108

78:                                               ; preds = %.lr.ph
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %99

80:                                               ; preds = %68
  store i64 %.083123, ptr %5, align 8, !tbaa !11
  br label %.thread108

81:                                               ; preds = %66
  %82 = icmp eq i64 %.078124, -1
  br i1 %82, label %83, label %93

83:                                               ; preds = %81
  %84 = icmp ugt i32 %65, %67
  br i1 %84, label %85, label %93

85:                                               ; preds = %83
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %86 unwind label %89

86:                                               ; preds = %85
  invoke void @_ZN4arsc20ResStringPoolBuilder10add_stringENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull %11)
          to label %87 unwind label %91

87:                                               ; preds = %86
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  %88 = load i32, ptr %3, align 4, !tbaa !9
  invoke void @_ZN4arsc16ResXmlIdsBuilder6add_idEj(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef %88)
          to label %93 unwind label %89

89:                                               ; preds = %94, %93, %87, %85
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %98

91:                                               ; preds = %86
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  br label %98

93:                                               ; preds = %87, %83, %81
  %.179 = phi i64 [ %.083123, %87 ], [ -1, %83 ], [ %.078124, %81 ]
  invoke void @_ZN4arsc20ResStringPoolBuilder10add_stringERKN7android13ResStringPoolEm(ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull align 8 dereferenceable(132) %58, i64 noundef %.083123)
          to label %94 unwind label %89

94:                                               ; preds = %93
  invoke void @_ZN4arsc16ResXmlIdsBuilder6add_idEj(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef %65)
          to label %95 unwind label %89

.thread108:                                       ; preds = %70, %80
  %.1.ph = phi i32 [ 0, %80 ], [ -17, %70 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #10
  br label %209

95:                                               ; preds = %94
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #10
  %96 = add nuw i64 %.083123, 1
  %97 = call noundef i64 @_ZN4arsc15SimpleXmlParser15attribute_countEv(ptr noundef nonnull align 8 dereferenceable(192) %7)
  %.not92 = icmp ult i64 %96, %97
  br i1 %.not92, label %.lr.ph, label %._crit_edge, !llvm.loop !13

98:                                               ; preds = %91, %89
  %.pn = phi { ptr, i32 } [ %90, %89 ], [ %92, %91 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #10
  br label %99

99:                                               ; preds = %98, %78
  %.pn.pn = phi { ptr, i32 } [ %.pn, %98 ], [ %79, %78 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #10
  br label %210

._crit_edge:                                      ; preds = %95
  %100 = icmp eq i64 %.179, -1
  br i1 %100, label %._crit_edge.thread, label %109

._crit_edge.thread:                               ; preds = %60, %._crit_edge
  %101 = call noundef i64 @_ZN4arsc15SimpleXmlParser15attribute_countEv(ptr noundef nonnull align 8 dereferenceable(192) %7)
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %102 unwind label %105

102:                                              ; preds = %._crit_edge.thread
  invoke void @_ZN4arsc20ResStringPoolBuilder10add_stringENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull %12)
          to label %103 unwind label %107

103:                                              ; preds = %102
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  %104 = load i32, ptr %3, align 4, !tbaa !9
  invoke void @_ZN4arsc16ResXmlIdsBuilder6add_idEj(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef %104)
          to label %109 unwind label %105

105:                                              ; preds = %103, %._crit_edge.thread
  %106 = landingpad { ptr, i32 }
          cleanup
  br label %210

107:                                              ; preds = %102
  %108 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #10
  br label %210

109:                                              ; preds = %103, %._crit_edge
  %.482 = phi i64 [ %101, %103 ], [ %.179, %._crit_edge ]
  %110 = call noundef i64 @_ZN4arsc15SimpleXmlParser15attribute_countEv(ptr noundef nonnull align 8 dereferenceable(192) %7)
  br label %111

111:                                              ; preds = %123, %109
  %.084 = phi i64 [ %110, %109 ], [ %124, %123 ]
  %112 = load ptr, ptr %58, align 8, !tbaa !15
  %113 = getelementptr inbounds i8, ptr %112, i64 32
  %114 = load ptr, ptr %113, align 8
  %115 = invoke noundef i64 %114(ptr noundef nonnull align 8 dereferenceable(132) %58)
          to label %116 unwind label %120

116:                                              ; preds = %111
  %117 = icmp ult i64 %.084, %115
  br i1 %117, label %122, label %118

118:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %13) #10
  call void @_ZN4arsc18ResFileManipulatorC2EPcm(ptr noundef nonnull align 8 dereferenceable(128) %13, ptr noundef %0, i64 noundef %1)
  %119 = invoke noundef i64 @_ZN4arsc15SimpleXmlParser18string_pool_offsetEv(ptr noundef nonnull align 8 dereferenceable(192) %7)
          to label %125 unwind label %151

120:                                              ; preds = %122, %111
  %121 = landingpad { ptr, i32 }
          cleanup
  br label %210

122:                                              ; preds = %116
  invoke void @_ZN4arsc20ResStringPoolBuilder10add_stringERKN7android13ResStringPoolEm(ptr noundef nonnull align 8 dereferenceable(56) %8, ptr noundef nonnull align 8 dereferenceable(132) %58, i64 noundef %.084)
          to label %123 unwind label %120

123:                                              ; preds = %122
  %124 = add nuw i64 %.084, 1
  br label %111, !llvm.loop !17

125:                                              ; preds = %118
  %126 = getelementptr inbounds i8, ptr %0, i64 %119
  %127 = call noundef i64 @_ZN4arsc15SimpleXmlParser21string_pool_data_sizeEv(ptr noundef nonnull align 8 dereferenceable(192) %7)
  invoke void @_ZN4arsc18ResFileManipulator9delete_atEPvm(ptr noundef nonnull align 8 dereferenceable(128) %13, ptr noundef %126, i64 noundef %127)
          to label %128 unwind label %153

128:                                              ; preds = %125
  invoke void @_ZN4arsc18ResFileManipulator19add_serializable_atINS_20ResStringPoolBuilderEEEvPvRT_(ptr noundef nonnull align 8 dereferenceable(128) %13, ptr noundef %126, ptr noundef nonnull align 8 dereferenceable(56) %8)
          to label %129 unwind label %153

129:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #10
  %130 = invoke { i8, i64 } @_ZN4arsc15SimpleXmlParser24attributes_header_offsetEv(ptr noundef nonnull align 8 dereferenceable(192) %7)
          to label %131 unwind label %155

131:                                              ; preds = %129
  %132 = extractvalue { i8, i64 } %130, 0
  store i8 %132, ptr %14, align 8
  %133 = getelementptr inbounds i8, ptr %14, i64 8
  %134 = extractvalue { i8, i64 } %130, 1
  store i64 %134, ptr %133, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #10
  %135 = invoke { i8, i64 } @_ZN4arsc15SimpleXmlParser20attributes_data_sizeEv(ptr noundef nonnull align 8 dereferenceable(192) %7)
          to label %136 unwind label %157

136:                                              ; preds = %131
  %137 = extractvalue { i8, i64 } %135, 0
  store i8 %137, ptr %15, align 8
  %138 = getelementptr inbounds i8, ptr %15, i64 8
  %139 = extractvalue { i8, i64 } %135, 1
  store i64 %139, ptr %138, align 8
  %140 = call noundef zeroext i1 @_ZN5boostneImEEbRKNS_8optionalIT_EENS_6none_tE(ptr noundef nonnull align 8 dereferenceable(16) %14) #10
  br i1 %140, label %141, label %161

141:                                              ; preds = %136
  %142 = call noundef zeroext i1 @_ZN5boostneImEEbRKNS_8optionalIT_EENS_6none_tE(ptr noundef nonnull align 8 dereferenceable(16) %15) #10
  br i1 %142, label %143, label %161

143:                                              ; preds = %141
  %144 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNR5boost8optionalImEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %145 unwind label %159

145:                                              ; preds = %143
  %146 = load i64, ptr %144, align 8, !tbaa !11
  %147 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNR5boost8optionalImEdeEv(ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %148 unwind label %159

148:                                              ; preds = %145
  %149 = getelementptr inbounds i8, ptr %0, i64 %146
  %150 = load i64, ptr %147, align 8, !tbaa !11
  invoke void @_ZN4arsc18ResFileManipulator9delete_atEPvm(ptr noundef nonnull align 8 dereferenceable(128) %13, ptr noundef %149, i64 noundef %150)
          to label %161 unwind label %159

151:                                              ; preds = %118
  %152 = landingpad { ptr, i32 }
          cleanup
  br label %208

153:                                              ; preds = %128, %125
  %154 = landingpad { ptr, i32 }
          cleanup
  br label %208

155:                                              ; preds = %129
  %156 = landingpad { ptr, i32 }
          cleanup
  br label %207

157:                                              ; preds = %163, %161, %131
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %206

159:                                              ; preds = %148, %145, %143
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %206

161:                                              ; preds = %148, %141, %136
  %162 = getelementptr inbounds i8, ptr %126, i64 %127
  invoke void @_ZN4arsc18ResFileManipulator19add_serializable_atINS_16ResXmlIdsBuilderEEEvPvRT_(ptr noundef nonnull align 8 dereferenceable(128) %13, ptr noundef %162, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %163 unwind label %157

163:                                              ; preds = %161
  invoke void @_ZN4arsc18ResFileManipulator9serializeEPN7android6VectorIcEE(ptr noundef nonnull align 8 dereferenceable(128) %13, ptr noundef nonnull %4)
          to label %164 unwind label %157

164:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %16) #10
  call void @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #10
  br label %165

165:                                              ; preds = %179, %164
  %storemerge = phi i64 [ %.482, %164 ], [ %181, %179 ]
  store i64 %storemerge, ptr %17, align 8, !tbaa !11
  %166 = load ptr, ptr %58, align 8, !tbaa !15
  %167 = getelementptr inbounds i8, ptr %166, i64 32
  %168 = load ptr, ptr %167, align 8
  %169 = invoke noundef i64 %168(ptr noundef nonnull align 8 dereferenceable(132) %58)
          to label %170 unwind label %173

170:                                              ; preds = %165
  %171 = icmp ult i64 %storemerge, %169
  br i1 %171, label %175, label %172

172:                                              ; preds = %170
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #10
  call void @llvm.lifetime.start.p0(i64 304, ptr nonnull %19) #10
  invoke void @_ZN4arsc20XmlStringRefRemapperC2ERKSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE(ptr noundef nonnull align 8 dereferenceable(304) %19, ptr noundef nonnull align 8 dereferenceable(56) %16)
          to label %185 unwind label %193

173:                                              ; preds = %165
  %174 = landingpad { ptr, i32 }
          cleanup
  br label %184

175:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #10
  %176 = load i64, ptr %17, align 8, !tbaa !11
  %177 = add i64 %176, 1
  store i64 %177, ptr %18, align 8, !tbaa !11
  %178 = invoke { ptr, i8 } @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE7emplaceIJRmmEEES4_INSt8__detail14_Node_iteratorIS6_Lb0ELb0EEEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(56) %16, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %179 unwind label %182

179:                                              ; preds = %175
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #10
  %180 = load i64, ptr %17, align 8, !tbaa !11
  %181 = add i64 %180, 1
  br label %165, !llvm.loop !18

182:                                              ; preds = %175
  %183 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #10
  br label %184

184:                                              ; preds = %182, %173
  %.pn95 = phi { ptr, i32 } [ %183, %182 ], [ %174, %173 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #10
  br label %205

185:                                              ; preds = %172
  %186 = invoke noundef ptr @_ZNK7android6VectorIcE5arrayEv(ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %187 unwind label %195

187:                                              ; preds = %185
  %188 = invoke noundef i64 @_ZNK7android6VectorIcE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %189 unwind label %195

189:                                              ; preds = %187
  %190 = invoke noundef zeroext i1 @_ZN4arsc14XmlFileVisitor5visitEPvm(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef %186, i64 noundef %188)
          to label %191 unwind label %195

191:                                              ; preds = %189
  br i1 %190, label %192, label %197

192:                                              ; preds = %191
  store i64 %.482, ptr %5, align 8, !tbaa !11
  call void @_ZN4arsc20XmlStringRefRemapperD2Ev(ptr noundef nonnull align 8 dereferenceable(304) %19) #10
  call void @llvm.lifetime.end.p0(i64 304, ptr nonnull %19) #10
  call void @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #10
  call void @_ZN4arsc18ResFileManipulatorD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %13) #10
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %13) #10
  br label %209

193:                                              ; preds = %172
  %194 = landingpad { ptr, i32 }
          cleanup
  br label %204

195:                                              ; preds = %189, %187, %185
  %196 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4arsc20XmlStringRefRemapperD2Ev(ptr noundef nonnull align 8 dereferenceable(304) %19) #10
  br label %204

197:                                              ; preds = %191
  %198 = load ptr, ptr @stderr, align 8, !tbaa !5
  %199 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %198, ptr noundef nonnull @.str) #8
  %200 = load ptr, ptr @stderr, align 8, !tbaa !5
  %201 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %200, ptr noundef nonnull @.str.27) #8
  %202 = load ptr, ptr @stderr, align 8, !tbaa !5
  %203 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %202, ptr noundef nonnull @.str.5) #8
  call void @abort() #9
  unreachable

204:                                              ; preds = %195, %193
  %.pn93 = phi { ptr, i32 } [ %196, %195 ], [ %194, %193 ]
  call void @llvm.lifetime.end.p0(i64 304, ptr nonnull %19) #10
  br label %205

205:                                              ; preds = %204, %184
  %.pn95.pn = phi { ptr, i32 } [ %.pn95, %184 ], [ %.pn93, %204 ]
  call void @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %16) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %16) #10
  br label %206

206:                                              ; preds = %205, %159, %157
  %.pn95.pn.pn = phi { ptr, i32 } [ %.pn95.pn, %205 ], [ %158, %157 ], [ %160, %159 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #10
  br label %207

207:                                              ; preds = %206, %155
  %.pn95.pn.pn.pn = phi { ptr, i32 } [ %.pn95.pn.pn, %206 ], [ %156, %155 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #10
  br label %208

208:                                              ; preds = %153, %207, %151
  %.pn95.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %152, %151 ], [ %.pn95.pn.pn.pn, %207 ], [ %154, %153 ]
  call void @_ZN4arsc18ResFileManipulatorD2Ev(ptr noundef nonnull align 8 dereferenceable(128) %13) #10
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %13) #10
  br label %210

209:                                              ; preds = %.thread108, %192
  %.3 = phi i32 [ 0, %192 ], [ %.1.ph, %.thread108 ]
  call void @_ZN4arsc16ResXmlIdsBuilderD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #10
  call void @_ZN4arsc20ResStringPoolBuilderD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #10
  call void @_ZN4arsc15SimpleXmlParserD2Ev(ptr noundef nonnull align 8 dereferenceable(192) %7) #10
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %7) #10
  br label %213

210:                                              ; preds = %208, %120, %107, %105, %99
  %.pn102 = phi { ptr, i32 } [ %121, %120 ], [ %.pn95.pn.pn.pn.pn.pn, %208 ], [ %106, %105 ], [ %108, %107 ], [ %.pn.pn, %99 ]
  call void @_ZN4arsc16ResXmlIdsBuilderD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #10
  call void @_ZN4arsc20ResStringPoolBuilderD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #10
  br label %211

211:                                              ; preds = %210, %63
  %.pn102.pn = phi { ptr, i32 } [ %.pn102, %210 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #10
  br label %212

212:                                              ; preds = %211, %55
  %.pn102.pn.pn = phi { ptr, i32 } [ %.pn102.pn, %211 ], [ %56, %55 ]
  call void @_ZN4arsc15SimpleXmlParserD2Ev(ptr noundef nonnull align 8 dereferenceable(192) %7) #10
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %7) #10
  resume { ptr, i32 } %.pn102.pn.pn

213:                                              ; preds = %209, %37
  %.4 = phi i32 [ %38, %37 ], [ %.3, %209 ]
  ret i32 %.4
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4arsc16ResXmlIdsBuilder6add_idEj(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN4arsc15SimpleXmlParser18string_pool_offsetEv(ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { i8, i64 } @_ZN4arsc15SimpleXmlParser24attributes_header_offsetEv(ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i8, i64 } @_ZN4arsc15SimpleXmlParser20attributes_data_sizeEv(ptr noundef nonnull align 8 dereferenceable(192)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4arsc18ResFileManipulator19add_serializable_atINS_16ResXmlIdsBuilderEEEvPvRT_(ptr noundef nonnull align 8 dereferenceable(128), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE7emplaceIJRmmEEES4_INSt8__detail14_Node_iteratorIS6_Lb0ELb0EEEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4arsc20XmlStringRefRemapperC2ERKSt13unordered_mapIjjSt4hashIjESt8equal_toIjESaISt4pairIKjjEEE(ptr noundef nonnull align 8 dereferenceable(304), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4arsc16ResXmlIdsBuilderD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #6 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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress 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 #7 = { "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 #8 = { cold nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !8, i64 0}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}


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