; LLVM IR from ETH3D/dataset-pipeline :: thirdparty/tinyxml2/tinyxml2.ll (ZN8tinyxml210XMLElement15ParseAttributesEPc)

; 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::XMLNode" = type { ptr, ptr, ptr, %"class.tinyxml2::StrPair", ptr, ptr, ptr, ptr, ptr }
%"class.tinyxml2::StrPair" = type { i32, ptr, ptr }
%"class.tinyxml2::XMLDocument" = type { %"class.tinyxml2::XMLNode", i8, i8, i32, i32, ptr, ptr, ptr, %"class.tinyxml2::MemPoolT", %"class.tinyxml2::MemPoolT.0", %"class.tinyxml2::MemPoolT.2", %"class.tinyxml2::MemPoolT.4" }
%"class.tinyxml2::MemPoolT" = type { %"class.tinyxml2::MemPool", %"class.tinyxml2::DynArray", ptr, i32, i32, i32, i32 }
%"class.tinyxml2::MemPool" = type { ptr }
%"class.tinyxml2::DynArray" = type { ptr, [10 x ptr], i32, i32 }
%"class.tinyxml2::MemPoolT.0" = type { %"class.tinyxml2::MemPool", %"class.tinyxml2::DynArray.1", ptr, i32, i32, i32, i32 }
%"class.tinyxml2::DynArray.1" = type { ptr, [10 x ptr], i32, i32 }
%"class.tinyxml2::MemPoolT.2" = type { %"class.tinyxml2::MemPool", %"class.tinyxml2::DynArray.3", ptr, i32, i32, i32, i32 }
%"class.tinyxml2::DynArray.3" = type { ptr, [10 x ptr], i32, i32 }
%"class.tinyxml2::MemPoolT.4" = type { %"class.tinyxml2::MemPool", %"class.tinyxml2::DynArray.5", ptr, i32, i32, i32, i32 }
%"class.tinyxml2::DynArray.5" = type { ptr, [10 x ptr], i32, i32 }
%"class.tinyxml2::XMLAttribute" = type { ptr, %"class.tinyxml2::StrPair", %"class.tinyxml2::StrPair", ptr, ptr }
%"class.tinyxml2::XMLElement" = type { %"class.tinyxml2::XMLNode", i32, ptr }

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8tinyxml27XMLUtil15IsNameStartCharEh(i8 noundef zeroext) #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEPKcS3_(ptr noundef nonnull align 8 dereferenceable(640), i32 noundef, ptr noundef, ptr noundef) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZNK8tinyxml212XMLAttribute4NameEv(ptr noundef nonnull align 8 dereferenceable(72)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN8tinyxml212XMLAttribute9ParseDeepEPcb(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef, i1 noundef zeroext) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN8tinyxml28MemPoolTILi72EE5AllocEv(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN8tinyxml210XMLElement15ParseAttributesEPc(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef %1) #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %10 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %11, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store ptr null, ptr %7, align 8, !tbaa !5
  br label %12

12:                                               ; preds = %108, %2
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = icmp ne ptr %13, null
  br i1 %14, label %15, label %109

15:                                               ; preds = %12
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = call noundef ptr @_ZN8tinyxml27XMLUtil14SkipWhiteSpaceEPc(ptr noundef %16)
  store ptr %17, ptr %5, align 8, !tbaa !5
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = load i8, ptr %18, align 1, !tbaa !9
  %20 = icmp ne i8 %19, 0
  br i1 %20, label %26, label %21

21:                                               ; preds = %15
  %22 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %10, i32 0, i32 1
  %23 = load ptr, ptr %22, align 8, !tbaa !10
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = call noundef ptr @_ZNK8tinyxml210XMLElement4NameEv(ptr noundef nonnull align 8 dereferenceable(104) %10)
  call void @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEPKcS3_(ptr noundef nonnull align 8 dereferenceable(640) %23, i32 noundef 7, ptr noundef %24, ptr noundef %25)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %111

26:                                               ; preds = %15
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = load i8, ptr %27, align 1, !tbaa !9
  %29 = call noundef zeroext i1 @_ZN8tinyxml27XMLUtil15IsNameStartCharEh(i8 noundef zeroext %28)
  br i1 %29, label %30, label %80

30:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %31 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %10, i32 0, i32 1
  %32 = load ptr, ptr %31, align 8, !tbaa !10
  %33 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %32, i32 0, i32 9
  %34 = call noundef ptr @_ZN8tinyxml28MemPoolTILi72EE5AllocEv(ptr noundef nonnull align 8 dereferenceable(128) %33)
  call void @_ZN8tinyxml212XMLAttributeC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %34)
  store ptr %34, ptr %9, align 8, !tbaa !5
  %35 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %10, i32 0, i32 1
  %36 = load ptr, ptr %35, align 8, !tbaa !10
  %37 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %36, i32 0, i32 9
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  %39 = getelementptr inbounds %"class.tinyxml2::XMLAttribute", ptr %38, i32 0, i32 4
  store ptr %37, ptr %39, align 8, !tbaa !14
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = getelementptr inbounds %"class.tinyxml2::XMLAttribute", ptr %40, i32 0, i32 4
  %42 = load ptr, ptr %41, align 8, !tbaa !14
  %43 = load ptr, ptr %42, align 8, !tbaa !16
  %44 = getelementptr inbounds ptr, ptr %43, i64 5
  %45 = load ptr, ptr %44, align 8
  call void %45(ptr noundef nonnull align 8 dereferenceable(8) %42)
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %10, i32 0, i32 1
  %49 = load ptr, ptr %48, align 8, !tbaa !10
  %50 = call noundef zeroext i1 @_ZNK8tinyxml211XMLDocument15ProcessEntitiesEv(ptr noundef nonnull align 8 dereferenceable(640) %49)
  %51 = call noundef ptr @_ZN8tinyxml212XMLAttribute9ParseDeepEPcb(ptr noundef nonnull align 8 dereferenceable(72) %46, ptr noundef %47, i1 noundef zeroext %50)
  store ptr %51, ptr %5, align 8, !tbaa !5
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = icmp ne ptr %52, null
  br i1 %53, label %54, label %59

54:                                               ; preds = %30
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = call noundef ptr @_ZNK8tinyxml212XMLAttribute4NameEv(ptr noundef nonnull align 8 dereferenceable(72) %55)
  %57 = call noundef ptr @_ZNK8tinyxml210XMLElement9AttributeEPKcS2_(ptr noundef nonnull align 8 dereferenceable(104) %10, ptr noundef %56, ptr noundef null)
  %58 = icmp ne ptr %57, null
  br i1 %58, label %59, label %65

59:                                               ; preds = %54, %30
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN8tinyxml210XMLElement15DeleteAttributeEPNS_12XMLAttributeE(ptr noundef %60)
  %61 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %10, i32 0, i32 1
  %62 = load ptr, ptr %61, align 8, !tbaa !10
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEPKcS3_(ptr noundef nonnull align 8 dereferenceable(640) %62, i32 noundef 8, ptr noundef %63, ptr noundef %64)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %77

65:                                               ; preds = %54
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = icmp ne ptr %66, null
  br i1 %67, label %68, label %72

68:                                               ; preds = %65
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = getelementptr inbounds %"class.tinyxml2::XMLAttribute", ptr %70, i32 0, i32 3
  store ptr %69, ptr %71, align 8, !tbaa !18
  br label %75

72:                                               ; preds = %65
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = getelementptr inbounds %"class.tinyxml2::XMLElement", ptr %10, i32 0, i32 2
  store ptr %73, ptr %74, align 8, !tbaa !19
  br label %75

75:                                               ; preds = %72, %68
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %76, ptr %7, align 8, !tbaa !5
  store i32 0, ptr %8, align 4
  br label %77

77:                                               ; preds = %75, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  %78 = load i32, ptr %8, align 4
  switch i32 %78, label %111 [
    i32 0, label %79
  ]

79:                                               ; preds = %77
  br label %108

80:                                               ; preds = %26
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = load i8, ptr %81, align 1, !tbaa !9
  %83 = sext i8 %82 to i32
  %84 = icmp eq i32 %83, 62
  br i1 %84, label %85, label %88

85:                                               ; preds = %80
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %86, i32 1
  store ptr %87, ptr %5, align 8, !tbaa !5
  br label %109

88:                                               ; preds = %80
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = load i8, ptr %89, align 1, !tbaa !9
  %91 = sext i8 %90 to i32
  %92 = icmp eq i32 %91, 47
  br i1 %92, label %93, label %103

93:                                               ; preds = %88
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds i8, ptr %94, i64 1
  %96 = load i8, ptr %95, align 1, !tbaa !9
  %97 = sext i8 %96 to i32
  %98 = icmp eq i32 %97, 62
  br i1 %98, label %99, label %103

99:                                               ; preds = %93
  %100 = getelementptr inbounds %"class.tinyxml2::XMLElement", ptr %10, i32 0, i32 1
  store i32 1, ptr %100, align 8, !tbaa !21
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds i8, ptr %101, i64 2
  store ptr %102, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %111

103:                                              ; preds = %93, %88
  %104 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %10, i32 0, i32 1
  %105 = load ptr, ptr %104, align 8, !tbaa !10
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEPKcS3_(ptr noundef nonnull align 8 dereferenceable(640) %105, i32 noundef 7, ptr noundef %106, ptr noundef %107)
  store ptr null, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %111

108:                                              ; preds = %79
  br label %12, !llvm.loop !22

109:                                              ; preds = %85, %12
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %110, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %111

111:                                              ; preds = %109, %103, %99, %77, %21
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %112 = load ptr, ptr %3, align 8
  ret ptr %112
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = !{!7, !7, i64 0}
!10 = !{!11, !6, i64 8}
!11 = !{!"_ZTSN8tinyxml27XMLNodeE", !6, i64 8, !6, i64 16, !12, i64 24, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80}
!12 = !{!"_ZTSN8tinyxml27StrPairE", !13, i64 0, !6, i64 8, !6, i64 16}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !6, i64 64}
!15 = !{!"_ZTSN8tinyxml212XMLAttributeE", !12, i64 8, !12, i64 32, !6, i64 56, !6, i64 64}
!16 = !{!17, !17, i64 0}
!17 = !{!"vtable pointer", !8, i64 0}
!18 = !{!15, !6, i64 56}
!19 = !{!20, !6, i64 96}
!20 = !{!"_ZTSN8tinyxml210XMLElementE", !11, i64 0, !13, i64 88, !6, i64 96}
!21 = !{!20, !13, i64 88}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


; 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"

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8tinyxml27XMLUtil15IsNameStartCharEh(i8 noundef zeroext) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN8tinyxml27XMLUtil14SkipWhiteSpaceEPc(ptr noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEPKcS3_(ptr noundef nonnull align 8 dereferenceable(640), i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN8tinyxml212XMLAttribute9ParseDeepEPcb(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef, i1 noundef zeroext) local_unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN8tinyxml210XMLElement15ParseAttributesEPc(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef %1) local_unnamed_addr #1 align 2 {
  %.not48 = icmp eq ptr %1, null
  br i1 %.not48, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  %4 = getelementptr inbounds i8, ptr %0, i64 96
  %5 = tail call noundef ptr @_ZN8tinyxml27XMLUtil14SkipWhiteSpaceEPc(ptr noundef nonnull %1)
  %6 = load i8, ptr %5, align 1, !tbaa !5
  %.not3766 = icmp eq i8 %6, 0
  br i1 %.not3766, label %._crit_edge, label %.lr.ph68

._crit_edge:                                      ; preds = %29, %.lr.ph
  %7 = load ptr, ptr %3, align 8, !tbaa !8
  %8 = tail call noundef ptr @_ZNK8tinyxml210XMLElement4NameEv(ptr noundef nonnull align 8 dereferenceable(104) %0)
  tail call void @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEPKcS3_(ptr noundef nonnull align 8 dereferenceable(640) %7, i32 noundef 7, ptr noundef nonnull %1, ptr noundef %8)
  br label %.loopexit

.lr.ph68:                                         ; preds = %.lr.ph, %29
  %9 = phi i8 [ %32, %29 ], [ %6, %.lr.ph ]
  %10 = phi ptr [ %31, %29 ], [ %5, %.lr.ph ]
  %.0315067 = phi ptr [ %15, %29 ], [ null, %.lr.ph ]
  %11 = tail call noundef zeroext i1 @_ZN8tinyxml27XMLUtil15IsNameStartCharEh(i8 noundef zeroext %9)
  br i1 %11, label %12, label %33

12:                                               ; preds = %.lr.ph68
  %13 = load ptr, ptr %3, align 8, !tbaa !8
  %14 = getelementptr inbounds i8, ptr %13, i64 256
  %15 = tail call noundef ptr @_ZN8tinyxml28MemPoolTILi72EE5AllocEv(ptr noundef nonnull align 8 dereferenceable(128) %14)
  tail call void @_ZN8tinyxml212XMLAttributeC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %15)
  %16 = load ptr, ptr %3, align 8, !tbaa !8
  %17 = getelementptr inbounds i8, ptr %16, i64 256
  %18 = getelementptr inbounds i8, ptr %15, i64 64
  store ptr %17, ptr %18, align 8, !tbaa !13
  %19 = load ptr, ptr %17, align 8, !tbaa !15
  %20 = getelementptr inbounds i8, ptr %19, i64 40
  %21 = load ptr, ptr %20, align 8
  tail call void %21(ptr noundef nonnull align 8 dereferenceable(8) %17)
  %22 = load ptr, ptr %3, align 8, !tbaa !8
  %23 = tail call noundef zeroext i1 @_ZNK8tinyxml211XMLDocument15ProcessEntitiesEv(ptr noundef nonnull align 8 dereferenceable(640) %22)
  %24 = tail call noundef ptr @_ZN8tinyxml212XMLAttribute9ParseDeepEPcb(ptr noundef nonnull align 8 dereferenceable(72) %15, ptr noundef nonnull %10, i1 noundef zeroext %23)
  %.not38 = icmp eq ptr %24, null
  br i1 %.not38, label %.thread, label %25

25:                                               ; preds = %12
  %26 = tail call noundef ptr @_ZNK8tinyxml212XMLAttribute4NameEv(ptr noundef nonnull align 8 dereferenceable(72) %15)
  %27 = tail call noundef ptr @_ZNK8tinyxml210XMLElement9AttributeEPKcS2_(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef %26, ptr noundef null)
  %.not39 = icmp eq ptr %27, null
  br i1 %.not39, label %29, label %.thread

.thread:                                          ; preds = %12, %25
  tail call void @_ZN8tinyxml210XMLElement15DeleteAttributeEPNS_12XMLAttributeE(ptr noundef nonnull %15)
  %28 = load ptr, ptr %3, align 8, !tbaa !8
  tail call void @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEPKcS3_(ptr noundef nonnull align 8 dereferenceable(640) %28, i32 noundef 8, ptr noundef nonnull %1, ptr noundef %24)
  br label %.loopexit

29:                                               ; preds = %25
  %.not40 = icmp eq ptr %.0315067, null
  %30 = getelementptr inbounds i8, ptr %.0315067, i64 56
  %.sink = select i1 %.not40, ptr %4, ptr %30
  store ptr %15, ptr %.sink, align 8, !tbaa !17
  %31 = tail call noundef ptr @_ZN8tinyxml27XMLUtil14SkipWhiteSpaceEPc(ptr noundef nonnull %24)
  %32 = load i8, ptr %31, align 1, !tbaa !5
  %.not37 = icmp eq i8 %32, 0
  br i1 %.not37, label %._crit_edge, label %.lr.ph68

33:                                               ; preds = %.lr.ph68
  %34 = load i8, ptr %10, align 1, !tbaa !5
  switch i8 %34, label %44 [
    i8 62, label %35
    i8 47, label %37
  ]

35:                                               ; preds = %33
  %36 = getelementptr inbounds i8, ptr %10, i64 1
  br label %.loopexit

37:                                               ; preds = %33
  %38 = getelementptr inbounds i8, ptr %10, i64 1
  %39 = load i8, ptr %38, align 1, !tbaa !5
  %40 = icmp eq i8 %39, 62
  br i1 %40, label %41, label %44

41:                                               ; preds = %37
  %42 = getelementptr inbounds i8, ptr %0, i64 88
  store i32 1, ptr %42, align 8, !tbaa !18
  %43 = getelementptr inbounds i8, ptr %10, i64 2
  br label %.loopexit

44:                                               ; preds = %33, %37
  %45 = load ptr, ptr %3, align 8, !tbaa !8
  tail call void @_ZN8tinyxml211XMLDocument8SetErrorENS_8XMLErrorEPKcS3_(ptr noundef nonnull align 8 dereferenceable(640) %45, i32 noundef 7, ptr noundef nonnull %1, ptr noundef nonnull %10)
  br label %.loopexit

.loopexit:                                        ; preds = %2, %.thread, %35, %44, %41, %._crit_edge
  %.2 = phi ptr [ %43, %41 ], [ null, %44 ], [ null, %._crit_edge ], [ %36, %35 ], [ null, %.thread ], [ null, %2 ]
  ret ptr %.2
}

attributes #0 = { 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 #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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" }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 8}
!9 = !{!"_ZTSN8tinyxml27XMLNodeE", !10, i64 8, !10, i64 16, !11, i64 24, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80}
!10 = !{!"any pointer", !6, i64 0}
!11 = !{!"_ZTSN8tinyxml27StrPairE", !12, i64 0, !10, i64 8, !10, i64 16}
!12 = !{!"int", !6, i64 0}
!13 = !{!14, !10, i64 64}
!14 = !{!"_ZTSN8tinyxml212XMLAttributeE", !11, i64 8, !11, i64 32, !10, i64 56, !10, i64 64}
!15 = !{!16, !16, i64 0}
!16 = !{!"vtable pointer", !7, i64 0}
!17 = !{!10, !10, i64 0}
!18 = !{!19, !12, i64 88}
!19 = !{!"_ZTSN8tinyxml210XMLElementE", !9, i64 0, !12, i64 88, !10, i64 96}


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