; LLVM IR from Try/Tempest :: Engine/thirdparty/squish/colourblock.ll (ZN6squish17WriteColourBlock3ERKNS_4Vec3ES2_PKhPv)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6squish17WriteColourBlock3ERKNS_4Vec3ES2_PKhPv(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef %2, ptr noundef %3) #0 {
  %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 i32, align 4
  %11 = alloca [16 x i8], align 16
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  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
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = call noundef i32 @_ZN6squishL10FloatTo565ERKNS_4Vec3E(ptr noundef nonnull align 4 dereferenceable(12) %14)
  store i32 %15, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = call noundef i32 @_ZN6squishL10FloatTo565ERKNS_4Vec3E(ptr noundef nonnull align 4 dereferenceable(12) %16)
  store i32 %17, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #4
  %18 = load i32, ptr %9, align 4, !tbaa !9
  %19 = load i32, ptr %10, align 4, !tbaa !9
  %20 = icmp sle i32 %18, %19
  br i1 %20, label %21, label %39

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

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

25:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %38

26:                                               ; preds = %22
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = load i32, ptr %12, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds i8, ptr %27, i64 %29
  %31 = load i8, ptr %30, align 1, !tbaa !11
  %32 = load i32, ptr %12, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [16 x i8], ptr %11, i64 0, i64 %33
  store i8 %31, ptr %34, align 1, !tbaa !11
  br label %35

35:                                               ; preds = %26
  %36 = load i32, ptr %12, align 4, !tbaa !9
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %12, align 4, !tbaa !9
  br label %22, !llvm.loop !12

38:                                               ; preds = %25
  br label %83

39:                                               ; preds = %4
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %79, %39
  %41 = load i32, ptr %13, align 4, !tbaa !9
  %42 = icmp slt i32 %41, 16
  br i1 %42, label %44, label %43

43:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %82

44:                                               ; preds = %40
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = load i32, ptr %13, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds i8, ptr %45, i64 %47
  %49 = load i8, ptr %48, align 1, !tbaa !11
  %50 = zext i8 %49 to i32
  %51 = icmp eq i32 %50, 0
  br i1 %51, label %52, label %56

52:                                               ; preds = %44
  %53 = load i32, ptr %13, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [16 x i8], ptr %11, i64 0, i64 %54
  store i8 1, ptr %55, align 1, !tbaa !11
  br label %78

56:                                               ; preds = %44
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = load i32, ptr %13, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds i8, ptr %57, i64 %59
  %61 = load i8, ptr %60, align 1, !tbaa !11
  %62 = zext i8 %61 to i32
  %63 = icmp eq i32 %62, 1
  br i1 %63, label %64, label %68

64:                                               ; preds = %56
  %65 = load i32, ptr %13, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [16 x i8], ptr %11, i64 0, i64 %66
  store i8 0, ptr %67, align 1, !tbaa !11
  br label %77

68:                                               ; preds = %56
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = load i32, ptr %13, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds i8, ptr %69, i64 %71
  %73 = load i8, ptr %72, align 1, !tbaa !11
  %74 = load i32, ptr %13, align 4, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [16 x i8], ptr %11, i64 0, i64 %75
  store i8 %73, ptr %76, align 1, !tbaa !11
  br label %77

77:                                               ; preds = %68, %64
  br label %78

78:                                               ; preds = %77, %52
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %13, align 4, !tbaa !9
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %13, align 4, !tbaa !9
  br label %40, !llvm.loop !14

82:                                               ; preds = %43
  br label %83

83:                                               ; preds = %82, %38
  %84 = load i32, ptr %9, align 4, !tbaa !9
  %85 = load i32, ptr %10, align 4, !tbaa !9
  %86 = getelementptr inbounds [16 x i8], ptr %11, i64 0, i64 0
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN6squishL16WriteColourBlockEiiPhPv(i32 noundef %84, i32 noundef %85, ptr noundef %86, ptr noundef %87)
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN6squishL10FloatTo565ERKNS_4Vec3E(ptr noundef nonnull align 4 dereferenceable(12)) #0

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN6squishL16WriteColourBlockEiiPhPv(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #3

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}


; 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 uwtable
define dso_local void @_ZN6squish17WriteColourBlock3ERKNS_4Vec3ES2_PKhPv(ptr noundef nonnull align 4 dereferenceable(12) %0, ptr noundef nonnull align 4 dereferenceable(12) %1, ptr nocapture noundef readonly %2, ptr noundef %3) local_unnamed_addr #0 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca [16 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %8 = tail call noundef i32 @_ZN6squishL10FloatTo565ERKNS_4Vec3E(ptr noundef nonnull align 4 dereferenceable(12) %0)
  store i32 %8, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %9 = tail call noundef i32 @_ZN6squishL10FloatTo565ERKNS_4Vec3E(ptr noundef nonnull align 4 dereferenceable(12) %1)
  store i32 %9, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %.not = icmp sgt i32 %8, %9
  br i1 %.not, label %10, label %.preheader.preheader

.preheader.preheader:                             ; preds = %4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %7, ptr noundef nonnull align 1 dereferenceable(16) %2, i64 16, i1 false), !tbaa !9
  br label %.loopexit

10:                                               ; preds = %4
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6) #5
  %11 = load i8, ptr %2, align 1, !tbaa !9
  switch i8 %11, label %14 [
    i8 0, label %12
    i8 1, label %13
  ]

12:                                               ; preds = %10
  store i8 1, ptr %7, align 16, !tbaa !9
  br label %15

13:                                               ; preds = %10
  store i8 0, ptr %7, align 16, !tbaa !9
  br label %15

14:                                               ; preds = %10
  store i8 %11, ptr %7, align 16, !tbaa !9
  br label %15

15:                                               ; preds = %12, %14, %13
  %16 = getelementptr inbounds i8, ptr %2, i64 1
  %17 = load i8, ptr %16, align 1, !tbaa !9
  %18 = getelementptr inbounds i8, ptr %7, i64 1
  switch i8 %17, label %20 [
    i8 0, label %19
    i8 1, label %21
  ]

19:                                               ; preds = %15
  br label %21

20:                                               ; preds = %15
  br label %21

21:                                               ; preds = %15, %20, %19
  %.sink = phi i8 [ %17, %20 ], [ 1, %19 ], [ 0, %15 ]
  store i8 %.sink, ptr %18, align 1, !tbaa !9
  %22 = getelementptr inbounds i8, ptr %2, i64 2
  %23 = load i8, ptr %22, align 1, !tbaa !9
  switch i8 %23, label %25 [
    i8 0, label %24
    i8 1, label %26
  ]

24:                                               ; preds = %21
  br label %26

25:                                               ; preds = %21
  br label %26

26:                                               ; preds = %21, %25, %24
  %.sink27 = phi i8 [ %23, %25 ], [ 1, %24 ], [ 0, %21 ]
  %27 = getelementptr inbounds i8, ptr %7, i64 2
  store i8 %.sink27, ptr %27, align 2, !tbaa !9
  %28 = getelementptr inbounds i8, ptr %2, i64 3
  %29 = load i8, ptr %28, align 1, !tbaa !9
  switch i8 %29, label %31 [
    i8 0, label %30
    i8 1, label %32
  ]

30:                                               ; preds = %26
  br label %32

31:                                               ; preds = %26
  br label %32

32:                                               ; preds = %26, %31, %30
  %.sink29 = phi i8 [ %29, %31 ], [ 1, %30 ], [ 0, %26 ]
  %33 = getelementptr inbounds i8, ptr %7, i64 3
  store i8 %.sink29, ptr %33, align 1, !tbaa !9
  %34 = getelementptr inbounds i8, ptr %2, i64 4
  %35 = load i8, ptr %34, align 1, !tbaa !9
  switch i8 %35, label %37 [
    i8 0, label %36
    i8 1, label %38
  ]

36:                                               ; preds = %32
  br label %38

37:                                               ; preds = %32
  br label %38

38:                                               ; preds = %32, %37, %36
  %.sink31 = phi i8 [ %35, %37 ], [ 1, %36 ], [ 0, %32 ]
  %39 = getelementptr inbounds i8, ptr %7, i64 4
  store i8 %.sink31, ptr %39, align 4, !tbaa !9
  %40 = getelementptr inbounds i8, ptr %2, i64 5
  %41 = load i8, ptr %40, align 1, !tbaa !9
  switch i8 %41, label %43 [
    i8 0, label %42
    i8 1, label %44
  ]

42:                                               ; preds = %38
  br label %44

43:                                               ; preds = %38
  br label %44

44:                                               ; preds = %38, %43, %42
  %.sink33 = phi i8 [ %41, %43 ], [ 1, %42 ], [ 0, %38 ]
  %45 = getelementptr inbounds i8, ptr %7, i64 5
  store i8 %.sink33, ptr %45, align 1, !tbaa !9
  %46 = getelementptr inbounds i8, ptr %2, i64 6
  %47 = load i8, ptr %46, align 1, !tbaa !9
  switch i8 %47, label %49 [
    i8 0, label %48
    i8 1, label %50
  ]

48:                                               ; preds = %44
  br label %50

49:                                               ; preds = %44
  br label %50

50:                                               ; preds = %44, %49, %48
  %.sink35 = phi i8 [ %47, %49 ], [ 1, %48 ], [ 0, %44 ]
  %51 = getelementptr inbounds i8, ptr %7, i64 6
  store i8 %.sink35, ptr %51, align 2, !tbaa !9
  %52 = getelementptr inbounds i8, ptr %2, i64 7
  %53 = load i8, ptr %52, align 1, !tbaa !9
  switch i8 %53, label %55 [
    i8 0, label %54
    i8 1, label %56
  ]

54:                                               ; preds = %50
  br label %56

55:                                               ; preds = %50
  br label %56

56:                                               ; preds = %50, %55, %54
  %.sink37 = phi i8 [ %53, %55 ], [ 1, %54 ], [ 0, %50 ]
  %57 = getelementptr inbounds i8, ptr %7, i64 7
  store i8 %.sink37, ptr %57, align 1, !tbaa !9
  %58 = getelementptr inbounds i8, ptr %2, i64 8
  %59 = load i8, ptr %58, align 1, !tbaa !9
  switch i8 %59, label %61 [
    i8 0, label %60
    i8 1, label %62
  ]

60:                                               ; preds = %56
  br label %62

61:                                               ; preds = %56
  br label %62

62:                                               ; preds = %56, %61, %60
  %.sink39 = phi i8 [ %59, %61 ], [ 1, %60 ], [ 0, %56 ]
  %63 = getelementptr inbounds i8, ptr %7, i64 8
  store i8 %.sink39, ptr %63, align 8, !tbaa !9
  %64 = getelementptr inbounds i8, ptr %2, i64 9
  %65 = load i8, ptr %64, align 1, !tbaa !9
  switch i8 %65, label %67 [
    i8 0, label %66
    i8 1, label %68
  ]

66:                                               ; preds = %62
  br label %68

67:                                               ; preds = %62
  br label %68

68:                                               ; preds = %62, %67, %66
  %.sink41 = phi i8 [ %65, %67 ], [ 1, %66 ], [ 0, %62 ]
  %69 = getelementptr inbounds i8, ptr %7, i64 9
  store i8 %.sink41, ptr %69, align 1, !tbaa !9
  %70 = getelementptr inbounds i8, ptr %2, i64 10
  %71 = load i8, ptr %70, align 1, !tbaa !9
  switch i8 %71, label %73 [
    i8 0, label %72
    i8 1, label %74
  ]

72:                                               ; preds = %68
  br label %74

73:                                               ; preds = %68
  br label %74

74:                                               ; preds = %68, %73, %72
  %.sink43 = phi i8 [ %71, %73 ], [ 1, %72 ], [ 0, %68 ]
  %75 = getelementptr inbounds i8, ptr %7, i64 10
  store i8 %.sink43, ptr %75, align 2, !tbaa !9
  %76 = getelementptr inbounds i8, ptr %2, i64 11
  %77 = load i8, ptr %76, align 1, !tbaa !9
  switch i8 %77, label %79 [
    i8 0, label %78
    i8 1, label %80
  ]

78:                                               ; preds = %74
  br label %80

79:                                               ; preds = %74
  br label %80

80:                                               ; preds = %74, %79, %78
  %.sink45 = phi i8 [ %77, %79 ], [ 1, %78 ], [ 0, %74 ]
  %81 = getelementptr inbounds i8, ptr %7, i64 11
  store i8 %.sink45, ptr %81, align 1, !tbaa !9
  %82 = getelementptr inbounds i8, ptr %2, i64 12
  %83 = load i8, ptr %82, align 1, !tbaa !9
  switch i8 %83, label %85 [
    i8 0, label %84
    i8 1, label %86
  ]

84:                                               ; preds = %80
  br label %86

85:                                               ; preds = %80
  br label %86

86:                                               ; preds = %80, %85, %84
  %.sink47 = phi i8 [ %83, %85 ], [ 1, %84 ], [ 0, %80 ]
  %87 = getelementptr inbounds i8, ptr %7, i64 12
  store i8 %.sink47, ptr %87, align 4, !tbaa !9
  %88 = getelementptr inbounds i8, ptr %2, i64 13
  %89 = load i8, ptr %88, align 1, !tbaa !9
  switch i8 %89, label %91 [
    i8 0, label %90
    i8 1, label %92
  ]

90:                                               ; preds = %86
  br label %92

91:                                               ; preds = %86
  br label %92

92:                                               ; preds = %86, %91, %90
  %.sink49 = phi i8 [ %89, %91 ], [ 1, %90 ], [ 0, %86 ]
  %93 = getelementptr inbounds i8, ptr %7, i64 13
  store i8 %.sink49, ptr %93, align 1, !tbaa !9
  %94 = getelementptr inbounds i8, ptr %2, i64 14
  %95 = load i8, ptr %94, align 1, !tbaa !9
  switch i8 %95, label %97 [
    i8 0, label %96
    i8 1, label %98
  ]

96:                                               ; preds = %92
  br label %98

97:                                               ; preds = %92
  br label %98

98:                                               ; preds = %92, %97, %96
  %.sink51 = phi i8 [ %95, %97 ], [ 1, %96 ], [ 0, %92 ]
  %99 = getelementptr inbounds i8, ptr %7, i64 14
  store i8 %.sink51, ptr %99, align 2, !tbaa !9
  %100 = getelementptr inbounds i8, ptr %2, i64 15
  %101 = load i8, ptr %100, align 1, !tbaa !9
  switch i8 %101, label %103 [
    i8 0, label %102
    i8 1, label %.loopexit.loopexit
  ]

102:                                              ; preds = %98
  br label %.loopexit.loopexit

103:                                              ; preds = %98
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %98, %103, %102
  %.sink53 = phi i8 [ %101, %103 ], [ 1, %102 ], [ 0, %98 ]
  %104 = getelementptr inbounds i8, ptr %7, i64 15
  store i8 %.sink53, ptr %104, align 1, !tbaa !9
  %.pre = load i32, ptr %5, align 4, !tbaa !5
  %.pre26 = load i32, ptr %6, align 4, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader.preheader, %.loopexit.loopexit
  %105 = phi i32 [ %9, %.preheader.preheader ], [ %.pre26, %.loopexit.loopexit ]
  %106 = phi i32 [ %8, %.preheader.preheader ], [ %.pre, %.loopexit.loopexit ]
  call void @_ZN6squishL16WriteColourBlockEiiPhPv(i32 noundef %106, i32 noundef %105, ptr noundef nonnull %7, ptr noundef %3)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN6squishL10FloatTo565ERKNS_4Vec3E(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN6squishL16WriteColourBlockEiiPhPv(i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; 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) #4

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass