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

@.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_and_opacity_prepare = external hidden unnamed_addr constant [219 x i8], align 1
@ARM_2D_OP_TRANSFORM_WITH_SRC_MSK_AND_OPACITY_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_and_opacity_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, i8 noundef zeroext %7) #5 {
  %9 = alloca i32, align 4
  %10 = alloca %struct.arm_2d_point_float_t, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca i8, align 1
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store <2 x float> %3, ptr %10, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %2, ptr %13, align 8, !tbaa !5
  store float %4, ptr %14, align 4, !tbaa !9
  store float %5, ptr %15, align 4, !tbaa !9
  store float %6, ptr %16, align 4, !tbaa !9
  store i8 %7, ptr %17, align 1, !tbaa !11
  %21 = load ptr, ptr %12, align 8, !tbaa !5
  %22 = icmp ne ptr null, %21
  br i1 %22, label %23, label %24

23:                                               ; preds = %8
  br label %25

24:                                               ; preds = %8
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 2038, ptr noundef @__PRETTY_FUNCTION__.arm_2dp_cccn888_tile_transform_xy_with_src_mask_and_opacity_prepare) #6
  unreachable

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

29:                                               ; preds = %25
  store ptr getelementptr inbounds (%struct.anon.22, ptr @ARM_2D_CTRL, i32 0, i32 8), ptr %18, align 8, !tbaa !5
  br label %30

30:                                               ; preds = %29, %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %31 = load ptr, ptr %12, align 8, !tbaa !5
  %32 = load ptr, ptr %13, align 8, !tbaa !5
  %33 = call i32 @__arm_mask_validate(ptr noundef %31, ptr noundef %32, ptr noundef null, ptr noundef null, i32 noundef 0)
  store i32 %33, ptr %19, align 4, !tbaa !12
  %34 = load i32, ptr %19, align 4, !tbaa !12
  %35 = icmp slt i32 %34, 0
  br i1 %35, label %36, label %43

36:                                               ; preds = %30
  %37 = load ptr, ptr %18, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.arm_2d_op_trans_msk_opa_t, ptr %37, i32 0, i32 3
  %39 = load i32, ptr %38, align 8
  %40 = and i32 %39, 2147483647
  %41 = or i32 %40, -2147483648
  store i32 %41, ptr %38, align 8
  %42 = load i32, ptr %19, align 4, !tbaa !12
  store i32 %42, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %93

43:                                               ; preds = %30
  %44 = load ptr, ptr %18, align 8, !tbaa !5
  %45 = call zeroext i1 @arm_2d_op_wait_async(ptr noundef %44)
  br i1 %45, label %47, label %46

46:                                               ; preds = %43
  store i32 -10, ptr %9, align 4
  store i32 1, ptr %20, align 4
  br label %93

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

93:                                               ; preds = %47, %46, %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  %94 = load i32, ptr %9, align 4
  ret i32 %94
}

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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !6, i64 8}
!15 = !{!"arm_2d_op_trans_msk_opa_t", !16, i64 0, !21, i64 48, !22, i64 64, !7, i64 72, !23, i64 80, !21, i64 112, !25, i64 128, !7, i64 192}
!16 = !{!"arm_2d_op_core_t", !17, i64 0, !20, i64 40}
!17 = !{!"", !6, i64 0, !6, i64 8, !18, i64 16, !7, i64 17, !7, i64 18, !19, i64 24}
!18 = !{!"", !7, i64 0}
!19 = !{!"arm_2d_op_evt_t", !6, i64 0, !6, i64 8}
!20 = !{!"long", !7, i64 0}
!21 = !{!"", !6, i64 0, !6, i64 8}
!22 = !{!"", !6, i64 0}
!23 = !{!"", !6, i64 0, !24, i64 8}
!24 = !{!"arm_2d_tile_t", !7, i64 0, !7, i64 4, !7, i64 16}
!25 = !{!"__arm_2d_transform_info_t", !10, i64 0, !10, i64 4, !10, i64 8, !26, i64 12, !7, i64 20, !27, i64 24}
!26 = !{!"arm_2d_point_float_t", !10, i64 0, !10, i64 4}
!27 = !{!"", !28, i64 0, !30, i64 8}
!28 = !{!"arm_2d_location_t", !29, i64 0, !29, i64 2}
!29 = !{!"short", !7, i64 0}
!30 = !{!"", !31, i64 0, !24, i64 8}
!31 = !{!"arm_2d_region_t", !7, i64 0, !7, i64 4}
!32 = !{!15, !6, i64 64}
!33 = !{!15, !6, i64 80}
!34 = !{!15, !10, i64 128}
!35 = !{!15, !10, i64 132}
!36 = !{!15, !10, i64 136}
!37 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!38 = !{!15, !6, i64 112}
!39 = !{!15, !6, i64 120}
!40 = !{!15, !7, i64 192}


; 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_AND_OPACITY_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_and_opacity_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, i8 noundef zeroext %7) local_unnamed_addr #2 {
  %9 = icmp eq ptr %0, null
  %spec.store.select = select i1 %9, ptr getelementptr inbounds (i8, ptr @ARM_2D_CTRL, i64 56), ptr %0
  %10 = tail call i32 @__arm_mask_validate(ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef null, ptr noundef null, i32 noundef 0) #3
  %11 = icmp slt i32 %10, 0
  br i1 %11, label %12, label %16

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

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

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

32:                                               ; preds = %16, %18, %12
  %.0 = phi i32 [ %10, %12 ], [ %31, %18 ], [ -10, %16 ]
  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_opa_t", !7, i64 0, !15, i64 48, !16, i64 64, !10, i64 72, !17, i64 80, !15, i64 112, !19, i64 128, !10, i64 192}
!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}
!35 = !{!6, !10, i64 192}


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