; LLVM IR from hbatagelo/abcg :: abcg/external/glslang/glslang/MachineIndependent (Intermediate)

; 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.glslang::TIntermOperator" = type { %"class.glslang::TIntermTyped", i32, i32 }
%"class.glslang::TIntermTyped" = type { %class.TIntermNode, %"class.glslang::TType" }
%class.TIntermNode = type { ptr, %"struct.glslang::TSourceLoc" }
%"struct.glslang::TSourceLoc" = type { ptr, i32, i32, i32 }
%"class.glslang::TType" = type { ptr, i32, [4 x i8], %"class.glslang::TQualifier", ptr, %union.anon, ptr, ptr, %"struct.glslang::TSampler", ptr, ptr }
%"class.glslang::TQualifier" = type <{ ptr, i64, i8, [3 x i8], i32, i32, i64, i64, i8, i8, i8, i8, i8, [3 x i8], i32, i8, [3 x i8], i32, ptr }>
%union.anon = type { ptr }
%"struct.glslang::TSampler" = type { i32 }
%"class.glslang::TIntermBinary" = type { %"class.glslang::TIntermOperator", ptr, 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 nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIN7glslang19TPrecisionQualifierEERKT_S4_S4_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang13TIntermBinary15updatePrecisionEv(ptr noundef nonnull align 8 dereferenceable(200) %0) unnamed_addr #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %5 = load ptr, ptr %2, align 8
  %6 = load ptr, ptr %5, align 8, !tbaa !9
  %7 = getelementptr inbounds ptr, ptr %6, i64 32
  %8 = load ptr, ptr %7, align 8
  %9 = call noundef i32 %8(ptr noundef nonnull align 8 dereferenceable(176) %5)
  %10 = icmp eq i32 %9, 8
  br i1 %10, label %23, label %11

11:                                               ; preds = %1
  %12 = load ptr, ptr %5, align 8, !tbaa !9
  %13 = getelementptr inbounds ptr, ptr %12, i64 32
  %14 = load ptr, ptr %13, align 8
  %15 = call noundef i32 %14(ptr noundef nonnull align 8 dereferenceable(176) %5)
  %16 = icmp eq i32 %15, 9
  br i1 %16, label %23, label %17

17:                                               ; preds = %11
  %18 = load ptr, ptr %5, align 8, !tbaa !9
  %19 = getelementptr inbounds ptr, ptr %18, i64 32
  %20 = load ptr, ptr %19, align 8
  %21 = call noundef i32 %20(ptr noundef nonnull align 8 dereferenceable(176) %5)
  %22 = icmp eq i32 %21, 1
  br i1 %22, label %23, label %131

23:                                               ; preds = %17, %11, %1
  %24 = getelementptr inbounds %"class.glslang::TIntermOperator", ptr %5, i32 0, i32 1
  %25 = load i32, ptr %24, align 8, !tbaa !11
  %26 = icmp eq i32 %25, 159
  br i1 %26, label %31, label %27

27:                                               ; preds = %23
  %28 = getelementptr inbounds %"class.glslang::TIntermOperator", ptr %5, i32 0, i32 1
  %29 = load i32, ptr %28, align 8, !tbaa !11
  %30 = icmp eq i32 %29, 160
  br i1 %30, label %31, label %54

31:                                               ; preds = %27, %23
  %32 = getelementptr inbounds %"class.glslang::TIntermBinary", ptr %5, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !30
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %35 = getelementptr inbounds ptr, ptr %34, i64 33
  %36 = load ptr, ptr %35, align 8
  %37 = call noundef nonnull align 8 dereferenceable(72) ptr %36(ptr noundef nonnull align 8 dereferenceable(176) %33)
  %38 = getelementptr inbounds %"class.glslang::TQualifier", ptr %37, i32 0, i32 1
  %39 = load i64, ptr %38, align 8
  %40 = lshr i64 %39, 24
  %41 = and i64 %40, 7
  %42 = trunc i64 %41 to i32
  %43 = load ptr, ptr %5, align 8, !tbaa !9
  %44 = getelementptr inbounds ptr, ptr %43, i64 33
  %45 = load ptr, ptr %44, align 8
  %46 = call noundef nonnull align 8 dereferenceable(72) ptr %45(ptr noundef nonnull align 8 dereferenceable(176) %5)
  %47 = getelementptr inbounds %"class.glslang::TQualifier", ptr %46, i32 0, i32 1
  %48 = zext i32 %42 to i64
  %49 = load i64, ptr %47, align 8
  %50 = and i64 %48, 7
  %51 = shl i64 %50, 24
  %52 = and i64 %49, -117440513
  %53 = or i64 %52, %51
  store i64 %53, ptr %47, align 8
  br label %130

54:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  %55 = getelementptr inbounds %"class.glslang::TIntermBinary", ptr %5, i32 0, i32 2
  %56 = load ptr, ptr %55, align 8, !tbaa !32
  %57 = load ptr, ptr %56, align 8, !tbaa !9
  %58 = getelementptr inbounds ptr, ptr %57, i64 33
  %59 = load ptr, ptr %58, align 8
  %60 = call noundef nonnull align 8 dereferenceable(72) ptr %59(ptr noundef nonnull align 8 dereferenceable(176) %56)
  %61 = getelementptr inbounds %"class.glslang::TQualifier", ptr %60, i32 0, i32 1
  %62 = load i64, ptr %61, align 8
  %63 = lshr i64 %62, 24
  %64 = and i64 %63, 7
  %65 = trunc i64 %64 to i32
  store i32 %65, ptr %3, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  %66 = getelementptr inbounds %"class.glslang::TIntermBinary", ptr %5, i32 0, i32 1
  %67 = load ptr, ptr %66, align 8, !tbaa !30
  %68 = load ptr, ptr %67, align 8, !tbaa !9
  %69 = getelementptr inbounds ptr, ptr %68, i64 33
  %70 = load ptr, ptr %69, align 8
  %71 = call noundef nonnull align 8 dereferenceable(72) ptr %70(ptr noundef nonnull align 8 dereferenceable(176) %67)
  %72 = getelementptr inbounds %"class.glslang::TQualifier", ptr %71, i32 0, i32 1
  %73 = load i64, ptr %72, align 8
  %74 = lshr i64 %73, 24
  %75 = and i64 %74, 7
  %76 = trunc i64 %75 to i32
  store i32 %76, ptr %4, align 4, !tbaa !33
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIN7glslang19TPrecisionQualifierEERKT_S4_S4_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %78 = load i32, ptr %77, align 4, !tbaa !33
  %79 = load ptr, ptr %5, align 8, !tbaa !9
  %80 = getelementptr inbounds ptr, ptr %79, i64 33
  %81 = load ptr, ptr %80, align 8
  %82 = call noundef nonnull align 8 dereferenceable(72) ptr %81(ptr noundef nonnull align 8 dereferenceable(176) %5)
  %83 = getelementptr inbounds %"class.glslang::TQualifier", ptr %82, i32 0, i32 1
  %84 = zext i32 %78 to i64
  %85 = load i64, ptr %83, align 8
  %86 = and i64 %84, 7
  %87 = shl i64 %86, 24
  %88 = and i64 %85, -117440513
  %89 = or i64 %88, %87
  store i64 %89, ptr %83, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  %90 = load ptr, ptr %5, align 8, !tbaa !9
  %91 = getelementptr inbounds ptr, ptr %90, i64 33
  %92 = load ptr, ptr %91, align 8
  %93 = call noundef nonnull align 8 dereferenceable(72) ptr %92(ptr noundef nonnull align 8 dereferenceable(176) %5)
  %94 = getelementptr inbounds %"class.glslang::TQualifier", ptr %93, i32 0, i32 1
  %95 = load i64, ptr %94, align 8
  %96 = lshr i64 %95, 24
  %97 = and i64 %96, 7
  %98 = trunc i64 %97 to i32
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %100, label %129

100:                                              ; preds = %54
  %101 = getelementptr inbounds %"class.glslang::TIntermBinary", ptr %5, i32 0, i32 1
  %102 = load ptr, ptr %101, align 8, !tbaa !30
  %103 = load ptr, ptr %5, align 8, !tbaa !9
  %104 = getelementptr inbounds ptr, ptr %103, i64 33
  %105 = load ptr, ptr %104, align 8
  %106 = call noundef nonnull align 8 dereferenceable(72) ptr %105(ptr noundef nonnull align 8 dereferenceable(176) %5)
  %107 = getelementptr inbounds %"class.glslang::TQualifier", ptr %106, i32 0, i32 1
  %108 = load i64, ptr %107, align 8
  %109 = lshr i64 %108, 24
  %110 = and i64 %109, 7
  %111 = trunc i64 %110 to i32
  %112 = load ptr, ptr %102, align 8, !tbaa !9
  %113 = getelementptr inbounds ptr, ptr %112, i64 37
  %114 = load ptr, ptr %113, align 8
  call void %114(ptr noundef nonnull align 8 dereferenceable(176) %102, i32 noundef %111)
  %115 = getelementptr inbounds %"class.glslang::TIntermBinary", ptr %5, i32 0, i32 2
  %116 = load ptr, ptr %115, align 8, !tbaa !32
  %117 = load ptr, ptr %5, align 8, !tbaa !9
  %118 = getelementptr inbounds ptr, ptr %117, i64 33
  %119 = load ptr, ptr %118, align 8
  %120 = call noundef nonnull align 8 dereferenceable(72) ptr %119(ptr noundef nonnull align 8 dereferenceable(176) %5)
  %121 = getelementptr inbounds %"class.glslang::TQualifier", ptr %120, i32 0, i32 1
  %122 = load i64, ptr %121, align 8
  %123 = lshr i64 %122, 24
  %124 = and i64 %123, 7
  %125 = trunc i64 %124 to i32
  %126 = load ptr, ptr %116, align 8, !tbaa !9
  %127 = getelementptr inbounds ptr, ptr %126, i64 37
  %128 = load ptr, ptr %127, align 8
  call void %128(ptr noundef nonnull align 8 dereferenceable(176) %116, i32 noundef %125)
  br label %129

129:                                              ; preds = %100, %54
  br label %130

130:                                              ; preds = %129, %31
  br label %131

131:                                              ; preds = %130, %17
  ret void
}

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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !29, i64 176}
!12 = !{!"_ZTSN7glslang15TIntermOperatorE", !13, i64 0, !29, i64 176, !23, i64 180}
!13 = !{!"_ZTSN7glslang12TIntermTypedE", !14, i64 0, !17, i64 32}
!14 = !{!"_ZTS11TIntermNode", !15, i64 8}
!15 = !{!"_ZTSN7glslang10TSourceLocE", !6, i64 0, !16, i64 8, !16, i64 12, !16, i64 16}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTSN7glslang5TTypeE", !18, i64 8, !16, i64 9, !16, i64 9, !16, i64 10, !19, i64 10, !19, i64 10, !20, i64 16, !6, i64 88, !7, i64 96, !6, i64 104, !6, i64 112, !27, i64 120, !6, i64 128, !6, i64 136}
!18 = !{!"_ZTSN7glslang10TBasicTypeE", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN7glslang10TQualifierE", !6, i64 0, !21, i64 8, !22, i64 8, !22, i64 9, !23, i64 11, !19, i64 11, !19, i64 11, !19, i64 11, !19, i64 11, !19, i64 11, !19, i64 12, !19, i64 12, !19, i64 12, !19, i64 12, !19, i64 12, !19, i64 12, !19, i64 12, !19, i64 12, !19, i64 13, !19, i64 13, !19, i64 13, !19, i64 13, !19, i64 13, !19, i64 13, !19, i64 13, !19, i64 13, !19, i64 14, !19, i64 14, !19, i64 14, !19, i64 14, !19, i64 14, !19, i64 14, !19, i64 14, !19, i64 14, !19, i64 15, !19, i64 15, !19, i64 15, !24, i64 15, !25, i64 16, !16, i64 20, !16, i64 24, !16, i64 28, !16, i64 29, !16, i64 29, !16, i64 32, !16, i64 34, !16, i64 35, !16, i64 36, !16, i64 36, !16, i64 38, !16, i64 40, !16, i64 41, !16, i64 42, !26, i64 44, !19, i64 45, !19, i64 46, !19, i64 47, !19, i64 48, !16, i64 52, !19, i64 56, !16, i64 60, !6, i64 64}
!21 = !{!"_ZTSN7glslang17TStorageQualifierE", !7, i64 0}
!22 = !{!"_ZTSN7glslang16TBuiltInVariableE", !7, i64 0}
!23 = !{!"_ZTSN7glslang19TPrecisionQualifierE", !7, i64 0}
!24 = !{!"_ZTSN7glslang13TLayoutMatrixE", !7, i64 0}
!25 = !{!"_ZTSN7glslang14TLayoutPackingE", !7, i64 0}
!26 = !{!"_ZTSN7glslang13TLayoutFormatE", !7, i64 0}
!27 = !{!"_ZTSN7glslang8TSamplerE", !18, i64 0, !28, i64 1, !19, i64 2, !19, i64 2, !19, i64 2, !19, i64 2, !19, i64 2, !19, i64 2, !16, i64 2, !16, i64 3, !19, i64 3, !19, i64 3}
!28 = !{!"_ZTSN7glslang11TSamplerDimE", !7, i64 0}
!29 = !{!"_ZTSN7glslang9TOperatorE", !7, i64 0}
!30 = !{!31, !6, i64 184}
!31 = !{!"_ZTSN7glslang13TIntermBinaryE", !12, i64 0, !6, i64 184, !6, i64 192}
!32 = !{!31, !6, i64 192}
!33 = !{!23, !23, 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"

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIN7glslang19TPrecisionQualifierEERKT_S4_S4_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7glslang13TIntermBinary15updatePrecisionEv(ptr noundef nonnull align 8 dereferenceable(200) %0) unnamed_addr #2 align 2 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = load ptr, ptr %0, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %4, i64 256
  %6 = load ptr, ptr %5, align 8
  %7 = tail call noundef i32 %6(ptr noundef nonnull align 8 dereferenceable(176) %0)
  %8 = icmp eq i32 %7, 8
  br i1 %8, label %21, label %9

9:                                                ; preds = %1
  %10 = load ptr, ptr %0, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %10, i64 256
  %12 = load ptr, ptr %11, align 8
  %13 = tail call noundef i32 %12(ptr noundef nonnull align 8 dereferenceable(176) %0)
  %14 = icmp eq i32 %13, 9
  br i1 %14, label %21, label %15

15:                                               ; preds = %9
  %16 = load ptr, ptr %0, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %16, i64 256
  %18 = load ptr, ptr %17, align 8
  %19 = tail call noundef i32 %18(ptr noundef nonnull align 8 dereferenceable(176) %0)
  %20 = icmp eq i32 %19, 1
  br i1 %20, label %21, label %112

21:                                               ; preds = %15, %9, %1
  %22 = getelementptr inbounds i8, ptr %0, i64 176
  %23 = load i32, ptr %22, align 8, !tbaa !8
  %.off = add i32 %23, -159
  %switch = icmp ult i32 %.off, 2
  br i1 %switch, label %24, label %42

24:                                               ; preds = %21
  %25 = getelementptr inbounds i8, ptr %0, i64 184
  %26 = load ptr, ptr %25, align 8, !tbaa !29
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i64 264
  %29 = load ptr, ptr %28, align 8
  %30 = tail call noundef nonnull align 8 dereferenceable(72) ptr %29(ptr noundef nonnull align 8 dereferenceable(176) %26)
  %31 = getelementptr inbounds i8, ptr %30, i64 8
  %32 = load i64, ptr %31, align 8
  %33 = and i64 %32, 117440512
  %34 = load ptr, ptr %0, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 264
  %36 = load ptr, ptr %35, align 8
  %37 = tail call noundef nonnull align 8 dereferenceable(72) ptr %36(ptr noundef nonnull align 8 dereferenceable(176) %0)
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  %39 = load i64, ptr %38, align 8
  %40 = and i64 %39, -117440513
  %41 = or disjoint i64 %40, %33
  store i64 %41, ptr %38, align 8
  br label %112

42:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
  %43 = getelementptr inbounds i8, ptr %0, i64 192
  %44 = load ptr, ptr %43, align 8, !tbaa !31
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %45, i64 264
  %47 = load ptr, ptr %46, align 8
  %48 = tail call noundef nonnull align 8 dereferenceable(72) ptr %47(ptr noundef nonnull align 8 dereferenceable(176) %44)
  %49 = getelementptr inbounds i8, ptr %48, i64 8
  %50 = load i64, ptr %49, align 8
  %51 = trunc i64 %50 to i32
  %52 = lshr i32 %51, 24
  %53 = and i32 %52, 7
  store i32 %53, ptr %2, align 4, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %54 = getelementptr inbounds i8, ptr %0, i64 184
  %55 = load ptr, ptr %54, align 8, !tbaa !29
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %56, i64 264
  %58 = load ptr, ptr %57, align 8
  %59 = tail call noundef nonnull align 8 dereferenceable(72) ptr %58(ptr noundef nonnull align 8 dereferenceable(176) %55)
  %60 = getelementptr inbounds i8, ptr %59, i64 8
  %61 = load i64, ptr %60, align 8
  %62 = trunc i64 %61 to i32
  %63 = lshr i32 %62, 24
  %64 = and i32 %63, 7
  store i32 %64, ptr %3, align 4, !tbaa !32
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIN7glslang19TPrecisionQualifierEERKT_S4_S4_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %66 = load i32, ptr %65, align 4, !tbaa !32
  %67 = load ptr, ptr %0, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %67, i64 264
  %69 = load ptr, ptr %68, align 8
  %70 = call noundef nonnull align 8 dereferenceable(72) ptr %69(ptr noundef nonnull align 8 dereferenceable(176) %0)
  %71 = getelementptr inbounds i8, ptr %70, i64 8
  %72 = load i64, ptr %71, align 8
  %73 = shl i32 %66, 24
  %74 = and i32 %73, 117440512
  %75 = zext nneg i32 %74 to i64
  %76 = and i64 %72, -117440513
  %77 = or disjoint i64 %76, %75
  store i64 %77, ptr %71, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  %78 = load ptr, ptr %0, align 8, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %78, i64 264
  %80 = load ptr, ptr %79, align 8
  %81 = call noundef nonnull align 8 dereferenceable(72) ptr %80(ptr noundef nonnull align 8 dereferenceable(176) %0)
  %82 = getelementptr inbounds i8, ptr %81, i64 8
  %83 = load i64, ptr %82, align 8
  %84 = and i64 %83, 117440512
  %.not = icmp eq i64 %84, 0
  br i1 %.not, label %112, label %85

85:                                               ; preds = %42
  %86 = load ptr, ptr %54, align 8, !tbaa !29
  %87 = load ptr, ptr %0, align 8, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %87, i64 264
  %89 = load ptr, ptr %88, align 8
  %90 = call noundef nonnull align 8 dereferenceable(72) ptr %89(ptr noundef nonnull align 8 dereferenceable(176) %0)
  %91 = getelementptr inbounds i8, ptr %90, i64 8
  %92 = load i64, ptr %91, align 8
  %93 = trunc i64 %92 to i32
  %94 = lshr i32 %93, 24
  %95 = and i32 %94, 7
  %96 = load ptr, ptr %86, align 8, !tbaa !5
  %97 = getelementptr inbounds i8, ptr %96, i64 296
  %98 = load ptr, ptr %97, align 8
  call void %98(ptr noundef nonnull align 8 dereferenceable(176) %86, i32 noundef %95)
  %99 = load ptr, ptr %43, align 8, !tbaa !31
  %100 = load ptr, ptr %0, align 8, !tbaa !5
  %101 = getelementptr inbounds i8, ptr %100, i64 264
  %102 = load ptr, ptr %101, align 8
  %103 = call noundef nonnull align 8 dereferenceable(72) ptr %102(ptr noundef nonnull align 8 dereferenceable(176) %0)
  %104 = getelementptr inbounds i8, ptr %103, i64 8
  %105 = load i64, ptr %104, align 8
  %106 = trunc i64 %105 to i32
  %107 = lshr i32 %106, 24
  %108 = and i32 %107, 7
  %109 = load ptr, ptr %99, align 8, !tbaa !5
  %110 = getelementptr inbounds i8, ptr %109, i64 296
  %111 = load ptr, ptr %110, align 8
  call void %111(ptr noundef nonnull align 8 dereferenceable(176) %99, i32 noundef %108)
  br label %112

112:                                              ; preds = %24, %85, %42, %15
  ret void
}

attributes #0 = { mustprogress 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 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !28, i64 176}
!9 = !{!"_ZTSN7glslang15TIntermOperatorE", !10, i64 0, !28, i64 176, !22, i64 180}
!10 = !{!"_ZTSN7glslang12TIntermTypedE", !11, i64 0, !16, i64 32}
!11 = !{!"_ZTS11TIntermNode", !12, i64 8}
!12 = !{!"_ZTSN7glslang10TSourceLocE", !13, i64 0, !15, i64 8, !15, i64 12, !15, i64 16}
!13 = !{!"any pointer", !14, i64 0}
!14 = !{!"omnipotent char", !7, i64 0}
!15 = !{!"int", !14, i64 0}
!16 = !{!"_ZTSN7glslang5TTypeE", !17, i64 8, !15, i64 9, !15, i64 9, !15, i64 10, !18, i64 10, !18, i64 10, !19, i64 16, !13, i64 88, !14, i64 96, !13, i64 104, !13, i64 112, !26, i64 120, !13, i64 128, !13, i64 136}
!17 = !{!"_ZTSN7glslang10TBasicTypeE", !14, i64 0}
!18 = !{!"bool", !14, i64 0}
!19 = !{!"_ZTSN7glslang10TQualifierE", !13, i64 0, !20, i64 8, !21, i64 8, !21, i64 9, !22, i64 11, !18, i64 11, !18, i64 11, !18, i64 11, !18, i64 11, !18, i64 11, !18, i64 12, !18, i64 12, !18, i64 12, !18, i64 12, !18, i64 12, !18, i64 12, !18, i64 12, !18, i64 12, !18, i64 13, !18, i64 13, !18, i64 13, !18, i64 13, !18, i64 13, !18, i64 13, !18, i64 13, !18, i64 13, !18, i64 14, !18, i64 14, !18, i64 14, !18, i64 14, !18, i64 14, !18, i64 14, !18, i64 14, !18, i64 14, !18, i64 15, !18, i64 15, !18, i64 15, !23, i64 15, !24, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 29, !15, i64 29, !15, i64 32, !15, i64 34, !15, i64 35, !15, i64 36, !15, i64 36, !15, i64 38, !15, i64 40, !15, i64 41, !15, i64 42, !25, i64 44, !18, i64 45, !18, i64 46, !18, i64 47, !18, i64 48, !15, i64 52, !18, i64 56, !15, i64 60, !13, i64 64}
!20 = !{!"_ZTSN7glslang17TStorageQualifierE", !14, i64 0}
!21 = !{!"_ZTSN7glslang16TBuiltInVariableE", !14, i64 0}
!22 = !{!"_ZTSN7glslang19TPrecisionQualifierE", !14, i64 0}
!23 = !{!"_ZTSN7glslang13TLayoutMatrixE", !14, i64 0}
!24 = !{!"_ZTSN7glslang14TLayoutPackingE", !14, i64 0}
!25 = !{!"_ZTSN7glslang13TLayoutFormatE", !14, i64 0}
!26 = !{!"_ZTSN7glslang8TSamplerE", !17, i64 0, !27, i64 1, !18, i64 2, !18, i64 2, !18, i64 2, !18, i64 2, !18, i64 2, !18, i64 2, !15, i64 2, !15, i64 3, !18, i64 3, !18, i64 3}
!27 = !{!"_ZTSN7glslang11TSamplerDimE", !14, i64 0}
!28 = !{!"_ZTSN7glslang9TOperatorE", !14, i64 0}
!29 = !{!30, !13, i64 184}
!30 = !{!"_ZTSN7glslang13TIntermBinaryE", !9, i64 0, !13, i64 184, !13, i64 192}
!31 = !{!30, !13, i64 192}
!32 = !{!22, !22, i64 0}


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