; LLVM IR from ARM-software/Arm-2D :: Library/Source/arm_2d_alpha_blending.ll_ (arm_2d_cccn888_sw_tile_fill_with_src_mask)

; 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.10 }
%struct.anon.10 = type { ptr, %struct.anon.11, %struct.anon.12, i16, i16, i16, i16, ptr, %union.anon.13 }
%struct.anon.11 = type { ptr, ptr }
%struct.anon.12 = type { ptr, ptr }
%union.anon.13 = 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.67, %struct.anon.68, %union.anon.69, %struct.anon.71, %struct.anon.72, %struct.__arm_2d_transform_info_t, i8 }
%struct.arm_2d_op_core_t = type { %struct.anon.14, i64 }
%struct.anon.14 = type { ptr, ptr, %struct.anon.15, i8, %union.arm_2d_op_status_t, %struct.arm_2d_op_evt_t }
%struct.anon.15 = type { i8 }
%union.arm_2d_op_status_t = type { %struct.anon.16 }
%struct.anon.16 = type { i16 }
%struct.arm_2d_op_evt_t = type { ptr, ptr }
%struct.anon.67 = type { ptr, ptr }
%struct.anon.68 = type { ptr }
%union.anon.69 = type { %struct.anon.70 }
%struct.anon.70 = type { i32 }
%struct.anon.71 = type { ptr, %struct.arm_2d_tile_t }
%struct.arm_2d_tile_t = type { %union.anon.48, %union.anon.57, %union.anon.58 }
%union.anon.48 = type { %struct.anon.49 }
%struct.anon.49 = type { i8, %union.arm_2d_color_info_t, %union.anon.50 }
%union.arm_2d_color_info_t = type { %struct.anon.1 }
%struct.anon.1 = type { i8 }
%union.anon.50 = type { i16 }
%union.anon.57 = type { %struct.arm_2d_region_t }
%struct.arm_2d_region_t = type { %union.anon.3, %union.anon.4 }
%union.anon.3 = type { %struct.arm_2d_location_t }
%struct.arm_2d_location_t = type { i16, i16 }
%union.anon.4 = type { %struct.arm_2d_size_t }
%struct.arm_2d_size_t = type { i16, i16 }
%union.anon.58 = type { ptr }
%struct.anon.72 = type { ptr, ptr }
%struct.__arm_2d_transform_info_t = type { float, float, float, %struct.arm_2d_point_float_t, %union.anon.59, %struct.anon.60 }
%struct.arm_2d_point_float_t = type { float, float }
%union.anon.59 = type { i32 }
%struct.anon.60 = type { %struct.arm_2d_location_t, %struct.anon.61 }
%struct.anon.61 = type { %struct.arm_2d_region_t, %struct.arm_2d_tile_t }
%struct.__arm_2d_sub_task_t = type { %struct.anon.0 }
%struct.anon.0 = type <{ ptr, ptr, i8, i32, [3 x i8], %union.anon }>
%union.anon = type { %struct.__arm_2d_param_copy_orig_msk_t }
%struct.__arm_2d_param_copy_orig_msk_t = type { %union.anon.7, %struct.__arm_2d_tile_param_t, %struct.__arm_2d_tile_param_t }
%union.anon.7 = type { %struct.__arm_2d_param_copy_orig_t }
%struct.__arm_2d_param_copy_orig_t = type { %union.anon.6, %struct.__arm_2d_tile_param_t }
%union.anon.6 = type { %struct.__arm_2d_param_copy_t }
%struct.__arm_2d_param_copy_t = type { %struct.__arm_2d_tile_param_t, %struct.__arm_2d_tile_param_t, %struct.arm_2d_size_t }
%struct.__arm_2d_tile_param_t = type { ptr, i32, i16, %union.arm_2d_color_info_t, i8, %struct.arm_2d_region_t, %struct.arm_2d_region_t, ptr }
%struct.arm_2d_op_src_msk_t = type { %struct.arm_2d_op_core_t, %struct.anon.36, %struct.anon.37, i32, %struct.anon.38 }
%struct.anon.36 = type { ptr, ptr }
%struct.anon.37 = type { ptr }
%struct.anon.38 = type { ptr, ptr }
%struct.anon.79 = type { %union.arm_2d_color_info_t, %union.anon.80, i8, i8, %union.anon.82, %union.anon.86 }
%union.anon.80 = type { %struct.anon.81 }
%struct.anon.81 = type { i8 }
%union.anon.82 = type { %struct.anon.83 }
%struct.anon.83 = type { i8, i8 }
%union.anon.86 = type { [2 x ptr] }
%struct.__arm_2d_param_fill_msk_t = type { %union.anon.8, %struct.__arm_2d_tile_param_t, %struct.__arm_2d_tile_param_t }
%union.anon.8 = type { %struct.__arm_2d_param_fill_t }
%struct.__arm_2d_param_fill_t = type { %struct.__arm_2d_tile_param_t, %struct.__arm_2d_tile_param_t }

@ARM_2D_CTRL = external global %struct.__arm_2d_op_control, align 8
@.str.5 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [72 x i8], align 1
@__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_fill_with_src_mask = external hidden unnamed_addr constant [80 x i8], align 1

; 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @__arm_2d_impl_cccn888_src_msk_fill(ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noalias noundef, i16 noundef signext, ptr noalias noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @__arm_2d_impl_cccn888_src_msk_fill_mirror(ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @__arm_2d_impl_cccn888_src_chn_msk_fill(ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noalias noundef, i16 noundef signext, ptr noalias noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @__arm_2d_impl_cccn888_src_chn_msk_fill_mirror(ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @__arm_2d_cccn888_sw_tile_fill_with_src_mask(ptr noundef %0) #2 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %7, i32 0, i32 0
  %9 = getelementptr inbounds %struct.anon.0, ptr %8, i32 0, i32 1
  %10 = load ptr, ptr %9, align 8, !tbaa !9
  store ptr %10, ptr %4, align 8, !tbaa !5
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = icmp eq ptr null, %11
  br i1 %12, label %13, label %14

13:                                               ; preds = %1
  store ptr getelementptr inbounds (%struct.anon.10, ptr @ARM_2D_CTRL, i32 0, i32 8), ptr %4, align 8, !tbaa !5
  br label %14

14:                                               ; preds = %13, %1
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.arm_2d_op_src_msk_t, ptr %15, i32 0, i32 0
  %17 = getelementptr inbounds %struct.arm_2d_op_core_t, ptr %16, i32 0, i32 0
  %18 = getelementptr inbounds %struct.anon.14, ptr %17, i32 0, i32 1
  %19 = load ptr, ptr %18, align 8, !tbaa !12
  %20 = getelementptr inbounds %struct.anon.79, ptr %19, i32 0, i32 0
  %21 = load i8, ptr %20, align 8
  %22 = lshr i8 %21, 1
  %23 = and i8 %22, 7
  %24 = zext i8 %23 to i32
  %25 = icmp eq i32 5, %24
  br i1 %25, label %26, label %27

26:                                               ; preds = %14
  br label %28

27:                                               ; preds = %14
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.6, i32 noundef 883, ptr noundef @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_fill_with_src_mask) #4
  unreachable

28:                                               ; preds = %26
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.arm_2d_op_src_msk_t, ptr %29, i32 0, i32 4
  %31 = getelementptr inbounds %struct.anon.38, ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !22
  %33 = icmp ne ptr null, %32
  br i1 %33, label %34, label %35

34:                                               ; preds = %28
  br label %36

35:                                               ; preds = %28
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.6, i32 noundef 886, ptr noundef @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_fill_with_src_mask) #4
  unreachable

36:                                               ; preds = %34
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %37, i32 0, i32 0
  %39 = getelementptr inbounds %struct.anon.0, ptr %38, i32 0, i32 5
  %40 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %39, i32 0, i32 1
  %41 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %40, i32 0, i32 4
  %42 = load i8, ptr %41, align 1
  %43 = and i8 %42, 1
  %44 = icmp ne i8 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %36
  store i32 -2, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %326

46:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.arm_2d_op_src_msk_t, ptr %47, i32 0, i32 3
  %49 = load i32, ptr %48, align 8, !tbaa !23
  store i32 %49, ptr %6, align 4, !tbaa !24
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %50, i32 0, i32 0
  %52 = getelementptr inbounds %struct.anon.0, ptr %51, i32 0, i32 5
  %53 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %52, i32 0, i32 1
  %54 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %53, i32 0, i32 3
  %55 = load i8, ptr %54, align 2, !tbaa !25
  %56 = zext i8 %55 to i32
  %57 = icmp eq i32 107, %56
  br i1 %57, label %58, label %186

58:                                               ; preds = %46
  %59 = load i32, ptr %6, align 4, !tbaa !24
  %60 = and i32 %59, 12
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %124

62:                                               ; preds = %58
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %63, i32 0, i32 0
  %65 = getelementptr inbounds %struct.anon.0, ptr %64, i32 0, i32 5
  %66 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %65, i32 0, i32 0
  %67 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %66, i32 0, i32 0
  %68 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %67, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !25
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %70, i32 0, i32 0
  %72 = getelementptr inbounds %struct.anon.0, ptr %71, i32 0, i32 5
  %73 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %72, i32 0, i32 0
  %74 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %73, i32 0, i32 0
  %75 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %74, i32 0, i32 2
  %76 = load i16, ptr %75, align 4, !tbaa !25
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %77, i32 0, i32 0
  %79 = getelementptr inbounds %struct.anon.0, ptr %78, i32 0, i32 5
  %80 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %79, i32 0, i32 0
  %81 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %80, i32 0, i32 0
  %82 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %81, i32 0, i32 5
  %83 = getelementptr inbounds %struct.arm_2d_region_t, ptr %82, i32 0, i32 1
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %84, i32 0, i32 0
  %86 = getelementptr inbounds %struct.anon.0, ptr %85, i32 0, i32 5
  %87 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %86, i32 0, i32 1
  %88 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %87, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8, !tbaa !25
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %90, i32 0, i32 0
  %92 = getelementptr inbounds %struct.anon.0, ptr %91, i32 0, i32 5
  %93 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %92, i32 0, i32 1
  %94 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %93, i32 0, i32 2
  %95 = load i16, ptr %94, align 4, !tbaa !25
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %96, i32 0, i32 0
  %98 = getelementptr inbounds %struct.anon.0, ptr %97, i32 0, i32 5
  %99 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %98, i32 0, i32 1
  %100 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %99, i32 0, i32 5
  %101 = getelementptr inbounds %struct.arm_2d_region_t, ptr %100, i32 0, i32 1
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %102, i32 0, i32 0
  %104 = getelementptr inbounds %struct.anon.0, ptr %103, i32 0, i32 5
  %105 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %104, i32 0, i32 0
  %106 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %105, i32 0, i32 1
  %107 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %106, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8, !tbaa !25
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %109, i32 0, i32 0
  %111 = getelementptr inbounds %struct.anon.0, ptr %110, i32 0, i32 5
  %112 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %111, i32 0, i32 0
  %113 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %112, i32 0, i32 1
  %114 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %113, i32 0, i32 2
  %115 = load i16, ptr %114, align 4, !tbaa !25
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %116, i32 0, i32 0
  %118 = getelementptr inbounds %struct.anon.0, ptr %117, i32 0, i32 5
  %119 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %118, i32 0, i32 0
  %120 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %119, i32 0, i32 1
  %121 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %120, i32 0, i32 5
  %122 = getelementptr inbounds %struct.arm_2d_region_t, ptr %121, i32 0, i32 1
  %123 = load i32, ptr %6, align 4, !tbaa !24
  call void @__arm_2d_impl_cccn888_src_chn_msk_fill_mirror(ptr noundef %69, i16 noundef signext %76, ptr noundef %83, ptr noundef %89, i16 noundef signext %95, ptr noundef %101, ptr noundef %108, i16 noundef signext %115, ptr noundef %122, i32 noundef %123)
  br label %185

124:                                              ; preds = %58
  %125 = load ptr, ptr %3, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %125, i32 0, i32 0
  %127 = getelementptr inbounds %struct.anon.0, ptr %126, i32 0, i32 5
  %128 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %127, i32 0, i32 0
  %129 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %128, i32 0, i32 0
  %130 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %129, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8, !tbaa !25
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %132, i32 0, i32 0
  %134 = getelementptr inbounds %struct.anon.0, ptr %133, i32 0, i32 5
  %135 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %134, i32 0, i32 0
  %136 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %135, i32 0, i32 0
  %137 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %136, i32 0, i32 2
  %138 = load i16, ptr %137, align 4, !tbaa !25
  %139 = load ptr, ptr %3, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %139, i32 0, i32 0
  %141 = getelementptr inbounds %struct.anon.0, ptr %140, i32 0, i32 5
  %142 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %141, i32 0, i32 0
  %143 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %142, i32 0, i32 0
  %144 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %143, i32 0, i32 5
  %145 = getelementptr inbounds %struct.arm_2d_region_t, ptr %144, i32 0, i32 1
  %146 = load ptr, ptr %3, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %146, i32 0, i32 0
  %148 = getelementptr inbounds %struct.anon.0, ptr %147, i32 0, i32 5
  %149 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %148, i32 0, i32 1
  %150 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %149, i32 0, i32 0
  %151 = load ptr, ptr %150, align 8, !tbaa !25
  %152 = load ptr, ptr %3, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %152, i32 0, i32 0
  %154 = getelementptr inbounds %struct.anon.0, ptr %153, i32 0, i32 5
  %155 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %154, i32 0, i32 1
  %156 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %155, i32 0, i32 2
  %157 = load i16, ptr %156, align 4, !tbaa !25
  %158 = load ptr, ptr %3, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %158, i32 0, i32 0
  %160 = getelementptr inbounds %struct.anon.0, ptr %159, i32 0, i32 5
  %161 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %160, i32 0, i32 1
  %162 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %161, i32 0, i32 5
  %163 = getelementptr inbounds %struct.arm_2d_region_t, ptr %162, i32 0, i32 1
  %164 = load ptr, ptr %3, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %164, i32 0, i32 0
  %166 = getelementptr inbounds %struct.anon.0, ptr %165, i32 0, i32 5
  %167 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %166, i32 0, i32 0
  %168 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %167, i32 0, i32 1
  %169 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %168, i32 0, i32 0
  %170 = load ptr, ptr %169, align 8, !tbaa !25
  %171 = load ptr, ptr %3, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %171, i32 0, i32 0
  %173 = getelementptr inbounds %struct.anon.0, ptr %172, i32 0, i32 5
  %174 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %173, i32 0, i32 0
  %175 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %174, i32 0, i32 1
  %176 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %175, i32 0, i32 2
  %177 = load i16, ptr %176, align 4, !tbaa !25
  %178 = load ptr, ptr %3, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %178, i32 0, i32 0
  %180 = getelementptr inbounds %struct.anon.0, ptr %179, i32 0, i32 5
  %181 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %180, i32 0, i32 0
  %182 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %181, i32 0, i32 1
  %183 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %182, i32 0, i32 5
  %184 = getelementptr inbounds %struct.arm_2d_region_t, ptr %183, i32 0, i32 1
  call void @__arm_2d_impl_cccn888_src_chn_msk_fill(ptr noundef %131, i16 noundef signext %138, ptr noundef %145, ptr noundef %151, i16 noundef signext %157, ptr noundef %163, ptr noundef %170, i16 noundef signext %177, ptr noundef %184)
  br label %185

185:                                              ; preds = %124, %62
  br label %325

186:                                              ; preds = %46
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %187, i32 0, i32 0
  %189 = getelementptr inbounds %struct.anon.0, ptr %188, i32 0, i32 5
  %190 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %189, i32 0, i32 1
  %191 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %190, i32 0, i32 3
  %192 = load i8, ptr %191, align 2, !tbaa !25
  %193 = zext i8 %192 to i32
  %194 = icmp eq i32 6, %193
  br i1 %194, label %195, label %196

195:                                              ; preds = %186
  br label %197

196:                                              ; preds = %186
  call void @__assert_fail(ptr noundef @.str.15, ptr noundef @.str.6, i32 noundef 949, ptr noundef @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_fill_with_src_mask) #4
  unreachable

197:                                              ; preds = %195
  %198 = load i32, ptr %6, align 4, !tbaa !24
  %199 = and i32 %198, 12
  %200 = icmp ne i32 %199, 0
  br i1 %200, label %201, label %263

201:                                              ; preds = %197
  %202 = load ptr, ptr %3, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %202, i32 0, i32 0
  %204 = getelementptr inbounds %struct.anon.0, ptr %203, i32 0, i32 5
  %205 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %204, i32 0, i32 0
  %206 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %205, i32 0, i32 0
  %207 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %206, i32 0, i32 0
  %208 = load ptr, ptr %207, align 8, !tbaa !25
  %209 = load ptr, ptr %3, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %209, i32 0, i32 0
  %211 = getelementptr inbounds %struct.anon.0, ptr %210, i32 0, i32 5
  %212 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %211, i32 0, i32 0
  %213 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %212, i32 0, i32 0
  %214 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %213, i32 0, i32 2
  %215 = load i16, ptr %214, align 4, !tbaa !25
  %216 = load ptr, ptr %3, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %216, i32 0, i32 0
  %218 = getelementptr inbounds %struct.anon.0, ptr %217, i32 0, i32 5
  %219 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %218, i32 0, i32 0
  %220 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %219, i32 0, i32 0
  %221 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %220, i32 0, i32 5
  %222 = getelementptr inbounds %struct.arm_2d_region_t, ptr %221, i32 0, i32 1
  %223 = load ptr, ptr %3, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %223, i32 0, i32 0
  %225 = getelementptr inbounds %struct.anon.0, ptr %224, i32 0, i32 5
  %226 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %225, i32 0, i32 1
  %227 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %226, i32 0, i32 0
  %228 = load ptr, ptr %227, align 8, !tbaa !25
  %229 = load ptr, ptr %3, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %229, i32 0, i32 0
  %231 = getelementptr inbounds %struct.anon.0, ptr %230, i32 0, i32 5
  %232 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %231, i32 0, i32 1
  %233 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %232, i32 0, i32 2
  %234 = load i16, ptr %233, align 4, !tbaa !25
  %235 = load ptr, ptr %3, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %235, i32 0, i32 0
  %237 = getelementptr inbounds %struct.anon.0, ptr %236, i32 0, i32 5
  %238 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %237, i32 0, i32 1
  %239 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %238, i32 0, i32 5
  %240 = getelementptr inbounds %struct.arm_2d_region_t, ptr %239, i32 0, i32 1
  %241 = load ptr, ptr %3, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %241, i32 0, i32 0
  %243 = getelementptr inbounds %struct.anon.0, ptr %242, i32 0, i32 5
  %244 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %243, i32 0, i32 0
  %245 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %244, i32 0, i32 1
  %246 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %245, i32 0, i32 0
  %247 = load ptr, ptr %246, align 8, !tbaa !25
  %248 = load ptr, ptr %3, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %248, i32 0, i32 0
  %250 = getelementptr inbounds %struct.anon.0, ptr %249, i32 0, i32 5
  %251 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %250, i32 0, i32 0
  %252 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %251, i32 0, i32 1
  %253 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %252, i32 0, i32 2
  %254 = load i16, ptr %253, align 4, !tbaa !25
  %255 = load ptr, ptr %3, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %255, i32 0, i32 0
  %257 = getelementptr inbounds %struct.anon.0, ptr %256, i32 0, i32 5
  %258 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %257, i32 0, i32 0
  %259 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %258, i32 0, i32 1
  %260 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %259, i32 0, i32 5
  %261 = getelementptr inbounds %struct.arm_2d_region_t, ptr %260, i32 0, i32 1
  %262 = load i32, ptr %6, align 4, !tbaa !24
  call void @__arm_2d_impl_cccn888_src_msk_fill_mirror(ptr noundef %208, i16 noundef signext %215, ptr noundef %222, ptr noundef %228, i16 noundef signext %234, ptr noundef %240, ptr noundef %247, i16 noundef signext %254, ptr noundef %261, i32 noundef %262)
  br label %324

263:                                              ; preds = %197
  %264 = load ptr, ptr %3, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %264, i32 0, i32 0
  %266 = getelementptr inbounds %struct.anon.0, ptr %265, i32 0, i32 5
  %267 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %266, i32 0, i32 0
  %268 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %267, i32 0, i32 0
  %269 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %268, i32 0, i32 0
  %270 = load ptr, ptr %269, align 8, !tbaa !25
  %271 = load ptr, ptr %3, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %271, i32 0, i32 0
  %273 = getelementptr inbounds %struct.anon.0, ptr %272, i32 0, i32 5
  %274 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %273, i32 0, i32 0
  %275 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %274, i32 0, i32 0
  %276 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %275, i32 0, i32 2
  %277 = load i16, ptr %276, align 4, !tbaa !25
  %278 = load ptr, ptr %3, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %278, i32 0, i32 0
  %280 = getelementptr inbounds %struct.anon.0, ptr %279, i32 0, i32 5
  %281 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %280, i32 0, i32 0
  %282 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %281, i32 0, i32 0
  %283 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %282, i32 0, i32 5
  %284 = getelementptr inbounds %struct.arm_2d_region_t, ptr %283, i32 0, i32 1
  %285 = load ptr, ptr %3, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %285, i32 0, i32 0
  %287 = getelementptr inbounds %struct.anon.0, ptr %286, i32 0, i32 5
  %288 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %287, i32 0, i32 1
  %289 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %288, i32 0, i32 0
  %290 = load ptr, ptr %289, align 8, !tbaa !25
  %291 = load ptr, ptr %3, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %291, i32 0, i32 0
  %293 = getelementptr inbounds %struct.anon.0, ptr %292, i32 0, i32 5
  %294 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %293, i32 0, i32 1
  %295 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %294, i32 0, i32 2
  %296 = load i16, ptr %295, align 4, !tbaa !25
  %297 = load ptr, ptr %3, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %297, i32 0, i32 0
  %299 = getelementptr inbounds %struct.anon.0, ptr %298, i32 0, i32 5
  %300 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %299, i32 0, i32 1
  %301 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %300, i32 0, i32 5
  %302 = getelementptr inbounds %struct.arm_2d_region_t, ptr %301, i32 0, i32 1
  %303 = load ptr, ptr %3, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %303, i32 0, i32 0
  %305 = getelementptr inbounds %struct.anon.0, ptr %304, i32 0, i32 5
  %306 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %305, i32 0, i32 0
  %307 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %306, i32 0, i32 1
  %308 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %307, i32 0, i32 0
  %309 = load ptr, ptr %308, align 8, !tbaa !25
  %310 = load ptr, ptr %3, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %310, i32 0, i32 0
  %312 = getelementptr inbounds %struct.anon.0, ptr %311, i32 0, i32 5
  %313 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %312, i32 0, i32 0
  %314 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %313, i32 0, i32 1
  %315 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %314, i32 0, i32 2
  %316 = load i16, ptr %315, align 4, !tbaa !25
  %317 = load ptr, ptr %3, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %317, i32 0, i32 0
  %319 = getelementptr inbounds %struct.anon.0, ptr %318, i32 0, i32 5
  %320 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %319, i32 0, i32 0
  %321 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %320, i32 0, i32 1
  %322 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %321, i32 0, i32 5
  %323 = getelementptr inbounds %struct.arm_2d_region_t, ptr %322, i32 0, i32 1
  call void @__arm_2d_impl_cccn888_src_msk_fill(ptr noundef %270, i16 noundef signext %277, ptr noundef %284, ptr noundef %290, i16 noundef signext %296, ptr noundef %302, ptr noundef %309, i16 noundef signext %316, ptr noundef %323)
  br label %324

324:                                              ; preds = %263, %201
  br label %325

325:                                              ; preds = %324, %185
  store i32 0, ptr %2, align 4
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %326

326:                                              ; preds = %325, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  %327 = load i32, ptr %2, align 4
  ret i32 %327
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { nounwind }
attributes #4 = { noreturn 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, !6, i64 8}
!10 = !{!"__arm_2d_sub_task_t", !11, i64 0}
!11 = !{!"", !6, i64 0, !6, i64 8, !7, i64 16, !7, i64 17, !7, i64 24}
!12 = !{!13, !6, i64 8}
!13 = !{!"arm_2d_op_src_msk_t", !14, i64 0, !19, i64 48, !20, i64 64, !21, i64 72, !19, i64 80}
!14 = !{!"arm_2d_op_core_t", !15, i64 0, !18, i64 40}
!15 = !{!"", !6, i64 0, !6, i64 8, !16, i64 16, !7, i64 17, !7, i64 18, !17, i64 24}
!16 = !{!"", !7, i64 0}
!17 = !{!"arm_2d_op_evt_t", !6, i64 0, !6, i64 8}
!18 = !{!"long", !7, i64 0}
!19 = !{!"", !6, i64 0, !6, i64 8}
!20 = !{!"", !6, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = !{!13, !6, i64 80}
!23 = !{!13, !21, i64 72}
!24 = !{!21, !21, i64 0}
!25 = !{!7, !7, i64 0}


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

%struct.__arm_2d_op_control = type { %struct.anon.10 }
%struct.anon.10 = type { ptr, %struct.anon.11, %struct.anon.12, i16, i16, i16, i16, ptr, %union.anon.13 }
%struct.anon.11 = type { ptr, ptr }
%struct.anon.12 = type { ptr, ptr }
%union.anon.13 = 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.67, %struct.anon.68, %union.anon.69, %struct.anon.71, %struct.anon.72, %struct.__arm_2d_transform_info_t, i8 }
%struct.arm_2d_op_core_t = type { %struct.anon.14, i64 }
%struct.anon.14 = type { ptr, ptr, %struct.anon.15, i8, %union.arm_2d_op_status_t, %struct.arm_2d_op_evt_t }
%struct.anon.15 = type { i8 }
%union.arm_2d_op_status_t = type { %struct.anon.16 }
%struct.anon.16 = type { i16 }
%struct.arm_2d_op_evt_t = type { ptr, ptr }
%struct.anon.67 = type { ptr, ptr }
%struct.anon.68 = type { ptr }
%union.anon.69 = type { %struct.anon.70 }
%struct.anon.70 = type { i32 }
%struct.anon.71 = type { ptr, %struct.arm_2d_tile_t }
%struct.arm_2d_tile_t = type { %union.anon.48, %union.anon.57, %union.anon.58 }
%union.anon.48 = type { %struct.anon.49 }
%struct.anon.49 = type { i8, %union.arm_2d_color_info_t, %union.anon.50 }
%union.arm_2d_color_info_t = type { %struct.anon.1 }
%struct.anon.1 = type { i8 }
%union.anon.50 = type { i16 }
%union.anon.57 = type { %struct.arm_2d_region_t }
%struct.arm_2d_region_t = type { %union.anon.3, %union.anon.4 }
%union.anon.3 = type { %struct.arm_2d_location_t }
%struct.arm_2d_location_t = type { i16, i16 }
%union.anon.4 = type { %struct.arm_2d_size_t }
%struct.arm_2d_size_t = type { i16, i16 }
%union.anon.58 = type { ptr }
%struct.anon.72 = type { ptr, ptr }
%struct.__arm_2d_transform_info_t = type { float, float, float, %struct.arm_2d_point_float_t, %union.anon.59, %struct.anon.60 }
%struct.arm_2d_point_float_t = type { float, float }
%union.anon.59 = type { i32 }
%struct.anon.60 = type { %struct.arm_2d_location_t, %struct.anon.61 }
%struct.anon.61 = type { %struct.arm_2d_region_t, %struct.arm_2d_tile_t }

@ARM_2D_CTRL = external local_unnamed_addr global %struct.__arm_2d_op_control, align 8
@.str.5 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [72 x i8], align 1
@__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_fill_with_src_mask = external hidden unnamed_addr constant [80 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local void @__arm_2d_impl_cccn888_src_msk_fill(ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noalias noundef, i16 noundef signext, ptr noalias noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @__arm_2d_impl_cccn888_src_msk_fill_mirror(ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @__arm_2d_impl_cccn888_src_chn_msk_fill(ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noalias noundef, i16 noundef signext, ptr noalias noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @__arm_2d_impl_cccn888_src_chn_msk_fill_mirror(ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -2, 1) i32 @__arm_2d_cccn888_sw_tile_fill_with_src_mask(ptr noundef %0) local_unnamed_addr #1 {
  %2 = getelementptr inbounds i8, ptr %0, i64 8
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = icmp eq ptr %3, null
  %spec.store.select = select i1 %4, ptr getelementptr inbounds (i8, ptr @ARM_2D_CTRL, i64 56), ptr %3
  %5 = getelementptr inbounds i8, ptr %spec.store.select, i64 8
  %6 = load ptr, ptr %5, align 8, !tbaa !11
  %7 = load i8, ptr %6, align 8
  %8 = and i8 %7, 14
  %9 = icmp eq i8 %8, 10
  br i1 %9, label %11, label %10

10:                                               ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, i32 noundef 883, ptr noundef nonnull @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_fill_with_src_mask) #2
  unreachable

11:                                               ; preds = %1
  %12 = getelementptr inbounds i8, ptr %spec.store.select, i64 80
  %13 = load ptr, ptr %12, align 8, !tbaa !21
  %.not = icmp eq ptr %13, null
  br i1 %.not, label %14, label %15

14:                                               ; preds = %11
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.6, i32 noundef 886, ptr noundef nonnull @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_fill_with_src_mask) #2
  unreachable

15:                                               ; preds = %11
  %16 = getelementptr inbounds i8, ptr %0, i64 24
  %17 = getelementptr inbounds i8, ptr %0, i64 104
  %18 = getelementptr inbounds i8, ptr %0, i64 119
  %19 = load i8, ptr %18, align 1
  %20 = and i8 %19, 1
  %.not49 = icmp eq i8 %20, 0
  br i1 %.not49, label %21, label %61

21:                                               ; preds = %15
  %22 = getelementptr inbounds i8, ptr %spec.store.select, i64 72
  %23 = load i32, ptr %22, align 8, !tbaa !22
  %24 = getelementptr inbounds i8, ptr %0, i64 118
  %25 = load i8, ptr %24, align 2, !tbaa !23
  switch i8 %25, label %43 [
    i8 107, label %26
    i8 6, label %44
  ]

26:                                               ; preds = %21
  %27 = and i32 %23, 12
  %.not51 = icmp eq i32 %27, 0
  %28 = load ptr, ptr %16, align 8, !tbaa !23
  %29 = getelementptr inbounds i8, ptr %0, i64 36
  %30 = load i16, ptr %29, align 4, !tbaa !23
  %31 = getelementptr inbounds i8, ptr %0, i64 44
  %32 = load ptr, ptr %17, align 8, !tbaa !23
  %33 = getelementptr inbounds i8, ptr %0, i64 116
  %34 = load i16, ptr %33, align 4, !tbaa !23
  %35 = getelementptr inbounds i8, ptr %0, i64 124
  %36 = getelementptr inbounds i8, ptr %0, i64 64
  %37 = load ptr, ptr %36, align 8, !tbaa !23
  %38 = getelementptr inbounds i8, ptr %0, i64 76
  %39 = load i16, ptr %38, align 4, !tbaa !23
  %40 = getelementptr inbounds i8, ptr %0, i64 84
  br i1 %.not51, label %42, label %41

41:                                               ; preds = %26
  tail call void @__arm_2d_impl_cccn888_src_chn_msk_fill_mirror(ptr noundef %28, i16 noundef signext %30, ptr noundef nonnull %31, ptr noundef %32, i16 noundef signext %34, ptr noundef nonnull %35, ptr noundef %37, i16 noundef signext %39, ptr noundef nonnull %40, i32 noundef %23)
  br label %61

42:                                               ; preds = %26
  tail call void @__arm_2d_impl_cccn888_src_chn_msk_fill(ptr noundef %28, i16 noundef signext %30, ptr noundef nonnull %31, ptr noundef %32, i16 noundef signext %34, ptr noundef nonnull %35, ptr noundef %37, i16 noundef signext %39, ptr noundef nonnull %40)
  br label %61

43:                                               ; preds = %21
  tail call void @__assert_fail(ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.6, i32 noundef 949, ptr noundef nonnull @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_fill_with_src_mask) #2
  unreachable

44:                                               ; preds = %21
  %45 = and i32 %23, 12
  %.not50 = icmp eq i32 %45, 0
  %46 = load ptr, ptr %16, align 8, !tbaa !23
  %47 = getelementptr inbounds i8, ptr %0, i64 36
  %48 = load i16, ptr %47, align 4, !tbaa !23
  %49 = getelementptr inbounds i8, ptr %0, i64 44
  %50 = load ptr, ptr %17, align 8, !tbaa !23
  %51 = getelementptr inbounds i8, ptr %0, i64 116
  %52 = load i16, ptr %51, align 4, !tbaa !23
  %53 = getelementptr inbounds i8, ptr %0, i64 124
  %54 = getelementptr inbounds i8, ptr %0, i64 64
  %55 = load ptr, ptr %54, align 8, !tbaa !23
  %56 = getelementptr inbounds i8, ptr %0, i64 76
  %57 = load i16, ptr %56, align 4, !tbaa !23
  %58 = getelementptr inbounds i8, ptr %0, i64 84
  br i1 %.not50, label %60, label %59

59:                                               ; preds = %44
  tail call void @__arm_2d_impl_cccn888_src_msk_fill_mirror(ptr noundef %46, i16 noundef signext %48, ptr noundef nonnull %49, ptr noundef %50, i16 noundef signext %52, ptr noundef nonnull %53, ptr noundef %55, i16 noundef signext %57, ptr noundef nonnull %58, i32 noundef %23)
  br label %61

60:                                               ; preds = %44
  tail call void @__arm_2d_impl_cccn888_src_msk_fill(ptr noundef %46, i16 noundef signext %48, ptr noundef nonnull %49, ptr noundef %50, i16 noundef signext %52, ptr noundef nonnull %53, ptr noundef %55, i16 noundef signext %57, ptr noundef nonnull %58)
  br label %61

61:                                               ; preds = %42, %41, %60, %59, %15
  %.0 = phi i32 [ -2, %15 ], [ 0, %59 ], [ 0, %60 ], [ 0, %41 ], [ 0, %42 ]
  ret i32 %.0
}

attributes #0 = { 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 #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 = { noreturn 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, !8, i64 8}
!6 = !{!"__arm_2d_sub_task_t", !7, i64 0}
!7 = !{!"", !8, i64 0, !8, i64 8, !9, i64 16, !9, i64 17, !9, i64 24}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !8, i64 8}
!12 = !{!"arm_2d_op_src_msk_t", !13, i64 0, !18, i64 48, !19, i64 64, !20, i64 72, !18, i64 80}
!13 = !{!"arm_2d_op_core_t", !14, i64 0, !17, i64 40}
!14 = !{!"", !8, i64 0, !8, i64 8, !15, i64 16, !9, i64 17, !9, i64 18, !16, i64 24}
!15 = !{!"", !9, i64 0}
!16 = !{!"arm_2d_op_evt_t", !8, i64 0, !8, i64 8}
!17 = !{!"long", !9, i64 0}
!18 = !{!"", !8, i64 0, !8, i64 8}
!19 = !{!"", !8, i64 0}
!20 = !{!"int", !9, i64 0}
!21 = !{!12, !8, i64 80}
!22 = !{!12, !20, i64 72}
!23 = !{!9, !9, i64 0}


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