; 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_opa_t = type { %struct.arm_2d_op_core_t, %struct.anon.60, %struct.anon.61, %union.anon.62, %struct.anon.64, %struct.__arm_2d_transform_info_t, i8 }
%struct.anon.60 = type { ptr, ptr }
%struct.anon.61 = type { ptr }
%union.anon.62 = type { %struct.anon.63 }
%struct.anon.63 = type { i32 }
%struct.anon.64 = type { ptr, %struct.arm_2d_tile_t }

@.str.1 = external hidden unnamed_addr constant [87 x i8], align 1
@ARM_2D_CTRL = external global %struct.__arm_2d_op_control, align 8
@.str.7 = external hidden unnamed_addr constant [15 x i8], align 1
@__PRETTY_FUNCTION__.arm_2dp_cccn888_fill_colour_with_mask_opacity_and_transform_xy_prepare = external hidden unnamed_addr constant [217 x i8], align 1
@ARM_2D_OP_FILL_COLOUR_WITH_MSK_OPACITY_AND_TRANSFORM_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 zeroext i1 @__arm_2d_valid_mask(ptr noundef, i8 noundef zeroext) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @arm_2dp_cccn888_fill_colour_with_mask_opacity_and_transform_xy_prepare(ptr noundef %0, ptr noundef nonnull %1, <2 x float> %2, float noundef %3, float noundef %4, float noundef %5, i32 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 float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca i32, align 4
  %17 = alloca i8, align 1
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  store <2 x float> %2, ptr %10, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store float %3, ptr %13, align 4, !tbaa !9
  store float %4, ptr %14, align 4, !tbaa !9
  store float %5, ptr %15, align 4, !tbaa !9
  store i32 %6, ptr %16, align 4, !tbaa !11
  store i8 %7, ptr %17, align 1, !tbaa !13
  %20 = load ptr, ptr %12, align 8, !tbaa !5
  %21 = icmp ne ptr null, %20
  br i1 %21, label %22, label %23

22:                                               ; preds = %8
  br label %24

23:                                               ; preds = %8
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 2398, ptr noundef @__PRETTY_FUNCTION__.arm_2dp_cccn888_fill_colour_with_mask_opacity_and_transform_xy_prepare) #6
  unreachable

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

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

29:                                               ; preds = %28, %24
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  %31 = call zeroext i1 @__arm_2d_valid_mask(ptr noundef %30, i8 noundef zeroext 24)
  br i1 %31, label %38, label %32

32:                                               ; preds = %29
  %33 = load ptr, ptr %18, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.arm_2d_op_trans_opa_t, ptr %33, i32 0, i32 3
  %35 = load i32, ptr %34, align 8
  %36 = and i32 %35, 2147483647
  %37 = or i32 %36, -2147483648
  store i32 %37, ptr %34, align 8
  store i32 -2, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %85

38:                                               ; preds = %29
  %39 = load ptr, ptr %18, align 8, !tbaa !5
  %40 = call zeroext i1 @arm_2d_op_wait_async(ptr noundef %39)
  br i1 %40, label %42, label %41

41:                                               ; preds = %38
  store i32 -10, ptr %9, align 4
  store i32 1, ptr %19, align 4
  br label %85

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

85:                                               ; preds = %42, %41, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  %86 = load i32, ptr %9, align 4
  ret i32 %86
}

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 = !{!7, !7, i64 0}
!14 = !{!15, !6, i64 8}
!15 = !{!"arm_2d_op_trans_opa_t", !16, i64 0, !21, i64 48, !22, i64 64, !7, i64 72, !23, i64 80, !25, i64 112, !7, i64 176}
!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 112}
!35 = !{!15, !10, i64 116}
!36 = !{!15, !10, i64 120}
!37 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!38 = !{!15, !7, i64 176}


; 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_FILL_COLOUR_WITH_MSK_OPACITY_AND_TRANSFORM_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 zeroext i1 @__arm_2d_valid_mask(ptr noundef, i8 noundef zeroext) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @arm_2dp_cccn888_fill_colour_with_mask_opacity_and_transform_xy_prepare(ptr noundef %0, ptr noundef nonnull %1, <2 x float> %2, float noundef %3, float noundef %4, float noundef %5, i32 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 zeroext i1 @__arm_2d_valid_mask(ptr noundef nonnull %1, i8 noundef zeroext 24) #3
  br i1 %10, label %15, label %11

11:                                               ; preds = %8
  %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 = %8
  %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_FILL_COLOUR_WITH_MSK_OPACITY_AND_TRANSFORM_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 112
  store float %3, ptr %23, align 8, !tbaa !30
  %24 = getelementptr inbounds i8, ptr %spec.store.select, i64 116
  store float %4, ptr %24, align 4, !tbaa !31
  %25 = getelementptr inbounds i8, ptr %spec.store.select, i64 120
  store float %5, ptr %25, align 8, !tbaa !32
  %26 = getelementptr inbounds i8, ptr %spec.store.select, i64 124
  store <2 x float> %2, ptr %26, align 4
  %27 = getelementptr inbounds i8, ptr %spec.store.select, i64 132
  store i32 %6, ptr %27, align 4, !tbaa !29
  %28 = getelementptr inbounds i8, ptr %spec.store.select, i64 176
  store i8 %7, ptr %28, align 8, !tbaa !33
  %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 [ %29, %17 ], [ -2, %11 ], [ -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_opa_t", !7, i64 0, !15, i64 48, !16, i64 64, !10, i64 72, !17, i64 80, !19, i64 112, !10, i64 176}
!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 112}
!31 = !{!6, !20, i64 116}
!32 = !{!6, !20, i64 120}
!33 = !{!6, !10, i64 176}


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