; LLVM IR from ARM-software/Arm-2D :: Library/Source/arm_2d_alpha_blending.ll_ (arm_2d_cccn888_sw_tile_fill_with_des_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.11 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [154 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [72 x i8], align 1
@__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_fill_with_des_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_des_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_des_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_1h_des_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_1h_des_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_des_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_des_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_des_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 1003, ptr noundef @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_fill_with_des_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 1
  %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.11, ptr noundef @.str.6, i32 noundef 1006, ptr noundef @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_fill_with_des_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 2
  %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 %496

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 2
  %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 %209

58:                                               ; preds = %46
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %59, i32 0, i32 0
  %61 = getelementptr inbounds %struct.anon.0, ptr %60, i32 0, i32 5
  %62 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %61, i32 0, i32 2
  %63 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %62, i32 0, i32 5
  %64 = getelementptr inbounds %struct.arm_2d_region_t, ptr %63, i32 0, i32 1
  %65 = getelementptr inbounds %struct.arm_2d_size_t, ptr %64, i32 0, i32 1
  %66 = load i16, ptr %65, align 2, !tbaa !25
  %67 = sext i16 %66 to i32
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %68, i32 0, i32 0
  %70 = getelementptr inbounds %struct.anon.0, ptr %69, i32 0, i32 5
  %71 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %70, i32 0, i32 0
  %72 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %71, i32 0, i32 1
  %73 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %72, i32 0, i32 5
  %74 = getelementptr inbounds %struct.arm_2d_region_t, ptr %73, i32 0, i32 1
  %75 = getelementptr inbounds %struct.arm_2d_size_t, ptr %74, i32 0, i32 1
  %76 = load i16, ptr %75, align 2, !tbaa !25
  %77 = sext i16 %76 to i32
  %78 = icmp sge i32 %67, %77
  br i1 %78, label %79, label %80

79:                                               ; preds = %58
  br label %81

80:                                               ; preds = %58
  call void @__assert_fail(ptr noundef @.str.16, ptr noundef @.str.6, i32 noundef 1026, ptr noundef @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_fill_with_des_mask) #4
  unreachable

81:                                               ; preds = %79
  %82 = load i32, ptr %6, align 4, !tbaa !24
  %83 = and i32 %82, 12
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %147

85:                                               ; preds = %81
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %86, i32 0, i32 0
  %88 = getelementptr inbounds %struct.anon.0, ptr %87, i32 0, i32 5
  %89 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %88, i32 0, i32 0
  %90 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %89, i32 0, i32 0
  %91 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %90, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8, !tbaa !25
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %93, i32 0, i32 0
  %95 = getelementptr inbounds %struct.anon.0, ptr %94, i32 0, i32 5
  %96 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %95, i32 0, i32 0
  %97 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %96, i32 0, i32 0
  %98 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %97, i32 0, i32 2
  %99 = load i16, ptr %98, align 4, !tbaa !25
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %100, i32 0, i32 0
  %102 = getelementptr inbounds %struct.anon.0, ptr %101, i32 0, i32 5
  %103 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %102, i32 0, i32 0
  %104 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %103, i32 0, i32 0
  %105 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %104, i32 0, i32 5
  %106 = getelementptr inbounds %struct.arm_2d_region_t, ptr %105, i32 0, i32 1
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %107, i32 0, i32 0
  %109 = getelementptr inbounds %struct.anon.0, ptr %108, i32 0, i32 5
  %110 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %109, i32 0, i32 0
  %111 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %110, i32 0, i32 1
  %112 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %111, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8, !tbaa !25
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %114, i32 0, i32 0
  %116 = getelementptr inbounds %struct.anon.0, ptr %115, i32 0, i32 5
  %117 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %116, i32 0, i32 0
  %118 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %117, i32 0, i32 1
  %119 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %118, i32 0, i32 2
  %120 = load i16, ptr %119, align 4, !tbaa !25
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %121, i32 0, i32 0
  %123 = getelementptr inbounds %struct.anon.0, ptr %122, i32 0, i32 5
  %124 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %123, i32 0, i32 0
  %125 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %124, i32 0, i32 1
  %126 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %125, i32 0, i32 5
  %127 = getelementptr inbounds %struct.arm_2d_region_t, ptr %126, i32 0, i32 1
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %128, i32 0, i32 0
  %130 = getelementptr inbounds %struct.anon.0, ptr %129, i32 0, i32 5
  %131 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %130, i32 0, i32 2
  %132 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %131, i32 0, i32 0
  %133 = load ptr, ptr %132, align 8, !tbaa !25
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %134, i32 0, i32 0
  %136 = getelementptr inbounds %struct.anon.0, ptr %135, i32 0, i32 5
  %137 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %136, i32 0, i32 2
  %138 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %137, i32 0, i32 2
  %139 = load i16, ptr %138, align 4, !tbaa !25
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %140, i32 0, i32 0
  %142 = getelementptr inbounds %struct.anon.0, ptr %141, i32 0, i32 5
  %143 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %142, i32 0, i32 2
  %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 i32, ptr %6, align 4, !tbaa !24
  call void @__arm_2d_impl_cccn888_des_chn_msk_fill_mirror(ptr noundef %92, i16 noundef signext %99, ptr noundef %106, ptr noundef %113, i16 noundef signext %120, ptr noundef %127, ptr noundef %133, i16 noundef signext %139, ptr noundef %145, i32 noundef %146)
  br label %208

147:                                              ; preds = %81
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %148, i32 0, i32 0
  %150 = getelementptr inbounds %struct.anon.0, ptr %149, i32 0, i32 5
  %151 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %150, i32 0, i32 0
  %152 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %151, i32 0, i32 0
  %153 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %152, i32 0, i32 0
  %154 = load ptr, ptr %153, align 8, !tbaa !25
  %155 = load ptr, ptr %3, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %155, i32 0, i32 0
  %157 = getelementptr inbounds %struct.anon.0, ptr %156, i32 0, i32 5
  %158 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %157, i32 0, i32 0
  %159 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %158, i32 0, i32 0
  %160 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %159, i32 0, i32 2
  %161 = load i16, ptr %160, align 4, !tbaa !25
  %162 = load ptr, ptr %3, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %162, i32 0, i32 0
  %164 = getelementptr inbounds %struct.anon.0, ptr %163, i32 0, i32 5
  %165 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %164, i32 0, i32 0
  %166 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %165, i32 0, i32 0
  %167 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %166, i32 0, i32 5
  %168 = getelementptr inbounds %struct.arm_2d_region_t, ptr %167, i32 0, i32 1
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %169, i32 0, i32 0
  %171 = getelementptr inbounds %struct.anon.0, ptr %170, i32 0, i32 5
  %172 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %171, i32 0, i32 0
  %173 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %172, i32 0, i32 1
  %174 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %173, i32 0, i32 0
  %175 = load ptr, ptr %174, align 8, !tbaa !25
  %176 = load ptr, ptr %3, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %176, i32 0, i32 0
  %178 = getelementptr inbounds %struct.anon.0, ptr %177, i32 0, i32 5
  %179 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %178, i32 0, i32 0
  %180 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %179, i32 0, i32 1
  %181 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %180, i32 0, i32 2
  %182 = load i16, ptr %181, align 4, !tbaa !25
  %183 = load ptr, ptr %3, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %183, i32 0, i32 0
  %185 = getelementptr inbounds %struct.anon.0, ptr %184, i32 0, i32 5
  %186 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %185, i32 0, i32 0
  %187 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %186, i32 0, i32 1
  %188 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %187, i32 0, i32 5
  %189 = getelementptr inbounds %struct.arm_2d_region_t, ptr %188, i32 0, i32 1
  %190 = load ptr, ptr %3, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %190, i32 0, i32 0
  %192 = getelementptr inbounds %struct.anon.0, ptr %191, i32 0, i32 5
  %193 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %192, i32 0, i32 2
  %194 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %193, i32 0, i32 0
  %195 = load ptr, ptr %194, align 8, !tbaa !25
  %196 = load ptr, ptr %3, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %196, i32 0, i32 0
  %198 = getelementptr inbounds %struct.anon.0, ptr %197, i32 0, i32 5
  %199 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %198, i32 0, i32 2
  %200 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %199, i32 0, i32 2
  %201 = load i16, ptr %200, align 4, !tbaa !25
  %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 2
  %206 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %205, i32 0, i32 5
  %207 = getelementptr inbounds %struct.arm_2d_region_t, ptr %206, i32 0, i32 1
  call void @__arm_2d_impl_cccn888_des_chn_msk_fill(ptr noundef %154, i16 noundef signext %161, ptr noundef %168, ptr noundef %175, i16 noundef signext %182, ptr noundef %189, ptr noundef %195, i16 noundef signext %201, ptr noundef %207)
  br label %208

208:                                              ; preds = %147, %85
  br label %495

209:                                              ; preds = %46
  %210 = load ptr, ptr %3, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %210, i32 0, i32 0
  %212 = getelementptr inbounds %struct.anon.0, ptr %211, i32 0, i32 5
  %213 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %212, i32 0, i32 2
  %214 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %213, i32 0, i32 3
  %215 = load i8, ptr %214, align 2, !tbaa !25
  %216 = zext i8 %215 to i32
  %217 = icmp eq i32 6, %216
  br i1 %217, label %218, label %219

218:                                              ; preds = %209
  br label %220

219:                                              ; preds = %209
  call void @__assert_fail(ptr noundef @.str.17, ptr noundef @.str.6, i32 noundef 1081, ptr noundef @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_fill_with_des_mask) #4
  unreachable

220:                                              ; preds = %218
  %221 = load i32, ptr %6, align 4, !tbaa !24
  %222 = and i32 %221, 12
  %223 = icmp ne i32 %222, 0
  br i1 %223, label %224, label %360

224:                                              ; preds = %220
  %225 = load ptr, ptr %3, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %225, i32 0, i32 0
  %227 = getelementptr inbounds %struct.anon.0, ptr %226, i32 0, i32 5
  %228 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %227, i32 0, i32 2
  %229 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %228, i32 0, i32 5
  %230 = getelementptr inbounds %struct.arm_2d_region_t, ptr %229, i32 0, i32 1
  %231 = getelementptr inbounds %struct.arm_2d_size_t, ptr %230, i32 0, i32 1
  %232 = load i16, ptr %231, align 2, !tbaa !25
  %233 = sext i16 %232 to i32
  %234 = icmp sgt i32 %233, 1
  br i1 %234, label %235, label %297

235:                                              ; preds = %224
  %236 = load ptr, ptr %3, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %236, i32 0, i32 0
  %238 = getelementptr inbounds %struct.anon.0, ptr %237, i32 0, i32 5
  %239 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %238, i32 0, i32 0
  %240 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %239, i32 0, i32 0
  %241 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %240, i32 0, i32 0
  %242 = load ptr, ptr %241, align 8, !tbaa !25
  %243 = load ptr, ptr %3, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %243, i32 0, i32 0
  %245 = getelementptr inbounds %struct.anon.0, ptr %244, i32 0, i32 5
  %246 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %245, i32 0, i32 0
  %247 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %246, i32 0, i32 0
  %248 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %247, i32 0, i32 2
  %249 = load i16, ptr %248, align 4, !tbaa !25
  %250 = load ptr, ptr %3, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %250, i32 0, i32 0
  %252 = getelementptr inbounds %struct.anon.0, ptr %251, i32 0, i32 5
  %253 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %252, i32 0, i32 0
  %254 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %253, i32 0, i32 0
  %255 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %254, i32 0, i32 5
  %256 = getelementptr inbounds %struct.arm_2d_region_t, ptr %255, i32 0, i32 1
  %257 = load ptr, ptr %3, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %257, i32 0, i32 0
  %259 = getelementptr inbounds %struct.anon.0, ptr %258, i32 0, i32 5
  %260 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %259, i32 0, i32 0
  %261 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %260, i32 0, i32 1
  %262 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %261, i32 0, i32 0
  %263 = load ptr, ptr %262, align 8, !tbaa !25
  %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 1
  %269 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %268, i32 0, i32 2
  %270 = load i16, ptr %269, align 4, !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 1
  %276 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %275, i32 0, i32 5
  %277 = getelementptr inbounds %struct.arm_2d_region_t, ptr %276, i32 0, i32 1
  %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 2
  %282 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %281, i32 0, i32 0
  %283 = load ptr, ptr %282, align 8, !tbaa !25
  %284 = load ptr, ptr %3, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %284, i32 0, i32 0
  %286 = getelementptr inbounds %struct.anon.0, ptr %285, i32 0, i32 5
  %287 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %286, i32 0, i32 2
  %288 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %287, i32 0, i32 2
  %289 = load i16, ptr %288, align 4, !tbaa !25
  %290 = load ptr, ptr %3, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %290, i32 0, i32 0
  %292 = getelementptr inbounds %struct.anon.0, ptr %291, i32 0, i32 5
  %293 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %292, i32 0, i32 2
  %294 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %293, i32 0, i32 5
  %295 = getelementptr inbounds %struct.arm_2d_region_t, ptr %294, i32 0, i32 1
  %296 = load i32, ptr %6, align 4, !tbaa !24
  call void @__arm_2d_impl_cccn888_des_msk_fill_mirror(ptr noundef %242, i16 noundef signext %249, ptr noundef %256, ptr noundef %263, i16 noundef signext %270, ptr noundef %277, ptr noundef %283, i16 noundef signext %289, ptr noundef %295, i32 noundef %296)
  br label %359

297:                                              ; preds = %224
  %298 = load ptr, ptr %3, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %298, i32 0, i32 0
  %300 = getelementptr inbounds %struct.anon.0, ptr %299, i32 0, i32 5
  %301 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %300, i32 0, i32 0
  %302 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %301, i32 0, i32 0
  %303 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %302, i32 0, i32 0
  %304 = load ptr, ptr %303, align 8, !tbaa !25
  %305 = load ptr, ptr %3, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %305, i32 0, i32 0
  %307 = getelementptr inbounds %struct.anon.0, ptr %306, i32 0, i32 5
  %308 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %307, i32 0, i32 0
  %309 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %308, i32 0, i32 0
  %310 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %309, i32 0, i32 2
  %311 = load i16, ptr %310, align 4, !tbaa !25
  %312 = load ptr, ptr %3, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %312, i32 0, i32 0
  %314 = getelementptr inbounds %struct.anon.0, ptr %313, i32 0, i32 5
  %315 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %314, i32 0, i32 0
  %316 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %315, i32 0, i32 0
  %317 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %316, i32 0, i32 5
  %318 = getelementptr inbounds %struct.arm_2d_region_t, ptr %317, i32 0, i32 1
  %319 = load ptr, ptr %3, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %319, i32 0, i32 0
  %321 = getelementptr inbounds %struct.anon.0, ptr %320, i32 0, i32 5
  %322 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %321, i32 0, i32 0
  %323 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %322, i32 0, i32 1
  %324 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %323, i32 0, i32 0
  %325 = load ptr, ptr %324, align 8, !tbaa !25
  %326 = load ptr, ptr %3, align 8, !tbaa !5
  %327 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %326, i32 0, i32 0
  %328 = getelementptr inbounds %struct.anon.0, ptr %327, i32 0, i32 5
  %329 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %328, i32 0, i32 0
  %330 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %329, i32 0, i32 1
  %331 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %330, i32 0, i32 2
  %332 = load i16, ptr %331, align 4, !tbaa !25
  %333 = load ptr, ptr %3, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %333, i32 0, i32 0
  %335 = getelementptr inbounds %struct.anon.0, ptr %334, i32 0, i32 5
  %336 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %335, i32 0, i32 0
  %337 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %336, i32 0, i32 1
  %338 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %337, i32 0, i32 5
  %339 = getelementptr inbounds %struct.arm_2d_region_t, ptr %338, i32 0, i32 1
  %340 = load ptr, ptr %3, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %340, i32 0, i32 0
  %342 = getelementptr inbounds %struct.anon.0, ptr %341, i32 0, i32 5
  %343 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %342, i32 0, i32 2
  %344 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %343, i32 0, i32 0
  %345 = load ptr, ptr %344, align 8, !tbaa !25
  %346 = load ptr, ptr %3, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %346, i32 0, i32 0
  %348 = getelementptr inbounds %struct.anon.0, ptr %347, i32 0, i32 5
  %349 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %348, i32 0, i32 2
  %350 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %349, i32 0, i32 2
  %351 = load i16, ptr %350, align 4, !tbaa !25
  %352 = load ptr, ptr %3, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %352, i32 0, i32 0
  %354 = getelementptr inbounds %struct.anon.0, ptr %353, i32 0, i32 5
  %355 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %354, i32 0, i32 2
  %356 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %355, i32 0, i32 5
  %357 = getelementptr inbounds %struct.arm_2d_region_t, ptr %356, i32 0, i32 1
  %358 = load i32, ptr %6, align 4, !tbaa !24
  call void @__arm_2d_impl_cccn888_1h_des_msk_fill_mirror(ptr noundef %304, i16 noundef signext %311, ptr noundef %318, ptr noundef %325, i16 noundef signext %332, ptr noundef %339, ptr noundef %345, i16 noundef signext %351, ptr noundef %357, i32 noundef %358)
  br label %359

359:                                              ; preds = %297, %235
  br label %494

360:                                              ; preds = %220
  %361 = load ptr, ptr %3, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %361, i32 0, i32 0
  %363 = getelementptr inbounds %struct.anon.0, ptr %362, i32 0, i32 5
  %364 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %363, i32 0, i32 2
  %365 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %364, i32 0, i32 5
  %366 = getelementptr inbounds %struct.arm_2d_region_t, ptr %365, i32 0, i32 1
  %367 = getelementptr inbounds %struct.arm_2d_size_t, ptr %366, i32 0, i32 1
  %368 = load i16, ptr %367, align 2, !tbaa !25
  %369 = sext i16 %368 to i32
  %370 = icmp sgt i32 %369, 1
  br i1 %370, label %371, label %432

371:                                              ; preds = %360
  %372 = load ptr, ptr %3, align 8, !tbaa !5
  %373 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %372, i32 0, i32 0
  %374 = getelementptr inbounds %struct.anon.0, ptr %373, i32 0, i32 5
  %375 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %374, i32 0, i32 0
  %376 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %375, i32 0, i32 0
  %377 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %376, i32 0, i32 0
  %378 = load ptr, ptr %377, align 8, !tbaa !25
  %379 = load ptr, ptr %3, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %379, i32 0, i32 0
  %381 = getelementptr inbounds %struct.anon.0, ptr %380, i32 0, i32 5
  %382 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %381, i32 0, i32 0
  %383 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %382, i32 0, i32 0
  %384 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %383, i32 0, i32 2
  %385 = load i16, ptr %384, align 4, !tbaa !25
  %386 = load ptr, ptr %3, align 8, !tbaa !5
  %387 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %386, i32 0, i32 0
  %388 = getelementptr inbounds %struct.anon.0, ptr %387, i32 0, i32 5
  %389 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %388, i32 0, i32 0
  %390 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %389, i32 0, i32 0
  %391 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %390, i32 0, i32 5
  %392 = getelementptr inbounds %struct.arm_2d_region_t, ptr %391, i32 0, i32 1
  %393 = load ptr, ptr %3, align 8, !tbaa !5
  %394 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %393, i32 0, i32 0
  %395 = getelementptr inbounds %struct.anon.0, ptr %394, i32 0, i32 5
  %396 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %395, i32 0, i32 0
  %397 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %396, i32 0, i32 1
  %398 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %397, i32 0, i32 0
  %399 = load ptr, ptr %398, align 8, !tbaa !25
  %400 = load ptr, ptr %3, align 8, !tbaa !5
  %401 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %400, i32 0, i32 0
  %402 = getelementptr inbounds %struct.anon.0, ptr %401, i32 0, i32 5
  %403 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %402, i32 0, i32 0
  %404 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %403, i32 0, i32 1
  %405 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %404, i32 0, i32 2
  %406 = load i16, ptr %405, align 4, !tbaa !25
  %407 = load ptr, ptr %3, align 8, !tbaa !5
  %408 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %407, i32 0, i32 0
  %409 = getelementptr inbounds %struct.anon.0, ptr %408, i32 0, i32 5
  %410 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %409, i32 0, i32 0
  %411 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %410, i32 0, i32 1
  %412 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %411, i32 0, i32 5
  %413 = getelementptr inbounds %struct.arm_2d_region_t, ptr %412, i32 0, i32 1
  %414 = load ptr, ptr %3, align 8, !tbaa !5
  %415 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %414, i32 0, i32 0
  %416 = getelementptr inbounds %struct.anon.0, ptr %415, i32 0, i32 5
  %417 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %416, i32 0, i32 2
  %418 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %417, i32 0, i32 0
  %419 = load ptr, ptr %418, align 8, !tbaa !25
  %420 = load ptr, ptr %3, align 8, !tbaa !5
  %421 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %420, i32 0, i32 0
  %422 = getelementptr inbounds %struct.anon.0, ptr %421, i32 0, i32 5
  %423 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %422, i32 0, i32 2
  %424 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %423, i32 0, i32 2
  %425 = load i16, ptr %424, align 4, !tbaa !25
  %426 = load ptr, ptr %3, align 8, !tbaa !5
  %427 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %426, i32 0, i32 0
  %428 = getelementptr inbounds %struct.anon.0, ptr %427, i32 0, i32 5
  %429 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %428, i32 0, i32 2
  %430 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %429, i32 0, i32 5
  %431 = getelementptr inbounds %struct.arm_2d_region_t, ptr %430, i32 0, i32 1
  call void @__arm_2d_impl_cccn888_des_msk_fill(ptr noundef %378, i16 noundef signext %385, ptr noundef %392, ptr noundef %399, i16 noundef signext %406, ptr noundef %413, ptr noundef %419, i16 noundef signext %425, ptr noundef %431)
  br label %493

432:                                              ; preds = %360
  %433 = load ptr, ptr %3, align 8, !tbaa !5
  %434 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %433, i32 0, i32 0
  %435 = getelementptr inbounds %struct.anon.0, ptr %434, i32 0, i32 5
  %436 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %435, i32 0, i32 0
  %437 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %436, i32 0, i32 0
  %438 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %437, i32 0, i32 0
  %439 = load ptr, ptr %438, align 8, !tbaa !25
  %440 = load ptr, ptr %3, align 8, !tbaa !5
  %441 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %440, i32 0, i32 0
  %442 = getelementptr inbounds %struct.anon.0, ptr %441, i32 0, i32 5
  %443 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %442, i32 0, i32 0
  %444 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %443, i32 0, i32 0
  %445 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %444, i32 0, i32 2
  %446 = load i16, ptr %445, align 4, !tbaa !25
  %447 = load ptr, ptr %3, align 8, !tbaa !5
  %448 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %447, i32 0, i32 0
  %449 = getelementptr inbounds %struct.anon.0, ptr %448, i32 0, i32 5
  %450 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %449, i32 0, i32 0
  %451 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %450, i32 0, i32 0
  %452 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %451, i32 0, i32 5
  %453 = getelementptr inbounds %struct.arm_2d_region_t, ptr %452, i32 0, i32 1
  %454 = load ptr, ptr %3, align 8, !tbaa !5
  %455 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %454, i32 0, i32 0
  %456 = getelementptr inbounds %struct.anon.0, ptr %455, i32 0, i32 5
  %457 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %456, i32 0, i32 0
  %458 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %457, i32 0, i32 1
  %459 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %458, i32 0, i32 0
  %460 = load ptr, ptr %459, align 8, !tbaa !25
  %461 = load ptr, ptr %3, align 8, !tbaa !5
  %462 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %461, i32 0, i32 0
  %463 = getelementptr inbounds %struct.anon.0, ptr %462, i32 0, i32 5
  %464 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %463, i32 0, i32 0
  %465 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %464, i32 0, i32 1
  %466 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %465, i32 0, i32 2
  %467 = load i16, ptr %466, align 4, !tbaa !25
  %468 = load ptr, ptr %3, align 8, !tbaa !5
  %469 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %468, i32 0, i32 0
  %470 = getelementptr inbounds %struct.anon.0, ptr %469, i32 0, i32 5
  %471 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %470, i32 0, i32 0
  %472 = getelementptr inbounds %struct.__arm_2d_param_fill_t, ptr %471, i32 0, i32 1
  %473 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %472, i32 0, i32 5
  %474 = getelementptr inbounds %struct.arm_2d_region_t, ptr %473, i32 0, i32 1
  %475 = load ptr, ptr %3, align 8, !tbaa !5
  %476 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %475, i32 0, i32 0
  %477 = getelementptr inbounds %struct.anon.0, ptr %476, i32 0, i32 5
  %478 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %477, i32 0, i32 2
  %479 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %478, i32 0, i32 0
  %480 = load ptr, ptr %479, align 8, !tbaa !25
  %481 = load ptr, ptr %3, align 8, !tbaa !5
  %482 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %481, i32 0, i32 0
  %483 = getelementptr inbounds %struct.anon.0, ptr %482, i32 0, i32 5
  %484 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %483, i32 0, i32 2
  %485 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %484, i32 0, i32 2
  %486 = load i16, ptr %485, align 4, !tbaa !25
  %487 = load ptr, ptr %3, align 8, !tbaa !5
  %488 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %487, i32 0, i32 0
  %489 = getelementptr inbounds %struct.anon.0, ptr %488, i32 0, i32 5
  %490 = getelementptr inbounds %struct.__arm_2d_param_fill_msk_t, ptr %489, i32 0, i32 2
  %491 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %490, i32 0, i32 5
  %492 = getelementptr inbounds %struct.arm_2d_region_t, ptr %491, i32 0, i32 1
  call void @__arm_2d_impl_cccn888_1h_des_msk_fill(ptr noundef %439, i16 noundef signext %446, ptr noundef %453, ptr noundef %460, i16 noundef signext %467, ptr noundef %474, ptr noundef %480, i16 noundef signext %486, ptr noundef %492)
  br label %493

493:                                              ; preds = %432, %371
  br label %494

494:                                              ; preds = %493, %359
  br label %495

495:                                              ; preds = %494, %208
  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 %496

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

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 88}
!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.11 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [154 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [72 x i8], align 1
@__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_fill_with_des_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_des_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_des_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_1h_des_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_1h_des_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_des_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_des_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_des_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 1003, ptr noundef nonnull @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_fill_with_des_mask) #2
  unreachable

11:                                               ; preds = %1
  %12 = getelementptr inbounds i8, ptr %spec.store.select, i64 88
  %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.11, ptr noundef nonnull @.str.6, i32 noundef 1006, ptr noundef nonnull @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_fill_with_des_mask) #2
  unreachable

15:                                               ; preds = %11
  %16 = getelementptr inbounds i8, ptr %0, i64 24
  %17 = getelementptr inbounds i8, ptr %0, i64 144
  %18 = getelementptr inbounds i8, ptr %0, i64 159
  %19 = load i8, ptr %18, align 1
  %20 = and i8 %19, 1
  %.not72 = icmp eq i8 %20, 0
  br i1 %.not72, label %21, label %74

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 158
  %25 = load i8, ptr %24, align 2, !tbaa !23
  switch i8 %25, label %49 [
    i8 107, label %26
    i8 6, label %50
  ]

26:                                               ; preds = %21
  %27 = getelementptr inbounds i8, ptr %0, i64 164
  %28 = getelementptr inbounds i8, ptr %0, i64 166
  %29 = load i16, ptr %28, align 2, !tbaa !23
  %30 = getelementptr inbounds i8, ptr %0, i64 84
  %31 = getelementptr inbounds i8, ptr %0, i64 86
  %32 = load i16, ptr %31, align 2, !tbaa !23
  %.not74 = icmp slt i16 %29, %32
  br i1 %.not74, label %33, label %34

33:                                               ; preds = %26
  tail call void @__assert_fail(ptr noundef nonnull @.str.16, ptr noundef nonnull @.str.6, i32 noundef 1026, ptr noundef nonnull @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_fill_with_des_mask) #2
  unreachable

34:                                               ; preds = %26
  %35 = getelementptr inbounds i8, ptr %0, i64 64
  %36 = and i32 %23, 12
  %.not75 = icmp eq i32 %36, 0
  %37 = load ptr, ptr %16, align 8, !tbaa !23
  %38 = getelementptr inbounds i8, ptr %0, i64 36
  %39 = load i16, ptr %38, align 4, !tbaa !23
  %40 = getelementptr inbounds i8, ptr %0, i64 44
  %41 = load ptr, ptr %35, align 8, !tbaa !23
  %42 = getelementptr inbounds i8, ptr %0, i64 76
  %43 = load i16, ptr %42, align 4, !tbaa !23
  %44 = load ptr, ptr %17, align 8, !tbaa !23
  %45 = getelementptr inbounds i8, ptr %0, i64 156
  %46 = load i16, ptr %45, align 4, !tbaa !23
  br i1 %.not75, label %48, label %47

47:                                               ; preds = %34
  tail call void @__arm_2d_impl_cccn888_des_chn_msk_fill_mirror(ptr noundef %37, i16 noundef signext %39, ptr noundef nonnull %40, ptr noundef %41, i16 noundef signext %43, ptr noundef nonnull %30, ptr noundef %44, i16 noundef signext %46, ptr noundef nonnull %27, i32 noundef %23)
  br label %74

48:                                               ; preds = %34
  tail call void @__arm_2d_impl_cccn888_des_chn_msk_fill(ptr noundef %37, i16 noundef signext %39, ptr noundef nonnull %40, ptr noundef %41, i16 noundef signext %43, ptr noundef nonnull %30, ptr noundef %44, i16 noundef signext %46, ptr noundef nonnull %27)
  br label %74

49:                                               ; preds = %21
  tail call void @__assert_fail(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.6, i32 noundef 1081, ptr noundef nonnull @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_fill_with_des_mask) #2
  unreachable

50:                                               ; preds = %21
  %51 = and i32 %23, 12
  %.not73 = icmp eq i32 %51, 0
  %52 = getelementptr inbounds i8, ptr %0, i64 164
  %53 = getelementptr inbounds i8, ptr %0, i64 166
  %54 = load i16, ptr %53, align 2, !tbaa !23
  %55 = icmp sgt i16 %54, 1
  %56 = load ptr, ptr %16, align 8, !tbaa !23
  %57 = getelementptr inbounds i8, ptr %0, i64 36
  %58 = load i16, ptr %57, align 4, !tbaa !23
  %59 = getelementptr inbounds i8, ptr %0, i64 44
  %60 = getelementptr inbounds i8, ptr %0, i64 64
  %61 = load ptr, ptr %60, align 8, !tbaa !23
  %62 = getelementptr inbounds i8, ptr %0, i64 76
  %63 = load i16, ptr %62, align 4, !tbaa !23
  %64 = getelementptr inbounds i8, ptr %0, i64 84
  %65 = load ptr, ptr %17, align 8, !tbaa !23
  %66 = getelementptr inbounds i8, ptr %0, i64 156
  %67 = load i16, ptr %66, align 4, !tbaa !23
  br i1 %.not73, label %71, label %68

68:                                               ; preds = %50
  br i1 %55, label %69, label %70

69:                                               ; preds = %68
  tail call void @__arm_2d_impl_cccn888_des_msk_fill_mirror(ptr noundef %56, i16 noundef signext %58, ptr noundef nonnull %59, ptr noundef %61, i16 noundef signext %63, ptr noundef nonnull %64, ptr noundef %65, i16 noundef signext %67, ptr noundef nonnull %52, i32 noundef %23)
  br label %74

70:                                               ; preds = %68
  tail call void @__arm_2d_impl_cccn888_1h_des_msk_fill_mirror(ptr noundef %56, i16 noundef signext %58, ptr noundef nonnull %59, ptr noundef %61, i16 noundef signext %63, ptr noundef nonnull %64, ptr noundef %65, i16 noundef signext %67, ptr noundef nonnull %52, i32 noundef %23)
  br label %74

71:                                               ; preds = %50
  br i1 %55, label %72, label %73

72:                                               ; preds = %71
  tail call void @__arm_2d_impl_cccn888_des_msk_fill(ptr noundef %56, i16 noundef signext %58, ptr noundef nonnull %59, ptr noundef %61, i16 noundef signext %63, ptr noundef nonnull %64, ptr noundef %65, i16 noundef signext %67, ptr noundef nonnull %52)
  br label %74

73:                                               ; preds = %71
  tail call void @__arm_2d_impl_cccn888_1h_des_msk_fill(ptr noundef %56, i16 noundef signext %58, ptr noundef nonnull %59, ptr noundef %61, i16 noundef signext %63, ptr noundef nonnull %64, ptr noundef %65, i16 noundef signext %67, ptr noundef nonnull %52)
  br label %74

74:                                               ; preds = %48, %47, %72, %73, %69, %70, %15
  %.0 = phi i32 [ -2, %15 ], [ 0, %70 ], [ 0, %69 ], [ 0, %73 ], [ 0, %72 ], [ 0, %47 ], [ 0, %48 ]
  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 88}
!22 = !{!12, !20, i64 72}
!23 = !{!9, !9, i64 0}


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