; LLVM IR from facebookresearch/habitat-sim :: src/deps/tinyxml2/tinyxml2.ll (ZN8tinyxml27XMLNode9ParseDeepEPcPNS_7StrPairEPi)

; 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.tinyxml2::XMLDocument::DepthTracker" = type { ptr }
%"class.tinyxml2::StrPair" = type { i32, ptr, ptr }
%"class.tinyxml2::XMLNode" = type { ptr, ptr, ptr, %"class.tinyxml2::StrPair", i32, ptr, ptr, ptr, ptr, ptr, ptr }

@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [19 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8tinyxml27XMLUtil11StringEqualEPKcS2_i(ptr noundef, ptr noundef, i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeE(ptr noundef nonnull align 8 dereferenceable(776), ptr noundef, ptr noundef) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK8tinyxml27XMLNode5ValueEv(ptr noundef nonnull align 8 dereferenceable(104)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN8tinyxml27XMLNode14InsertEndChildEPS0_(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8tinyxml27XMLNode10DeleteNodeEPS0_(ptr noundef) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN8tinyxml27XMLNode9ParseDeepEPcPNS_7StrPairEPi(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.tinyxml2::XMLDocument::DepthTracker", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.tinyxml2::StrPair", align 8
  %17 = alloca ptr, align 8
  %18 = alloca i8, align 1
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i8, align 1
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %22 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %23 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %22, i32 0, i32 1
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  call void @_ZN8tinyxml211XMLDocument12DepthTrackerC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef %24)
  %25 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %22, i32 0, i32 1
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %27 = invoke noundef zeroext i1 @_ZNK8tinyxml211XMLDocument5ErrorEv(ptr noundef nonnull align 8 dereferenceable(776) %26)
          to label %28 unwind label %30

28:                                               ; preds = %4
  br i1 %27, label %29, label %34

29:                                               ; preds = %28
  store ptr null, ptr %5, align 8
  store i32 1, ptr %13, align 4
  br label %268

30:                                               ; preds = %4
  %31 = landingpad { ptr, i32 }
          cleanup
  %32 = extractvalue { ptr, i32 } %31, 0
  store ptr %32, ptr %11, align 8
  %33 = extractvalue { ptr, i32 } %31, 1
  store i32 %33, ptr %12, align 4
  br label %270

34:                                               ; preds = %28
  br label %35

35:                                               ; preds = %261, %34
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %42

38:                                               ; preds = %35
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = load i8, ptr %39, align 1, !tbaa !13
  %41 = icmp ne i8 %40, 0
  br label %42

42:                                               ; preds = %38, %35
  %43 = phi i1 [ false, %35 ], [ %41, %38 ]
  br i1 %43, label %44, label %267

44:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store ptr null, ptr %14, align 8, !tbaa !5
  %45 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %22, i32 0, i32 1
  %46 = load ptr, ptr %45, align 8, !tbaa !9
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = invoke noundef ptr @_ZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeE(ptr noundef nonnull align 8 dereferenceable(776) %46, ptr noundef %47, ptr noundef %14)
          to label %49 unwind label %53

49:                                               ; preds = %44
  store ptr %48, ptr %7, align 8, !tbaa !5
  %50 = load ptr, ptr %14, align 8, !tbaa !5
  %51 = icmp eq ptr %50, null
  br i1 %51, label %52, label %57

52:                                               ; preds = %49
  store i32 3, ptr %13, align 4
  br label %259

53:                                               ; preds = %44
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %11, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %12, align 4
  br label %266

57:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %58 = load ptr, ptr %14, align 8, !tbaa !5
  %59 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %58, i32 0, i32 4
  %60 = load i32, ptr %59, align 8, !tbaa !14
  store i32 %60, ptr %15, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #4
  invoke void @_ZN8tinyxml27StrPairC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %61 unwind label %84

61:                                               ; preds = %57
  %62 = load ptr, ptr %14, align 8, !tbaa !5
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = load ptr, ptr %62, align 8, !tbaa !16
  %66 = getelementptr inbounds ptr, ptr %65, i64 17
  %67 = load ptr, ptr %66, align 8
  %68 = invoke noundef ptr %67(ptr noundef nonnull align 8 dereferenceable(104) %62, ptr noundef %63, ptr noundef %16, ptr noundef %64)
          to label %69 unwind label %88

69:                                               ; preds = %61
  store ptr %68, ptr %7, align 8, !tbaa !5
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = icmp ne ptr %70, null
  br i1 %71, label %93, label %72

72:                                               ; preds = %69
  %73 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN8tinyxml27XMLNode10DeleteNodeEPS0_(ptr noundef %73)
          to label %74 unwind label %88

74:                                               ; preds = %72
  %75 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %22, i32 0, i32 1
  %76 = load ptr, ptr %75, align 8, !tbaa !9
  %77 = invoke noundef zeroext i1 @_ZNK8tinyxml211XMLDocument5ErrorEv(ptr noundef nonnull align 8 dereferenceable(776) %76)
          to label %78 unwind label %88

78:                                               ; preds = %74
  br i1 %77, label %92, label %79

79:                                               ; preds = %78
  %80 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %22, i32 0, i32 1
  %81 = load ptr, ptr %80, align 8, !tbaa !9
  %82 = load i32, ptr %15, align 4, !tbaa !15
  invoke void (ptr, i32, i32, ptr, ...) @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(776) %81, i32 noundef 17, i32 noundef %82, ptr noundef null)
          to label %83 unwind label %88

83:                                               ; preds = %79
  br label %92

84:                                               ; preds = %57
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %11, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %12, align 4
  br label %265

88:                                               ; preds = %79, %74, %72, %61
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %11, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %12, align 4
  br label %264

92:                                               ; preds = %83, %78
  store i32 3, ptr %13, align 4
  br label %258

93:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %94 = load ptr, ptr %14, align 8, !tbaa !5
  %95 = load ptr, ptr %94, align 8, !tbaa !16
  %96 = getelementptr inbounds ptr, ptr %95, i64 4
  %97 = load ptr, ptr %96, align 8
  %98 = invoke noundef ptr %97(ptr noundef nonnull align 8 dereferenceable(104) %94)
          to label %99 unwind label %121

99:                                               ; preds = %93
  store ptr %98, ptr %17, align 8, !tbaa !5
  %100 = load ptr, ptr %17, align 8, !tbaa !5
  %101 = icmp ne ptr %100, null
  br i1 %101, label %102, label %167

102:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #4
  %103 = load ptr, ptr %22, align 8, !tbaa !16
  %104 = getelementptr inbounds ptr, ptr %103, i64 3
  %105 = load ptr, ptr %104, align 8
  %106 = invoke noundef ptr %105(ptr noundef nonnull align 8 dereferenceable(104) %22)
          to label %107 unwind label %125

107:                                              ; preds = %102
  %108 = icmp ne ptr %106, null
  %109 = zext i1 %108 to i8
  store i8 %109, ptr %18, align 1, !tbaa !18
  %110 = load i8, ptr %18, align 1, !tbaa !18, !range !20, !noundef !21
  %111 = trunc i8 %110 to i1
  br i1 %111, label %112, label %149

112:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %113 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %22, i32 0, i32 1
  %114 = load ptr, ptr %113, align 8, !tbaa !9
  %115 = invoke noundef ptr @_ZN8tinyxml27XMLNode10FirstChildEv(ptr noundef nonnull align 8 dereferenceable(104) %114)
          to label %116 unwind label %129

116:                                              ; preds = %112
  store ptr %115, ptr %19, align 8, !tbaa !5
  br label %117

117:                                              ; preds = %146, %116
  %118 = load ptr, ptr %19, align 8, !tbaa !5
  %119 = icmp ne ptr %118, null
  br i1 %119, label %133, label %120

120:                                              ; preds = %117
  store i32 4, ptr %13, align 4
  br label %147

121:                                              ; preds = %93
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %11, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %12, align 4
  br label %263

125:                                              ; preds = %159, %158, %152, %102
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %11, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %12, align 4
  br label %166

129:                                              ; preds = %143, %133, %112
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %11, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %166

133:                                              ; preds = %117
  %134 = load ptr, ptr %19, align 8, !tbaa !5
  %135 = load ptr, ptr %134, align 8, !tbaa !16
  %136 = getelementptr inbounds ptr, ptr %135, i64 10
  %137 = load ptr, ptr %136, align 8
  %138 = invoke noundef ptr %137(ptr noundef nonnull align 8 dereferenceable(104) %134)
          to label %139 unwind label %129

139:                                              ; preds = %133
  %140 = icmp ne ptr %138, null
  br i1 %140, label %142, label %141

141:                                              ; preds = %139
  store i8 0, ptr %18, align 1, !tbaa !18
  store i32 4, ptr %13, align 4
  br label %147

142:                                              ; preds = %139
  br label %143

143:                                              ; preds = %142
  %144 = load ptr, ptr %19, align 8, !tbaa !5
  %145 = invoke noundef ptr @_ZNK8tinyxml27XMLNode11NextSiblingEv(ptr noundef nonnull align 8 dereferenceable(104) %144)
          to label %146 unwind label %129

146:                                              ; preds = %143
  store ptr %145, ptr %19, align 8, !tbaa !5
  br label %117, !llvm.loop !22

147:                                              ; preds = %141, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %148

148:                                              ; preds = %147
  br label %149

149:                                              ; preds = %148, %107
  %150 = load i8, ptr %18, align 1, !tbaa !18, !range !20, !noundef !21
  %151 = trunc i8 %150 to i1
  br i1 %151, label %162, label %152

152:                                              ; preds = %149
  %153 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %22, i32 0, i32 1
  %154 = load ptr, ptr %153, align 8, !tbaa !9
  %155 = load i32, ptr %15, align 4, !tbaa !15
  %156 = load ptr, ptr %17, align 8, !tbaa !5
  %157 = invoke noundef ptr @_ZNK8tinyxml27XMLNode5ValueEv(ptr noundef nonnull align 8 dereferenceable(104) %156)
          to label %158 unwind label %125

158:                                              ; preds = %152
  invoke void (ptr, i32, i32, ptr, ...) @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(776) %154, i32 noundef 13, i32 noundef %155, ptr noundef @.str.15, ptr noundef %157)
          to label %159 unwind label %125

159:                                              ; preds = %158
  %160 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN8tinyxml27XMLNode10DeleteNodeEPS0_(ptr noundef %160)
          to label %161 unwind label %125

161:                                              ; preds = %159
  store i32 3, ptr %13, align 4
  br label %163

162:                                              ; preds = %149
  store i32 0, ptr %13, align 4
  br label %163

163:                                              ; preds = %162, %161
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #4
  %164 = load i32, ptr %13, align 4
  switch i32 %164, label %257 [
    i32 0, label %165
  ]

165:                                              ; preds = %163
  br label %167

166:                                              ; preds = %129, %125
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #4
  br label %263

167:                                              ; preds = %165, %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %168 = load ptr, ptr %14, align 8, !tbaa !5
  %169 = load ptr, ptr %168, align 8, !tbaa !16
  %170 = getelementptr inbounds ptr, ptr %169, i64 0
  %171 = load ptr, ptr %170, align 8
  %172 = invoke noundef ptr %171(ptr noundef nonnull align 8 dereferenceable(104) %168)
          to label %173 unwind label %189

173:                                              ; preds = %167
  store ptr %172, ptr %20, align 8, !tbaa !5
  %174 = load ptr, ptr %20, align 8, !tbaa !5
  %175 = icmp ne ptr %174, null
  br i1 %175, label %176, label %252

176:                                              ; preds = %173
  %177 = load ptr, ptr %20, align 8, !tbaa !5
  %178 = invoke noundef i32 @_ZNK8tinyxml210XMLElement11ClosingTypeEv(ptr noundef nonnull align 8 dereferenceable(120) %177)
          to label %179 unwind label %189

179:                                              ; preds = %176
  %180 = icmp eq i32 %178, 2
  br i1 %180, label %181, label %204

181:                                              ; preds = %179
  %182 = load ptr, ptr %8, align 8, !tbaa !5
  %183 = icmp ne ptr %182, null
  br i1 %183, label %184, label %193

184:                                              ; preds = %181
  %185 = load ptr, ptr %20, align 8, !tbaa !5
  %186 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %185, i32 0, i32 3
  %187 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN8tinyxml27StrPair10TransferToEPS0_(ptr noundef nonnull align 8 dereferenceable(24) %186, ptr noundef %187)
          to label %188 unwind label %189

188:                                              ; preds = %184
  br label %193

189:                                              ; preds = %252, %200, %193, %184, %176, %167
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %11, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %12, align 4
  br label %262

193:                                              ; preds = %188, %181
  %194 = load ptr, ptr %14, align 8, !tbaa !5
  %195 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %194, i32 0, i32 10
  %196 = load ptr, ptr %195, align 8, !tbaa !24
  %197 = load ptr, ptr %196, align 8, !tbaa !16
  %198 = getelementptr inbounds ptr, ptr %197, i64 5
  %199 = load ptr, ptr %198, align 8
  invoke void %199(ptr noundef nonnull align 8 dereferenceable(8) %196)
          to label %200 unwind label %189

200:                                              ; preds = %193
  %201 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN8tinyxml27XMLNode10DeleteNodeEPS0_(ptr noundef %201)
          to label %202 unwind label %189

202:                                              ; preds = %200
  %203 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %203, ptr %5, align 8
  store i32 1, ptr %13, align 4
  br label %256

204:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #4
  store i8 0, ptr %21, align 1, !tbaa !18
  %205 = invoke noundef zeroext i1 @_ZNK8tinyxml27StrPair5EmptyEv(ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %206 unwind label %213

206:                                              ; preds = %204
  br i1 %205, label %207, label %218

207:                                              ; preds = %206
  %208 = load ptr, ptr %20, align 8, !tbaa !5
  %209 = invoke noundef i32 @_ZNK8tinyxml210XMLElement11ClosingTypeEv(ptr noundef nonnull align 8 dereferenceable(120) %208)
          to label %210 unwind label %213

210:                                              ; preds = %207
  %211 = icmp eq i32 %209, 0
  br i1 %211, label %212, label %217

212:                                              ; preds = %210
  store i8 1, ptr %21, align 1, !tbaa !18
  br label %217

213:                                              ; preds = %245, %244, %238, %229, %226, %224, %218, %207, %204
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %11, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #4
  br label %262

217:                                              ; preds = %212, %210
  br label %235

218:                                              ; preds = %206
  %219 = load ptr, ptr %20, align 8, !tbaa !5
  %220 = invoke noundef i32 @_ZNK8tinyxml210XMLElement11ClosingTypeEv(ptr noundef nonnull align 8 dereferenceable(120) %219)
          to label %221 unwind label %213

221:                                              ; preds = %218
  %222 = icmp ne i32 %220, 0
  br i1 %222, label %223, label %224

223:                                              ; preds = %221
  store i8 1, ptr %21, align 1, !tbaa !18
  br label %234

224:                                              ; preds = %221
  %225 = invoke noundef ptr @_ZN8tinyxml27StrPair6GetStrEv(ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %226 unwind label %213

226:                                              ; preds = %224
  %227 = load ptr, ptr %20, align 8, !tbaa !5
  %228 = invoke noundef ptr @_ZNK8tinyxml210XMLElement4NameEv(ptr noundef nonnull align 8 dereferenceable(120) %227)
          to label %229 unwind label %213

229:                                              ; preds = %226
  %230 = invoke noundef zeroext i1 @_ZN8tinyxml27XMLUtil11StringEqualEPKcS2_i(ptr noundef %225, ptr noundef %228, i32 noundef 2147483647)
          to label %231 unwind label %213

231:                                              ; preds = %229
  br i1 %230, label %233, label %232

232:                                              ; preds = %231
  store i8 1, ptr %21, align 1, !tbaa !18
  br label %233

233:                                              ; preds = %232, %231
  br label %234

234:                                              ; preds = %233, %223
  br label %235

235:                                              ; preds = %234, %217
  %236 = load i8, ptr %21, align 1, !tbaa !18, !range !20, !noundef !21
  %237 = trunc i8 %236 to i1
  br i1 %237, label %238, label %248

238:                                              ; preds = %235
  %239 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %22, i32 0, i32 1
  %240 = load ptr, ptr %239, align 8, !tbaa !9
  %241 = load i32, ptr %15, align 4, !tbaa !15
  %242 = load ptr, ptr %20, align 8, !tbaa !5
  %243 = invoke noundef ptr @_ZNK8tinyxml210XMLElement4NameEv(ptr noundef nonnull align 8 dereferenceable(120) %242)
          to label %244 unwind label %213

244:                                              ; preds = %238
  invoke void (ptr, i32, i32, ptr, ...) @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(776) %240, i32 noundef 16, i32 noundef %241, ptr noundef @.str.16, ptr noundef %243)
          to label %245 unwind label %213

245:                                              ; preds = %244
  %246 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN8tinyxml27XMLNode10DeleteNodeEPS0_(ptr noundef %246)
          to label %247 unwind label %213

247:                                              ; preds = %245
  store i32 3, ptr %13, align 4
  br label %249

248:                                              ; preds = %235
  store i32 0, ptr %13, align 4
  br label %249

249:                                              ; preds = %248, %247
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #4
  %250 = load i32, ptr %13, align 4
  switch i32 %250, label %256 [
    i32 0, label %251
  ]

251:                                              ; preds = %249
  br label %252

252:                                              ; preds = %251, %173
  %253 = load ptr, ptr %14, align 8, !tbaa !5
  %254 = invoke noundef ptr @_ZN8tinyxml27XMLNode14InsertEndChildEPS0_(ptr noundef nonnull align 8 dereferenceable(104) %22, ptr noundef %253)
          to label %255 unwind label %189

255:                                              ; preds = %252
  store i32 0, ptr %13, align 4
  br label %256

256:                                              ; preds = %255, %249, %202
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %257

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

258:                                              ; preds = %257, %92
  call void @_ZN8tinyxml27StrPairD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %259

259:                                              ; preds = %258, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  %260 = load i32, ptr %13, align 4
  switch i32 %260, label %268 [
    i32 0, label %261
    i32 3, label %267
  ]

261:                                              ; preds = %259
  br label %35, !llvm.loop !25

262:                                              ; preds = %213, %189
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %263

263:                                              ; preds = %262, %166, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %264

264:                                              ; preds = %263, %88
  call void @_ZN8tinyxml27StrPairD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  br label %265

265:                                              ; preds = %264, %84
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %266

266:                                              ; preds = %265, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %270

267:                                              ; preds = %259, %42
  store ptr null, ptr %5, align 8
  store i32 1, ptr %13, align 4
  br label %268

268:                                              ; preds = %267, %259, %29
  call void @_ZN8tinyxml211XMLDocument12DepthTrackerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %269 = load ptr, ptr %5, align 8
  ret ptr %269

270:                                              ; preds = %266, %30
  call void @_ZN8tinyxml211XMLDocument12DepthTrackerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %271

271:                                              ; preds = %270
  %272 = load ptr, ptr %11, align 8
  %273 = load i32, ptr %12, align 4
  %274 = insertvalue { ptr, i32 } poison, ptr %272, 0
  %275 = insertvalue { ptr, i32 } %274, i32 %273, 1
  resume { ptr, i32 } %275
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8tinyxml211XMLDocument5ErrorEv(ptr noundef nonnull align 8 dereferenceable(776)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(776), i32 noundef, i32 noundef, ptr noundef, ...) #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8tinyxml210XMLElement11ClosingTypeEv(ptr noundef nonnull align 8 dereferenceable(120)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8tinyxml27StrPair5EmptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK8tinyxml210XMLElement4NameEv(ptr noundef nonnull align 8 dereferenceable(120)) #0 align 2

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

declare void @_ZN8tinyxml27StrPairD1Ev(ptr)

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_ZTSN8tinyxml27XMLNodeE", !6, i64 8, !6, i64 16, !11, i64 24, !12, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96}
!11 = !{!"_ZTSN8tinyxml27StrPairE", !12, i64 0, !6, i64 8, !6, i64 16}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!10, !12, i64 48}
!15 = !{!12, !12, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"vtable pointer", !8, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!10, !6, i64 96}
!25 = distinct !{!25, !23}


; 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.tinyxml2::XMLDocument::DepthTracker" = type { ptr }
%"class.tinyxml2::StrPair" = type { i32, ptr, ptr }

@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [19 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8tinyxml27XMLUtil11StringEqualEPKcS2_i(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeE(ptr noundef nonnull align 8 dereferenceable(776), ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK8tinyxml27XMLNode5ValueEv(ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN8tinyxml27XMLNode14InsertEndChildEPS0_(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8tinyxml27XMLNode10DeleteNodeEPS0_(ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN8tinyxml27XMLNode9ParseDeepEPcPNS_7StrPairEPi(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.tinyxml2::XMLDocument::DepthTracker", align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.tinyxml2::StrPair", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN8tinyxml211XMLDocument12DepthTrackerC2EPS0_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef %9)
  %10 = load ptr, ptr %8, align 8, !tbaa !5
  %11 = call noundef zeroext i1 @_ZNK8tinyxml211XMLDocument5ErrorEv(ptr noundef nonnull align 8 dereferenceable(776) %10)
  %.not152 = icmp eq ptr %1, null
  %or.cond = or i1 %11, %.not152
  br i1 %or.cond, label %.critedge, label %.lr.ph154.preheader

.lr.ph154.preheader:                              ; preds = %4
  %12 = load i8, ptr %1, align 1, !tbaa !12
  %.not61252 = icmp eq i8 %12, 0
  br i1 %.not61252, label %.critedge, label %.lr.ph254

.lr.ph254:                                        ; preds = %.lr.ph154.preheader, %.lr.ph154
  %.038153253 = phi ptr [ %27, %.lr.ph154 ], [ %1, %.lr.ph154.preheader ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  store ptr null, ptr %6, align 8, !tbaa !13
  %13 = load ptr, ptr %8, align 8, !tbaa !5
  %14 = invoke noundef ptr @_ZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeE(ptr noundef nonnull align 8 dereferenceable(776) %13, ptr noundef nonnull %.038153253, ptr noundef nonnull %6)
          to label %15 unwind label %18

15:                                               ; preds = %.lr.ph254
  %16 = load ptr, ptr %6, align 8, !tbaa !13
  %17 = icmp eq ptr %16, null
  br i1 %17, label %.thread90, label %20

.thread90:                                        ; preds = %15
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  br label %.critedge

18:                                               ; preds = %.lr.ph254
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %108

20:                                               ; preds = %15
  %21 = getelementptr inbounds i8, ptr %16, i64 48
  %22 = load i32, ptr %21, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  call void @_ZN8tinyxml27StrPairC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7)
  %23 = load ptr, ptr %6, align 8, !tbaa !13
  %24 = load ptr, ptr %23, align 8, !tbaa !15
  %25 = getelementptr inbounds i8, ptr %24, i64 136
  %26 = load ptr, ptr %25, align 8
  %27 = invoke noundef ptr %26(ptr noundef nonnull align 8 dereferenceable(104) %23, ptr noundef %14, ptr noundef nonnull %7, ptr noundef %3)
          to label %28 unwind label %.loopexit102

28:                                               ; preds = %20
  %.not62 = icmp eq ptr %27, null
  %29 = load ptr, ptr %6, align 8, !tbaa !13
  br i1 %.not62, label %30, label %36

30:                                               ; preds = %28
  invoke void @_ZN8tinyxml27XMLNode10DeleteNodeEPS0_(ptr noundef %29)
          to label %31 unwind label %.loopexit.split-lp

31:                                               ; preds = %30
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = call noundef zeroext i1 @_ZNK8tinyxml211XMLDocument5ErrorEv(ptr noundef nonnull align 8 dereferenceable(776) %32)
  br i1 %33, label %.thread95, label %34

34:                                               ; preds = %31
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void (ptr, i32, i32, ptr, ...) @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(776) %35, i32 noundef 17, i32 noundef %22, ptr noundef null)
          to label %.thread95 unwind label %.loopexit.split-lp

.loopexit102:                                     ; preds = %20
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %107

.loopexit.split-lp:                               ; preds = %30, %34
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %107

36:                                               ; preds = %28
  %37 = load ptr, ptr %29, align 8, !tbaa !15
  %38 = getelementptr inbounds i8, ptr %37, i64 32
  %39 = load ptr, ptr %38, align 8
  %40 = invoke noundef ptr %39(ptr noundef nonnull align 8 dereferenceable(104) %29)
          to label %41 unwind label %51

41:                                               ; preds = %36
  %.not63 = icmp eq ptr %40, null
  br i1 %.not63, label %.thread79, label %42

42:                                               ; preds = %41
  %43 = load ptr, ptr %0, align 8, !tbaa !15
  %44 = getelementptr inbounds i8, ptr %43, i64 24
  %45 = load ptr, ptr %44, align 8
  %46 = invoke noundef ptr %45(ptr noundef nonnull align 8 dereferenceable(104) %0)
          to label %47 unwind label %.loopexit103

47:                                               ; preds = %42
  %.not101 = icmp eq ptr %46, null
  br i1 %.not101, label %.loopexit, label %48

48:                                               ; preds = %47
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = call noundef ptr @_ZN8tinyxml27XMLNode10FirstChildEv(ptr noundef nonnull align 8 dereferenceable(104) %49)
  %.not64150 = icmp eq ptr %50, null
  br i1 %.not64150, label %.thread79, label %.lr.ph

51:                                               ; preds = %36
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %107

.loopexit103:                                     ; preds = %42
  %lpad.loopexit105 = landingpad { ptr, i32 }
          cleanup
  br label %107

.loopexit.split-lp104:                            ; preds = %.loopexit, %64, %65
  %lpad.loopexit.split-lp106 = landingpad { ptr, i32 }
          cleanup
  br label %107

53:                                               ; preds = %.lr.ph
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %107

.lr.ph:                                           ; preds = %48, %60
  %.035151 = phi ptr [ %61, %60 ], [ %50, %48 ]
  %55 = load ptr, ptr %.035151, align 8, !tbaa !15
  %56 = getelementptr inbounds i8, ptr %55, i64 80
  %57 = load ptr, ptr %56, align 8
  %58 = invoke noundef ptr %57(ptr noundef nonnull align 8 dereferenceable(104) %.035151)
          to label %59 unwind label %53

59:                                               ; preds = %.lr.ph
  %.not65 = icmp eq ptr %58, null
  br i1 %.not65, label %.loopexit, label %60

60:                                               ; preds = %59
  %61 = call noundef ptr @_ZNK8tinyxml27XMLNode11NextSiblingEv(ptr noundef nonnull align 8 dereferenceable(104) %.035151)
  %.not64 = icmp eq ptr %61, null
  br i1 %.not64, label %.thread79, label %.lr.ph, !llvm.loop !17

.loopexit:                                        ; preds = %47, %59
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = invoke noundef ptr @_ZNK8tinyxml27XMLNode5ValueEv(ptr noundef nonnull align 8 dereferenceable(104) %40)
          to label %64 unwind label %.loopexit.split-lp104

64:                                               ; preds = %.loopexit
  invoke void (ptr, i32, i32, ptr, ...) @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(776) %62, i32 noundef 13, i32 noundef %22, ptr noundef nonnull @.str.15, ptr noundef %63)
          to label %65 unwind label %.loopexit.split-lp104

65:                                               ; preds = %64
  %66 = load ptr, ptr %6, align 8, !tbaa !13
  invoke void @_ZN8tinyxml27XMLNode10DeleteNodeEPS0_(ptr noundef %66)
          to label %.thread95 unwind label %.loopexit.split-lp104

.thread79:                                        ; preds = %60, %48, %41
  %67 = load ptr, ptr %6, align 8, !tbaa !13
  %68 = load ptr, ptr %67, align 8, !tbaa !15
  %69 = load ptr, ptr %68, align 8
  %70 = invoke noundef ptr %69(ptr noundef nonnull align 8 dereferenceable(104) %67)
          to label %71 unwind label %.loopexit109

71:                                               ; preds = %.thread79
  %.not67 = icmp eq ptr %70, null
  br i1 %.not67, label %.thread87, label %72

72:                                               ; preds = %71
  %73 = call noundef i32 @_ZNK8tinyxml210XMLElement11ClosingTypeEv(ptr noundef nonnull align 8 dereferenceable(120) %70)
  %74 = icmp eq i32 %73, 2
  br i1 %74, label %75, label %87

75:                                               ; preds = %72
  %.not69 = icmp eq ptr %2, null
  br i1 %.not69, label %78, label %76

76:                                               ; preds = %75
  %77 = getelementptr inbounds i8, ptr %70, i64 24
  invoke void @_ZN8tinyxml27StrPair10TransferToEPS0_(ptr noundef nonnull align 8 dereferenceable(24) %77, ptr noundef nonnull %2)
          to label %78 unwind label %.loopexit.split-lp110

.loopexit109:                                     ; preds = %.thread79, %.thread87
  %lpad.loopexit111 = landingpad { ptr, i32 }
          cleanup
  br label %107

.loopexit.split-lp110:                            ; preds = %76, %78, %85
  %lpad.loopexit.split-lp112 = landingpad { ptr, i32 }
          cleanup
  br label %107

78:                                               ; preds = %76, %75
  %79 = load ptr, ptr %6, align 8, !tbaa !13
  %80 = getelementptr inbounds i8, ptr %79, i64 96
  %81 = load ptr, ptr %80, align 8, !tbaa !19
  %82 = load ptr, ptr %81, align 8, !tbaa !15
  %83 = getelementptr inbounds i8, ptr %82, i64 40
  %84 = load ptr, ptr %83, align 8
  invoke void %84(ptr noundef nonnull align 8 dereferenceable(8) %81)
          to label %85 unwind label %.loopexit.split-lp110

85:                                               ; preds = %78
  %86 = load ptr, ptr %6, align 8, !tbaa !13
  invoke void @_ZN8tinyxml27XMLNode10DeleteNodeEPS0_(ptr noundef %86)
          to label %.thread98 unwind label %.loopexit.split-lp110

.thread98:                                        ; preds = %85
  call void @_ZN8tinyxml27StrPairD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  br label %.critedge

87:                                               ; preds = %72
  %88 = call noundef zeroext i1 @_ZNK8tinyxml27StrPair5EmptyEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
  %89 = call noundef i32 @_ZNK8tinyxml210XMLElement11ClosingTypeEv(ptr noundef nonnull align 8 dereferenceable(120) %70)
  %90 = icmp eq i32 %89, 0
  br i1 %88, label %91, label %92

91:                                               ; preds = %87
  br i1 %90, label %.thread82, label %.thread87

.loopexit114:                                     ; preds = %93, %95
  %lpad.loopexit116 = landingpad { ptr, i32 }
          cleanup
  br label %107

.loopexit.split-lp115:                            ; preds = %.thread82, %101, %102
  %lpad.loopexit.split-lp117 = landingpad { ptr, i32 }
          cleanup
  br label %107

92:                                               ; preds = %87
  br i1 %90, label %93, label %.thread82

93:                                               ; preds = %92
  %94 = invoke noundef ptr @_ZN8tinyxml27StrPair6GetStrEv(ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %95 unwind label %.loopexit114

95:                                               ; preds = %93
  %96 = invoke noundef ptr @_ZNK8tinyxml210XMLElement4NameEv(ptr noundef nonnull align 8 dereferenceable(120) %70)
          to label %97 unwind label %.loopexit114

97:                                               ; preds = %95
  %98 = call noundef zeroext i1 @_ZN8tinyxml27XMLUtil11StringEqualEPKcS2_i(ptr noundef %94, ptr noundef %96, i32 noundef 2147483647)
  br i1 %98, label %.thread87, label %.thread82

.thread82:                                        ; preds = %92, %91, %97
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = invoke noundef ptr @_ZNK8tinyxml210XMLElement4NameEv(ptr noundef nonnull align 8 dereferenceable(120) %70)
          to label %101 unwind label %.loopexit.split-lp115

101:                                              ; preds = %.thread82
  invoke void (ptr, i32, i32, ptr, ...) @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(776) %99, i32 noundef 16, i32 noundef %22, ptr noundef nonnull @.str.16, ptr noundef %100)
          to label %102 unwind label %.loopexit.split-lp115

102:                                              ; preds = %101
  %103 = load ptr, ptr %6, align 8, !tbaa !13
  invoke void @_ZN8tinyxml27XMLNode10DeleteNodeEPS0_(ptr noundef %103)
          to label %.thread95 unwind label %.loopexit.split-lp115

.thread87:                                        ; preds = %91, %97, %71
  %104 = load ptr, ptr %6, align 8, !tbaa !13
  %105 = invoke noundef ptr @_ZN8tinyxml27XMLNode14InsertEndChildEPS0_(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef %104)
          to label %.lr.ph154 unwind label %.loopexit109

.thread95:                                        ; preds = %34, %31, %65, %102
  call void @_ZN8tinyxml27StrPairD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  br label %.critedge

.lr.ph154:                                        ; preds = %.thread87
  call void @_ZN8tinyxml27StrPairD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  %106 = load i8, ptr %27, align 1, !tbaa !12
  %.not61 = icmp eq i8 %106, 0
  br i1 %.not61, label %.critedge, label %.lr.ph254

107:                                              ; preds = %.loopexit114, %.loopexit.split-lp115, %.loopexit109, %.loopexit.split-lp110, %.loopexit103, %.loopexit.split-lp104, %.loopexit102, %.loopexit.split-lp, %51, %53
  %.pn70.pn.pn = phi { ptr, i32 } [ %52, %51 ], [ %54, %53 ], [ %lpad.loopexit, %.loopexit102 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %lpad.loopexit105, %.loopexit103 ], [ %lpad.loopexit.split-lp106, %.loopexit.split-lp104 ], [ %lpad.loopexit111, %.loopexit109 ], [ %lpad.loopexit.split-lp112, %.loopexit.split-lp110 ], [ %lpad.loopexit116, %.loopexit114 ], [ %lpad.loopexit.split-lp117, %.loopexit.split-lp115 ]
  call void @_ZN8tinyxml27StrPairD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  br label %108

108:                                              ; preds = %107, %18
  %.pn70.pn.pn.pn = phi { ptr, i32 } [ %.pn70.pn.pn, %107 ], [ %19, %18 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @_ZN8tinyxml211XMLDocument12DepthTrackerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  resume { ptr, i32 } %.pn70.pn.pn.pn

.critedge:                                        ; preds = %.lr.ph154, %.lr.ph154.preheader, %.thread90, %.thread95, %.thread98, %4
  %.5 = phi ptr [ null, %4 ], [ %27, %.thread98 ], [ null, %.thread95 ], [ null, %.thread90 ], [ null, %.lr.ph154.preheader ], [ null, %.lr.ph154 ]
  call void @_ZN8tinyxml211XMLDocument12DepthTrackerD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  ret ptr %.5
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8tinyxml211XMLDocument5ErrorEv(ptr noundef nonnull align 8 dereferenceable(776)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEiPKcz(ptr noundef nonnull align 8 dereferenceable(776), i32 noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK8tinyxml210XMLElement11ClosingTypeEv(ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK8tinyxml27StrPair5EmptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK8tinyxml210XMLElement4NameEv(ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #0 align 2

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

declare void @_ZN8tinyxml27StrPairD1Ev(ptr) local_unnamed_addr

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"_ZTSN8tinyxml27XMLNodeE", !7, i64 8, !7, i64 16, !10, i64 24, !11, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN8tinyxml27StrPairE", !11, i64 0, !7, i64 8, !7, i64 16}
!11 = !{!"int", !8, i64 0}
!12 = !{!8, !8, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!6, !11, i64 48}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !9, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!6, !7, i64 96}


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