; LLVM IR from facebook/hermes :: external/llvh/lib/Demangle (MicrosoftDemangleNodes)

; 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.StringView = type { ptr, ptr }
%"struct.llvh::ms_demangle::FunctionSignatureNode" = type { %"struct.llvh::ms_demangle::TypeNode.base", i32, i8, i16, i32, ptr, i8, ptr }
%"struct.llvh::ms_demangle::TypeNode.base" = type { %"struct.llvh::ms_demangle::Node.base", i8 }
%"struct.llvh::ms_demangle::Node.base" = type <{ ptr, i32 }>
%"struct.llvh::ms_demangle::TypeNode" = type { %"struct.llvh::ms_demangle::Node.base", i8, [3 x i8] }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4llvh11ms_demangle21FunctionSignatureNode10outputPostER12OutputStreamNS0_11OutputFlagsE(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %2) unnamed_addr #0 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %class.StringView, align 8
  %8 = alloca %class.StringView, align 8
  %9 = alloca %class.StringView, align 8
  %10 = alloca %class.StringView, align 8
  %11 = alloca %class.StringView, align 8
  %12 = alloca %class.StringView, align 8
  %13 = alloca %class.StringView, align 8
  %14 = alloca %class.StringView, align 8
  %15 = alloca %class.StringView, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %16 = load ptr, ptr %4, align 8
  %17 = getelementptr inbounds %"struct.llvh::ms_demangle::FunctionSignatureNode", ptr %16, i32 0, i32 3
  %18 = load i16, ptr %17, align 2, !tbaa !11
  %19 = zext i16 %18 to i32
  %20 = and i32 %19, 256
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %54, label %22

22:                                               ; preds = %3
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef @.str.109)
  %24 = getelementptr inbounds { ptr, ptr }, ptr %7, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8
  %26 = getelementptr inbounds { ptr, ptr }, ptr %7, i32 0, i32 1
  %27 = load ptr, ptr %26, align 8
  %28 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %23, ptr %25, ptr %27)
  %29 = getelementptr inbounds %"struct.llvh::ms_demangle::FunctionSignatureNode", ptr %16, i32 0, i32 7
  %30 = load ptr, ptr %29, align 8, !tbaa !22
  %31 = icmp ne ptr %30, null
  br i1 %31, label %32, label %40

32:                                               ; preds = %22
  %33 = getelementptr inbounds %"struct.llvh::ms_demangle::FunctionSignatureNode", ptr %16, i32 0, i32 7
  %34 = load ptr, ptr %33, align 8, !tbaa !22
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = load i32, ptr %6, align 4, !tbaa !9
  %37 = load ptr, ptr %34, align 8, !tbaa !23
  %38 = getelementptr inbounds ptr, ptr %37, i64 2
  %39 = load ptr, ptr %38, align 8
  call void %39(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef nonnull align 8 dereferenceable(32) %35, i32 noundef %36)
  br label %47

40:                                               ; preds = %22
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef @.str)
  %42 = getelementptr inbounds { ptr, ptr }, ptr %8, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8
  %44 = getelementptr inbounds { ptr, ptr }, ptr %8, i32 0, i32 1
  %45 = load ptr, ptr %44, align 8
  %46 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %41, ptr %43, ptr %45)
  br label %47

47:                                               ; preds = %40, %32
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef @.str.110)
  %49 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8
  %51 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 1
  %52 = load ptr, ptr %51, align 8
  %53 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %48, ptr %50, ptr %52)
  br label %54

54:                                               ; preds = %47, %3
  %55 = getelementptr inbounds %"struct.llvh::ms_demangle::TypeNode", ptr %16, i32 0, i32 1
  %56 = load i8, ptr %55, align 4, !tbaa !25
  %57 = zext i8 %56 to i32
  %58 = and i32 %57, 1
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %60, label %67

60:                                               ; preds = %54
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef @.str.111)
  %62 = getelementptr inbounds { ptr, ptr }, ptr %10, i32 0, i32 0
  %63 = load ptr, ptr %62, align 8
  %64 = getelementptr inbounds { ptr, ptr }, ptr %10, i32 0, i32 1
  %65 = load ptr, ptr %64, align 8
  %66 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %61, ptr %63, ptr %65)
  br label %67

67:                                               ; preds = %60, %54
  %68 = getelementptr inbounds %"struct.llvh::ms_demangle::TypeNode", ptr %16, i32 0, i32 1
  %69 = load i8, ptr %68, align 4, !tbaa !25
  %70 = zext i8 %69 to i32
  %71 = and i32 %70, 2
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %73, label %80

73:                                               ; preds = %67
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef @.str.112)
  %75 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8
  %77 = getelementptr inbounds { ptr, ptr }, ptr %11, i32 0, i32 1
  %78 = load ptr, ptr %77, align 8
  %79 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %74, ptr %76, ptr %78)
  br label %80

80:                                               ; preds = %73, %67
  %81 = getelementptr inbounds %"struct.llvh::ms_demangle::TypeNode", ptr %16, i32 0, i32 1
  %82 = load i8, ptr %81, align 4, !tbaa !25
  %83 = zext i8 %82 to i32
  %84 = and i32 %83, 32
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %86, label %93

86:                                               ; preds = %80
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef @.str.113)
  %88 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8
  %90 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 1
  %91 = load ptr, ptr %90, align 8
  %92 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %87, ptr %89, ptr %91)
  br label %93

93:                                               ; preds = %86, %80
  %94 = getelementptr inbounds %"struct.llvh::ms_demangle::TypeNode", ptr %16, i32 0, i32 1
  %95 = load i8, ptr %94, align 4, !tbaa !25
  %96 = zext i8 %95 to i32
  %97 = and i32 %96, 16
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %106

99:                                               ; preds = %93
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef @.str.114)
  %101 = getelementptr inbounds { ptr, ptr }, ptr %13, i32 0, i32 0
  %102 = load ptr, ptr %101, align 8
  %103 = getelementptr inbounds { ptr, ptr }, ptr %13, i32 0, i32 1
  %104 = load ptr, ptr %103, align 8
  %105 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %100, ptr %102, ptr %104)
  br label %106

106:                                              ; preds = %99, %93
  %107 = getelementptr inbounds %"struct.llvh::ms_demangle::FunctionSignatureNode", ptr %16, i32 0, i32 4
  %108 = load i32, ptr %107, align 8, !tbaa !26
  %109 = icmp eq i32 %108, 1
  br i1 %109, label %110, label %117

110:                                              ; preds = %106
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef @.str.115)
  %112 = getelementptr inbounds { ptr, ptr }, ptr %14, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8
  %114 = getelementptr inbounds { ptr, ptr }, ptr %14, i32 0, i32 1
  %115 = load ptr, ptr %114, align 8
  %116 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %111, ptr %113, ptr %115)
  br label %129

117:                                              ; preds = %106
  %118 = getelementptr inbounds %"struct.llvh::ms_demangle::FunctionSignatureNode", ptr %16, i32 0, i32 4
  %119 = load i32, ptr %118, align 8, !tbaa !26
  %120 = icmp eq i32 %119, 2
  br i1 %120, label %121, label %128

121:                                              ; preds = %117
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef @.str.116)
  %123 = getelementptr inbounds { ptr, ptr }, ptr %15, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8
  %125 = getelementptr inbounds { ptr, ptr }, ptr %15, i32 0, i32 1
  %126 = load ptr, ptr %125, align 8
  %127 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %122, ptr %124, ptr %126)
  br label %128

128:                                              ; preds = %121, %117
  br label %129

129:                                              ; preds = %128, %110
  %130 = getelementptr inbounds %"struct.llvh::ms_demangle::FunctionSignatureNode", ptr %16, i32 0, i32 5
  %131 = load ptr, ptr %130, align 8, !tbaa !27
  %132 = icmp ne ptr %131, null
  br i1 %132, label %133, label %141

133:                                              ; preds = %129
  %134 = getelementptr inbounds %"struct.llvh::ms_demangle::FunctionSignatureNode", ptr %16, i32 0, i32 5
  %135 = load ptr, ptr %134, align 8, !tbaa !27
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = load i32, ptr %6, align 4, !tbaa !9
  %138 = load ptr, ptr %135, align 8, !tbaa !23
  %139 = getelementptr inbounds ptr, ptr %138, i64 4
  %140 = load ptr, ptr %139, align 8
  call void %140(ptr noundef nonnull align 8 dereferenceable(13) %135, ptr noundef nonnull align 8 dereferenceable(32) %136, i32 noundef %137)
  br label %141

141:                                              ; preds = %133, %129
  ret void
}

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 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTSN4llvh11ms_demangle11OutputFlagsE", !7, i64 0}
!11 = !{!12, !19, i64 22}
!12 = !{!"_ZTSN4llvh11ms_demangle21FunctionSignatureNodeE", !13, i64 0, !17, i64 16, !18, i64 20, !19, i64 22, !20, i64 24, !6, i64 32, !21, i64 40, !6, i64 48}
!13 = !{!"_ZTSN4llvh11ms_demangle8TypeNodeE", !14, i64 0, !16, i64 12}
!14 = !{!"_ZTSN4llvh11ms_demangle4NodeE", !15, i64 8}
!15 = !{!"_ZTSN4llvh11ms_demangle8NodeKindE", !7, i64 0}
!16 = !{!"_ZTSN4llvh11ms_demangle10QualifiersE", !7, i64 0}
!17 = !{!"_ZTSN4llvh11ms_demangle15PointerAffinityE", !7, i64 0}
!18 = !{!"_ZTSN4llvh11ms_demangle11CallingConvE", !7, i64 0}
!19 = !{!"_ZTSN4llvh11ms_demangle9FuncClassE", !7, i64 0}
!20 = !{!"_ZTSN4llvh11ms_demangle20FunctionRefQualifierE", !7, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{!12, !6, i64 48}
!23 = !{!24, !24, i64 0}
!24 = !{!"vtable pointer", !8, i64 0}
!25 = !{!13, !16, i64 12}
!26 = !{!12, !20, i64 24}
!27 = !{!12, !6, i64 32}


; 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.StringView = type { ptr, ptr }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4llvh11ms_demangle21FunctionSignatureNode10outputPostER12OutputStreamNS0_11OutputFlagsE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %2) unnamed_addr #0 align 2 {
  %4 = alloca %class.StringView, align 8
  %5 = alloca %class.StringView, align 8
  %6 = alloca %class.StringView, align 8
  %7 = alloca %class.StringView, align 8
  %8 = alloca %class.StringView, align 8
  %9 = alloca %class.StringView, align 8
  %10 = alloca %class.StringView, align 8
  %11 = alloca %class.StringView, align 8
  %12 = alloca %class.StringView, align 8
  %13 = getelementptr inbounds i8, ptr %0, i64 22
  %14 = load i16, ptr %13, align 2, !tbaa !5
  %15 = and i16 %14, 256
  %.not = icmp eq i16 %15, 0
  %.sink25.sroa.gep = getelementptr inbounds i8, ptr %12, i64 8
  %.sink25.sroa.gep26 = getelementptr inbounds i8, ptr %11, i64 8
  br i1 %.not, label %16, label %37

16:                                               ; preds = %3
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull @.str.109)
  %17 = load ptr, ptr %4, align 8
  %18 = getelementptr inbounds i8, ptr %4, i64 8
  %19 = load ptr, ptr %18, align 8
  %20 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr %17, ptr %19)
  %21 = getelementptr inbounds i8, ptr %0, i64 48
  %22 = load ptr, ptr %21, align 8, !tbaa !19
  %.not15 = icmp eq ptr %22, null
  br i1 %.not15, label %27, label %23

23:                                               ; preds = %16
  %24 = load ptr, ptr %22, align 8, !tbaa !20
  %25 = getelementptr inbounds i8, ptr %24, i64 16
  %26 = load ptr, ptr %25, align 8
  call void %26(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %2)
  br label %32

27:                                               ; preds = %16
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull @.str)
  %28 = load ptr, ptr %5, align 8
  %29 = getelementptr inbounds i8, ptr %5, i64 8
  %30 = load ptr, ptr %29, align 8
  %31 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr %28, ptr %30)
  br label %32

32:                                               ; preds = %27, %23
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull @.str.110)
  %33 = load ptr, ptr %6, align 8
  %34 = getelementptr inbounds i8, ptr %6, i64 8
  %35 = load ptr, ptr %34, align 8
  %36 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr %33, ptr %35)
  br label %37

37:                                               ; preds = %32, %3
  %38 = getelementptr inbounds i8, ptr %0, i64 12
  %39 = load i8, ptr %38, align 4, !tbaa !22
  %40 = and i8 %39, 1
  %.not16 = icmp eq i8 %40, 0
  br i1 %.not16, label %46, label %41

41:                                               ; preds = %37
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull @.str.111)
  %42 = load ptr, ptr %7, align 8
  %43 = getelementptr inbounds i8, ptr %7, i64 8
  %44 = load ptr, ptr %43, align 8
  %45 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr %42, ptr %44)
  %.pre = load i8, ptr %38, align 4, !tbaa !22
  br label %46

46:                                               ; preds = %41, %37
  %47 = phi i8 [ %.pre, %41 ], [ %39, %37 ]
  %48 = and i8 %47, 2
  %.not17 = icmp eq i8 %48, 0
  br i1 %.not17, label %54, label %49

49:                                               ; preds = %46
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull @.str.112)
  %50 = load ptr, ptr %8, align 8
  %51 = getelementptr inbounds i8, ptr %8, i64 8
  %52 = load ptr, ptr %51, align 8
  %53 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr %50, ptr %52)
  %.pre21 = load i8, ptr %38, align 4, !tbaa !22
  br label %54

54:                                               ; preds = %49, %46
  %55 = phi i8 [ %.pre21, %49 ], [ %47, %46 ]
  %56 = and i8 %55, 32
  %.not18 = icmp eq i8 %56, 0
  br i1 %.not18, label %62, label %57

57:                                               ; preds = %54
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull @.str.113)
  %58 = load ptr, ptr %9, align 8
  %59 = getelementptr inbounds i8, ptr %9, i64 8
  %60 = load ptr, ptr %59, align 8
  %61 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr %58, ptr %60)
  %.pre22 = load i8, ptr %38, align 4, !tbaa !22
  br label %62

62:                                               ; preds = %57, %54
  %63 = phi i8 [ %.pre22, %57 ], [ %55, %54 ]
  %64 = and i8 %63, 16
  %.not19 = icmp eq i8 %64, 0
  br i1 %.not19, label %70, label %65

65:                                               ; preds = %62
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull @.str.114)
  %66 = load ptr, ptr %10, align 8
  %67 = getelementptr inbounds i8, ptr %10, i64 8
  %68 = load ptr, ptr %67, align 8
  %69 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr %66, ptr %68)
  br label %70

70:                                               ; preds = %65, %62
  %71 = getelementptr inbounds i8, ptr %0, i64 24
  %72 = load i32, ptr %71, align 8, !tbaa !23
  switch i32 %72, label %77 [
    i32 1, label %73
    i32 2, label %74
  ]

73:                                               ; preds = %70
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull @.str.115)
  br label %.sink.split

74:                                               ; preds = %70
  call void @_ZN10StringViewC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull @.str.116)
  br label %.sink.split

.sink.split:                                      ; preds = %73, %74
  %.sink25.sroa.phi = phi ptr [ %.sink25.sroa.gep, %74 ], [ %.sink25.sroa.gep26, %73 ]
  %.sink25 = phi ptr [ %12, %74 ], [ %11, %73 ]
  %.sink = load ptr, ptr %.sink25, align 8
  %75 = load ptr, ptr %.sink25.sroa.phi, align 8
  %76 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN12OutputStreamlsE10StringView(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr %.sink, ptr %75)
  br label %77

77:                                               ; preds = %.sink.split, %70
  %78 = getelementptr inbounds i8, ptr %0, i64 32
  %79 = load ptr, ptr %78, align 8, !tbaa !24
  %.not20 = icmp eq ptr %79, null
  br i1 %.not20, label %84, label %80

80:                                               ; preds = %77
  %81 = load ptr, ptr %79, align 8, !tbaa !20
  %82 = getelementptr inbounds i8, ptr %81, i64 32
  %83 = load ptr, ptr %82, align 8
  call void %83(ptr noundef nonnull align 8 dereferenceable(13) %79, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef %2)
  br label %84

84:                                               ; preds = %80, %77
  ret void
}

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 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, !15, i64 22}
!6 = !{!"_ZTSN4llvh11ms_demangle21FunctionSignatureNodeE", !7, i64 0, !13, i64 16, !14, i64 20, !15, i64 22, !16, i64 24, !17, i64 32, !18, i64 40, !17, i64 48}
!7 = !{!"_ZTSN4llvh11ms_demangle8TypeNodeE", !8, i64 0, !12, i64 12}
!8 = !{!"_ZTSN4llvh11ms_demangle4NodeE", !9, i64 8}
!9 = !{!"_ZTSN4llvh11ms_demangle8NodeKindE", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTSN4llvh11ms_demangle10QualifiersE", !10, i64 0}
!13 = !{!"_ZTSN4llvh11ms_demangle15PointerAffinityE", !10, i64 0}
!14 = !{!"_ZTSN4llvh11ms_demangle11CallingConvE", !10, i64 0}
!15 = !{!"_ZTSN4llvh11ms_demangle9FuncClassE", !10, i64 0}
!16 = !{!"_ZTSN4llvh11ms_demangle20FunctionRefQualifierE", !10, i64 0}
!17 = !{!"any pointer", !10, i64 0}
!18 = !{!"bool", !10, i64 0}
!19 = !{!6, !17, i64 48}
!20 = !{!21, !21, i64 0}
!21 = !{!"vtable pointer", !11, i64 0}
!22 = !{!7, !12, i64 12}
!23 = !{!6, !16, i64 24}
!24 = !{!6, !17, i64 32}


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