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

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

@_ZZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeEE9xmlHeader = external hidden global ptr, align 8
@_ZZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeEE13commentHeader = external hidden global ptr, align 8
@_ZZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeEE11cdataHeader = external hidden global ptr, align 8
@_ZZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeEE9dtdHeader = external hidden global ptr, align 8
@_ZZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeEE13elementHeader = external hidden global ptr, align 8

; 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: mustprogress uwtable
declare dso_local noundef ptr @_ZN8tinyxml27XMLUtil14SkipWhiteSpaceEPc(ptr noundef) #1 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
define dso_local noundef ptr @_ZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeE(ptr noundef nonnull align 8 dereferenceable(640) %0, ptr noundef %1, ptr noundef %2) #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %12 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %13, ptr %8, align 8, !tbaa !5
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  %15 = call noundef ptr @_ZN8tinyxml27XMLUtil14SkipWhiteSpaceEPc(ptr noundef %14)
  store ptr %15, ptr %6, align 8, !tbaa !5
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = load i8, ptr %16, align 1, !tbaa !9
  %18 = icmp ne i8 %17, 0
  br i1 %18, label %22, label %19

19:                                               ; preds = %3
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr null, ptr %20, align 8, !tbaa !5
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %21, ptr %4, align 8
  store i32 1, ptr %9, align 4
  br label %99

22:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  store ptr null, ptr %10, align 8, !tbaa !5
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = load ptr, ptr @_ZZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeEE9xmlHeader, align 8, !tbaa !5
  %25 = call noundef zeroext i1 @_ZN8tinyxml27XMLUtil11StringEqualEPKcS2_i(ptr noundef %23, ptr noundef %24, i32 noundef 2)
  br i1 %25, label %26, label %34

26:                                               ; preds = %22
  %27 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %12, i32 0, i32 11
  %28 = call noundef ptr @_ZN8tinyxml28MemPoolTILi88EE5AllocEv(ptr noundef nonnull align 8 dereferenceable(128) %27)
  call void @_ZN8tinyxml214XMLDeclarationC1EPNS_11XMLDocumentE(ptr noundef nonnull align 8 dereferenceable(88) %28, ptr noundef %12)
  store ptr %28, ptr %10, align 8, !tbaa !5
  %29 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %12, i32 0, i32 11
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  %31 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %30, i32 0, i32 8
  store ptr %29, ptr %31, align 8, !tbaa !10
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %32, i64 2
  store ptr %33, ptr %6, align 8, !tbaa !5
  br label %95

34:                                               ; preds = %22
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = load ptr, ptr @_ZZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeEE13commentHeader, align 8, !tbaa !5
  %37 = call noundef zeroext i1 @_ZN8tinyxml27XMLUtil11StringEqualEPKcS2_i(ptr noundef %35, ptr noundef %36, i32 noundef 4)
  br i1 %37, label %38, label %46

38:                                               ; preds = %34
  %39 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %12, i32 0, i32 11
  %40 = call noundef ptr @_ZN8tinyxml28MemPoolTILi88EE5AllocEv(ptr noundef nonnull align 8 dereferenceable(128) %39)
  call void @_ZN8tinyxml210XMLCommentC1EPNS_11XMLDocumentE(ptr noundef nonnull align 8 dereferenceable(88) %40, ptr noundef %12)
  store ptr %40, ptr %10, align 8, !tbaa !5
  %41 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %12, i32 0, i32 11
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %42, i32 0, i32 8
  store ptr %41, ptr %43, align 8, !tbaa !10
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i64 4
  store ptr %45, ptr %6, align 8, !tbaa !5
  br label %94

46:                                               ; preds = %34
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = load ptr, ptr @_ZZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeEE11cdataHeader, align 8, !tbaa !5
  %49 = call noundef zeroext i1 @_ZN8tinyxml27XMLUtil11StringEqualEPKcS2_i(ptr noundef %47, ptr noundef %48, i32 noundef 9)
  br i1 %49, label %50, label %60

50:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %51 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %12, i32 0, i32 10
  %52 = call noundef ptr @_ZN8tinyxml28MemPoolTILi96EE5AllocEv(ptr noundef nonnull align 8 dereferenceable(128) %51)
  call void @_ZN8tinyxml27XMLTextC2EPNS_11XMLDocumentE(ptr noundef nonnull align 8 dereferenceable(89) %52, ptr noundef %12)
  store ptr %52, ptr %11, align 8, !tbaa !5
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %53, ptr %10, align 8, !tbaa !5
  %54 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %12, i32 0, i32 10
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %55, i32 0, i32 8
  store ptr %54, ptr %56, align 8, !tbaa !10
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds i8, ptr %57, i64 9
  store ptr %58, ptr %6, align 8, !tbaa !5
  %59 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN8tinyxml27XMLText8SetCDataEb(ptr noundef nonnull align 8 dereferenceable(89) %59, i1 noundef zeroext true)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %93

60:                                               ; preds = %46
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = load ptr, ptr @_ZZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeEE9dtdHeader, align 8, !tbaa !5
  %63 = call noundef zeroext i1 @_ZN8tinyxml27XMLUtil11StringEqualEPKcS2_i(ptr noundef %61, ptr noundef %62, i32 noundef 2)
  br i1 %63, label %64, label %72

64:                                               ; preds = %60
  %65 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %12, i32 0, i32 11
  %66 = call noundef ptr @_ZN8tinyxml28MemPoolTILi88EE5AllocEv(ptr noundef nonnull align 8 dereferenceable(128) %65)
  call void @_ZN8tinyxml210XMLUnknownC1EPNS_11XMLDocumentE(ptr noundef nonnull align 8 dereferenceable(88) %66, ptr noundef %12)
  store ptr %66, ptr %10, align 8, !tbaa !5
  %67 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %12, i32 0, i32 11
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  %69 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %68, i32 0, i32 8
  store ptr %67, ptr %69, align 8, !tbaa !10
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %70, i64 2
  store ptr %71, ptr %6, align 8, !tbaa !5
  br label %92

72:                                               ; preds = %60
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = load ptr, ptr @_ZZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeEE13elementHeader, align 8, !tbaa !5
  %75 = call noundef zeroext i1 @_ZN8tinyxml27XMLUtil11StringEqualEPKcS2_i(ptr noundef %73, ptr noundef %74, i32 noundef 1)
  br i1 %75, label %76, label %84

76:                                               ; preds = %72
  %77 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %12, i32 0, i32 8
  %78 = call noundef ptr @_ZN8tinyxml28MemPoolTILi104EE5AllocEv(ptr noundef nonnull align 8 dereferenceable(128) %77)
  call void @_ZN8tinyxml210XMLElementC1EPNS_11XMLDocumentE(ptr noundef nonnull align 8 dereferenceable(104) %78, ptr noundef %12)
  store ptr %78, ptr %10, align 8, !tbaa !5
  %79 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %12, i32 0, i32 8
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %81 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %80, i32 0, i32 8
  store ptr %79, ptr %81, align 8, !tbaa !10
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds i8, ptr %82, i64 1
  store ptr %83, ptr %6, align 8, !tbaa !5
  br label %91

84:                                               ; preds = %72
  %85 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %12, i32 0, i32 10
  %86 = call noundef ptr @_ZN8tinyxml28MemPoolTILi96EE5AllocEv(ptr noundef nonnull align 8 dereferenceable(128) %85)
  call void @_ZN8tinyxml27XMLTextC2EPNS_11XMLDocumentE(ptr noundef nonnull align 8 dereferenceable(89) %86, ptr noundef %12)
  store ptr %86, ptr %10, align 8, !tbaa !5
  %87 = getelementptr inbounds %"class.tinyxml2::XMLDocument", ptr %12, i32 0, i32 10
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = getelementptr inbounds %"class.tinyxml2::XMLNode", ptr %88, i32 0, i32 8
  store ptr %87, ptr %89, align 8, !tbaa !10
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %90, ptr %6, align 8, !tbaa !5
  br label %91

91:                                               ; preds = %84, %76
  br label %92

92:                                               ; preds = %91, %64
  br label %93

93:                                               ; preds = %92, %50
  br label %94

94:                                               ; preds = %93, %38
  br label %95

95:                                               ; preds = %94, %26
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %96, ptr %97, align 8, !tbaa !5
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %98, ptr %4, align 8
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %99

99:                                               ; preds = %95, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %100 = load ptr, ptr %4, align 8
  ret ptr %100
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8tinyxml27XMLText8SetCDataEb(ptr noundef nonnull align 8 dereferenceable(89), i1 noundef zeroext) #3 align 2

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

declare void @_ZN8tinyxml210XMLCommentC1EPNS_11XMLDocumentE(ptr, ptr)

declare void @_ZN8tinyxml214XMLDeclarationC1EPNS_11XMLDocumentE(ptr, ptr)

declare void @_ZN8tinyxml210XMLUnknownC1EPNS_11XMLDocumentE(ptr, ptr)

declare void @_ZN8tinyxml210XMLElementC1EPNS_11XMLDocumentE(ptr, ptr)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !6, i64 80}
!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}


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

@_ZZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeEE9xmlHeader = external hidden local_unnamed_addr global ptr, align 8
@_ZZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeEE13commentHeader = external hidden local_unnamed_addr global ptr, align 8
@_ZZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeEE11cdataHeader = external hidden local_unnamed_addr global ptr, align 8
@_ZZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeEE9dtdHeader = external hidden local_unnamed_addr global ptr, align 8
@_ZZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeEE13elementHeader = external hidden local_unnamed_addr global ptr, align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN8tinyxml27XMLUtil14SkipWhiteSpaceEPc(ptr noundef) 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 #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeE(ptr noundef nonnull align 8 dereferenceable(640) %0, ptr noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #0 align 2 {
  %4 = tail call noundef ptr @_ZN8tinyxml27XMLUtil14SkipWhiteSpaceEPc(ptr noundef %1)
  %5 = load i8, ptr %4, align 1, !tbaa !5
  %.not = icmp eq i8 %5, 0
  br i1 %.not, label %50, label %6

6:                                                ; preds = %3
  %7 = load ptr, ptr @_ZZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeEE9xmlHeader, align 8, !tbaa !8
  %8 = tail call noundef zeroext i1 @_ZN8tinyxml27XMLUtil11StringEqualEPKcS2_i(ptr noundef nonnull %4, ptr noundef %7, i32 noundef 2)
  br i1 %8, label %9, label %14

9:                                                ; preds = %6
  %10 = getelementptr inbounds i8, ptr %0, i64 512
  %11 = tail call noundef ptr @_ZN8tinyxml28MemPoolTILi88EE5AllocEv(ptr noundef nonnull align 8 dereferenceable(128) %10)
  tail call void @_ZN8tinyxml214XMLDeclarationC1EPNS_11XMLDocumentE(ptr noundef nonnull align 8 dereferenceable(88) %11, ptr noundef nonnull %0)
  %12 = getelementptr inbounds i8, ptr %11, i64 80
  store ptr %10, ptr %12, align 8, !tbaa !10
  %13 = getelementptr inbounds i8, ptr %4, i64 2
  br label %50

14:                                               ; preds = %6
  %15 = load ptr, ptr @_ZZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeEE13commentHeader, align 8, !tbaa !8
  %16 = tail call noundef zeroext i1 @_ZN8tinyxml27XMLUtil11StringEqualEPKcS2_i(ptr noundef nonnull %4, ptr noundef %15, i32 noundef 4)
  br i1 %16, label %17, label %22

17:                                               ; preds = %14
  %18 = getelementptr inbounds i8, ptr %0, i64 512
  %19 = tail call noundef ptr @_ZN8tinyxml28MemPoolTILi88EE5AllocEv(ptr noundef nonnull align 8 dereferenceable(128) %18)
  tail call void @_ZN8tinyxml210XMLCommentC1EPNS_11XMLDocumentE(ptr noundef nonnull align 8 dereferenceable(88) %19, ptr noundef nonnull %0)
  %20 = getelementptr inbounds i8, ptr %19, i64 80
  store ptr %18, ptr %20, align 8, !tbaa !10
  %21 = getelementptr inbounds i8, ptr %4, i64 4
  br label %50

22:                                               ; preds = %14
  %23 = load ptr, ptr @_ZZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeEE11cdataHeader, align 8, !tbaa !8
  %24 = tail call noundef zeroext i1 @_ZN8tinyxml27XMLUtil11StringEqualEPKcS2_i(ptr noundef nonnull %4, ptr noundef %23, i32 noundef 9)
  br i1 %24, label %25, label %30

25:                                               ; preds = %22
  %26 = getelementptr inbounds i8, ptr %0, i64 384
  %27 = tail call noundef ptr @_ZN8tinyxml28MemPoolTILi96EE5AllocEv(ptr noundef nonnull align 8 dereferenceable(128) %26)
  tail call void @_ZN8tinyxml27XMLTextC2EPNS_11XMLDocumentE(ptr noundef nonnull align 8 dereferenceable(89) %27, ptr noundef nonnull %0)
  %28 = getelementptr inbounds i8, ptr %27, i64 80
  store ptr %26, ptr %28, align 8, !tbaa !10
  %29 = getelementptr inbounds i8, ptr %4, i64 9
  tail call void @_ZN8tinyxml27XMLText8SetCDataEb(ptr noundef nonnull align 8 dereferenceable(89) %27, i1 noundef zeroext true)
  br label %50

30:                                               ; preds = %22
  %31 = load ptr, ptr @_ZZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeEE9dtdHeader, align 8, !tbaa !8
  %32 = tail call noundef zeroext i1 @_ZN8tinyxml27XMLUtil11StringEqualEPKcS2_i(ptr noundef nonnull %4, ptr noundef %31, i32 noundef 2)
  br i1 %32, label %33, label %38

33:                                               ; preds = %30
  %34 = getelementptr inbounds i8, ptr %0, i64 512
  %35 = tail call noundef ptr @_ZN8tinyxml28MemPoolTILi88EE5AllocEv(ptr noundef nonnull align 8 dereferenceable(128) %34)
  tail call void @_ZN8tinyxml210XMLUnknownC1EPNS_11XMLDocumentE(ptr noundef nonnull align 8 dereferenceable(88) %35, ptr noundef nonnull %0)
  %36 = getelementptr inbounds i8, ptr %35, i64 80
  store ptr %34, ptr %36, align 8, !tbaa !10
  %37 = getelementptr inbounds i8, ptr %4, i64 2
  br label %50

38:                                               ; preds = %30
  %39 = load ptr, ptr @_ZZN8tinyxml211XMLDocument8IdentifyEPcPPNS_7XMLNodeEE13elementHeader, align 8, !tbaa !8
  %40 = tail call noundef zeroext i1 @_ZN8tinyxml27XMLUtil11StringEqualEPKcS2_i(ptr noundef nonnull %4, ptr noundef %39, i32 noundef 1)
  br i1 %40, label %41, label %46

41:                                               ; preds = %38
  %42 = getelementptr inbounds i8, ptr %0, i64 128
  %43 = tail call noundef ptr @_ZN8tinyxml28MemPoolTILi104EE5AllocEv(ptr noundef nonnull align 8 dereferenceable(128) %42)
  tail call void @_ZN8tinyxml210XMLElementC1EPNS_11XMLDocumentE(ptr noundef nonnull align 8 dereferenceable(104) %43, ptr noundef nonnull %0)
  %44 = getelementptr inbounds i8, ptr %43, i64 80
  store ptr %42, ptr %44, align 8, !tbaa !10
  %45 = getelementptr inbounds i8, ptr %4, i64 1
  br label %50

46:                                               ; preds = %38
  %47 = getelementptr inbounds i8, ptr %0, i64 384
  %48 = tail call noundef ptr @_ZN8tinyxml28MemPoolTILi96EE5AllocEv(ptr noundef nonnull align 8 dereferenceable(128) %47)
  tail call void @_ZN8tinyxml27XMLTextC2EPNS_11XMLDocumentE(ptr noundef nonnull align 8 dereferenceable(89) %48, ptr noundef nonnull %0)
  %49 = getelementptr inbounds i8, ptr %48, i64 80
  store ptr %47, ptr %49, align 8, !tbaa !10
  br label %50

50:                                               ; preds = %9, %25, %41, %46, %33, %17, %3
  %storemerge = phi ptr [ null, %3 ], [ %11, %9 ], [ %19, %17 ], [ %27, %25 ], [ %35, %33 ], [ %43, %41 ], [ %48, %46 ]
  %.0 = phi ptr [ %4, %3 ], [ %13, %9 ], [ %21, %17 ], [ %29, %25 ], [ %37, %33 ], [ %45, %41 ], [ %1, %46 ]
  store ptr %storemerge, ptr %2, align 8, !tbaa !8
  ret ptr %.0
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8tinyxml27XMLText8SetCDataEb(ptr noundef nonnull align 8 dereferenceable(89), i1 noundef zeroext) local_unnamed_addr #2 align 2

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

declare void @_ZN8tinyxml210XMLCommentC1EPNS_11XMLDocumentE(ptr, ptr) local_unnamed_addr

declare void @_ZN8tinyxml214XMLDeclarationC1EPNS_11XMLDocumentE(ptr, ptr) local_unnamed_addr

declare void @_ZN8tinyxml210XMLUnknownC1EPNS_11XMLDocumentE(ptr, ptr) local_unnamed_addr

declare void @_ZN8tinyxml210XMLElementC1EPNS_11XMLDocumentE(ptr, 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 = { 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 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, !9, i64 0}
!9 = !{!"any pointer", !6, i64 0}
!10 = !{!11, !9, i64 80}
!11 = !{!"_ZTSN8tinyxml27XMLNodeE", !9, i64 8, !9, i64 16, !12, i64 24, !9, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80}
!12 = !{!"_ZTSN8tinyxml27StrPairE", !13, i64 0, !9, i64 8, !9, i64 16}
!13 = !{!"int", !6, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass