; LLVM IR from kobalicek/simdtests :: rgbhsv/rgbhsv_sse2.ll (Z19argb_from_ahsv_sse2PfPKfi)

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

@_ZL28_xmm_const_p4o6_p2o6_p3o6_p0 = external hidden constant [4 x float], align 16
@_ZL14_xmm_const_abs = external hidden constant [4 x i32], align 16
@_ZL22_xmm_const_m6_m6_p6_p0 = external hidden constant [4 x float], align 16
@_ZL22_xmm_const_p1_p1_m2_p0 = external hidden constant [4 x float], align 16
@_ZL22_xmm_const_m1_m1_m1_p1 = external hidden constant [4 x float], align 16
@_ZL13_xmm_const_p0 = external hidden constant [4 x float], align 16

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z19argb_from_ahsv_sse2PfPKfi(ptr noundef %0, ptr noundef %1, i32 noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca <4 x float>, align 16
  %9 = alloca <4 x float>, align 16
  %10 = alloca <4 x float>, align 16
  %11 = alloca <4 x float>, align 16
  %12 = alloca <4 x float>, align 16
  %13 = alloca <4 x float>, align 16
  %14 = alloca <4 x float>, align 16
  %15 = alloca <4 x float>, align 16
  %16 = alloca <4 x float>, align 16
  %17 = alloca <4 x float>, align 16
  %18 = alloca <4 x float>, align 16
  %19 = alloca <4 x float>, align 16
  %20 = alloca <4 x float>, align 16
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %21 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %21, ptr %7, align 4, !tbaa !9
  br label %22

22:                                               ; preds = %26, %3
  %23 = load i32, ptr %7, align 4, !tbaa !9
  %24 = sub nsw i32 %23, 4
  store i32 %24, ptr %7, align 4, !tbaa !9
  %25 = icmp sge i32 %24, 0
  br i1 %25, label %26, label %235

26:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #3
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds float, ptr %27, i64 0
  %29 = call noundef <4 x float> @_ZL14_mm_load_ps_myPKv(ptr noundef %28)
  store <4 x float> %29, ptr %8, align 16, !tbaa !11
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds float, ptr %30, i64 4
  %32 = call noundef <4 x float> @_ZL14_mm_load_ps_myPKv(ptr noundef %31)
  store <4 x float> %32, ptr %9, align 16, !tbaa !11
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds float, ptr %33, i64 8
  %35 = call noundef <4 x float> @_ZL14_mm_load_ps_myPKv(ptr noundef %34)
  store <4 x float> %35, ptr %10, align 16, !tbaa !11
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds float, ptr %36, i64 12
  %38 = call noundef <4 x float> @_ZL14_mm_load_ps_myPKv(ptr noundef %37)
  store <4 x float> %38, ptr %11, align 16, !tbaa !11
  %39 = load <4 x float>, ptr %8, align 16, !tbaa !11
  %40 = call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %39)
  %41 = bitcast <2 x i64> %40 to <4 x i32>
  %42 = shufflevector <4 x i32> %41, <4 x i32> poison, <4 x i32> <i32 3, i32 1, i32 1, i32 1>
  %43 = bitcast <4 x i32> %42 to <2 x i64>
  %44 = call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %43)
  store <4 x float> %44, ptr %12, align 16, !tbaa !11
  %45 = load <4 x float>, ptr %9, align 16, !tbaa !11
  %46 = call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %45)
  %47 = bitcast <2 x i64> %46 to <4 x i32>
  %48 = shufflevector <4 x i32> %47, <4 x i32> poison, <4 x i32> <i32 3, i32 1, i32 1, i32 1>
  %49 = bitcast <4 x i32> %48 to <2 x i64>
  %50 = call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %49)
  store <4 x float> %50, ptr %13, align 16, !tbaa !11
  %51 = load <4 x float>, ptr %10, align 16, !tbaa !11
  %52 = call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %51)
  %53 = bitcast <2 x i64> %52 to <4 x i32>
  %54 = shufflevector <4 x i32> %53, <4 x i32> poison, <4 x i32> <i32 3, i32 1, i32 1, i32 1>
  %55 = bitcast <4 x i32> %54 to <2 x i64>
  %56 = call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %55)
  store <4 x float> %56, ptr %14, align 16, !tbaa !11
  %57 = load <4 x float>, ptr %11, align 16, !tbaa !11
  %58 = call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %57)
  %59 = bitcast <2 x i64> %58 to <4 x i32>
  %60 = shufflevector <4 x i32> %59, <4 x i32> poison, <4 x i32> <i32 3, i32 1, i32 1, i32 1>
  %61 = bitcast <4 x i32> %60 to <2 x i64>
  %62 = call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %61)
  store <4 x float> %62, ptr %15, align 16, !tbaa !11
  %63 = load <4 x float>, ptr %12, align 16, !tbaa !11
  %64 = load <4 x float>, ptr @_ZL28_xmm_const_p4o6_p2o6_p3o6_p0, align 16, !tbaa !11
  %65 = call noundef <4 x float> @_ZL10_mm_sub_psDv4_fS_(<4 x float> noundef %63, <4 x float> noundef %64)
  store <4 x float> %65, ptr %12, align 16, !tbaa !11
  %66 = load <4 x float>, ptr %13, align 16, !tbaa !11
  %67 = load <4 x float>, ptr @_ZL28_xmm_const_p4o6_p2o6_p3o6_p0, align 16, !tbaa !11
  %68 = call noundef <4 x float> @_ZL10_mm_sub_psDv4_fS_(<4 x float> noundef %66, <4 x float> noundef %67)
  store <4 x float> %68, ptr %13, align 16, !tbaa !11
  %69 = load <4 x float>, ptr %14, align 16, !tbaa !11
  %70 = load <4 x float>, ptr @_ZL28_xmm_const_p4o6_p2o6_p3o6_p0, align 16, !tbaa !11
  %71 = call noundef <4 x float> @_ZL10_mm_sub_psDv4_fS_(<4 x float> noundef %69, <4 x float> noundef %70)
  store <4 x float> %71, ptr %14, align 16, !tbaa !11
  %72 = load <4 x float>, ptr %15, align 16, !tbaa !11
  %73 = load <4 x float>, ptr @_ZL28_xmm_const_p4o6_p2o6_p3o6_p0, align 16, !tbaa !11
  %74 = call noundef <4 x float> @_ZL10_mm_sub_psDv4_fS_(<4 x float> noundef %72, <4 x float> noundef %73)
  store <4 x float> %74, ptr %15, align 16, !tbaa !11
  %75 = load <4 x float>, ptr %12, align 16, !tbaa !11
  %76 = load <4 x float>, ptr @_ZL14_xmm_const_abs, align 16, !tbaa !11
  %77 = call noundef <4 x float> @_ZL10_mm_and_psDv4_fS_(<4 x float> noundef %75, <4 x float> noundef %76)
  store <4 x float> %77, ptr %12, align 16, !tbaa !11
  %78 = load <4 x float>, ptr %13, align 16, !tbaa !11
  %79 = load <4 x float>, ptr @_ZL14_xmm_const_abs, align 16, !tbaa !11
  %80 = call noundef <4 x float> @_ZL10_mm_and_psDv4_fS_(<4 x float> noundef %78, <4 x float> noundef %79)
  store <4 x float> %80, ptr %13, align 16, !tbaa !11
  %81 = load <4 x float>, ptr %14, align 16, !tbaa !11
  %82 = load <4 x float>, ptr @_ZL14_xmm_const_abs, align 16, !tbaa !11
  %83 = call noundef <4 x float> @_ZL10_mm_and_psDv4_fS_(<4 x float> noundef %81, <4 x float> noundef %82)
  store <4 x float> %83, ptr %14, align 16, !tbaa !11
  %84 = load <4 x float>, ptr %15, align 16, !tbaa !11
  %85 = load <4 x float>, ptr @_ZL14_xmm_const_abs, align 16, !tbaa !11
  %86 = call noundef <4 x float> @_ZL10_mm_and_psDv4_fS_(<4 x float> noundef %84, <4 x float> noundef %85)
  store <4 x float> %86, ptr %15, align 16, !tbaa !11
  %87 = load <4 x float>, ptr %12, align 16, !tbaa !11
  %88 = load <4 x float>, ptr @_ZL22_xmm_const_m6_m6_p6_p0, align 16, !tbaa !11
  %89 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %87, <4 x float> noundef %88)
  store <4 x float> %89, ptr %12, align 16, !tbaa !11
  %90 = load <4 x float>, ptr %13, align 16, !tbaa !11
  %91 = load <4 x float>, ptr @_ZL22_xmm_const_m6_m6_p6_p0, align 16, !tbaa !11
  %92 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %90, <4 x float> noundef %91)
  store <4 x float> %92, ptr %13, align 16, !tbaa !11
  %93 = load <4 x float>, ptr %14, align 16, !tbaa !11
  %94 = load <4 x float>, ptr @_ZL22_xmm_const_m6_m6_p6_p0, align 16, !tbaa !11
  %95 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %93, <4 x float> noundef %94)
  store <4 x float> %95, ptr %14, align 16, !tbaa !11
  %96 = load <4 x float>, ptr %15, align 16, !tbaa !11
  %97 = load <4 x float>, ptr @_ZL22_xmm_const_m6_m6_p6_p0, align 16, !tbaa !11
  %98 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %96, <4 x float> noundef %97)
  store <4 x float> %98, ptr %15, align 16, !tbaa !11
  %99 = load <4 x float>, ptr %12, align 16, !tbaa !11
  %100 = load <4 x float>, ptr @_ZL22_xmm_const_p1_p1_m2_p0, align 16, !tbaa !11
  %101 = call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %99, <4 x float> noundef %100)
  store <4 x float> %101, ptr %12, align 16, !tbaa !11
  %102 = load <4 x float>, ptr %13, align 16, !tbaa !11
  %103 = load <4 x float>, ptr @_ZL22_xmm_const_p1_p1_m2_p0, align 16, !tbaa !11
  %104 = call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %102, <4 x float> noundef %103)
  store <4 x float> %104, ptr %13, align 16, !tbaa !11
  %105 = load <4 x float>, ptr %14, align 16, !tbaa !11
  %106 = load <4 x float>, ptr @_ZL22_xmm_const_p1_p1_m2_p0, align 16, !tbaa !11
  %107 = call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %105, <4 x float> noundef %106)
  store <4 x float> %107, ptr %14, align 16, !tbaa !11
  %108 = load <4 x float>, ptr %15, align 16, !tbaa !11
  %109 = load <4 x float>, ptr @_ZL22_xmm_const_p1_p1_m2_p0, align 16, !tbaa !11
  %110 = call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %108, <4 x float> noundef %109)
  store <4 x float> %110, ptr %15, align 16, !tbaa !11
  %111 = load <4 x float>, ptr %12, align 16, !tbaa !11
  %112 = load <4 x float>, ptr @_ZL22_xmm_const_m1_m1_m1_p1, align 16, !tbaa !11
  %113 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %111, <4 x float> noundef %112)
  store <4 x float> %113, ptr %12, align 16, !tbaa !11
  %114 = load <4 x float>, ptr %13, align 16, !tbaa !11
  %115 = load <4 x float>, ptr @_ZL22_xmm_const_m1_m1_m1_p1, align 16, !tbaa !11
  %116 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %114, <4 x float> noundef %115)
  store <4 x float> %116, ptr %13, align 16, !tbaa !11
  %117 = load <4 x float>, ptr %14, align 16, !tbaa !11
  %118 = load <4 x float>, ptr @_ZL22_xmm_const_m1_m1_m1_p1, align 16, !tbaa !11
  %119 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %117, <4 x float> noundef %118)
  store <4 x float> %119, ptr %14, align 16, !tbaa !11
  %120 = load <4 x float>, ptr %15, align 16, !tbaa !11
  %121 = load <4 x float>, ptr @_ZL22_xmm_const_m1_m1_m1_p1, align 16, !tbaa !11
  %122 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %120, <4 x float> noundef %121)
  store <4 x float> %122, ptr %15, align 16, !tbaa !11
  %123 = load <4 x float>, ptr %12, align 16, !tbaa !11
  %124 = load <4 x float>, ptr @_ZL13_xmm_const_p0, align 16, !tbaa !11
  %125 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %123, <4 x float> noundef %124)
  store <4 x float> %125, ptr %12, align 16, !tbaa !11
  %126 = load <4 x float>, ptr %13, align 16, !tbaa !11
  %127 = load <4 x float>, ptr @_ZL13_xmm_const_p0, align 16, !tbaa !11
  %128 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %126, <4 x float> noundef %127)
  store <4 x float> %128, ptr %13, align 16, !tbaa !11
  %129 = load <4 x float>, ptr %14, align 16, !tbaa !11
  %130 = load <4 x float>, ptr @_ZL13_xmm_const_p0, align 16, !tbaa !11
  %131 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %129, <4 x float> noundef %130)
  store <4 x float> %131, ptr %14, align 16, !tbaa !11
  %132 = load <4 x float>, ptr %15, align 16, !tbaa !11
  %133 = load <4 x float>, ptr @_ZL13_xmm_const_p0, align 16, !tbaa !11
  %134 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %132, <4 x float> noundef %133)
  store <4 x float> %134, ptr %15, align 16, !tbaa !11
  %135 = load <4 x float>, ptr %8, align 16, !tbaa !11
  %136 = call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %135)
  %137 = bitcast <2 x i64> %136 to <4 x i32>
  %138 = shufflevector <4 x i32> %137, <4 x i32> poison, <4 x i32> <i32 2, i32 2, i32 2, i32 2>
  %139 = bitcast <4 x i32> %138 to <2 x i64>
  %140 = call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %139)
  store <4 x float> %140, ptr %16, align 16, !tbaa !11
  %141 = load <4 x float>, ptr %9, align 16, !tbaa !11
  %142 = call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %141)
  %143 = bitcast <2 x i64> %142 to <4 x i32>
  %144 = shufflevector <4 x i32> %143, <4 x i32> poison, <4 x i32> <i32 2, i32 2, i32 2, i32 2>
  %145 = bitcast <4 x i32> %144 to <2 x i64>
  %146 = call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %145)
  store <4 x float> %146, ptr %17, align 16, !tbaa !11
  %147 = load <4 x float>, ptr %8, align 16, !tbaa !11
  %148 = call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %147)
  %149 = bitcast <2 x i64> %148 to <4 x i32>
  %150 = shufflevector <4 x i32> %149, <4 x i32> poison, <4 x i32> <i32 0, i32 3, i32 3, i32 3>
  %151 = bitcast <4 x i32> %150 to <2 x i64>
  %152 = call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %151)
  store <4 x float> %152, ptr %8, align 16, !tbaa !11
  %153 = load <4 x float>, ptr %9, align 16, !tbaa !11
  %154 = call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %153)
  %155 = bitcast <2 x i64> %154 to <4 x i32>
  %156 = shufflevector <4 x i32> %155, <4 x i32> poison, <4 x i32> <i32 0, i32 3, i32 3, i32 3>
  %157 = bitcast <4 x i32> %156 to <2 x i64>
  %158 = call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %157)
  store <4 x float> %158, ptr %9, align 16, !tbaa !11
  %159 = load <4 x float>, ptr %12, align 16, !tbaa !11
  %160 = load <4 x float>, ptr %16, align 16, !tbaa !11
  %161 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %159, <4 x float> noundef %160)
  store <4 x float> %161, ptr %12, align 16, !tbaa !11
  %162 = load <4 x float>, ptr %13, align 16, !tbaa !11
  %163 = load <4 x float>, ptr %17, align 16, !tbaa !11
  %164 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %162, <4 x float> noundef %163)
  store <4 x float> %164, ptr %13, align 16, !tbaa !11
  %165 = load <4 x float>, ptr %10, align 16, !tbaa !11
  %166 = call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %165)
  %167 = bitcast <2 x i64> %166 to <4 x i32>
  %168 = shufflevector <4 x i32> %167, <4 x i32> poison, <4 x i32> <i32 2, i32 2, i32 2, i32 2>
  %169 = bitcast <4 x i32> %168 to <2 x i64>
  %170 = call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %169)
  store <4 x float> %170, ptr %16, align 16, !tbaa !11
  %171 = load <4 x float>, ptr %11, align 16, !tbaa !11
  %172 = call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %171)
  %173 = bitcast <2 x i64> %172 to <4 x i32>
  %174 = shufflevector <4 x i32> %173, <4 x i32> poison, <4 x i32> <i32 2, i32 2, i32 2, i32 2>
  %175 = bitcast <4 x i32> %174 to <2 x i64>
  %176 = call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %175)
  store <4 x float> %176, ptr %17, align 16, !tbaa !11
  %177 = load <4 x float>, ptr %12, align 16, !tbaa !11
  %178 = load <4 x float>, ptr %8, align 16, !tbaa !11
  %179 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %177, <4 x float> noundef %178)
  store <4 x float> %179, ptr %12, align 16, !tbaa !11
  %180 = load <4 x float>, ptr %13, align 16, !tbaa !11
  %181 = load <4 x float>, ptr %9, align 16, !tbaa !11
  %182 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %180, <4 x float> noundef %181)
  store <4 x float> %182, ptr %13, align 16, !tbaa !11
  %183 = load <4 x float>, ptr %10, align 16, !tbaa !11
  %184 = call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %183)
  %185 = bitcast <2 x i64> %184 to <4 x i32>
  %186 = shufflevector <4 x i32> %185, <4 x i32> poison, <4 x i32> <i32 0, i32 3, i32 3, i32 3>
  %187 = bitcast <4 x i32> %186 to <2 x i64>
  %188 = call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %187)
  store <4 x float> %188, ptr %10, align 16, !tbaa !11
  %189 = load <4 x float>, ptr %11, align 16, !tbaa !11
  %190 = call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %189)
  %191 = bitcast <2 x i64> %190 to <4 x i32>
  %192 = shufflevector <4 x i32> %191, <4 x i32> poison, <4 x i32> <i32 0, i32 3, i32 3, i32 3>
  %193 = bitcast <4 x i32> %192 to <2 x i64>
  %194 = call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %193)
  store <4 x float> %194, ptr %11, align 16, !tbaa !11
  %195 = load <4 x float>, ptr %14, align 16, !tbaa !11
  %196 = load <4 x float>, ptr %16, align 16, !tbaa !11
  %197 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %195, <4 x float> noundef %196)
  store <4 x float> %197, ptr %14, align 16, !tbaa !11
  %198 = load <4 x float>, ptr %15, align 16, !tbaa !11
  %199 = load <4 x float>, ptr %17, align 16, !tbaa !11
  %200 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %198, <4 x float> noundef %199)
  store <4 x float> %200, ptr %15, align 16, !tbaa !11
  %201 = load <4 x float>, ptr %12, align 16, !tbaa !11
  %202 = load <4 x float>, ptr %8, align 16, !tbaa !11
  %203 = call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %201, <4 x float> noundef %202)
  store <4 x float> %203, ptr %12, align 16, !tbaa !11
  %204 = load <4 x float>, ptr %14, align 16, !tbaa !11
  %205 = load <4 x float>, ptr %10, align 16, !tbaa !11
  %206 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %204, <4 x float> noundef %205)
  store <4 x float> %206, ptr %14, align 16, !tbaa !11
  %207 = load <4 x float>, ptr %15, align 16, !tbaa !11
  %208 = load <4 x float>, ptr %11, align 16, !tbaa !11
  %209 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %207, <4 x float> noundef %208)
  store <4 x float> %209, ptr %15, align 16, !tbaa !11
  %210 = load <4 x float>, ptr %13, align 16, !tbaa !11
  %211 = load <4 x float>, ptr %9, align 16, !tbaa !11
  %212 = call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %210, <4 x float> noundef %211)
  store <4 x float> %212, ptr %13, align 16, !tbaa !11
  %213 = load <4 x float>, ptr %14, align 16, !tbaa !11
  %214 = load <4 x float>, ptr %10, align 16, !tbaa !11
  %215 = call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %213, <4 x float> noundef %214)
  store <4 x float> %215, ptr %14, align 16, !tbaa !11
  %216 = load <4 x float>, ptr %15, align 16, !tbaa !11
  %217 = load <4 x float>, ptr %11, align 16, !tbaa !11
  %218 = call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %216, <4 x float> noundef %217)
  store <4 x float> %218, ptr %15, align 16, !tbaa !11
  %219 = load ptr, ptr %4, align 8, !tbaa !5
  %220 = getelementptr inbounds float, ptr %219, i64 0
  %221 = load <4 x float>, ptr %12, align 16, !tbaa !11
  call void @_ZL15_mm_store_ps_myPvDv4_f(ptr noundef %220, <4 x float> noundef %221)
  %222 = load ptr, ptr %4, align 8, !tbaa !5
  %223 = getelementptr inbounds float, ptr %222, i64 4
  %224 = load <4 x float>, ptr %13, align 16, !tbaa !11
  call void @_ZL15_mm_store_ps_myPvDv4_f(ptr noundef %223, <4 x float> noundef %224)
  %225 = load ptr, ptr %4, align 8, !tbaa !5
  %226 = getelementptr inbounds float, ptr %225, i64 8
  %227 = load <4 x float>, ptr %14, align 16, !tbaa !11
  call void @_ZL15_mm_store_ps_myPvDv4_f(ptr noundef %226, <4 x float> noundef %227)
  %228 = load ptr, ptr %4, align 8, !tbaa !5
  %229 = getelementptr inbounds float, ptr %228, i64 12
  %230 = load <4 x float>, ptr %15, align 16, !tbaa !11
  call void @_ZL15_mm_store_ps_myPvDv4_f(ptr noundef %229, <4 x float> noundef %230)
  %231 = load ptr, ptr %4, align 8, !tbaa !5
  %232 = getelementptr inbounds float, ptr %231, i64 16
  store ptr %232, ptr %4, align 8, !tbaa !5
  %233 = load ptr, ptr %5, align 8, !tbaa !5
  %234 = getelementptr inbounds float, ptr %233, i64 16
  store ptr %234, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #3
  br label %22, !llvm.loop !12

235:                                              ; preds = %22
  %236 = load i32, ptr %7, align 4, !tbaa !9
  %237 = add nsw i32 %236, 4
  store i32 %237, ptr %7, align 4, !tbaa !9
  br label %238

238:                                              ; preds = %241, %235
  %239 = load i32, ptr %7, align 4, !tbaa !9
  %240 = icmp ne i32 %239, 0
  br i1 %240, label %241, label %293

241:                                              ; preds = %238
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #3
  %242 = load ptr, ptr %5, align 8, !tbaa !5
  %243 = call noundef <4 x float> @_ZL14_mm_load_ps_myPKv(ptr noundef %242)
  store <4 x float> %243, ptr %20, align 16, !tbaa !11
  %244 = load <4 x float>, ptr %20, align 16, !tbaa !11
  %245 = call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %244)
  %246 = bitcast <2 x i64> %245 to <4 x i32>
  %247 = shufflevector <4 x i32> %246, <4 x i32> poison, <4 x i32> <i32 3, i32 1, i32 1, i32 1>
  %248 = bitcast <4 x i32> %247 to <2 x i64>
  %249 = call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %248)
  store <4 x float> %249, ptr %18, align 16, !tbaa !11
  %250 = load <4 x float>, ptr %18, align 16, !tbaa !11
  %251 = load <4 x float>, ptr @_ZL28_xmm_const_p4o6_p2o6_p3o6_p0, align 16, !tbaa !11
  %252 = call noundef <4 x float> @_ZL10_mm_sub_psDv4_fS_(<4 x float> noundef %250, <4 x float> noundef %251)
  store <4 x float> %252, ptr %18, align 16, !tbaa !11
  %253 = load <4 x float>, ptr %20, align 16, !tbaa !11
  %254 = call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %253)
  %255 = bitcast <2 x i64> %254 to <4 x i32>
  %256 = shufflevector <4 x i32> %255, <4 x i32> poison, <4 x i32> <i32 2, i32 2, i32 2, i32 2>
  %257 = bitcast <4 x i32> %256 to <2 x i64>
  %258 = call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %257)
  store <4 x float> %258, ptr %19, align 16, !tbaa !11
  %259 = load <4 x float>, ptr %18, align 16, !tbaa !11
  %260 = load <4 x float>, ptr @_ZL14_xmm_const_abs, align 16, !tbaa !11
  %261 = call noundef <4 x float> @_ZL10_mm_and_psDv4_fS_(<4 x float> noundef %259, <4 x float> noundef %260)
  store <4 x float> %261, ptr %18, align 16, !tbaa !11
  %262 = load <4 x float>, ptr %20, align 16, !tbaa !11
  %263 = call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %262)
  %264 = bitcast <2 x i64> %263 to <4 x i32>
  %265 = shufflevector <4 x i32> %264, <4 x i32> poison, <4 x i32> <i32 0, i32 3, i32 3, i32 3>
  %266 = bitcast <4 x i32> %265 to <2 x i64>
  %267 = call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %266)
  store <4 x float> %267, ptr %20, align 16, !tbaa !11
  %268 = load <4 x float>, ptr %18, align 16, !tbaa !11
  %269 = load <4 x float>, ptr @_ZL22_xmm_const_m6_m6_p6_p0, align 16, !tbaa !11
  %270 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %268, <4 x float> noundef %269)
  store <4 x float> %270, ptr %18, align 16, !tbaa !11
  %271 = load <4 x float>, ptr %18, align 16, !tbaa !11
  %272 = load <4 x float>, ptr @_ZL22_xmm_const_p1_p1_m2_p0, align 16, !tbaa !11
  %273 = call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %271, <4 x float> noundef %272)
  store <4 x float> %273, ptr %18, align 16, !tbaa !11
  %274 = load <4 x float>, ptr %18, align 16, !tbaa !11
  %275 = load <4 x float>, ptr @_ZL22_xmm_const_m1_m1_m1_p1, align 16, !tbaa !11
  %276 = call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %274, <4 x float> noundef %275)
  store <4 x float> %276, ptr %18, align 16, !tbaa !11
  %277 = load <4 x float>, ptr %18, align 16, !tbaa !11
  %278 = load <4 x float>, ptr @_ZL13_xmm_const_p0, align 16, !tbaa !11
  %279 = call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %277, <4 x float> noundef %278)
  store <4 x float> %279, ptr %18, align 16, !tbaa !11
  %280 = load <4 x float>, ptr %18, align 16, !tbaa !11
  %281 = load <4 x float>, ptr %19, align 16, !tbaa !11
  %282 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %280, <4 x float> noundef %281)
  store <4 x float> %282, ptr %18, align 16, !tbaa !11
  %283 = load <4 x float>, ptr %18, align 16, !tbaa !11
  %284 = load <4 x float>, ptr %20, align 16, !tbaa !11
  %285 = call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %283, <4 x float> noundef %284)
  store <4 x float> %285, ptr %18, align 16, !tbaa !11
  %286 = load <4 x float>, ptr %18, align 16, !tbaa !11
  %287 = load <4 x float>, ptr %20, align 16, !tbaa !11
  %288 = call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %286, <4 x float> noundef %287)
  store <4 x float> %288, ptr %18, align 16, !tbaa !11
  %289 = load ptr, ptr %4, align 8, !tbaa !5
  %290 = load <4 x float>, ptr %18, align 16, !tbaa !11
  call void @_ZL15_mm_store_ps_myPvDv4_f(ptr noundef %289, <4 x float> noundef %290)
  %291 = load i32, ptr %7, align 4, !tbaa !9
  %292 = add nsw i32 %291, -1
  store i32 %292, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #3
  br label %238, !llvm.loop !14

293:                                              ; preds = %238
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  ret void
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL14_mm_load_ps_myPKv(ptr noundef) #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef) #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef) #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL10_mm_sub_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL10_mm_and_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @_ZL15_mm_store_ps_myPvDv4_f(ptr noundef, <4 x float> noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="128" "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 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"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"

@_ZL28_xmm_const_p4o6_p2o6_p3o6_p0 = external hidden local_unnamed_addr constant [4 x float], align 16
@_ZL14_xmm_const_abs = external hidden local_unnamed_addr constant [4 x i32], align 16
@_ZL22_xmm_const_m6_m6_p6_p0 = external hidden local_unnamed_addr constant [4 x float], align 16
@_ZL22_xmm_const_p1_p1_m2_p0 = external hidden local_unnamed_addr constant [4 x float], align 16
@_ZL22_xmm_const_m1_m1_m1_p1 = external hidden local_unnamed_addr constant [4 x float], align 16
@_ZL13_xmm_const_p0 = external hidden local_unnamed_addr constant [4 x float], align 16

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z19argb_from_ahsv_sse2PfPKfi(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = icmp sgt i32 %2, 3
  br i1 %4, label %.lr.ph, label %.preheader

.lr.ph:                                           ; preds = %3
  %5 = load <4 x float>, ptr @_ZL28_xmm_const_p4o6_p2o6_p3o6_p0, align 16
  %6 = load <4 x float>, ptr @_ZL14_xmm_const_abs, align 16
  %7 = load <4 x float>, ptr @_ZL22_xmm_const_m6_m6_p6_p0, align 16
  %8 = load <4 x float>, ptr @_ZL22_xmm_const_p1_p1_m2_p0, align 16
  %9 = load <4 x float>, ptr @_ZL22_xmm_const_m1_m1_m1_p1, align 16
  %10 = load <4 x float>, ptr @_ZL13_xmm_const_p0, align 16
  br label %17

.preheader:                                       ; preds = %17, %3
  %.097.lcssa = phi i32 [ %2, %3 ], [ %18, %17 ]
  %.096.lcssa = phi ptr [ %1, %3 ], [ %126, %17 ]
  %.0.lcssa = phi ptr [ %0, %3 ], [ %125, %17 ]
  %.not104 = icmp eq i32 %.097.lcssa, 0
  br i1 %.not104, label %._crit_edge, label %.lr.ph106

.lr.ph106:                                        ; preds = %.preheader
  %11 = load <4 x float>, ptr @_ZL28_xmm_const_p4o6_p2o6_p3o6_p0, align 16
  %12 = load <4 x float>, ptr @_ZL14_xmm_const_abs, align 16
  %13 = load <4 x float>, ptr @_ZL22_xmm_const_m6_m6_p6_p0, align 16
  %14 = load <4 x float>, ptr @_ZL22_xmm_const_p1_p1_m2_p0, align 16
  %15 = load <4 x float>, ptr @_ZL22_xmm_const_m1_m1_m1_p1, align 16
  %16 = load <4 x float>, ptr @_ZL13_xmm_const_p0, align 16
  br label %128

17:                                               ; preds = %.lr.ph, %17
  %.0101 = phi ptr [ %0, %.lr.ph ], [ %125, %17 ]
  %.096100 = phi ptr [ %1, %.lr.ph ], [ %126, %17 ]
  %.09799 = phi i32 [ %2, %.lr.ph ], [ %18, %17 ]
  %18 = add nsw i32 %.09799, -4
  %19 = tail call noundef <4 x float> @_ZL14_mm_load_ps_myPKv(ptr noundef %.096100)
  %20 = getelementptr inbounds i8, ptr %.096100, i64 16
  %21 = tail call noundef <4 x float> @_ZL14_mm_load_ps_myPKv(ptr noundef nonnull %20)
  %22 = getelementptr inbounds i8, ptr %.096100, i64 32
  %23 = tail call noundef <4 x float> @_ZL14_mm_load_ps_myPKv(ptr noundef nonnull %22)
  %24 = getelementptr inbounds i8, ptr %.096100, i64 48
  %25 = tail call noundef <4 x float> @_ZL14_mm_load_ps_myPKv(ptr noundef nonnull %24)
  %26 = tail call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %19)
  %27 = bitcast <2 x i64> %26 to <4 x i32>
  %28 = shufflevector <4 x i32> %27, <4 x i32> poison, <4 x i32> <i32 3, i32 1, i32 1, i32 1>
  %29 = bitcast <4 x i32> %28 to <2 x i64>
  %30 = tail call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %29)
  %31 = tail call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %21)
  %32 = bitcast <2 x i64> %31 to <4 x i32>
  %33 = shufflevector <4 x i32> %32, <4 x i32> poison, <4 x i32> <i32 3, i32 1, i32 1, i32 1>
  %34 = bitcast <4 x i32> %33 to <2 x i64>
  %35 = tail call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %34)
  %36 = tail call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %23)
  %37 = bitcast <2 x i64> %36 to <4 x i32>
  %38 = shufflevector <4 x i32> %37, <4 x i32> poison, <4 x i32> <i32 3, i32 1, i32 1, i32 1>
  %39 = bitcast <4 x i32> %38 to <2 x i64>
  %40 = tail call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %39)
  %41 = tail call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %25)
  %42 = bitcast <2 x i64> %41 to <4 x i32>
  %43 = shufflevector <4 x i32> %42, <4 x i32> poison, <4 x i32> <i32 3, i32 1, i32 1, i32 1>
  %44 = bitcast <4 x i32> %43 to <2 x i64>
  %45 = tail call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %44)
  %46 = tail call noundef <4 x float> @_ZL10_mm_sub_psDv4_fS_(<4 x float> noundef %30, <4 x float> noundef %5)
  %47 = tail call noundef <4 x float> @_ZL10_mm_sub_psDv4_fS_(<4 x float> noundef %35, <4 x float> noundef %5)
  %48 = tail call noundef <4 x float> @_ZL10_mm_sub_psDv4_fS_(<4 x float> noundef %40, <4 x float> noundef %5)
  %49 = tail call noundef <4 x float> @_ZL10_mm_sub_psDv4_fS_(<4 x float> noundef %45, <4 x float> noundef %5)
  %50 = tail call noundef <4 x float> @_ZL10_mm_and_psDv4_fS_(<4 x float> noundef %46, <4 x float> noundef %6)
  %51 = tail call noundef <4 x float> @_ZL10_mm_and_psDv4_fS_(<4 x float> noundef %47, <4 x float> noundef %6)
  %52 = tail call noundef <4 x float> @_ZL10_mm_and_psDv4_fS_(<4 x float> noundef %48, <4 x float> noundef %6)
  %53 = tail call noundef <4 x float> @_ZL10_mm_and_psDv4_fS_(<4 x float> noundef %49, <4 x float> noundef %6)
  %54 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %50, <4 x float> noundef %7)
  %55 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %51, <4 x float> noundef %7)
  %56 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %52, <4 x float> noundef %7)
  %57 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %53, <4 x float> noundef %7)
  %58 = tail call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %54, <4 x float> noundef %8)
  %59 = tail call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %55, <4 x float> noundef %8)
  %60 = tail call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %56, <4 x float> noundef %8)
  %61 = tail call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %57, <4 x float> noundef %8)
  %62 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %58, <4 x float> noundef %9)
  %63 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %59, <4 x float> noundef %9)
  %64 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %60, <4 x float> noundef %9)
  %65 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %61, <4 x float> noundef %9)
  %66 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %62, <4 x float> noundef %10)
  %67 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %63, <4 x float> noundef %10)
  %68 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %64, <4 x float> noundef %10)
  %69 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %65, <4 x float> noundef %10)
  %70 = tail call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %19)
  %71 = bitcast <2 x i64> %70 to <4 x i32>
  %72 = shufflevector <4 x i32> %71, <4 x i32> poison, <4 x i32> <i32 2, i32 2, i32 2, i32 2>
  %73 = bitcast <4 x i32> %72 to <2 x i64>
  %74 = tail call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %73)
  %75 = tail call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %21)
  %76 = bitcast <2 x i64> %75 to <4 x i32>
  %77 = shufflevector <4 x i32> %76, <4 x i32> poison, <4 x i32> <i32 2, i32 2, i32 2, i32 2>
  %78 = bitcast <4 x i32> %77 to <2 x i64>
  %79 = tail call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %78)
  %80 = tail call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %19)
  %81 = bitcast <2 x i64> %80 to <4 x i32>
  %82 = shufflevector <4 x i32> %81, <4 x i32> poison, <4 x i32> <i32 0, i32 3, i32 3, i32 3>
  %83 = bitcast <4 x i32> %82 to <2 x i64>
  %84 = tail call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %83)
  %85 = tail call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %21)
  %86 = bitcast <2 x i64> %85 to <4 x i32>
  %87 = shufflevector <4 x i32> %86, <4 x i32> poison, <4 x i32> <i32 0, i32 3, i32 3, i32 3>
  %88 = bitcast <4 x i32> %87 to <2 x i64>
  %89 = tail call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %88)
  %90 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %66, <4 x float> noundef %74)
  %91 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %67, <4 x float> noundef %79)
  %92 = tail call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %23)
  %93 = bitcast <2 x i64> %92 to <4 x i32>
  %94 = shufflevector <4 x i32> %93, <4 x i32> poison, <4 x i32> <i32 2, i32 2, i32 2, i32 2>
  %95 = bitcast <4 x i32> %94 to <2 x i64>
  %96 = tail call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %95)
  %97 = tail call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %25)
  %98 = bitcast <2 x i64> %97 to <4 x i32>
  %99 = shufflevector <4 x i32> %98, <4 x i32> poison, <4 x i32> <i32 2, i32 2, i32 2, i32 2>
  %100 = bitcast <4 x i32> %99 to <2 x i64>
  %101 = tail call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %100)
  %102 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %90, <4 x float> noundef %84)
  %103 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %91, <4 x float> noundef %89)
  %104 = tail call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %23)
  %105 = bitcast <2 x i64> %104 to <4 x i32>
  %106 = shufflevector <4 x i32> %105, <4 x i32> poison, <4 x i32> <i32 0, i32 3, i32 3, i32 3>
  %107 = bitcast <4 x i32> %106 to <2 x i64>
  %108 = tail call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %107)
  %109 = tail call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %25)
  %110 = bitcast <2 x i64> %109 to <4 x i32>
  %111 = shufflevector <4 x i32> %110, <4 x i32> poison, <4 x i32> <i32 0, i32 3, i32 3, i32 3>
  %112 = bitcast <4 x i32> %111 to <2 x i64>
  %113 = tail call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %112)
  %114 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %68, <4 x float> noundef %96)
  %115 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %69, <4 x float> noundef %101)
  %116 = tail call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %102, <4 x float> noundef %84)
  %117 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %114, <4 x float> noundef %108)
  %118 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %115, <4 x float> noundef %113)
  %119 = tail call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %103, <4 x float> noundef %89)
  %120 = tail call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %117, <4 x float> noundef %108)
  %121 = tail call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %118, <4 x float> noundef %113)
  tail call void @_ZL15_mm_store_ps_myPvDv4_f(ptr noundef %.0101, <4 x float> noundef %116)
  %122 = getelementptr inbounds i8, ptr %.0101, i64 16
  tail call void @_ZL15_mm_store_ps_myPvDv4_f(ptr noundef nonnull %122, <4 x float> noundef %119)
  %123 = getelementptr inbounds i8, ptr %.0101, i64 32
  tail call void @_ZL15_mm_store_ps_myPvDv4_f(ptr noundef nonnull %123, <4 x float> noundef %120)
  %124 = getelementptr inbounds i8, ptr %.0101, i64 48
  tail call void @_ZL15_mm_store_ps_myPvDv4_f(ptr noundef nonnull %124, <4 x float> noundef %121)
  %125 = getelementptr inbounds i8, ptr %.0101, i64 64
  %126 = getelementptr inbounds i8, ptr %.096100, i64 64
  %127 = icmp ugt i32 %.09799, 7
  br i1 %127, label %17, label %.preheader, !llvm.loop !5

128:                                              ; preds = %.lr.ph106, %128
  %.1105 = phi i32 [ %.097.lcssa, %.lr.ph106 ], [ %154, %128 ]
  %129 = tail call noundef <4 x float> @_ZL14_mm_load_ps_myPKv(ptr noundef %.096.lcssa)
  %130 = tail call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %129)
  %131 = bitcast <2 x i64> %130 to <4 x i32>
  %132 = shufflevector <4 x i32> %131, <4 x i32> poison, <4 x i32> <i32 3, i32 1, i32 1, i32 1>
  %133 = bitcast <4 x i32> %132 to <2 x i64>
  %134 = tail call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %133)
  %135 = tail call noundef <4 x float> @_ZL10_mm_sub_psDv4_fS_(<4 x float> noundef %134, <4 x float> noundef %11)
  %136 = tail call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %129)
  %137 = bitcast <2 x i64> %136 to <4 x i32>
  %138 = shufflevector <4 x i32> %137, <4 x i32> poison, <4 x i32> <i32 2, i32 2, i32 2, i32 2>
  %139 = bitcast <4 x i32> %138 to <2 x i64>
  %140 = tail call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %139)
  %141 = tail call noundef <4 x float> @_ZL10_mm_and_psDv4_fS_(<4 x float> noundef %135, <4 x float> noundef %12)
  %142 = tail call noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef %129)
  %143 = bitcast <2 x i64> %142 to <4 x i32>
  %144 = shufflevector <4 x i32> %143, <4 x i32> poison, <4 x i32> <i32 0, i32 3, i32 3, i32 3>
  %145 = bitcast <4 x i32> %144 to <2 x i64>
  %146 = tail call noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef %145)
  %147 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %141, <4 x float> noundef %13)
  %148 = tail call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %147, <4 x float> noundef %14)
  %149 = tail call noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef %148, <4 x float> noundef %15)
  %150 = tail call noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef %149, <4 x float> noundef %16)
  %151 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %150, <4 x float> noundef %140)
  %152 = tail call noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef %151, <4 x float> noundef %146)
  %153 = tail call noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef %152, <4 x float> noundef %146)
  tail call void @_ZL15_mm_store_ps_myPvDv4_f(ptr noundef %.0.lcssa, <4 x float> noundef %153)
  %154 = add nsw i32 %.1105, -1
  %.not = icmp eq i32 %154, 0
  br i1 %.not, label %._crit_edge, label %128, !llvm.loop !7

._crit_edge:                                      ; preds = %128, %.preheader
  ret void
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL14_mm_load_ps_myPKv(ptr noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL16_mm_castsi128_psDv2_x(<2 x i64> noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <2 x i64> @_ZL16_mm_castps_si128Dv4_f(<4 x float> noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL10_mm_sub_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL10_mm_and_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL10_mm_mul_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL10_mm_add_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL10_mm_max_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef <4 x float> @_ZL10_mm_min_psDv4_fS_(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden void @_ZL15_mm_store_ps_myPvDv4_f(ptr noundef, <4 x float> noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="128" "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 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass