; LLVM IR from Try/Tempest :: Engine/thirdparty/squish (singlecolourfit)

; 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.squish::Vec3" = type { float, float, float }
%"class.squish::SingleColourFit" = type { %"class.squish::ColourFit.base", [3 x i8], %"class.squish::Vec3", %"class.squish::Vec3", i8, i32, i32, [4 x i8] }
%"class.squish::ColourFit.base" = type <{ ptr, ptr, i32 }>
%"struct.squish::SingleColourLookup" = type { [2 x %"struct.squish::SourceBlock"] }
%"struct.squish::SourceBlock" = type { i8, i8, i8 }

; 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6squish15SingleColourFit16ComputeEndPointsEPKPKNS_18SingleColourLookupE(ptr noundef nonnull align 8 dereferenceable(60) %0, ptr noundef %1) #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca [3 x ptr], align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.squish::Vec3", align 4
  %14 = alloca %"class.squish::Vec3", align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %15 = load ptr, ptr %3, align 8
  %16 = getelementptr inbounds %"class.squish::SingleColourFit", ptr %15, i32 0, i32 5
  store i32 2147483647, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !15
  br label %17

17:                                               ; preds = %116, %2
  %18 = load i32, ptr %5, align 4, !tbaa !15
  %19 = icmp slt i32 %18, 2
  br i1 %19, label %21, label %20

20:                                               ; preds = %17
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %119

21:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !15
  br label %22

22:                                               ; preds = %62, %21
  %23 = load i32, ptr %9, align 4, !tbaa !15
  %24 = icmp slt i32 %23, 3
  br i1 %24, label %26, label %25

25:                                               ; preds = %22
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %65

26:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = load i32, ptr %9, align 4, !tbaa !15
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds ptr, ptr %27, i64 %29
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  store ptr %31, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %32 = getelementptr inbounds %"class.squish::SingleColourFit", ptr %15, i32 0, i32 1
  %33 = load i32, ptr %9, align 4, !tbaa !15
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [3 x i8], ptr %32, i64 0, i64 %34
  %36 = load i8, ptr %35, align 1, !tbaa !16
  %37 = zext i8 %36 to i32
  store i32 %37, ptr %11, align 4, !tbaa !15
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = load i32, ptr %11, align 4, !tbaa !15
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds %"struct.squish::SingleColourLookup", ptr %38, i64 %40
  %42 = getelementptr inbounds %"struct.squish::SingleColourLookup", ptr %41, i32 0, i32 0
  %43 = getelementptr inbounds [2 x %"struct.squish::SourceBlock"], ptr %42, i64 0, i64 0
  %44 = load i32, ptr %5, align 4, !tbaa !15
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds %"struct.squish::SourceBlock", ptr %43, i64 %45
  %47 = load i32, ptr %9, align 4, !tbaa !15
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [3 x ptr], ptr %7, i64 0, i64 %48
  store ptr %46, ptr %49, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %50 = load i32, ptr %9, align 4, !tbaa !15
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [3 x ptr], ptr %7, i64 0, i64 %51
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.squish::SourceBlock", ptr %53, i32 0, i32 2
  %55 = load i8, ptr %54, align 1, !tbaa !17
  %56 = zext i8 %55 to i32
  store i32 %56, ptr %12, align 4, !tbaa !15
  %57 = load i32, ptr %12, align 4, !tbaa !15
  %58 = load i32, ptr %12, align 4, !tbaa !15
  %59 = mul nsw i32 %57, %58
  %60 = load i32, ptr %8, align 4, !tbaa !15
  %61 = add nsw i32 %60, %59
  store i32 %61, ptr %8, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %62

62:                                               ; preds = %26
  %63 = load i32, ptr %9, align 4, !tbaa !15
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %9, align 4, !tbaa !15
  br label %22, !llvm.loop !19

65:                                               ; preds = %25
  %66 = load i32, ptr %8, align 4, !tbaa !15
  %67 = getelementptr inbounds %"class.squish::SingleColourFit", ptr %15, i32 0, i32 5
  %68 = load i32, ptr %67, align 4, !tbaa !9
  %69 = icmp slt i32 %66, %68
  br i1 %69, label %70, label %115

70:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #4
  %71 = getelementptr inbounds [3 x ptr], ptr %7, i64 0, i64 0
  %72 = load ptr, ptr %71, align 16, !tbaa !5
  %73 = getelementptr inbounds %"struct.squish::SourceBlock", ptr %72, i32 0, i32 0
  %74 = load i8, ptr %73, align 1, !tbaa !21
  %75 = uitofp i8 %74 to float
  %76 = fdiv float %75, 3.100000e+01
  %77 = getelementptr inbounds [3 x ptr], ptr %7, i64 0, i64 1
  %78 = load ptr, ptr %77, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.squish::SourceBlock", ptr %78, i32 0, i32 0
  %80 = load i8, ptr %79, align 1, !tbaa !21
  %81 = uitofp i8 %80 to float
  %82 = fdiv float %81, 6.300000e+01
  %83 = getelementptr inbounds [3 x ptr], ptr %7, i64 0, i64 2
  %84 = load ptr, ptr %83, align 16, !tbaa !5
  %85 = getelementptr inbounds %"struct.squish::SourceBlock", ptr %84, i32 0, i32 0
  %86 = load i8, ptr %85, align 1, !tbaa !21
  %87 = uitofp i8 %86 to float
  %88 = fdiv float %87, 3.100000e+01
  call void @_ZN6squish4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %13, float noundef %76, float noundef %82, float noundef %88)
  %89 = getelementptr inbounds %"class.squish::SingleColourFit", ptr %15, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %89, ptr align 4 %13, i64 12, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #4
  %90 = getelementptr inbounds [3 x ptr], ptr %7, i64 0, i64 0
  %91 = load ptr, ptr %90, align 16, !tbaa !5
  %92 = getelementptr inbounds %"struct.squish::SourceBlock", ptr %91, i32 0, i32 1
  %93 = load i8, ptr %92, align 1, !tbaa !24
  %94 = uitofp i8 %93 to float
  %95 = fdiv float %94, 3.100000e+01
  %96 = getelementptr inbounds [3 x ptr], ptr %7, i64 0, i64 1
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.squish::SourceBlock", ptr %97, i32 0, i32 1
  %99 = load i8, ptr %98, align 1, !tbaa !24
  %100 = uitofp i8 %99 to float
  %101 = fdiv float %100, 6.300000e+01
  %102 = getelementptr inbounds [3 x ptr], ptr %7, i64 0, i64 2
  %103 = load ptr, ptr %102, align 16, !tbaa !5
  %104 = getelementptr inbounds %"struct.squish::SourceBlock", ptr %103, i32 0, i32 1
  %105 = load i8, ptr %104, align 1, !tbaa !24
  %106 = uitofp i8 %105 to float
  %107 = fdiv float %106, 3.100000e+01
  call void @_ZN6squish4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %14, float noundef %95, float noundef %101, float noundef %107)
  %108 = getelementptr inbounds %"class.squish::SingleColourFit", ptr %15, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %108, ptr align 4 %14, i64 12, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #4
  %109 = load i32, ptr %5, align 4, !tbaa !15
  %110 = mul nsw i32 2, %109
  %111 = trunc i32 %110 to i8
  %112 = getelementptr inbounds %"class.squish::SingleColourFit", ptr %15, i32 0, i32 4
  store i8 %111, ptr %112, align 8, !tbaa !25
  %113 = load i32, ptr %8, align 4, !tbaa !15
  %114 = getelementptr inbounds %"class.squish::SingleColourFit", ptr %15, i32 0, i32 5
  store i32 %113, ptr %114, align 4, !tbaa !9
  br label %115

115:                                              ; preds = %70, %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #4
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %5, align 4, !tbaa !15
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %5, align 4, !tbaa !15
  br label %17, !llvm.loop !26

119:                                              ; preds = %20
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6squish4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!10, !12, i64 52}
!10 = !{!"_ZTSN6squish15SingleColourFitE", !11, i64 0, !7, i64 20, !13, i64 24, !13, i64 36, !7, i64 48, !12, i64 52, !12, i64 56}
!11 = !{!"_ZTSN6squish9ColourFitE", !6, i64 8, !12, i64 16}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSN6squish4Vec3E", !14, i64 0, !14, i64 4, !14, i64 8}
!14 = !{!"float", !7, i64 0}
!15 = !{!12, !12, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!18, !7, i64 2}
!18 = !{!"_ZTSN6squish11SourceBlockE", !7, i64 0, !7, i64 1, !7, i64 2}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!18, !7, i64 0}
!22 = !{i64 0, i64 4, !23, i64 4, i64 4, !23, i64 8, i64 4, !23}
!23 = !{!14, !14, i64 0}
!24 = !{!18, !7, i64 1}
!25 = !{!10, !7, i64 48}
!26 = distinct !{!26, !20}


; 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.squish::Vec3" = type { float, float, float }
%"struct.squish::SingleColourLookup" = type { [2 x %"struct.squish::SourceBlock"] }
%"struct.squish::SourceBlock" = type { i8, i8, i8 }

; 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: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN6squish15SingleColourFit16ComputeEndPointsEPKPKNS_18SingleColourLookupE(ptr nocapture noundef nonnull align 8 dereferenceable(60) %0, ptr nocapture noundef readonly %1) local_unnamed_addr #2 align 2 {
  %3 = alloca %"class.squish::Vec3", align 4
  %4 = alloca %"class.squish::Vec3", align 4
  %5 = getelementptr inbounds i8, ptr %0, i64 52
  store i32 2147483647, ptr %5, align 4, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 20
  %7 = getelementptr inbounds i8, ptr %0, i64 24
  %8 = getelementptr inbounds i8, ptr %0, i64 36
  %9 = getelementptr inbounds i8, ptr %0, i64 48
  %10 = load ptr, ptr %1, align 8, !tbaa !14
  %11 = load i8, ptr %6, align 4, !tbaa !15
  %12 = zext i8 %11 to i64
  %13 = getelementptr inbounds %"struct.squish::SingleColourLookup", ptr %10, i64 %12
  %14 = getelementptr inbounds i8, ptr %13, i64 2
  %15 = load i8, ptr %14, align 1, !tbaa !16
  %16 = zext i8 %15 to i32
  %17 = mul nuw nsw i32 %16, %16
  %18 = getelementptr inbounds i8, ptr %1, i64 8
  %19 = load ptr, ptr %18, align 8, !tbaa !14
  %20 = getelementptr inbounds i8, ptr %0, i64 21
  %21 = load i8, ptr %20, align 1, !tbaa !15
  %22 = zext i8 %21 to i64
  %23 = getelementptr inbounds %"struct.squish::SingleColourLookup", ptr %19, i64 %22
  %24 = getelementptr inbounds i8, ptr %23, i64 2
  %25 = load i8, ptr %24, align 1, !tbaa !16
  %26 = zext i8 %25 to i32
  %27 = mul nuw nsw i32 %26, %26
  %28 = add nuw nsw i32 %27, %17
  %29 = getelementptr inbounds i8, ptr %1, i64 16
  %30 = load ptr, ptr %29, align 8, !tbaa !14
  %31 = getelementptr inbounds i8, ptr %0, i64 22
  %32 = load i8, ptr %31, align 2, !tbaa !15
  %33 = zext i8 %32 to i64
  %34 = getelementptr inbounds %"struct.squish::SingleColourLookup", ptr %30, i64 %33
  %35 = getelementptr inbounds i8, ptr %34, i64 2
  %36 = load i8, ptr %35, align 1, !tbaa !16
  %37 = zext i8 %36 to i32
  %38 = mul nuw nsw i32 %37, %37
  %39 = add nuw nsw i32 %38, %28
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #3
  %40 = load i8, ptr %13, align 1, !tbaa !18
  %41 = uitofp i8 %40 to float
  %42 = fdiv float %41, 3.100000e+01
  %43 = load i8, ptr %23, align 1, !tbaa !18
  %44 = uitofp i8 %43 to float
  %45 = fdiv float %44, 6.300000e+01
  %46 = load i8, ptr %34, align 1, !tbaa !18
  %47 = uitofp i8 %46 to float
  %48 = fdiv float %47, 3.100000e+01
  call void @_ZN6squish4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %3, float noundef %42, float noundef %45, float noundef %48)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %3, i64 12, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #3
  %49 = getelementptr inbounds i8, ptr %13, i64 1
  %50 = load i8, ptr %49, align 1, !tbaa !21
  %51 = uitofp i8 %50 to float
  %52 = fdiv float %51, 3.100000e+01
  %53 = getelementptr inbounds i8, ptr %23, i64 1
  %54 = load i8, ptr %53, align 1, !tbaa !21
  %55 = uitofp i8 %54 to float
  %56 = fdiv float %55, 6.300000e+01
  %57 = getelementptr inbounds i8, ptr %34, i64 1
  %58 = load i8, ptr %57, align 1, !tbaa !21
  %59 = uitofp i8 %58 to float
  %60 = fdiv float %59, 3.100000e+01
  call void @_ZN6squish4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %4, float noundef %52, float noundef %56, float noundef %60)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %4, i64 12, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #3
  store i8 0, ptr %9, align 8, !tbaa !22
  store i32 %39, ptr %5, align 4, !tbaa !5
  %.pre32 = load i8, ptr %31, align 2, !tbaa !15
  %.pre36 = zext i8 %.pre32 to i64
  %.pre30 = load i8, ptr %20, align 1, !tbaa !15
  %.pre34 = zext i8 %.pre30 to i64
  %.pre28 = load i8, ptr %6, align 4, !tbaa !15
  %.pre33 = zext i8 %.pre28 to i64
  %.pre31 = load ptr, ptr %29, align 8, !tbaa !14
  %.pre29 = load ptr, ptr %18, align 8, !tbaa !14
  %.pre = load ptr, ptr %1, align 8, !tbaa !14
  %61 = getelementptr inbounds %"struct.squish::SingleColourLookup", ptr %.pre, i64 %.pre33, i32 0, i64 1
  %62 = getelementptr inbounds i8, ptr %61, i64 2
  %63 = load i8, ptr %62, align 1, !tbaa !16
  %64 = zext i8 %63 to i32
  %65 = mul nuw nsw i32 %64, %64
  %66 = getelementptr inbounds %"struct.squish::SingleColourLookup", ptr %.pre29, i64 %.pre34, i32 0, i64 1
  %67 = getelementptr inbounds i8, ptr %66, i64 2
  %68 = load i8, ptr %67, align 1, !tbaa !16
  %69 = zext i8 %68 to i32
  %70 = mul nuw nsw i32 %69, %69
  %71 = add nuw nsw i32 %70, %65
  %72 = getelementptr inbounds %"struct.squish::SingleColourLookup", ptr %.pre31, i64 %.pre36, i32 0, i64 1
  %73 = getelementptr inbounds i8, ptr %72, i64 2
  %74 = load i8, ptr %73, align 1, !tbaa !16
  %75 = zext i8 %74 to i32
  %76 = mul nuw nsw i32 %75, %75
  %77 = add nuw nsw i32 %76, %71
  %78 = icmp ult i32 %77, %39
  br i1 %78, label %79, label %101

79:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #3
  %80 = load i8, ptr %61, align 1, !tbaa !18
  %81 = uitofp i8 %80 to float
  %82 = fdiv float %81, 3.100000e+01
  %83 = load i8, ptr %66, align 1, !tbaa !18
  %84 = uitofp i8 %83 to float
  %85 = fdiv float %84, 6.300000e+01
  %86 = load i8, ptr %72, align 1, !tbaa !18
  %87 = uitofp i8 %86 to float
  %88 = fdiv float %87, 3.100000e+01
  call void @_ZN6squish4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %3, float noundef %82, float noundef %85, float noundef %88)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %3, i64 12, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #3
  %89 = getelementptr inbounds i8, ptr %61, i64 1
  %90 = load i8, ptr %89, align 1, !tbaa !21
  %91 = uitofp i8 %90 to float
  %92 = fdiv float %91, 3.100000e+01
  %93 = getelementptr inbounds i8, ptr %66, i64 1
  %94 = load i8, ptr %93, align 1, !tbaa !21
  %95 = uitofp i8 %94 to float
  %96 = fdiv float %95, 6.300000e+01
  %97 = getelementptr inbounds i8, ptr %72, i64 1
  %98 = load i8, ptr %97, align 1, !tbaa !21
  %99 = uitofp i8 %98 to float
  %100 = fdiv float %99, 3.100000e+01
  call void @_ZN6squish4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %4, float noundef %92, float noundef %96, float noundef %100)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %8, ptr noundef nonnull align 4 dereferenceable(12) %4, i64 12, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #3
  store i8 2, ptr %9, align 8, !tbaa !22
  store i32 %77, ptr %5, align 4, !tbaa !5
  br label %101

101:                                              ; preds = %79, %2
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6squish4Vec3C2Efff(ptr noundef nonnull align 4 dereferenceable(12), float noundef, float noundef, float noundef) unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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" }
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, !11, i64 52}
!6 = !{!"_ZTSN6squish15SingleColourFitE", !7, i64 0, !9, i64 20, !12, i64 24, !12, i64 36, !9, i64 48, !11, i64 52, !11, i64 56}
!7 = !{!"_ZTSN6squish9ColourFitE", !8, i64 8, !11, i64 16}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"_ZTSN6squish4Vec3E", !13, i64 0, !13, i64 4, !13, i64 8}
!13 = !{!"float", !9, i64 0}
!14 = !{!8, !8, i64 0}
!15 = !{!9, !9, i64 0}
!16 = !{!17, !9, i64 2}
!17 = !{!"_ZTSN6squish11SourceBlockE", !9, i64 0, !9, i64 1, !9, i64 2}
!18 = !{!17, !9, i64 0}
!19 = !{i64 0, i64 4, !20, i64 4, i64 4, !20, i64 8, i64 4, !20}
!20 = !{!13, !13, i64 0}
!21 = !{!17, !9, i64 1}
!22 = !{!6, !9, i64 48}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass