; 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.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.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] }
%"struct.std::pair.250" = type <{ %"struct.std::__detail::_Node_iterator.252", i8, [7 x i8] }>
%"struct.std::__detail::_Node_iterator.252" = type { %"struct.std::__detail::_Node_iterator_base.253" }
%"struct.std::__detail::_Node_iterator_base.253" = type { 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 }
%"struct.std::_Rb_tree_const_iterator.255" = type { 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.18 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [13 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: 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, ...) #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 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 #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN4arsc20ResStringPoolBuilder12string_countEv(ptr noundef nonnull align 8 dereferenceable(56)) #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN4arsc26ensure_strings_in_xml_poolEPKvmRKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS8_ESaIS8_EEPN7android6VectorIcEEPSt13unordered_mapIS8_jSt4hashIS8_ESt8equal_toIS8_ESaISt4pairIKS8_jEEE(ptr noundef %0, i64 noundef %1, ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef %3, ptr noundef %4) #3 personality ptr @__gxx_personality_v0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.arsc::SimpleXmlParser", align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"struct.std::pair.250", align 8
  %22 = alloca i32, align 4
  %23 = alloca %"class.arsc::ResStringPoolBuilder", align 8
  %24 = alloca i64, align 8
  %25 = alloca ptr, align 8
  %26 = alloca %"struct.std::_Rb_tree_const_iterator.255", align 8
  %27 = alloca %"struct.std::_Rb_tree_const_iterator.255", align 8
  %28 = alloca ptr, align 8
  %29 = alloca i64, align 8
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca %"struct.std::pair.250", align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i64 %1, ptr %8, align 8, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  br label %32

32:                                               ; preds = %5
  %33 = load ptr, ptr %11, align 8, !tbaa !5
  %34 = call noundef zeroext i1 @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_jEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %33) #8
  br i1 %34, label %52, label %35

35:                                               ; preds = %32
  br label %36

36:                                               ; preds = %35
  %37 = load ptr, ptr @stderr, align 8, !tbaa !5
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef @.str) #8
  %39 = load ptr, ptr @stderr, align 8, !tbaa !5
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @.str.18) #8
  %41 = load ptr, ptr @stderr, align 8, !tbaa !5
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef @.str.5) #8
  br label %43

43:                                               ; preds = %36
  br label %44

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

51:                                               ; preds = %44
  call void @abort() #9
  unreachable

52:                                               ; preds = %32
  br label %53

53:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = load i64, ptr %8, align 8, !tbaa !9
  %56 = call noundef i32 @_ZN4arsc24validate_xml_string_poolEPKvm(ptr noundef %54, i64 noundef %55)
  store i32 %56, ptr %12, align 4, !tbaa !11
  %57 = load i32, ptr %12, align 4, !tbaa !11
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %61

59:                                               ; preds = %53
  %60 = load i32, ptr %12, align 4, !tbaa !11
  store i32 %60, ptr %6, align 4
  store i32 1, ptr %13, align 4
  br label %260

61:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 192, ptr %14) #8
  call void @_ZN4arsc15SimpleXmlParserC2Ev(ptr noundef nonnull align 8 dereferenceable(192) %14)
  br label %62

62:                                               ; preds = %61
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = load i64, ptr %8, align 8, !tbaa !9
  %65 = invoke noundef zeroext i1 @_ZN4arsc14XmlFileVisitor5visitEPvm(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef %63, i64 noundef %64)
          to label %66 unwind label %86

66:                                               ; preds = %62
  br i1 %65, label %90, label %67

67:                                               ; preds = %66
  br label %68

68:                                               ; preds = %67
  %69 = load ptr, ptr @stderr, align 8, !tbaa !5
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef @.str) #8
  %71 = load ptr, ptr @stderr, align 8, !tbaa !5
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef @.str.20) #8
  %73 = load ptr, ptr @stderr, align 8, !tbaa !5
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef @.str.5) #8
  br label %75

75:                                               ; preds = %68
  br label %76

76:                                               ; preds = %75
  br label %77

77:                                               ; preds = %76
  %78 = load ptr, ptr @stderr, align 8, !tbaa !5
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef @.str) #8
  %80 = load ptr, ptr @stderr, align 8, !tbaa !5
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str.21) #8
  %82 = load ptr, ptr @stderr, align 8, !tbaa !5
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef @.str.5) #8
  br label %84

84:                                               ; preds = %77
  br label %85

85:                                               ; preds = %84
  call void @abort() #9
  unreachable

86:                                               ; preds = %62
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %15, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %16, align 4
  br label %259

90:                                               ; preds = %66
  br label %91

91:                                               ; preds = %90
  br label %92

92:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %93 = invoke noundef nonnull align 8 dereferenceable(132) ptr @_ZN4arsc15SimpleXmlParser14global_stringsEv(ptr noundef nonnull align 8 dereferenceable(192) %14)
          to label %94 unwind label %108

94:                                               ; preds = %92
  store ptr %93, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %95 = load ptr, ptr %17, align 8, !tbaa !5
  %96 = load ptr, ptr %95, align 8, !tbaa !13
  %97 = getelementptr inbounds ptr, ptr %96, i64 4
  %98 = load ptr, ptr %97, align 8
  %99 = invoke noundef i64 %98(ptr noundef nonnull align 8 dereferenceable(132) %95)
          to label %100 unwind label %112

100:                                              ; preds = %94
  store i64 %99, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %101 = invoke noundef i64 @_ZN4arsc15SimpleXmlParser15attribute_countEv(ptr noundef nonnull align 8 dereferenceable(192) %14)
          to label %102 unwind label %116

102:                                              ; preds = %100
  store i64 %101, ptr %19, align 8, !tbaa !9
  br label %103

103:                                              ; preds = %152, %102
  %104 = load i64, ptr %19, align 8, !tbaa !9
  %105 = load i64, ptr %18, align 8, !tbaa !9
  %106 = icmp ult i64 %104, %105
  br i1 %106, label %120, label %107

107:                                              ; preds = %103
  store i32 14, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %156

108:                                              ; preds = %92
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %15, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %16, align 4
  br label %258

112:                                              ; preds = %94
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %15, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %16, align 4
  br label %257

116:                                              ; preds = %120, %100
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %15, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %16, align 4
  br label %155

120:                                              ; preds = %103
  %121 = load ptr, ptr %17, align 8, !tbaa !5
  %122 = load i64, ptr %19, align 8, !tbaa !9
  %123 = invoke noundef zeroext i1 @_ZN4arsc19is_valid_string_idxERKN7android13ResStringPoolEm(ptr noundef nonnull align 8 dereferenceable(132) %121, i64 noundef %122)
          to label %124 unwind label %116

124:                                              ; preds = %120
  br i1 %123, label %125, label %151

125:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #8
  %126 = load ptr, ptr %17, align 8, !tbaa !5
  %127 = load i64, ptr %19, align 8, !tbaa !9
  invoke void @_ZN4arsc20get_string_from_poolB5cxx11ERKN7android13ResStringPoolEm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %20, ptr noundef nonnull align 8 dereferenceable(132) %126, i64 noundef %127)
          to label %128 unwind label %141

128:                                              ; preds = %125
  %129 = load ptr, ptr %9, align 8, !tbaa !5
  %130 = invoke noundef i64 @_ZNKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE5countERKS5_(ptr noundef nonnull align 8 dereferenceable(48) %129, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %131 unwind label %145

131:                                              ; preds = %128
  %132 = icmp ugt i64 %130, 0
  br i1 %132, label %133, label %149

133:                                              ; preds = %131
  %134 = load ptr, ptr %11, align 8, !tbaa !5
  %135 = invoke { ptr, i8 } @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_jEEE7emplaceIJRS5_RmEEESA_INSt8__detail14_Node_iteratorISC_Lb0ELb1EEEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(56) %134, ptr noundef nonnull align 8 dereferenceable(32) %20, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %136 unwind label %145

136:                                              ; preds = %133
  %137 = getelementptr inbounds { ptr, i8 }, ptr %21, i32 0, i32 0
  %138 = extractvalue { ptr, i8 } %135, 0
  store ptr %138, ptr %137, align 8
  %139 = getelementptr inbounds { ptr, i8 }, ptr %21, i32 0, i32 1
  %140 = extractvalue { ptr, i8 } %135, 1
  store i8 %140, ptr %139, align 8
  br label %149

141:                                              ; preds = %125
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %15, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %16, align 4
  br label %150

145:                                              ; preds = %133, %128
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %15, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %16, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #8
  br label %150

149:                                              ; preds = %136, %131
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #8
  br label %151

150:                                              ; preds = %145, %141
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #8
  br label %155

151:                                              ; preds = %149, %124
  br label %152

152:                                              ; preds = %151
  %153 = load i64, ptr %19, align 8, !tbaa !9
  %154 = add i64 %153, 1
  store i64 %154, ptr %19, align 8, !tbaa !9
  br label %103, !llvm.loop !15

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

156:                                              ; preds = %107
  %157 = load ptr, ptr %9, align 8, !tbaa !5
  %158 = call noundef i64 @_ZNKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %157) #8
  %159 = load ptr, ptr %11, align 8, !tbaa !5
  %160 = call noundef i64 @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_jEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %159) #8
  %161 = icmp eq i64 %158, %160
  br i1 %161, label %162, label %163

162:                                              ; preds = %156
  store i32 0, ptr %6, align 4
  store i32 1, ptr %13, align 4
  br label %256

163:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %164 = load ptr, ptr %17, align 8, !tbaa !5
  %165 = invoke noundef zeroext i1 @_ZNK7android13ResStringPool6isUTF8Ev(ptr noundef nonnull align 8 dereferenceable(132) %164)
          to label %166 unwind label %176

166:                                              ; preds = %163
  %167 = zext i1 %165 to i64
  %168 = select i1 %165, i32 256, i32 0
  store i32 %168, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 56, ptr %23) #8
  %169 = load i32, ptr %22, align 4, !tbaa !11
  invoke void @_ZN4arsc20ResStringPoolBuilderC2Ej(ptr noundef nonnull align 8 dereferenceable(56) %23, i32 noundef %169)
          to label %170 unwind label %180

170:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %171

171:                                              ; preds = %188, %170
  %172 = load i64, ptr %24, align 8, !tbaa !9
  %173 = load i64, ptr %18, align 8, !tbaa !9
  %174 = icmp ult i64 %172, %173
  br i1 %174, label %184, label %175

175:                                              ; preds = %171
  store i32 17, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %195

176:                                              ; preds = %163
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %15, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %16, align 4
  br label %255

180:                                              ; preds = %166
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %15, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %16, align 4
  br label %254

184:                                              ; preds = %171
  %185 = load ptr, ptr %17, align 8, !tbaa !5
  %186 = load i64, ptr %24, align 8, !tbaa !9
  invoke void @_ZN4arsc20ResStringPoolBuilder10add_stringERKN7android13ResStringPoolEm(ptr noundef nonnull align 8 dereferenceable(56) %23, ptr noundef nonnull align 8 dereferenceable(132) %185, i64 noundef %186)
          to label %187 unwind label %191

187:                                              ; preds = %184
  br label %188

188:                                              ; preds = %187
  %189 = load i64, ptr %24, align 8, !tbaa !9
  %190 = add i64 %189, 1
  store i64 %190, ptr %24, align 8, !tbaa !9
  br label %171, !llvm.loop !17

191:                                              ; preds = %184
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %15, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %253

195:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %196 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %196, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %197 = load ptr, ptr %25, align 8, !tbaa !5
  %198 = call ptr @_ZNKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %197) #8
  %199 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.255", ptr %26, i32 0, i32 0
  store ptr %198, ptr %199, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %200 = load ptr, ptr %25, align 8, !tbaa !5
  %201 = call ptr @_ZNKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %200) #8
  %202 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.255", ptr %27, i32 0, i32 0
  store ptr %201, ptr %202, align 8
  br label %203

203:                                              ; preds = %241, %195
  %204 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES8_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  br i1 %204, label %206, label %205

205:                                              ; preds = %203
  store i32 20, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %244

206:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %207 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt23_Rb_tree_const_iteratorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  store ptr %207, ptr %28, align 8, !tbaa !5
  %208 = load ptr, ptr %11, align 8, !tbaa !5
  %209 = load ptr, ptr %28, align 8, !tbaa !5
  %210 = invoke noundef i64 @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_jEEE5countERSB_(ptr noundef nonnull align 8 dereferenceable(56) %208, ptr noundef nonnull align 8 dereferenceable(32) %209)
          to label %211 unwind label %227

211:                                              ; preds = %206
  %212 = icmp eq i64 %210, 0
  br i1 %212, label %213, label %240

213:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  %214 = invoke noundef i64 @_ZN4arsc20ResStringPoolBuilder12string_countEv(ptr noundef nonnull align 8 dereferenceable(56) %23)
          to label %215 unwind label %231

215:                                              ; preds = %213
  store i64 %214, ptr %29, align 8, !tbaa !9
  %216 = load ptr, ptr %28, align 8, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %30, ptr noundef nonnull align 8 dereferenceable(32) %216)
          to label %217 unwind label %231

217:                                              ; preds = %215
  invoke void @_ZN4arsc20ResStringPoolBuilder10add_stringENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(56) %23, ptr noundef %30)
          to label %218 unwind label %235

218:                                              ; preds = %217
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #8
  %219 = load ptr, ptr %11, align 8, !tbaa !5
  %220 = load ptr, ptr %28, align 8, !tbaa !5
  %221 = invoke { ptr, i8 } @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_jEEE7emplaceIJRSB_RmEEESA_INSt8__detail14_Node_iteratorISC_Lb0ELb1EEEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(56) %219, ptr noundef nonnull align 8 dereferenceable(32) %220, ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %222 unwind label %231

222:                                              ; preds = %218
  %223 = getelementptr inbounds { ptr, i8 }, ptr %31, i32 0, i32 0
  %224 = extractvalue { ptr, i8 } %221, 0
  store ptr %224, ptr %223, align 8
  %225 = getelementptr inbounds { ptr, i8 }, ptr %31, i32 0, i32 1
  %226 = extractvalue { ptr, i8 } %221, 1
  store i8 %226, ptr %225, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %240

227:                                              ; preds = %206
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %15, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %16, align 4
  br label %243

231:                                              ; preds = %218, %215, %213
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %15, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %16, align 4
  br label %239

235:                                              ; preds = %217
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %15, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %16, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #8
  br label %239

239:                                              ; preds = %235, %231
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %243

240:                                              ; preds = %222, %211
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  br label %241

241:                                              ; preds = %240
  %242 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  br label %203

243:                                              ; preds = %239, %227
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %253

244:                                              ; preds = %205
  %245 = load ptr, ptr %7, align 8, !tbaa !5
  %246 = load i64, ptr %8, align 8, !tbaa !9
  %247 = load ptr, ptr %10, align 8, !tbaa !5
  invoke void @_ZN4arsc23replace_xml_string_poolEPN7android15ResChunk_headerEmRNS_20ResStringPoolBuilderEPNS0_6VectorIcEE(ptr noundef %245, i64 noundef %246, ptr noundef nonnull align 8 dereferenceable(56) %23, ptr noundef %247)
          to label %248 unwind label %249

248:                                              ; preds = %244
  store i32 0, ptr %6, align 4
  store i32 1, ptr %13, align 4
  call void @_ZN4arsc20ResStringPoolBuilderD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %23) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %256

249:                                              ; preds = %244
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %15, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %16, align 4
  br label %253

253:                                              ; preds = %249, %243, %191
  call void @_ZN4arsc20ResStringPoolBuilderD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %23) #8
  br label %254

254:                                              ; preds = %253, %180
  call void @llvm.lifetime.end.p0(i64 56, ptr %23) #8
  br label %255

255:                                              ; preds = %254, %176
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %257

256:                                              ; preds = %248, %162
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @_ZN4arsc15SimpleXmlParserD2Ev(ptr noundef nonnull align 8 dereferenceable(192) %14) #8
  call void @llvm.lifetime.end.p0(i64 192, ptr %14) #8
  br label %260

257:                                              ; preds = %255, %155, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %258

258:                                              ; preds = %257, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %259

259:                                              ; preds = %258, %86
  call void @_ZN4arsc15SimpleXmlParserD2Ev(ptr noundef nonnull align 8 dereferenceable(192) %14) #8
  call void @llvm.lifetime.end.p0(i64 192, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %262

260:                                              ; preds = %256, %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  %261 = load i32, ptr %6, align 4
  ret i32 %261

262:                                              ; preds = %259
  %263 = load ptr, ptr %15, align 8
  %264 = load i32, ptr %16, align 4
  %265 = insertvalue { ptr, i32 } poison, ptr %263, 0
  %266 = insertvalue { ptr, i32 } %265, i32 %264, 1
  resume { ptr, i32 } %266
}

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

declare noundef i32 @_ZN4arsc24validate_xml_string_poolEPKvm(ptr noundef, i64 noundef) #5

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4arsc19is_valid_string_idxERKN7android13ResStringPoolEm(ptr noundef nonnull align 8 dereferenceable(132), i64 noundef) #6

; 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) #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE5countERKS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4arsc20ResStringPoolBuilderC2Ej(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) unnamed_addr #4 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) #3 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_jEEE5countERSB_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

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

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

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

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

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


; 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.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.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::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 }
%"struct.std::_Rb_tree_const_iterator.255" = type { 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.18 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [13 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: 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 #1

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

; 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 #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 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 #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN4arsc20ResStringPoolBuilder12string_countEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN4arsc26ensure_strings_in_xml_poolEPKvmRKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS8_ESaIS8_EEPN7android6VectorIcEEPSt13unordered_mapIS8_jSt4hashIS8_ESt8equal_toIS8_ESaISt4pairIKS8_jEEE(ptr noundef %0, i64 noundef %1, ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef %3, ptr noundef nonnull %4) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.arsc::SimpleXmlParser", align 8
  %7 = alloca i64, align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.arsc::ResStringPoolBuilder", align 8
  %10 = alloca %"struct.std::_Rb_tree_const_iterator.255", align 8
  %11 = alloca %"struct.std::_Rb_tree_const_iterator.255", align 8
  %12 = alloca i64, align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = tail call noundef zeroext i1 @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_jEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(56) %4) #8
  br i1 %14, label %28, label %15

15:                                               ; preds = %5
  %16 = load ptr, ptr @stderr, align 8, !tbaa !5
  %17 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef nonnull @.str) #9
  %18 = load ptr, ptr @stderr, align 8, !tbaa !5
  %19 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.18) #9
  %20 = load ptr, ptr @stderr, align 8, !tbaa !5
  %21 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.5) #9
  %22 = load ptr, ptr @stderr, align 8, !tbaa !5
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef nonnull @.str) #9
  %24 = load ptr, ptr @stderr, align 8, !tbaa !5
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str.19) #9
  %26 = load ptr, ptr @stderr, align 8, !tbaa !5
  %27 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.5) #9
  tail call void @abort() #10
  unreachable

28:                                               ; preds = %5
  %29 = tail call noundef i32 @_ZN4arsc24validate_xml_string_poolEPKvm(ptr noundef %0, i64 noundef %1)
  %.not = icmp eq i32 %29, 0
  br i1 %.not, label %30, label %125

30:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %6) #8
  call void @_ZN4arsc15SimpleXmlParserC2Ev(ptr noundef nonnull align 8 dereferenceable(192) %6)
  %31 = invoke noundef zeroext i1 @_ZN4arsc14XmlFileVisitor5visitEPvm(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef %0, i64 noundef %1)
          to label %32 unwind label %46

32:                                               ; preds = %30
  br i1 %31, label %48, label %33

33:                                               ; preds = %32
  %34 = load ptr, ptr @stderr, align 8, !tbaa !5
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str) #9
  %36 = load ptr, ptr @stderr, align 8, !tbaa !5
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.20) #9
  %38 = load ptr, ptr @stderr, align 8, !tbaa !5
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str.5) #9
  %40 = load ptr, ptr @stderr, align 8, !tbaa !5
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef nonnull @.str) #9
  %42 = load ptr, ptr @stderr, align 8, !tbaa !5
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str.21) #9
  %44 = load ptr, ptr @stderr, align 8, !tbaa !5
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str.5) #9
  call void @abort() #10
  unreachable

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

48:                                               ; preds = %32
  %49 = call noundef nonnull align 8 dereferenceable(132) ptr @_ZN4arsc15SimpleXmlParser14global_stringsEv(ptr noundef nonnull align 8 dereferenceable(192) %6)
  %50 = load ptr, ptr %49, align 8, !tbaa !9
  %51 = getelementptr inbounds i8, ptr %50, i64 32
  %52 = load ptr, ptr %51, align 8
  %53 = invoke noundef i64 %52(ptr noundef nonnull align 8 dereferenceable(132) %49)
          to label %54 unwind label %60

54:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %55 = call noundef i64 @_ZN4arsc15SimpleXmlParser15attribute_countEv(ptr noundef nonnull align 8 dereferenceable(192) %6)
  store i64 %55, ptr %7, align 8, !tbaa !11
  %56 = icmp ult i64 %55, %53
  br i1 %56, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %79, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  %57 = call noundef i64 @_ZNKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) %2) #8
  %58 = call noundef i64 @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_jEEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %4) #8
  %59 = icmp eq i64 %57, %58
  br i1 %59, label %123, label %84

60:                                               ; preds = %48
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %124

62:                                               ; preds = %.lr.ph
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %83

.lr.ph:                                           ; preds = %54, %79
  %storemerge61 = phi i64 [ %81, %79 ], [ %55, %54 ]
  %64 = invoke noundef zeroext i1 @_ZN4arsc19is_valid_string_idxERKN7android13ResStringPoolEm(ptr noundef nonnull align 8 dereferenceable(132) %49, i64 noundef %storemerge61)
          to label %65 unwind label %62

65:                                               ; preds = %.lr.ph
  br i1 %64, label %66, label %79

66:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  %67 = load i64, ptr %7, align 8, !tbaa !11
  invoke void @_ZN4arsc20get_string_from_poolB5cxx11ERKN7android13ResStringPoolEm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull align 8 dereferenceable(132) %49, i64 noundef %67)
          to label %68 unwind label %73

68:                                               ; preds = %66
  %69 = invoke noundef i64 @_ZNKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE5countERKS5_(ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %70 unwind label %75

70:                                               ; preds = %68
  %.not55 = icmp eq i64 %69, 0
  br i1 %.not55, label %77, label %71

71:                                               ; preds = %70
  %72 = invoke { ptr, i8 } @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_jEEE7emplaceIJRS5_RmEEESA_INSt8__detail14_Node_iteratorISC_Lb0ELb1EEEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %77 unwind label %75

73:                                               ; preds = %66
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %78

75:                                               ; preds = %71, %68
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  br label %78

77:                                               ; preds = %71, %70
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  br label %79

78:                                               ; preds = %75, %73
  %.pn56 = phi { ptr, i32 } [ %76, %75 ], [ %74, %73 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  br label %83

79:                                               ; preds = %65, %77
  %80 = load i64, ptr %7, align 8, !tbaa !11
  %81 = add i64 %80, 1
  store i64 %81, ptr %7, align 8, !tbaa !11
  %82 = icmp ult i64 %81, %53
  br i1 %82, label %.lr.ph, label %._crit_edge, !llvm.loop !13

83:                                               ; preds = %78, %62
  %.pn56.pn = phi { ptr, i32 } [ %.pn56, %78 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %124

84:                                               ; preds = %._crit_edge
  %85 = invoke noundef zeroext i1 @_ZNK7android13ResStringPool6isUTF8Ev(ptr noundef nonnull align 8 dereferenceable(132) %49)
          to label %86 unwind label %91

86:                                               ; preds = %84
  %87 = select i1 %85, i32 256, i32 0
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %9) #8
  call void @_ZN4arsc20ResStringPoolBuilderC2Ej(ptr noundef nonnull align 8 dereferenceable(56) %9, i32 noundef %87)
  %.not69 = icmp eq i64 %53, 0
  br i1 %.not69, label %._crit_edge65, label %.lr.ph64

._crit_edge65:                                    ; preds = %93, %86
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %88 = call ptr @_ZNKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %2) #8
  store ptr %88, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %89 = call ptr @_ZNKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %2) #8
  store ptr %89, ptr %11, align 8
  %90 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES8_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  br i1 %90, label %.lr.ph67, label %._crit_edge68

91:                                               ; preds = %84
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %124

.lr.ph64:                                         ; preds = %86, %93
  %.04762 = phi i64 [ %94, %93 ], [ 0, %86 ]
  invoke void @_ZN4arsc20ResStringPoolBuilder10add_stringERKN7android13ResStringPoolEm(ptr noundef nonnull align 8 dereferenceable(56) %9, ptr noundef nonnull align 8 dereferenceable(132) %49, i64 noundef %.04762)
          to label %93 unwind label %95

93:                                               ; preds = %.lr.ph64
  %94 = add nuw i64 %.04762, 1
  %exitcond.not = icmp eq i64 %94, %53
  br i1 %exitcond.not, label %._crit_edge65, label %.lr.ph64, !llvm.loop !15

95:                                               ; preds = %.lr.ph64
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %122

._crit_edge68:                                    ; preds = %115, %._crit_edge65
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  invoke void @_ZN4arsc23replace_xml_string_poolEPN7android15ResChunk_headerEmRNS_20ResStringPoolBuilderEPNS0_6VectorIcEE(ptr noundef %0, i64 noundef %1, ptr noundef nonnull align 8 dereferenceable(56) %9, ptr noundef %3)
          to label %119 unwind label %120

.lr.ph67:                                         ; preds = %._crit_edge65, %115
  %97 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt23_Rb_tree_const_iteratorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  %98 = invoke noundef i64 @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_jEEE5countERSB_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(32) %97)
          to label %99 unwind label %108

99:                                               ; preds = %.lr.ph67
  %100 = icmp eq i64 %98, 0
  br i1 %100, label %101, label %115

101:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %102 = invoke noundef i64 @_ZN4arsc20ResStringPoolBuilder12string_countEv(ptr noundef nonnull align 8 dereferenceable(56) %9)
          to label %103 unwind label %110

103:                                              ; preds = %101
  store i64 %102, ptr %12, align 8, !tbaa !11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %97)
          to label %104 unwind label %110

104:                                              ; preds = %103
  invoke void @_ZN4arsc20ResStringPoolBuilder10add_stringENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(56) %9, ptr noundef nonnull %13)
          to label %105 unwind label %112

105:                                              ; preds = %104
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #8
  %106 = invoke { ptr, i8 } @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_jEEE7emplaceIJRSB_RmEEESA_INSt8__detail14_Node_iteratorISC_Lb0ELb1EEEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(56) %4, ptr noundef nonnull align 8 dereferenceable(32) %97, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %107 unwind label %110

107:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  br label %115

108:                                              ; preds = %.lr.ph67
  %109 = landingpad { ptr, i32 }
          cleanup
  br label %118

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

112:                                              ; preds = %104
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #8
  br label %114

114:                                              ; preds = %112, %110
  %.pn = phi { ptr, i32 } [ %111, %110 ], [ %113, %112 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  br label %118

115:                                              ; preds = %107, %99
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  %117 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEES8_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  br i1 %117, label %.lr.ph67, label %._crit_edge68

118:                                              ; preds = %114, %108
  %.pn.pn = phi { ptr, i32 } [ %.pn, %114 ], [ %109, %108 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  br label %122

119:                                              ; preds = %._crit_edge68
  call void @_ZN4arsc20ResStringPoolBuilderD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %9) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %9) #8
  br label %123

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

122:                                              ; preds = %120, %118, %95
  %.pn52 = phi { ptr, i32 } [ %96, %95 ], [ %.pn.pn, %118 ], [ %121, %120 ]
  call void @_ZN4arsc20ResStringPoolBuilderD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %9) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %9) #8
  br label %124

123:                                              ; preds = %._crit_edge, %119
  call void @_ZN4arsc15SimpleXmlParserD2Ev(ptr noundef nonnull align 8 dereferenceable(192) %6) #8
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %6) #8
  br label %125

124:                                              ; preds = %60, %83, %122, %91, %46
  %.pn56.pn.pn.pn = phi { ptr, i32 } [ %47, %46 ], [ %.pn56.pn, %83 ], [ %61, %60 ], [ %.pn52, %122 ], [ %92, %91 ]
  call void @_ZN4arsc15SimpleXmlParserD2Ev(ptr noundef nonnull align 8 dereferenceable(192) %6) #8
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %6) #8
  resume { ptr, i32 } %.pn56.pn.pn.pn

125:                                              ; preds = %28, %123
  %.1 = phi i32 [ 0, %123 ], [ %29, %28 ]
  ret i32 %.1
}

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

declare noundef i32 @_ZN4arsc24validate_xml_string_poolEPKvm(ptr noundef, i64 noundef) local_unnamed_addr #5

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

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

; 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 #4 align 2

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

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

; 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 #6

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt3setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4lessIS5_ESaIS5_EE5countERKS5_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4arsc20ResStringPoolBuilderC2Ej(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) unnamed_addr #4 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 #3 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_jEEE5countERSB_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { cold nounwind }
attributes #10 = { 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


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