; LLVM IR from ARM-software/Arm-2D :: Library/Source (arm_2d_transform)

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

%struct.__arm_2d_op_control = type { %struct.anon.22 }
%struct.anon.22 = type { ptr, %struct.anon.23, %struct.anon.24, i16, i16, i16, i16, ptr, %union.anon.25 }
%struct.anon.23 = type { ptr, ptr }
%struct.anon.24 = type { ptr, ptr }
%union.anon.25 = type { %struct.arm_2d_op_trans_msk_opa_t }
%struct.arm_2d_op_trans_msk_opa_t = type { %struct.arm_2d_op_core_t, %struct.anon.65, %struct.anon.66, %union.anon.67, %struct.anon.69, %struct.anon.70, %struct.__arm_2d_transform_info_t, i8 }
%struct.arm_2d_op_core_t = type { %struct.anon.26, i64 }
%struct.anon.26 = type { ptr, ptr, %struct.anon.27, i8, %union.arm_2d_op_status_t, %struct.arm_2d_op_evt_t }
%struct.anon.27 = type { i8 }
%union.arm_2d_op_status_t = type { %struct.anon.28 }
%struct.anon.28 = type { i16 }
%struct.arm_2d_op_evt_t = type { ptr, ptr }
%struct.anon.65 = type { ptr, ptr }
%struct.anon.66 = type { ptr }
%union.anon.67 = type { %struct.anon.68 }
%struct.anon.68 = type { i32 }
%struct.anon.69 = type { ptr, %struct.arm_2d_tile_t }
%struct.arm_2d_tile_t = type { %union.anon.6, %union.anon.15, %union.anon.16 }
%union.anon.6 = type { %struct.anon.7 }
%struct.anon.7 = type { i8, %union.arm_2d_color_info_t, %union.anon.8 }
%union.arm_2d_color_info_t = type { %struct.anon }
%struct.anon = type { i8 }
%union.anon.8 = type { i16 }
%union.anon.15 = type { %struct.arm_2d_region_t }
%struct.arm_2d_region_t = type { %union.anon.1, %union.anon.2 }
%union.anon.1 = type { %struct.arm_2d_location_t }
%struct.arm_2d_location_t = type { i16, i16 }
%union.anon.2 = type { %struct.arm_2d_size_t }
%struct.arm_2d_size_t = type { i16, i16 }
%union.anon.16 = type { ptr }
%struct.anon.70 = type { ptr, ptr }
%struct.__arm_2d_transform_info_t = type { float, float, float, %struct.arm_2d_point_float_t, %union.anon.3, %struct.anon.4 }
%struct.arm_2d_point_float_t = type { float, float }
%union.anon.3 = type { i32 }
%struct.anon.4 = type { %struct.arm_2d_location_t, %struct.anon.5 }
%struct.anon.5 = type { %struct.arm_2d_region_t, %struct.arm_2d_tile_t }
%union.anon.78 = type { %struct.anon.79 }
%struct.anon.79 = type { i8 }
%union.anon.80 = type { %struct.anon.81 }
%struct.anon.81 = type { i8, i8 }
%struct.anon.86 = type { ptr, ptr }
%struct.arm_2d_op_trans_msk_t = type { %struct.arm_2d_op_core_t, %struct.anon.93, %struct.anon.94, %union.anon.95, %struct.anon.97, %struct.anon.98, %struct.__arm_2d_transform_info_t }
%struct.anon.93 = type { ptr, ptr }
%struct.anon.94 = type { ptr }
%union.anon.95 = type { %struct.anon.96 }
%struct.anon.96 = type { i32 }
%struct.anon.97 = type { ptr, %struct.arm_2d_tile_t }
%struct.anon.98 = type { ptr, ptr }

@.str = external hidden unnamed_addr constant [17 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [87 x i8], align 1
@ARM_2D_CTRL = external global %struct.__arm_2d_op_control, align 8
@__PRETTY_FUNCTION__.arm_2dp_cccn888_tile_transform_xy_with_src_mask_prepare = external hidden unnamed_addr constant [189 x i8], align 1
@ARM_2D_OP_TRANSFORM_WITH_SRC_MSK_CCCN888 = external dso_local constant { { { i8 }, %union.anon.78, i8, i8, %union.anon.80, { %struct.anon.86 } } }, align 8

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

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

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

declare zeroext i1 @arm_2d_op_wait_async(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @__arm_2d_transform_preprocess_source(ptr noundef, ptr noundef) #4

declare i32 @__arm_mask_validate(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @arm_2dp_cccn888_tile_transform_xy_with_src_mask_prepare(ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull %2, <2 x float> %3, float noundef %4, float noundef %5, float noundef %6) #5 {
  %8 = alloca i32, align 4
  %9 = alloca %struct.arm_2d_point_float_t, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store <2 x float> %3, ptr %9, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store float %4, ptr %13, align 4, !tbaa !9
  store float %5, ptr %14, align 4, !tbaa !9
  store float %6, ptr %15, align 4, !tbaa !9
  %19 = load ptr, ptr %11, align 8, !tbaa !5
  %20 = icmp ne ptr null, %19
  br i1 %20, label %21, label %22

21:                                               ; preds = %7
  br label %23

22:                                               ; preds = %7
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1733, ptr noundef @__PRETTY_FUNCTION__.arm_2dp_cccn888_tile_transform_xy_with_src_mask_prepare) #6
  unreachable

23:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %24 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %24, ptr %16, align 8, !tbaa !5
  %25 = load ptr, ptr %16, align 8, !tbaa !5
  %26 = icmp eq ptr null, %25
  br i1 %26, label %27, label %28

27:                                               ; preds = %23
  store ptr getelementptr inbounds (%struct.anon.22, ptr @ARM_2D_CTRL, i32 0, i32 8), ptr %16, align 8, !tbaa !5
  br label %28

28:                                               ; preds = %27, %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %29 = load ptr, ptr %11, align 8, !tbaa !5
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  %31 = call i32 @__arm_mask_validate(ptr noundef %29, ptr noundef %30, ptr noundef null, ptr noundef null, i32 noundef 0)
  store i32 %31, ptr %17, align 4, !tbaa !11
  %32 = load i32, ptr %17, align 4, !tbaa !11
  %33 = icmp slt i32 %32, 0
  br i1 %33, label %34, label %41

34:                                               ; preds = %28
  %35 = load ptr, ptr %16, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.arm_2d_op_trans_msk_t, ptr %35, i32 0, i32 3
  %37 = load i32, ptr %36, align 8
  %38 = and i32 %37, 2147483647
  %39 = or i32 %38, -2147483648
  store i32 %39, ptr %36, align 8
  %40 = load i32, ptr %17, align 4, !tbaa !11
  store i32 %40, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %88

41:                                               ; preds = %28
  %42 = load ptr, ptr %16, align 8, !tbaa !5
  %43 = call zeroext i1 @arm_2d_op_wait_async(ptr noundef %42)
  br i1 %43, label %45, label %44

44:                                               ; preds = %41
  store i32 -10, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %88

45:                                               ; preds = %41
  %46 = load ptr, ptr %16, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.arm_2d_op_trans_msk_t, ptr %46, i32 0, i32 0
  %48 = getelementptr inbounds %struct.arm_2d_op_core_t, ptr %47, i32 0, i32 0
  %49 = getelementptr inbounds %struct.anon.26, ptr %48, i32 0, i32 1
  store ptr @ARM_2D_OP_TRANSFORM_WITH_SRC_MSK_CCCN888, ptr %49, align 8, !tbaa !13
  %50 = load ptr, ptr %16, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.arm_2d_op_trans_msk_t, ptr %50, i32 0, i32 4
  %52 = getelementptr inbounds %struct.anon.97, ptr %51, i32 0, i32 1
  %53 = load ptr, ptr %16, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.arm_2d_op_trans_msk_t, ptr %53, i32 0, i32 2
  %55 = getelementptr inbounds %struct.anon.94, ptr %54, i32 0, i32 0
  store ptr %52, ptr %55, align 8, !tbaa !31
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = load ptr, ptr %16, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.arm_2d_op_trans_msk_t, ptr %57, i32 0, i32 4
  %59 = getelementptr inbounds %struct.anon.97, ptr %58, i32 0, i32 0
  store ptr %56, ptr %59, align 8, !tbaa !32
  %60 = load ptr, ptr %16, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.arm_2d_op_trans_msk_t, ptr %60, i32 0, i32 3
  store i32 0, ptr %61, align 8, !tbaa !33
  %62 = load float, ptr %13, align 4, !tbaa !9
  %63 = load ptr, ptr %16, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.arm_2d_op_trans_msk_t, ptr %63, i32 0, i32 6
  %65 = getelementptr inbounds %struct.__arm_2d_transform_info_t, ptr %64, i32 0, i32 0
  store float %62, ptr %65, align 8, !tbaa !34
  %66 = load float, ptr %14, align 4, !tbaa !9
  %67 = load ptr, ptr %16, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.arm_2d_op_trans_msk_t, ptr %67, i32 0, i32 6
  %69 = getelementptr inbounds %struct.__arm_2d_transform_info_t, ptr %68, i32 0, i32 1
  store float %66, ptr %69, align 4, !tbaa !35
  %70 = load float, ptr %15, align 4, !tbaa !9
  %71 = load ptr, ptr %16, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.arm_2d_op_trans_msk_t, ptr %71, i32 0, i32 6
  %73 = getelementptr inbounds %struct.__arm_2d_transform_info_t, ptr %72, i32 0, i32 2
  store float %70, ptr %73, align 8, !tbaa !36
  %74 = load ptr, ptr %16, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.arm_2d_op_trans_msk_t, ptr %74, i32 0, i32 6
  %76 = getelementptr inbounds %struct.__arm_2d_transform_info_t, ptr %75, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %76, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !37
  %77 = load ptr, ptr %12, align 8, !tbaa !5
  %78 = load ptr, ptr %16, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.arm_2d_op_trans_msk_t, ptr %78, i32 0, i32 5
  %80 = getelementptr inbounds %struct.anon.98, ptr %79, i32 0, i32 0
  store ptr %77, ptr %80, align 8, !tbaa !38
  %81 = load ptr, ptr %16, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.arm_2d_op_trans_msk_t, ptr %81, i32 0, i32 5
  %83 = getelementptr inbounds %struct.anon.98, ptr %82, i32 0, i32 1
  store ptr null, ptr %83, align 8, !tbaa !39
  %84 = load ptr, ptr %16, align 8, !tbaa !5
  %85 = load ptr, ptr %16, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.arm_2d_op_trans_msk_t, ptr %85, i32 0, i32 6
  %87 = call i32 @__arm_2d_transform_preprocess_source(ptr noundef %84, ptr noundef %86)
  store i32 %87, ptr %8, align 4
  store i32 1, ptr %18, align 4
  br label %88

88:                                               ; preds = %45, %44, %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  %89 = load i32, ptr %8, align 4
  ret i32 %89
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind 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 = { nounwind uwtable "min-legal-vector-width"="64" "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 #6 = { noreturn nounwind }
attributes #7 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"arm_2d_op_trans_msk_t", !15, i64 0, !20, i64 48, !21, i64 64, !7, i64 72, !22, i64 80, !20, i64 112, !24, i64 128}
!15 = !{!"arm_2d_op_core_t", !16, i64 0, !19, i64 40}
!16 = !{!"", !6, i64 0, !6, i64 8, !17, i64 16, !7, i64 17, !7, i64 18, !18, i64 24}
!17 = !{!"", !7, i64 0}
!18 = !{!"arm_2d_op_evt_t", !6, i64 0, !6, i64 8}
!19 = !{!"long", !7, i64 0}
!20 = !{!"", !6, i64 0, !6, i64 8}
!21 = !{!"", !6, i64 0}
!22 = !{!"", !6, i64 0, !23, i64 8}
!23 = !{!"arm_2d_tile_t", !7, i64 0, !7, i64 4, !7, i64 16}
!24 = !{!"__arm_2d_transform_info_t", !10, i64 0, !10, i64 4, !10, i64 8, !25, i64 12, !7, i64 20, !26, i64 24}
!25 = !{!"arm_2d_point_float_t", !10, i64 0, !10, i64 4}
!26 = !{!"", !27, i64 0, !29, i64 8}
!27 = !{!"arm_2d_location_t", !28, i64 0, !28, i64 2}
!28 = !{!"short", !7, i64 0}
!29 = !{!"", !30, i64 0, !23, i64 8}
!30 = !{!"arm_2d_region_t", !7, i64 0, !7, i64 4}
!31 = !{!14, !6, i64 64}
!32 = !{!14, !6, i64 80}
!33 = !{!7, !7, i64 0}
!34 = !{!14, !10, i64 128}
!35 = !{!14, !10, i64 132}
!36 = !{!14, !10, i64 136}
!37 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!38 = !{!14, !6, i64 112}
!39 = !{!14, !6, i64 120}


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

%struct.__arm_2d_op_control = type { %struct.anon.22 }
%struct.anon.22 = type { ptr, %struct.anon.23, %struct.anon.24, i16, i16, i16, i16, ptr, %union.anon.25 }
%struct.anon.23 = type { ptr, ptr }
%struct.anon.24 = type { ptr, ptr }
%union.anon.25 = type { %struct.arm_2d_op_trans_msk_opa_t }
%struct.arm_2d_op_trans_msk_opa_t = type { %struct.arm_2d_op_core_t, %struct.anon.65, %struct.anon.66, %union.anon.67, %struct.anon.69, %struct.anon.70, %struct.__arm_2d_transform_info_t, i8 }
%struct.arm_2d_op_core_t = type { %struct.anon.26, i64 }
%struct.anon.26 = type { ptr, ptr, %struct.anon.27, i8, %union.arm_2d_op_status_t, %struct.arm_2d_op_evt_t }
%struct.anon.27 = type { i8 }
%union.arm_2d_op_status_t = type { %struct.anon.28 }
%struct.anon.28 = type { i16 }
%struct.arm_2d_op_evt_t = type { ptr, ptr }
%struct.anon.65 = type { ptr, ptr }
%struct.anon.66 = type { ptr }
%union.anon.67 = type { %struct.anon.68 }
%struct.anon.68 = type { i32 }
%struct.anon.69 = type { ptr, %struct.arm_2d_tile_t }
%struct.arm_2d_tile_t = type { %union.anon.6, %union.anon.15, %union.anon.16 }
%union.anon.6 = type { %struct.anon.7 }
%struct.anon.7 = type { i8, %union.arm_2d_color_info_t, %union.anon.8 }
%union.arm_2d_color_info_t = type { %struct.anon }
%struct.anon = type { i8 }
%union.anon.8 = type { i16 }
%union.anon.15 = type { %struct.arm_2d_region_t }
%struct.arm_2d_region_t = type { %union.anon.1, %union.anon.2 }
%union.anon.1 = type { %struct.arm_2d_location_t }
%struct.arm_2d_location_t = type { i16, i16 }
%union.anon.2 = type { %struct.arm_2d_size_t }
%struct.arm_2d_size_t = type { i16, i16 }
%union.anon.16 = type { ptr }
%struct.anon.70 = type { ptr, ptr }
%struct.__arm_2d_transform_info_t = type { float, float, float, %struct.arm_2d_point_float_t, %union.anon.3, %struct.anon.4 }
%struct.arm_2d_point_float_t = type { float, float }
%union.anon.3 = type { i32 }
%struct.anon.4 = type { %struct.arm_2d_location_t, %struct.anon.5 }
%struct.anon.5 = type { %struct.arm_2d_region_t, %struct.arm_2d_tile_t }
%union.anon.78 = type { %struct.anon.79 }
%struct.anon.79 = type { i8 }
%union.anon.80 = type { %struct.anon.81 }
%struct.anon.81 = type { i8, i8 }
%struct.anon.86 = type { ptr, ptr }

@ARM_2D_CTRL = external global %struct.__arm_2d_op_control, align 8
@ARM_2D_OP_TRANSFORM_WITH_SRC_MSK_CCCN888 = external dso_local constant { { { i8 }, %union.anon.78, i8, i8, %union.anon.80, { %struct.anon.86 } } }, align 8

declare zeroext i1 @arm_2d_op_wait_async(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @__arm_2d_transform_preprocess_source(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @__arm_mask_validate(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @arm_2dp_cccn888_tile_transform_xy_with_src_mask_prepare(ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull %2, <2 x float> %3, float noundef %4, float noundef %5, float noundef %6) local_unnamed_addr #2 {
  %8 = icmp eq ptr %0, null
  %spec.store.select = select i1 %8, ptr getelementptr inbounds (i8, ptr @ARM_2D_CTRL, i64 56), ptr %0
  %9 = tail call i32 @__arm_mask_validate(ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef null, ptr noundef null, i32 noundef 0) #3
  %10 = icmp slt i32 %9, 0
  br i1 %10, label %11, label %15

11:                                               ; preds = %7
  %12 = getelementptr inbounds i8, ptr %spec.store.select, i64 72
  %13 = load i32, ptr %12, align 8
  %14 = or i32 %13, -2147483648
  store i32 %14, ptr %12, align 8
  br label %30

15:                                               ; preds = %7
  %16 = tail call zeroext i1 @arm_2d_op_wait_async(ptr noundef nonnull %spec.store.select) #3
  br i1 %16, label %17, label %30

17:                                               ; preds = %15
  %18 = getelementptr inbounds i8, ptr %spec.store.select, i64 8
  store ptr @ARM_2D_OP_TRANSFORM_WITH_SRC_MSK_CCCN888, ptr %18, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %spec.store.select, i64 80
  %20 = getelementptr inbounds i8, ptr %spec.store.select, i64 88
  %21 = getelementptr inbounds i8, ptr %spec.store.select, i64 64
  store ptr %20, ptr %21, align 8, !tbaa !27
  store ptr %1, ptr %19, align 8, !tbaa !28
  %22 = getelementptr inbounds i8, ptr %spec.store.select, i64 72
  store i32 0, ptr %22, align 8, !tbaa !29
  %23 = getelementptr inbounds i8, ptr %spec.store.select, i64 128
  store float %4, ptr %23, align 8, !tbaa !30
  %24 = getelementptr inbounds i8, ptr %spec.store.select, i64 132
  store float %5, ptr %24, align 4, !tbaa !31
  %25 = getelementptr inbounds i8, ptr %spec.store.select, i64 136
  store float %6, ptr %25, align 8, !tbaa !32
  %26 = getelementptr inbounds i8, ptr %spec.store.select, i64 140
  store <2 x float> %3, ptr %26, align 4
  %27 = getelementptr inbounds i8, ptr %spec.store.select, i64 112
  store ptr %2, ptr %27, align 8, !tbaa !33
  %28 = getelementptr inbounds i8, ptr %spec.store.select, i64 120
  store ptr null, ptr %28, align 8, !tbaa !34
  %29 = tail call i32 @__arm_2d_transform_preprocess_source(ptr noundef nonnull %spec.store.select, ptr noundef nonnull %23)
  br label %30

30:                                               ; preds = %15, %17, %11
  %.0 = phi i32 [ %9, %11 ], [ %29, %17 ], [ -10, %15 ]
  ret i32 %.0
}

attributes #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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="64" "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, !9, i64 8}
!6 = !{!"arm_2d_op_trans_msk_t", !7, i64 0, !15, i64 48, !16, i64 64, !10, i64 72, !17, i64 80, !15, i64 112, !19, i64 128}
!7 = !{!"arm_2d_op_core_t", !8, i64 0, !14, i64 40}
!8 = !{!"", !9, i64 0, !9, i64 8, !12, i64 16, !10, i64 17, !10, i64 18, !13, i64 24}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"", !10, i64 0}
!13 = !{!"arm_2d_op_evt_t", !9, i64 0, !9, i64 8}
!14 = !{!"long", !10, i64 0}
!15 = !{!"", !9, i64 0, !9, i64 8}
!16 = !{!"", !9, i64 0}
!17 = !{!"", !9, i64 0, !18, i64 8}
!18 = !{!"arm_2d_tile_t", !10, i64 0, !10, i64 4, !10, i64 16}
!19 = !{!"__arm_2d_transform_info_t", !20, i64 0, !20, i64 4, !20, i64 8, !21, i64 12, !10, i64 20, !22, i64 24}
!20 = !{!"float", !10, i64 0}
!21 = !{!"arm_2d_point_float_t", !20, i64 0, !20, i64 4}
!22 = !{!"", !23, i64 0, !25, i64 8}
!23 = !{!"arm_2d_location_t", !24, i64 0, !24, i64 2}
!24 = !{!"short", !10, i64 0}
!25 = !{!"", !26, i64 0, !18, i64 8}
!26 = !{!"arm_2d_region_t", !10, i64 0, !10, i64 4}
!27 = !{!6, !9, i64 64}
!28 = !{!6, !9, i64 80}
!29 = !{!10, !10, i64 0}
!30 = !{!6, !20, i64 128}
!31 = !{!6, !20, i64 132}
!32 = !{!6, !20, i64 136}
!33 = !{!6, !9, i64 112}
!34 = !{!6, !9, i64 120}


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