; LLVM IR from facebookresearch/habitat-sim :: src/deps/basis-universal/encoder (basisu_pvrtc1_4)

; 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.basisu::color_rgba" = type { %union.anon }
%union.anon = type { [4 x i8] }
%"class.basisu::pvrtc4_image" = type <{ i32, i32, %"class.basisu::vector2D", i32, i32, i8, [7 x i8] }>
%"class.basisu::vector2D" = type { i32, i32, %"class.basisu::vector" }
%"class.basisu::vector" = type { ptr, i32, i32 }

@.str.3 = external hidden unnamed_addr constant [115 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [32 x i8], align 1
@__PRETTY_FUNCTION__._ZNK6basisu12pvrtc4_image9get_pixelEjjj = external hidden unnamed_addr constant [79 x i8], align 1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu10color_rgbaC2Eiiii(ptr noundef nonnull align 1 dereferenceable(4), i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6basisu6posmodEii(i32 noundef, i32 noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZNK6basisu12pvrtc4_image11interpolateEiiRKNS_10color_rgbaES3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(41), i32 noundef, i32 noundef, ptr noundef nonnull align 1 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(4)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK6basisu12pvrtc4_image37get_block_uses_transparent_modulationEjj(ptr noundef nonnull align 8 dereferenceable(41), i32 noundef, i32 noundef) #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @_ZNK6basisu12pvrtc4_image9get_pixelEjjj(ptr noundef nonnull align 8 dereferenceable(41) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #3 align 2 {
  %5 = alloca %"class.basisu::color_rgba", align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %"class.basisu::color_rgba", align 1
  %15 = alloca %"class.basisu::color_rgba", align 1
  %16 = alloca %"class.basisu::color_rgba", align 1
  %17 = alloca %"class.basisu::color_rgba", align 1
  %18 = alloca i32, align 4
  %19 = alloca %"class.basisu::color_rgba", align 1
  %20 = alloca %"class.basisu::color_rgba", align 1
  %21 = alloca %"class.basisu::color_rgba", align 1
  %22 = alloca %"class.basisu::color_rgba", align 1
  %23 = alloca %"class.basisu::color_rgba", align 1
  %24 = alloca %"class.basisu::color_rgba", align 1
  %25 = alloca %"class.basisu::color_rgba", align 1
  %26 = alloca %"class.basisu::color_rgba", align 1
  %27 = alloca %"class.basisu::color_rgba", align 1
  %28 = alloca %"class.basisu::color_rgba", align 1
  %29 = alloca %"class.basisu::color_rgba", align 1
  %30 = alloca %"class.basisu::color_rgba", align 1
  %31 = alloca %"class.basisu::color_rgba", align 1
  %32 = alloca %"class.basisu::color_rgba", align 1
  %33 = alloca %"class.basisu::color_rgba", align 1
  %34 = alloca %"class.basisu::color_rgba", align 1
  %35 = alloca %"class.basisu::color_rgba", align 1
  %36 = alloca %"class.basisu::color_rgba", align 1
  %37 = alloca %"class.basisu::color_rgba", align 1
  %38 = alloca %"class.basisu::color_rgba", align 1
  %39 = alloca %"class.basisu::color_rgba", align 1
  %40 = alloca %"class.basisu::color_rgba", align 1
  %41 = alloca %"class.basisu::color_rgba", align 1
  %42 = alloca %"class.basisu::color_rgba", align 1
  %43 = alloca %"class.basisu::color_rgba", align 1
  %44 = alloca %"class.basisu::color_rgba", align 1
  %45 = alloca %"class.basisu::color_rgba", align 1
  %46 = alloca %"class.basisu::color_rgba", align 1
  %47 = alloca %"class.basisu::color_rgba", align 1
  %48 = alloca %"class.basisu::color_rgba", align 1
  %49 = alloca %"class.basisu::color_rgba", align 1
  %50 = alloca %"class.basisu::color_rgba", align 1
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  %51 = load ptr, ptr %6, align 8
  %52 = load i32, ptr %7, align 4, !tbaa !9
  %53 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 0
  %54 = load i32, ptr %53, align 8, !tbaa !11
  %55 = icmp ult i32 %52, %54
  br i1 %55, label %56, label %61

56:                                               ; preds = %4
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 1
  %59 = load i32, ptr %58, align 4, !tbaa !16
  %60 = icmp ult i32 %57, %59
  br label %61

61:                                               ; preds = %56, %4
  %62 = phi i1 [ false, %4 ], [ %60, %56 ]
  br i1 %62, label %63, label %64

63:                                               ; preds = %61
  br label %66

64:                                               ; preds = %61
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.3, i32 noundef 340, ptr noundef @__PRETTY_FUNCTION__._ZNK6basisu12pvrtc4_image9get_pixelEjjj) #5
  unreachable

65:                                               ; No predecessors!
  br label %66

66:                                               ; preds = %65, %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %67 = load i32, ptr %7, align 4, !tbaa !9
  %68 = sub nsw i32 %67, 2
  %69 = ashr i32 %68, 2
  store i32 %69, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %70 = load i32, ptr %10, align 4, !tbaa !9
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %72 = load i32, ptr %8, align 4, !tbaa !9
  %73 = sub nsw i32 %72, 2
  %74 = ashr i32 %73, 2
  store i32 %74, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %75 = load i32, ptr %12, align 4, !tbaa !9
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %13, align 4, !tbaa !9
  %77 = load i32, ptr %10, align 4, !tbaa !9
  %78 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 3
  %79 = load i32, ptr %78, align 8, !tbaa !17
  %80 = call noundef i32 @_ZN6basisu6posmodEii(i32 noundef %77, i32 noundef %79)
  store i32 %80, ptr %10, align 4, !tbaa !9
  %81 = load i32, ptr %11, align 4, !tbaa !9
  %82 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 3
  %83 = load i32, ptr %82, align 8, !tbaa !17
  %84 = call noundef i32 @_ZN6basisu6posmodEii(i32 noundef %81, i32 noundef %83)
  store i32 %84, ptr %11, align 4, !tbaa !9
  %85 = load i32, ptr %12, align 4, !tbaa !9
  %86 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 4
  %87 = load i32, ptr %86, align 4, !tbaa !18
  %88 = call noundef i32 @_ZN6basisu6posmodEii(i32 noundef %85, i32 noundef %87)
  store i32 %88, ptr %12, align 4, !tbaa !9
  %89 = load i32, ptr %13, align 4, !tbaa !9
  %90 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 4
  %91 = load i32, ptr %90, align 4, !tbaa !18
  %92 = call noundef i32 @_ZN6basisu6posmodEii(i32 noundef %89, i32 noundef %91)
  store i32 %92, ptr %13, align 4, !tbaa !9
  %93 = load i32, ptr %7, align 4, !tbaa !9
  %94 = lshr i32 %93, 2
  %95 = load i32, ptr %8, align 4, !tbaa !9
  %96 = lshr i32 %95, 2
  %97 = call noundef zeroext i1 @_ZNK6basisu12pvrtc4_image37get_block_uses_transparent_modulationEjj(ptr noundef nonnull align 8 dereferenceable(41) %51, i32 noundef %94, i32 noundef %96)
  br i1 %97, label %98, label %278

98:                                               ; preds = %66
  %99 = load i32, ptr %9, align 4, !tbaa !9
  %100 = icmp eq i32 %99, 0
  br i1 %100, label %101, label %135

101:                                              ; preds = %98
  %102 = load i32, ptr %7, align 4, !tbaa !9
  %103 = load i32, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %104 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %105 = load i32, ptr %10, align 4, !tbaa !9
  %106 = load i32, ptr %12, align 4, !tbaa !9
  %107 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %104, i32 noundef %105, i32 noundef %106)
  %108 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %107, i32 noundef 0)
  %109 = getelementptr inbounds %"class.basisu::color_rgba", ptr %14, i32 0, i32 0
  %110 = getelementptr inbounds %union.anon, ptr %109, i32 0, i32 0
  store i32 %108, ptr %110, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %111 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %112 = load i32, ptr %11, align 4, !tbaa !9
  %113 = load i32, ptr %12, align 4, !tbaa !9
  %114 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %111, i32 noundef %112, i32 noundef %113)
  %115 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %114, i32 noundef 0)
  %116 = getelementptr inbounds %"class.basisu::color_rgba", ptr %15, i32 0, i32 0
  %117 = getelementptr inbounds %union.anon, ptr %116, i32 0, i32 0
  store i32 %115, ptr %117, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %118 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %119 = load i32, ptr %10, align 4, !tbaa !9
  %120 = load i32, ptr %13, align 4, !tbaa !9
  %121 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %118, i32 noundef %119, i32 noundef %120)
  %122 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %121, i32 noundef 0)
  %123 = getelementptr inbounds %"class.basisu::color_rgba", ptr %16, i32 0, i32 0
  %124 = getelementptr inbounds %union.anon, ptr %123, i32 0, i32 0
  store i32 %122, ptr %124, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %125 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %126 = load i32, ptr %11, align 4, !tbaa !9
  %127 = load i32, ptr %13, align 4, !tbaa !9
  %128 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %125, i32 noundef %126, i32 noundef %127)
  %129 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %128, i32 noundef 0)
  %130 = getelementptr inbounds %"class.basisu::color_rgba", ptr %17, i32 0, i32 0
  %131 = getelementptr inbounds %union.anon, ptr %130, i32 0, i32 0
  store i32 %129, ptr %131, align 1
  %132 = call i32 @_ZNK6basisu12pvrtc4_image11interpolateEiiRKNS_10color_rgbaES3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(41) %51, i32 noundef %102, i32 noundef %103, ptr noundef nonnull align 1 dereferenceable(4) %14, ptr noundef nonnull align 1 dereferenceable(4) %15, ptr noundef nonnull align 1 dereferenceable(4) %16, ptr noundef nonnull align 1 dereferenceable(4) %17)
  %133 = getelementptr inbounds %"class.basisu::color_rgba", ptr %5, i32 0, i32 0
  %134 = getelementptr inbounds %union.anon, ptr %133, i32 0, i32 0
  store i32 %132, ptr %134, align 1
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  store i32 1, ptr %18, align 4
  br label %505

135:                                              ; preds = %98
  %136 = load i32, ptr %9, align 4, !tbaa !9
  %137 = icmp eq i32 %136, 3
  br i1 %137, label %138, label %172

138:                                              ; preds = %135
  %139 = load i32, ptr %7, align 4, !tbaa !9
  %140 = load i32, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %141 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %142 = load i32, ptr %10, align 4, !tbaa !9
  %143 = load i32, ptr %12, align 4, !tbaa !9
  %144 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %141, i32 noundef %142, i32 noundef %143)
  %145 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %144, i32 noundef 1)
  %146 = getelementptr inbounds %"class.basisu::color_rgba", ptr %19, i32 0, i32 0
  %147 = getelementptr inbounds %union.anon, ptr %146, i32 0, i32 0
  store i32 %145, ptr %147, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %148 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %149 = load i32, ptr %11, align 4, !tbaa !9
  %150 = load i32, ptr %12, align 4, !tbaa !9
  %151 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %148, i32 noundef %149, i32 noundef %150)
  %152 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %151, i32 noundef 1)
  %153 = getelementptr inbounds %"class.basisu::color_rgba", ptr %20, i32 0, i32 0
  %154 = getelementptr inbounds %union.anon, ptr %153, i32 0, i32 0
  store i32 %152, ptr %154, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %155 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %156 = load i32, ptr %10, align 4, !tbaa !9
  %157 = load i32, ptr %13, align 4, !tbaa !9
  %158 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %155, i32 noundef %156, i32 noundef %157)
  %159 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %158, i32 noundef 1)
  %160 = getelementptr inbounds %"class.basisu::color_rgba", ptr %21, i32 0, i32 0
  %161 = getelementptr inbounds %union.anon, ptr %160, i32 0, i32 0
  store i32 %159, ptr %161, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %162 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %163 = load i32, ptr %11, align 4, !tbaa !9
  %164 = load i32, ptr %13, align 4, !tbaa !9
  %165 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %162, i32 noundef %163, i32 noundef %164)
  %166 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %165, i32 noundef 1)
  %167 = getelementptr inbounds %"class.basisu::color_rgba", ptr %22, i32 0, i32 0
  %168 = getelementptr inbounds %union.anon, ptr %167, i32 0, i32 0
  store i32 %166, ptr %168, align 1
  %169 = call i32 @_ZNK6basisu12pvrtc4_image11interpolateEiiRKNS_10color_rgbaES3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(41) %51, i32 noundef %139, i32 noundef %140, ptr noundef nonnull align 1 dereferenceable(4) %19, ptr noundef nonnull align 1 dereferenceable(4) %20, ptr noundef nonnull align 1 dereferenceable(4) %21, ptr noundef nonnull align 1 dereferenceable(4) %22)
  %170 = getelementptr inbounds %"class.basisu::color_rgba", ptr %5, i32 0, i32 0
  %171 = getelementptr inbounds %union.anon, ptr %170, i32 0, i32 0
  store i32 %169, ptr %171, align 1
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  store i32 1, ptr %18, align 4
  br label %505

172:                                              ; preds = %135
  br label %173

173:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %174 = load i32, ptr %7, align 4, !tbaa !9
  %175 = load i32, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %176 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %177 = load i32, ptr %10, align 4, !tbaa !9
  %178 = load i32, ptr %12, align 4, !tbaa !9
  %179 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %176, i32 noundef %177, i32 noundef %178)
  %180 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %179, i32 noundef 0)
  %181 = getelementptr inbounds %"class.basisu::color_rgba", ptr %24, i32 0, i32 0
  %182 = getelementptr inbounds %union.anon, ptr %181, i32 0, i32 0
  store i32 %180, ptr %182, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %183 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %184 = load i32, ptr %11, align 4, !tbaa !9
  %185 = load i32, ptr %12, align 4, !tbaa !9
  %186 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %183, i32 noundef %184, i32 noundef %185)
  %187 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %186, i32 noundef 0)
  %188 = getelementptr inbounds %"class.basisu::color_rgba", ptr %25, i32 0, i32 0
  %189 = getelementptr inbounds %union.anon, ptr %188, i32 0, i32 0
  store i32 %187, ptr %189, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %190 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %191 = load i32, ptr %10, align 4, !tbaa !9
  %192 = load i32, ptr %13, align 4, !tbaa !9
  %193 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %190, i32 noundef %191, i32 noundef %192)
  %194 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %193, i32 noundef 0)
  %195 = getelementptr inbounds %"class.basisu::color_rgba", ptr %26, i32 0, i32 0
  %196 = getelementptr inbounds %union.anon, ptr %195, i32 0, i32 0
  store i32 %194, ptr %196, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %197 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %198 = load i32, ptr %11, align 4, !tbaa !9
  %199 = load i32, ptr %13, align 4, !tbaa !9
  %200 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %197, i32 noundef %198, i32 noundef %199)
  %201 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %200, i32 noundef 0)
  %202 = getelementptr inbounds %"class.basisu::color_rgba", ptr %27, i32 0, i32 0
  %203 = getelementptr inbounds %union.anon, ptr %202, i32 0, i32 0
  store i32 %201, ptr %203, align 1
  %204 = call i32 @_ZNK6basisu12pvrtc4_image11interpolateEiiRKNS_10color_rgbaES3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(41) %51, i32 noundef %174, i32 noundef %175, ptr noundef nonnull align 1 dereferenceable(4) %24, ptr noundef nonnull align 1 dereferenceable(4) %25, ptr noundef nonnull align 1 dereferenceable(4) %26, ptr noundef nonnull align 1 dereferenceable(4) %27)
  %205 = getelementptr inbounds %"class.basisu::color_rgba", ptr %23, i32 0, i32 0
  %206 = getelementptr inbounds %union.anon, ptr %205, i32 0, i32 0
  store i32 %204, ptr %206, align 1
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %207 = load i32, ptr %7, align 4, !tbaa !9
  %208 = load i32, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %209 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %210 = load i32, ptr %10, align 4, !tbaa !9
  %211 = load i32, ptr %12, align 4, !tbaa !9
  %212 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %209, i32 noundef %210, i32 noundef %211)
  %213 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %212, i32 noundef 1)
  %214 = getelementptr inbounds %"class.basisu::color_rgba", ptr %29, i32 0, i32 0
  %215 = getelementptr inbounds %union.anon, ptr %214, i32 0, i32 0
  store i32 %213, ptr %215, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %216 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %217 = load i32, ptr %11, align 4, !tbaa !9
  %218 = load i32, ptr %12, align 4, !tbaa !9
  %219 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %216, i32 noundef %217, i32 noundef %218)
  %220 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %219, i32 noundef 1)
  %221 = getelementptr inbounds %"class.basisu::color_rgba", ptr %30, i32 0, i32 0
  %222 = getelementptr inbounds %union.anon, ptr %221, i32 0, i32 0
  store i32 %220, ptr %222, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %223 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %224 = load i32, ptr %10, align 4, !tbaa !9
  %225 = load i32, ptr %13, align 4, !tbaa !9
  %226 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %223, i32 noundef %224, i32 noundef %225)
  %227 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %226, i32 noundef 1)
  %228 = getelementptr inbounds %"class.basisu::color_rgba", ptr %31, i32 0, i32 0
  %229 = getelementptr inbounds %union.anon, ptr %228, i32 0, i32 0
  store i32 %227, ptr %229, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  %230 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %231 = load i32, ptr %11, align 4, !tbaa !9
  %232 = load i32, ptr %13, align 4, !tbaa !9
  %233 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %230, i32 noundef %231, i32 noundef %232)
  %234 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %233, i32 noundef 1)
  %235 = getelementptr inbounds %"class.basisu::color_rgba", ptr %32, i32 0, i32 0
  %236 = getelementptr inbounds %union.anon, ptr %235, i32 0, i32 0
  store i32 %234, ptr %236, align 1
  %237 = call i32 @_ZNK6basisu12pvrtc4_image11interpolateEiiRKNS_10color_rgbaES3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(41) %51, i32 noundef %207, i32 noundef %208, ptr noundef nonnull align 1 dereferenceable(4) %29, ptr noundef nonnull align 1 dereferenceable(4) %30, ptr noundef nonnull align 1 dereferenceable(4) %31, ptr noundef nonnull align 1 dereferenceable(4) %32)
  %238 = getelementptr inbounds %"class.basisu::color_rgba", ptr %28, i32 0, i32 0
  %239 = getelementptr inbounds %union.anon, ptr %238, i32 0, i32 0
  store i32 %237, ptr %239, align 1
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  %240 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %23, i32 noundef 0)
  %241 = load i8, ptr %240, align 1, !tbaa !19
  %242 = zext i8 %241 to i32
  %243 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %28, i32 noundef 0)
  %244 = load i8, ptr %243, align 1, !tbaa !19
  %245 = zext i8 %244 to i32
  %246 = add nsw i32 %242, %245
  %247 = sdiv i32 %246, 2
  %248 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %23, i32 noundef 1)
  %249 = load i8, ptr %248, align 1, !tbaa !19
  %250 = zext i8 %249 to i32
  %251 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %28, i32 noundef 1)
  %252 = load i8, ptr %251, align 1, !tbaa !19
  %253 = zext i8 %252 to i32
  %254 = add nsw i32 %250, %253
  %255 = sdiv i32 %254, 2
  %256 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %23, i32 noundef 2)
  %257 = load i8, ptr %256, align 1, !tbaa !19
  %258 = zext i8 %257 to i32
  %259 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %28, i32 noundef 2)
  %260 = load i8, ptr %259, align 1, !tbaa !19
  %261 = zext i8 %260 to i32
  %262 = add nsw i32 %258, %261
  %263 = sdiv i32 %262, 2
  %264 = load i32, ptr %9, align 4, !tbaa !9
  %265 = icmp eq i32 %264, 2
  br i1 %265, label %266, label %267

266:                                              ; preds = %173
  br label %276

267:                                              ; preds = %173
  %268 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %23, i32 noundef 3)
  %269 = load i8, ptr %268, align 1, !tbaa !19
  %270 = zext i8 %269 to i32
  %271 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %28, i32 noundef 3)
  %272 = load i8, ptr %271, align 1, !tbaa !19
  %273 = zext i8 %272 to i32
  %274 = add nsw i32 %270, %273
  %275 = sdiv i32 %274, 2
  br label %276

276:                                              ; preds = %267, %266
  %277 = phi i32 [ 0, %266 ], [ %275, %267 ]
  call void @_ZN6basisu10color_rgbaC2Eiiii(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef %247, i32 noundef %255, i32 noundef %263, i32 noundef %277)
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %505

278:                                              ; preds = %66
  %279 = load i32, ptr %9, align 4, !tbaa !9
  %280 = icmp eq i32 %279, 0
  br i1 %280, label %281, label %315

281:                                              ; preds = %278
  %282 = load i32, ptr %7, align 4, !tbaa !9
  %283 = load i32, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  %284 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %285 = load i32, ptr %10, align 4, !tbaa !9
  %286 = load i32, ptr %12, align 4, !tbaa !9
  %287 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %284, i32 noundef %285, i32 noundef %286)
  %288 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %287, i32 noundef 0)
  %289 = getelementptr inbounds %"class.basisu::color_rgba", ptr %33, i32 0, i32 0
  %290 = getelementptr inbounds %union.anon, ptr %289, i32 0, i32 0
  store i32 %288, ptr %290, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  %291 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %292 = load i32, ptr %11, align 4, !tbaa !9
  %293 = load i32, ptr %12, align 4, !tbaa !9
  %294 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %291, i32 noundef %292, i32 noundef %293)
  %295 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %294, i32 noundef 0)
  %296 = getelementptr inbounds %"class.basisu::color_rgba", ptr %34, i32 0, i32 0
  %297 = getelementptr inbounds %union.anon, ptr %296, i32 0, i32 0
  store i32 %295, ptr %297, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  %298 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %299 = load i32, ptr %10, align 4, !tbaa !9
  %300 = load i32, ptr %13, align 4, !tbaa !9
  %301 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %298, i32 noundef %299, i32 noundef %300)
  %302 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %301, i32 noundef 0)
  %303 = getelementptr inbounds %"class.basisu::color_rgba", ptr %35, i32 0, i32 0
  %304 = getelementptr inbounds %union.anon, ptr %303, i32 0, i32 0
  store i32 %302, ptr %304, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  %305 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %306 = load i32, ptr %11, align 4, !tbaa !9
  %307 = load i32, ptr %13, align 4, !tbaa !9
  %308 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %305, i32 noundef %306, i32 noundef %307)
  %309 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %308, i32 noundef 0)
  %310 = getelementptr inbounds %"class.basisu::color_rgba", ptr %36, i32 0, i32 0
  %311 = getelementptr inbounds %union.anon, ptr %310, i32 0, i32 0
  store i32 %309, ptr %311, align 1
  %312 = call i32 @_ZNK6basisu12pvrtc4_image11interpolateEiiRKNS_10color_rgbaES3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(41) %51, i32 noundef %282, i32 noundef %283, ptr noundef nonnull align 1 dereferenceable(4) %33, ptr noundef nonnull align 1 dereferenceable(4) %34, ptr noundef nonnull align 1 dereferenceable(4) %35, ptr noundef nonnull align 1 dereferenceable(4) %36)
  %313 = getelementptr inbounds %"class.basisu::color_rgba", ptr %5, i32 0, i32 0
  %314 = getelementptr inbounds %union.anon, ptr %313, i32 0, i32 0
  store i32 %312, ptr %314, align 1
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  store i32 1, ptr %18, align 4
  br label %505

315:                                              ; preds = %278
  %316 = load i32, ptr %9, align 4, !tbaa !9
  %317 = icmp eq i32 %316, 3
  br i1 %317, label %318, label %352

318:                                              ; preds = %315
  %319 = load i32, ptr %7, align 4, !tbaa !9
  %320 = load i32, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #6
  %321 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %322 = load i32, ptr %10, align 4, !tbaa !9
  %323 = load i32, ptr %12, align 4, !tbaa !9
  %324 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %321, i32 noundef %322, i32 noundef %323)
  %325 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %324, i32 noundef 1)
  %326 = getelementptr inbounds %"class.basisu::color_rgba", ptr %37, i32 0, i32 0
  %327 = getelementptr inbounds %union.anon, ptr %326, i32 0, i32 0
  store i32 %325, ptr %327, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  %328 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %329 = load i32, ptr %11, align 4, !tbaa !9
  %330 = load i32, ptr %12, align 4, !tbaa !9
  %331 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %328, i32 noundef %329, i32 noundef %330)
  %332 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %331, i32 noundef 1)
  %333 = getelementptr inbounds %"class.basisu::color_rgba", ptr %38, i32 0, i32 0
  %334 = getelementptr inbounds %union.anon, ptr %333, i32 0, i32 0
  store i32 %332, ptr %334, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #6
  %335 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %336 = load i32, ptr %10, align 4, !tbaa !9
  %337 = load i32, ptr %13, align 4, !tbaa !9
  %338 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %335, i32 noundef %336, i32 noundef %337)
  %339 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %338, i32 noundef 1)
  %340 = getelementptr inbounds %"class.basisu::color_rgba", ptr %39, i32 0, i32 0
  %341 = getelementptr inbounds %union.anon, ptr %340, i32 0, i32 0
  store i32 %339, ptr %341, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #6
  %342 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %343 = load i32, ptr %11, align 4, !tbaa !9
  %344 = load i32, ptr %13, align 4, !tbaa !9
  %345 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %342, i32 noundef %343, i32 noundef %344)
  %346 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %345, i32 noundef 1)
  %347 = getelementptr inbounds %"class.basisu::color_rgba", ptr %40, i32 0, i32 0
  %348 = getelementptr inbounds %union.anon, ptr %347, i32 0, i32 0
  store i32 %346, ptr %348, align 1
  %349 = call i32 @_ZNK6basisu12pvrtc4_image11interpolateEiiRKNS_10color_rgbaES3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(41) %51, i32 noundef %319, i32 noundef %320, ptr noundef nonnull align 1 dereferenceable(4) %37, ptr noundef nonnull align 1 dereferenceable(4) %38, ptr noundef nonnull align 1 dereferenceable(4) %39, ptr noundef nonnull align 1 dereferenceable(4) %40)
  %350 = getelementptr inbounds %"class.basisu::color_rgba", ptr %5, i32 0, i32 0
  %351 = getelementptr inbounds %union.anon, ptr %350, i32 0, i32 0
  store i32 %349, ptr %351, align 1
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  store i32 1, ptr %18, align 4
  br label %505

352:                                              ; preds = %315
  br label %353

353:                                              ; preds = %352
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  %354 = load i32, ptr %7, align 4, !tbaa !9
  %355 = load i32, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #6
  %356 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %357 = load i32, ptr %10, align 4, !tbaa !9
  %358 = load i32, ptr %12, align 4, !tbaa !9
  %359 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %356, i32 noundef %357, i32 noundef %358)
  %360 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %359, i32 noundef 0)
  %361 = getelementptr inbounds %"class.basisu::color_rgba", ptr %42, i32 0, i32 0
  %362 = getelementptr inbounds %union.anon, ptr %361, i32 0, i32 0
  store i32 %360, ptr %362, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #6
  %363 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %364 = load i32, ptr %11, align 4, !tbaa !9
  %365 = load i32, ptr %12, align 4, !tbaa !9
  %366 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %363, i32 noundef %364, i32 noundef %365)
  %367 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %366, i32 noundef 0)
  %368 = getelementptr inbounds %"class.basisu::color_rgba", ptr %43, i32 0, i32 0
  %369 = getelementptr inbounds %union.anon, ptr %368, i32 0, i32 0
  store i32 %367, ptr %369, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #6
  %370 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %371 = load i32, ptr %10, align 4, !tbaa !9
  %372 = load i32, ptr %13, align 4, !tbaa !9
  %373 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %370, i32 noundef %371, i32 noundef %372)
  %374 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %373, i32 noundef 0)
  %375 = getelementptr inbounds %"class.basisu::color_rgba", ptr %44, i32 0, i32 0
  %376 = getelementptr inbounds %union.anon, ptr %375, i32 0, i32 0
  store i32 %374, ptr %376, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #6
  %377 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %378 = load i32, ptr %11, align 4, !tbaa !9
  %379 = load i32, ptr %13, align 4, !tbaa !9
  %380 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %377, i32 noundef %378, i32 noundef %379)
  %381 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %380, i32 noundef 0)
  %382 = getelementptr inbounds %"class.basisu::color_rgba", ptr %45, i32 0, i32 0
  %383 = getelementptr inbounds %union.anon, ptr %382, i32 0, i32 0
  store i32 %381, ptr %383, align 1
  %384 = call i32 @_ZNK6basisu12pvrtc4_image11interpolateEiiRKNS_10color_rgbaES3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(41) %51, i32 noundef %354, i32 noundef %355, ptr noundef nonnull align 1 dereferenceable(4) %42, ptr noundef nonnull align 1 dereferenceable(4) %43, ptr noundef nonnull align 1 dereferenceable(4) %44, ptr noundef nonnull align 1 dereferenceable(4) %45)
  %385 = getelementptr inbounds %"class.basisu::color_rgba", ptr %41, i32 0, i32 0
  %386 = getelementptr inbounds %union.anon, ptr %385, i32 0, i32 0
  store i32 %384, ptr %386, align 1
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #6
  %387 = load i32, ptr %7, align 4, !tbaa !9
  %388 = load i32, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #6
  %389 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %390 = load i32, ptr %10, align 4, !tbaa !9
  %391 = load i32, ptr %12, align 4, !tbaa !9
  %392 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %389, i32 noundef %390, i32 noundef %391)
  %393 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %392, i32 noundef 1)
  %394 = getelementptr inbounds %"class.basisu::color_rgba", ptr %47, i32 0, i32 0
  %395 = getelementptr inbounds %union.anon, ptr %394, i32 0, i32 0
  store i32 %393, ptr %395, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #6
  %396 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %397 = load i32, ptr %11, align 4, !tbaa !9
  %398 = load i32, ptr %12, align 4, !tbaa !9
  %399 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %396, i32 noundef %397, i32 noundef %398)
  %400 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %399, i32 noundef 1)
  %401 = getelementptr inbounds %"class.basisu::color_rgba", ptr %48, i32 0, i32 0
  %402 = getelementptr inbounds %union.anon, ptr %401, i32 0, i32 0
  store i32 %400, ptr %402, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #6
  %403 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %404 = load i32, ptr %10, align 4, !tbaa !9
  %405 = load i32, ptr %13, align 4, !tbaa !9
  %406 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %403, i32 noundef %404, i32 noundef %405)
  %407 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %406, i32 noundef 1)
  %408 = getelementptr inbounds %"class.basisu::color_rgba", ptr %49, i32 0, i32 0
  %409 = getelementptr inbounds %union.anon, ptr %408, i32 0, i32 0
  store i32 %407, ptr %409, align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #6
  %410 = getelementptr inbounds %"class.basisu::pvrtc4_image", ptr %51, i32 0, i32 2
  %411 = load i32, ptr %11, align 4, !tbaa !9
  %412 = load i32, ptr %13, align 4, !tbaa !9
  %413 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %410, i32 noundef %411, i32 noundef %412)
  %414 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %413, i32 noundef 1)
  %415 = getelementptr inbounds %"class.basisu::color_rgba", ptr %50, i32 0, i32 0
  %416 = getelementptr inbounds %union.anon, ptr %415, i32 0, i32 0
  store i32 %414, ptr %416, align 1
  %417 = call i32 @_ZNK6basisu12pvrtc4_image11interpolateEiiRKNS_10color_rgbaES3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(41) %51, i32 noundef %387, i32 noundef %388, ptr noundef nonnull align 1 dereferenceable(4) %47, ptr noundef nonnull align 1 dereferenceable(4) %48, ptr noundef nonnull align 1 dereferenceable(4) %49, ptr noundef nonnull align 1 dereferenceable(4) %50)
  %418 = getelementptr inbounds %"class.basisu::color_rgba", ptr %46, i32 0, i32 0
  %419 = getelementptr inbounds %union.anon, ptr %418, i32 0, i32 0
  store i32 %417, ptr %419, align 1
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #6
  %420 = load i32, ptr %9, align 4, !tbaa !9
  %421 = icmp eq i32 %420, 2
  br i1 %421, label %422, label %463

422:                                              ; preds = %353
  %423 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %41, i32 noundef 0)
  %424 = load i8, ptr %423, align 1, !tbaa !19
  %425 = zext i8 %424 to i32
  %426 = mul nsw i32 %425, 3
  %427 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %46, i32 noundef 0)
  %428 = load i8, ptr %427, align 1, !tbaa !19
  %429 = zext i8 %428 to i32
  %430 = mul nsw i32 %429, 5
  %431 = add nsw i32 %426, %430
  %432 = sdiv i32 %431, 8
  %433 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %41, i32 noundef 1)
  %434 = load i8, ptr %433, align 1, !tbaa !19
  %435 = zext i8 %434 to i32
  %436 = mul nsw i32 %435, 3
  %437 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %46, i32 noundef 1)
  %438 = load i8, ptr %437, align 1, !tbaa !19
  %439 = zext i8 %438 to i32
  %440 = mul nsw i32 %439, 5
  %441 = add nsw i32 %436, %440
  %442 = sdiv i32 %441, 8
  %443 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %41, i32 noundef 2)
  %444 = load i8, ptr %443, align 1, !tbaa !19
  %445 = zext i8 %444 to i32
  %446 = mul nsw i32 %445, 3
  %447 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %46, i32 noundef 2)
  %448 = load i8, ptr %447, align 1, !tbaa !19
  %449 = zext i8 %448 to i32
  %450 = mul nsw i32 %449, 5
  %451 = add nsw i32 %446, %450
  %452 = sdiv i32 %451, 8
  %453 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %41, i32 noundef 3)
  %454 = load i8, ptr %453, align 1, !tbaa !19
  %455 = zext i8 %454 to i32
  %456 = mul nsw i32 %455, 3
  %457 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %46, i32 noundef 3)
  %458 = load i8, ptr %457, align 1, !tbaa !19
  %459 = zext i8 %458 to i32
  %460 = mul nsw i32 %459, 5
  %461 = add nsw i32 %456, %460
  %462 = sdiv i32 %461, 8
  call void @_ZN6basisu10color_rgbaC2Eiiii(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef %432, i32 noundef %442, i32 noundef %452, i32 noundef %462)
  store i32 1, ptr %18, align 4
  br label %504

463:                                              ; preds = %353
  %464 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %41, i32 noundef 0)
  %465 = load i8, ptr %464, align 1, !tbaa !19
  %466 = zext i8 %465 to i32
  %467 = mul nsw i32 %466, 5
  %468 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %46, i32 noundef 0)
  %469 = load i8, ptr %468, align 1, !tbaa !19
  %470 = zext i8 %469 to i32
  %471 = mul nsw i32 %470, 3
  %472 = add nsw i32 %467, %471
  %473 = sdiv i32 %472, 8
  %474 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %41, i32 noundef 1)
  %475 = load i8, ptr %474, align 1, !tbaa !19
  %476 = zext i8 %475 to i32
  %477 = mul nsw i32 %476, 5
  %478 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %46, i32 noundef 1)
  %479 = load i8, ptr %478, align 1, !tbaa !19
  %480 = zext i8 %479 to i32
  %481 = mul nsw i32 %480, 3
  %482 = add nsw i32 %477, %481
  %483 = sdiv i32 %482, 8
  %484 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %41, i32 noundef 2)
  %485 = load i8, ptr %484, align 1, !tbaa !19
  %486 = zext i8 %485 to i32
  %487 = mul nsw i32 %486, 5
  %488 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %46, i32 noundef 2)
  %489 = load i8, ptr %488, align 1, !tbaa !19
  %490 = zext i8 %489 to i32
  %491 = mul nsw i32 %490, 3
  %492 = add nsw i32 %487, %491
  %493 = sdiv i32 %492, 8
  %494 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %41, i32 noundef 3)
  %495 = load i8, ptr %494, align 1, !tbaa !19
  %496 = zext i8 %495 to i32
  %497 = mul nsw i32 %496, 5
  %498 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %46, i32 noundef 3)
  %499 = load i8, ptr %498, align 1, !tbaa !19
  %500 = zext i8 %499 to i32
  %501 = mul nsw i32 %500, 3
  %502 = add nsw i32 %497, %501
  %503 = sdiv i32 %502, 8
  call void @_ZN6basisu10color_rgbaC2Eiiii(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef %473, i32 noundef %483, i32 noundef %493, i32 noundef %503)
  store i32 1, ptr %18, align 4
  br label %504

504:                                              ; preds = %463, %422
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  br label %505

505:                                              ; preds = %504, %318, %281, %276, %138, %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  %506 = getelementptr inbounds %"class.basisu::color_rgba", ptr %5, i32 0, i32 0
  %507 = getelementptr inbounds %union.anon, ptr %506, i32 0, i32 0
  %508 = load i32, ptr %507, align 1
  ret i32 %508
}

attributes #0 = { inlinehint 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 = { noreturn nounwind "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { noreturn nounwind }
attributes #6 = { 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 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN6basisu12pvrtc4_imageE", !10, i64 0, !10, i64 4, !13, i64 8, !10, i64 32, !10, i64 36, !15, i64 40}
!13 = !{!"_ZTSN6basisu8vector2DINS_12pvrtc4_blockEEE", !10, i64 0, !10, i64 4, !14, i64 8}
!14 = !{!"_ZTSN6basisu6vectorINS_12pvrtc4_blockEEE", !6, i64 0, !10, i64 8, !10, i64 12}
!15 = !{!"bool", !7, i64 0}
!16 = !{!12, !10, i64 4}
!17 = !{!12, !10, i64 32}
!18 = !{!12, !10, i64 36}
!19 = !{!7, !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.basisu::color_rgba" = type { %union.anon }
%union.anon = type { [4 x i8] }

@.str.3 = external hidden unnamed_addr constant [115 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [32 x i8], align 1
@__PRETTY_FUNCTION__._ZNK6basisu12pvrtc4_image9get_pixelEjjj = external hidden unnamed_addr constant [79 x i8], align 1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6basisu10color_rgbaC2Eiiii(ptr noundef nonnull align 1 dereferenceable(4), i32 noundef, i32 noundef, i32 noundef, i32 noundef) unnamed_addr #0 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6basisu6posmodEii(i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local i32 @_ZNK6basisu12pvrtc4_image11interpolateEiiRKNS_10color_rgbaES3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(41), i32 noundef, i32 noundef, ptr noundef nonnull align 1 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK6basisu12pvrtc4_image37get_block_uses_transparent_modulationEjj(ptr noundef nonnull align 8 dereferenceable(41), i32 noundef, i32 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @_ZNK6basisu12pvrtc4_image9get_pixelEjjj(ptr noundef nonnull align 8 dereferenceable(41) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 align 2 {
  %5 = alloca %"class.basisu::color_rgba", align 4
  %6 = alloca %"class.basisu::color_rgba", align 4
  %7 = alloca %"class.basisu::color_rgba", align 4
  %8 = alloca %"class.basisu::color_rgba", align 4
  %9 = alloca %"class.basisu::color_rgba", align 4
  %10 = alloca %"class.basisu::color_rgba", align 4
  %11 = alloca %"class.basisu::color_rgba", align 4
  %12 = alloca %"class.basisu::color_rgba", align 4
  %13 = alloca %"class.basisu::color_rgba", align 4
  %14 = alloca %"class.basisu::color_rgba", align 4
  %15 = alloca %"class.basisu::color_rgba", align 4
  %16 = alloca %"class.basisu::color_rgba", align 4
  %17 = alloca %"class.basisu::color_rgba", align 4
  %18 = alloca %"class.basisu::color_rgba", align 4
  %19 = alloca %"class.basisu::color_rgba", align 4
  %20 = alloca %"class.basisu::color_rgba", align 4
  %21 = alloca %"class.basisu::color_rgba", align 4
  %22 = alloca %"class.basisu::color_rgba", align 4
  %23 = alloca %"class.basisu::color_rgba", align 4
  %24 = alloca %"class.basisu::color_rgba", align 4
  %25 = alloca %"class.basisu::color_rgba", align 4
  %26 = alloca %"class.basisu::color_rgba", align 4
  %27 = alloca %"class.basisu::color_rgba", align 4
  %28 = alloca %"class.basisu::color_rgba", align 4
  %29 = alloca %"class.basisu::color_rgba", align 4
  %30 = alloca %"class.basisu::color_rgba", align 4
  %31 = alloca %"class.basisu::color_rgba", align 4
  %32 = alloca %"class.basisu::color_rgba", align 4
  %33 = alloca %"class.basisu::color_rgba", align 4
  %34 = alloca %"class.basisu::color_rgba", align 4
  %35 = alloca %"class.basisu::color_rgba", align 4
  %36 = alloca %"class.basisu::color_rgba", align 4
  %37 = alloca %"class.basisu::color_rgba", align 4
  %38 = alloca %"class.basisu::color_rgba", align 4
  %39 = alloca %"class.basisu::color_rgba", align 4
  %40 = alloca %"class.basisu::color_rgba", align 4
  %41 = alloca %"class.basisu::color_rgba", align 4
  %42 = load i32, ptr %0, align 8, !tbaa !5
  %43 = icmp ugt i32 %42, %1
  %44 = getelementptr inbounds i8, ptr %0, i64 4
  %45 = load i32, ptr %44, align 4
  %46 = icmp ugt i32 %45, %2
  %or.cond = select i1 %43, i1 %46, i1 false
  br i1 %or.cond, label %47, label %.critedge

.critedge:                                        ; preds = %4
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.3, i32 noundef 340, ptr noundef nonnull @__PRETTY_FUNCTION__._ZNK6basisu12pvrtc4_image9get_pixelEjjj) #5
  unreachable

47:                                               ; preds = %4
  %48 = add nsw i32 %1, -2
  %49 = ashr i32 %48, 2
  %50 = add nsw i32 %49, 1
  %51 = add nsw i32 %2, -2
  %52 = ashr i32 %51, 2
  %53 = add nsw i32 %52, 1
  %54 = getelementptr inbounds i8, ptr %0, i64 32
  %55 = load i32, ptr %54, align 8, !tbaa !14
  %56 = tail call noundef i32 @_ZN6basisu6posmodEii(i32 noundef %49, i32 noundef %55)
  %57 = load i32, ptr %54, align 8, !tbaa !14
  %58 = tail call noundef i32 @_ZN6basisu6posmodEii(i32 noundef %50, i32 noundef %57)
  %59 = getelementptr inbounds i8, ptr %0, i64 36
  %60 = load i32, ptr %59, align 4, !tbaa !15
  %61 = tail call noundef i32 @_ZN6basisu6posmodEii(i32 noundef %52, i32 noundef %60)
  %62 = load i32, ptr %59, align 4, !tbaa !15
  %63 = tail call noundef i32 @_ZN6basisu6posmodEii(i32 noundef %53, i32 noundef %62)
  %64 = lshr i32 %1, 2
  %65 = lshr i32 %2, 2
  %66 = tail call noundef zeroext i1 @_ZNK6basisu12pvrtc4_image37get_block_uses_transparent_modulationEjj(ptr noundef nonnull align 8 dereferenceable(41) %0, i32 noundef %64, i32 noundef %65)
  br i1 %66, label %67, label %146

67:                                               ; preds = %47
  switch i32 %3, label %90 [
    i32 0, label %68
    i32 3, label %79
  ]

68:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  %69 = getelementptr inbounds i8, ptr %0, i64 8
  %70 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %69, i32 noundef %56, i32 noundef %61)
  %71 = tail call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %70, i32 noundef 0)
  store i32 %71, ptr %6, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %72 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %69, i32 noundef %58, i32 noundef %61)
  %73 = tail call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %72, i32 noundef 0)
  store i32 %73, ptr %7, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  %74 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %69, i32 noundef %56, i32 noundef %63)
  %75 = tail call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %74, i32 noundef 0)
  store i32 %75, ptr %8, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  %76 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %69, i32 noundef %58, i32 noundef %63)
  %77 = tail call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %76, i32 noundef 0)
  store i32 %77, ptr %9, align 4
  %78 = call i32 @_ZNK6basisu12pvrtc4_image11interpolateEiiRKNS_10color_rgbaES3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(41) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(4) %6, ptr noundef nonnull align 1 dereferenceable(4) %7, ptr noundef nonnull align 1 dereferenceable(4) %8, ptr noundef nonnull align 1 dereferenceable(4) %9)
  store i32 %78, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  br label %230

79:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  %80 = getelementptr inbounds i8, ptr %0, i64 8
  %81 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %80, i32 noundef %56, i32 noundef %61)
  %82 = tail call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %81, i32 noundef 1)
  store i32 %82, ptr %10, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  %83 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %80, i32 noundef %58, i32 noundef %61)
  %84 = tail call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %83, i32 noundef 1)
  store i32 %84, ptr %11, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  %85 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %80, i32 noundef %56, i32 noundef %63)
  %86 = tail call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %85, i32 noundef 1)
  store i32 %86, ptr %12, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  %87 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %80, i32 noundef %58, i32 noundef %63)
  %88 = tail call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %87, i32 noundef 1)
  store i32 %88, ptr %13, align 4
  %89 = call i32 @_ZNK6basisu12pvrtc4_image11interpolateEiiRKNS_10color_rgbaES3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(41) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(4) %10, ptr noundef nonnull align 1 dereferenceable(4) %11, ptr noundef nonnull align 1 dereferenceable(4) %12, ptr noundef nonnull align 1 dereferenceable(4) %13)
  store i32 %89, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  br label %230

90:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  %91 = getelementptr inbounds i8, ptr %0, i64 8
  %92 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %91, i32 noundef %56, i32 noundef %61)
  %93 = tail call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %92, i32 noundef 0)
  store i32 %93, ptr %15, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  %94 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %91, i32 noundef %58, i32 noundef %61)
  %95 = tail call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %94, i32 noundef 0)
  store i32 %95, ptr %16, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #6
  %96 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %91, i32 noundef %56, i32 noundef %63)
  %97 = tail call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %96, i32 noundef 0)
  store i32 %97, ptr %17, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #6
  %98 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %91, i32 noundef %58, i32 noundef %63)
  %99 = tail call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %98, i32 noundef 0)
  store i32 %99, ptr %18, align 4
  %100 = call i32 @_ZNK6basisu12pvrtc4_image11interpolateEiiRKNS_10color_rgbaES3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(41) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(4) %15, ptr noundef nonnull align 1 dereferenceable(4) %16, ptr noundef nonnull align 1 dereferenceable(4) %17, ptr noundef nonnull align 1 dereferenceable(4) %18)
  store i32 %100, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #6
  %101 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %91, i32 noundef %56, i32 noundef %61)
  %102 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %101, i32 noundef 1)
  store i32 %102, ptr %20, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #6
  %103 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %91, i32 noundef %58, i32 noundef %61)
  %104 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %103, i32 noundef 1)
  store i32 %104, ptr %21, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #6
  %105 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %91, i32 noundef %56, i32 noundef %63)
  %106 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %105, i32 noundef 1)
  store i32 %106, ptr %22, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #6
  %107 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %91, i32 noundef %58, i32 noundef %63)
  %108 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %107, i32 noundef 1)
  store i32 %108, ptr %23, align 4
  %109 = call i32 @_ZNK6basisu12pvrtc4_image11interpolateEiiRKNS_10color_rgbaES3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(41) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(4) %20, ptr noundef nonnull align 1 dereferenceable(4) %21, ptr noundef nonnull align 1 dereferenceable(4) %22, ptr noundef nonnull align 1 dereferenceable(4) %23)
  store i32 %109, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #6
  %110 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %14, i32 noundef 0)
  %111 = load i8, ptr %110, align 1, !tbaa !16
  %112 = zext i8 %111 to i32
  %113 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %19, i32 noundef 0)
  %114 = load i8, ptr %113, align 1, !tbaa !16
  %115 = zext i8 %114 to i32
  %116 = add nuw nsw i32 %115, %112
  %117 = lshr i32 %116, 1
  %118 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %14, i32 noundef 1)
  %119 = load i8, ptr %118, align 1, !tbaa !16
  %120 = zext i8 %119 to i32
  %121 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %19, i32 noundef 1)
  %122 = load i8, ptr %121, align 1, !tbaa !16
  %123 = zext i8 %122 to i32
  %124 = add nuw nsw i32 %123, %120
  %125 = lshr i32 %124, 1
  %126 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %14, i32 noundef 2)
  %127 = load i8, ptr %126, align 1, !tbaa !16
  %128 = zext i8 %127 to i32
  %129 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %19, i32 noundef 2)
  %130 = load i8, ptr %129, align 1, !tbaa !16
  %131 = zext i8 %130 to i32
  %132 = add nuw nsw i32 %131, %128
  %133 = lshr i32 %132, 1
  %134 = icmp eq i32 %3, 2
  br i1 %134, label %144, label %135

135:                                              ; preds = %90
  %136 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %14, i32 noundef 3)
  %137 = load i8, ptr %136, align 1, !tbaa !16
  %138 = zext i8 %137 to i32
  %139 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %19, i32 noundef 3)
  %140 = load i8, ptr %139, align 1, !tbaa !16
  %141 = zext i8 %140 to i32
  %142 = add nuw nsw i32 %141, %138
  %143 = lshr i32 %142, 1
  br label %144

144:                                              ; preds = %90, %135
  %145 = phi i32 [ %143, %135 ], [ 0, %90 ]
  call void @_ZN6basisu10color_rgbaC2Eiiii(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef %117, i32 noundef %125, i32 noundef %133, i32 noundef %145)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  br label %230

146:                                              ; preds = %47
  switch i32 %3, label %169 [
    i32 0, label %147
    i32 3, label %158
  ]

147:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #6
  %148 = getelementptr inbounds i8, ptr %0, i64 8
  %149 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %148, i32 noundef %56, i32 noundef %61)
  %150 = tail call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %149, i32 noundef 0)
  store i32 %150, ptr %24, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #6
  %151 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %148, i32 noundef %58, i32 noundef %61)
  %152 = tail call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %151, i32 noundef 0)
  store i32 %152, ptr %25, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #6
  %153 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %148, i32 noundef %56, i32 noundef %63)
  %154 = tail call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %153, i32 noundef 0)
  store i32 %154, ptr %26, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #6
  %155 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %148, i32 noundef %58, i32 noundef %63)
  %156 = tail call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %155, i32 noundef 0)
  store i32 %156, ptr %27, align 4
  %157 = call i32 @_ZNK6basisu12pvrtc4_image11interpolateEiiRKNS_10color_rgbaES3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(41) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(4) %24, ptr noundef nonnull align 1 dereferenceable(4) %25, ptr noundef nonnull align 1 dereferenceable(4) %26, ptr noundef nonnull align 1 dereferenceable(4) %27)
  store i32 %157, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #6
  br label %230

158:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #6
  %159 = getelementptr inbounds i8, ptr %0, i64 8
  %160 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %159, i32 noundef %56, i32 noundef %61)
  %161 = tail call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %160, i32 noundef 1)
  store i32 %161, ptr %28, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #6
  %162 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %159, i32 noundef %58, i32 noundef %61)
  %163 = tail call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %162, i32 noundef 1)
  store i32 %163, ptr %29, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %30) #6
  %164 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %159, i32 noundef %56, i32 noundef %63)
  %165 = tail call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %164, i32 noundef 1)
  store i32 %165, ptr %30, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %31) #6
  %166 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %159, i32 noundef %58, i32 noundef %63)
  %167 = tail call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %166, i32 noundef 1)
  store i32 %167, ptr %31, align 4
  %168 = call i32 @_ZNK6basisu12pvrtc4_image11interpolateEiiRKNS_10color_rgbaES3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(41) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(4) %28, ptr noundef nonnull align 1 dereferenceable(4) %29, ptr noundef nonnull align 1 dereferenceable(4) %30, ptr noundef nonnull align 1 dereferenceable(4) %31)
  store i32 %168, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #6
  br label %230

169:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %32) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %33) #6
  %170 = getelementptr inbounds i8, ptr %0, i64 8
  %171 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %170, i32 noundef %56, i32 noundef %61)
  %172 = tail call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %171, i32 noundef 0)
  store i32 %172, ptr %33, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %34) #6
  %173 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %170, i32 noundef %58, i32 noundef %61)
  %174 = tail call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %173, i32 noundef 0)
  store i32 %174, ptr %34, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %35) #6
  %175 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %170, i32 noundef %56, i32 noundef %63)
  %176 = tail call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %175, i32 noundef 0)
  store i32 %176, ptr %35, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %36) #6
  %177 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %170, i32 noundef %58, i32 noundef %63)
  %178 = tail call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %177, i32 noundef 0)
  store i32 %178, ptr %36, align 4
  %179 = call i32 @_ZNK6basisu12pvrtc4_image11interpolateEiiRKNS_10color_rgbaES3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(41) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(4) %33, ptr noundef nonnull align 1 dereferenceable(4) %34, ptr noundef nonnull align 1 dereferenceable(4) %35, ptr noundef nonnull align 1 dereferenceable(4) %36)
  store i32 %179, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %36) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %33) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %37) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %38) #6
  %180 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %170, i32 noundef %56, i32 noundef %61)
  %181 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %180, i32 noundef 1)
  store i32 %181, ptr %38, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %39) #6
  %182 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %170, i32 noundef %58, i32 noundef %61)
  %183 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %182, i32 noundef 1)
  store i32 %183, ptr %39, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %40) #6
  %184 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %170, i32 noundef %56, i32 noundef %63)
  %185 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %184, i32 noundef 1)
  store i32 %185, ptr %40, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %41) #6
  %186 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK6basisu8vector2DINS_12pvrtc4_blockEEclEjj(ptr noundef nonnull align 8 dereferenceable(24) %170, i32 noundef %58, i32 noundef %63)
  %187 = call i32 @_ZNK6basisu12pvrtc4_block17get_endpoint_5554Ej(ptr noundef nonnull align 4 dereferenceable(8) %186, i32 noundef 1)
  store i32 %187, ptr %41, align 4
  %188 = call i32 @_ZNK6basisu12pvrtc4_image11interpolateEiiRKNS_10color_rgbaES3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(41) %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull align 1 dereferenceable(4) %38, ptr noundef nonnull align 1 dereferenceable(4) %39, ptr noundef nonnull align 1 dereferenceable(4) %40, ptr noundef nonnull align 1 dereferenceable(4) %41)
  store i32 %188, ptr %37, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %41) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %40) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %39) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %38) #6
  %189 = icmp eq i32 %3, 2
  %190 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %32, i32 noundef 0)
  %191 = load i8, ptr %190, align 1, !tbaa !16
  %192 = zext i8 %191 to i32
  %193 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %37, i32 noundef 0)
  %194 = load i8, ptr %193, align 1, !tbaa !16
  %195 = zext i8 %194 to i32
  %196 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %32, i32 noundef 1)
  %197 = load i8, ptr %196, align 1, !tbaa !16
  %198 = zext i8 %197 to i32
  %199 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %37, i32 noundef 1)
  %200 = load i8, ptr %199, align 1, !tbaa !16
  %201 = zext i8 %200 to i32
  %202 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %32, i32 noundef 2)
  %203 = load i8, ptr %202, align 1, !tbaa !16
  %204 = zext i8 %203 to i32
  %205 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %37, i32 noundef 2)
  %206 = load i8, ptr %205, align 1, !tbaa !16
  %207 = zext i8 %206 to i32
  %208 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %32, i32 noundef 3)
  %209 = load i8, ptr %208, align 1, !tbaa !16
  %210 = zext i8 %209 to i32
  %211 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN6basisu10color_rgbaixEj(ptr noundef nonnull align 1 dereferenceable(4) %37, i32 noundef 3)
  %212 = load i8, ptr %211, align 1, !tbaa !16
  %213 = zext i8 %212 to i32
  %. = select i1 %189, i32 3, i32 5
  %.123 = select i1 %189, i32 5, i32 3
  %214 = mul nuw nsw i32 %., %192
  %215 = mul nuw nsw i32 %.123, %195
  %216 = add nuw nsw i32 %215, %214
  %217 = lshr i32 %216, 3
  %218 = mul nuw nsw i32 %., %198
  %219 = mul nuw nsw i32 %.123, %201
  %220 = add nuw nsw i32 %219, %218
  %221 = lshr i32 %220, 3
  %222 = mul nuw nsw i32 %., %204
  %223 = mul nuw nsw i32 %.123, %207
  %224 = add nuw nsw i32 %223, %222
  %225 = lshr i32 %224, 3
  %226 = mul nuw nsw i32 %., %210
  %227 = mul nuw nsw i32 %.123, %213
  %228 = add nuw nsw i32 %227, %226
  %229 = lshr i32 %228, 3
  call void @_ZN6basisu10color_rgbaC2Eiiii(ptr noundef nonnull align 1 dereferenceable(4) %5, i32 noundef %217, i32 noundef %221, i32 noundef %225, i32 noundef %229)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %37) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #6
  br label %230

230:                                              ; preds = %169, %158, %147, %144, %79, %68
  %231 = load i32, ptr %5, align 4
  ret i32 %231
}

attributes #0 = { inlinehint 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 = { noreturn nounwind "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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { noreturn nounwind }
attributes #6 = { 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, !7, i64 0}
!6 = !{!"_ZTSN6basisu12pvrtc4_imageE", !7, i64 0, !7, i64 4, !10, i64 8, !7, i64 32, !7, i64 36, !13, i64 40}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN6basisu8vector2DINS_12pvrtc4_blockEEE", !7, i64 0, !7, i64 4, !11, i64 8}
!11 = !{!"_ZTSN6basisu6vectorINS_12pvrtc4_blockEEE", !12, i64 0, !7, i64 8, !7, i64 12}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"bool", !8, i64 0}
!14 = !{!6, !7, i64 32}
!15 = !{!6, !7, i64 36}
!16 = !{!8, !8, i64 0}


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