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

; 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_copy_msk_t = type { %union.anon.5, %struct.__arm_2d_tile_param_t, %struct.__arm_2d_tile_param_t }
%union.anon.5 = type { %struct.__arm_2d_param_copy_t }

@ARM_2D_CTRL = external global %struct.__arm_2d_op_control, align 8
@.str.10 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [61 x i8], align 1
@__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_masks_and_x_mirror = external hidden unnamed_addr constant [90 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_masks_copy_x_mirror(ptr noalias noundef, i16 noundef signext, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noalias noundef) #2

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

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

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

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

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

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

12:                                               ; 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 %13

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

25:                                               ; preds = %13
  br label %27

26:                                               ; preds = %13
  call void @__assert_fail(ptr noundef @.str.26, ptr noundef @.str.25, i32 noundef 156, ptr noundef @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_masks_and_x_mirror) #4
  unreachable

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

33:                                               ; preds = %27
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.arm_2d_op_src_msk_t, ptr %34, i32 0, i32 4
  %36 = getelementptr inbounds %struct.anon.38, ptr %35, i32 0, i32 1
  %37 = load ptr, ptr %36, align 8, !tbaa !23
  %38 = icmp eq ptr null, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %33, %27
  br label %41

40:                                               ; preds = %33
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.25, i32 noundef 160, ptr noundef @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_masks_and_x_mirror) #4
  unreachable

41:                                               ; preds = %39
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %42, i32 0, i32 0
  %44 = getelementptr inbounds %struct.anon.0, ptr %43, i32 0, i32 5
  %45 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %44, i32 0, i32 1
  %46 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %45, i32 0, i32 4
  %47 = load i8, ptr %46, align 1
  %48 = and i8 %47, 1
  %49 = zext i8 %48 to i32
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %61, label %51

51:                                               ; preds = %41
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %52, i32 0, i32 0
  %54 = getelementptr inbounds %struct.anon.0, ptr %53, i32 0, i32 5
  %55 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %54, i32 0, i32 2
  %56 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %55, i32 0, i32 4
  %57 = load i8, ptr %56, align 1
  %58 = and i8 %57, 1
  %59 = zext i8 %58 to i32
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %62

61:                                               ; preds = %51, %41
  store i32 -2, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %619

62:                                               ; preds = %51
  %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_copy_msk_t, ptr %65, i32 0, i32 1
  %67 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %66, i32 0, i32 3
  %68 = load i8, ptr %67, align 2, !tbaa !24
  %69 = zext i8 %68 to i32
  %70 = icmp eq i32 107, %69
  br i1 %70, label %71, label %169

71:                                               ; preds = %62
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %72, i32 0, i32 0
  %74 = getelementptr inbounds %struct.anon.0, ptr %73, i32 0, i32 5
  %75 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %74, i32 0, i32 2
  %76 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %75, i32 0, i32 3
  %77 = load i8, ptr %76, align 2, !tbaa !24
  %78 = zext i8 %77 to i32
  %79 = icmp eq i32 107, %78
  br i1 %79, label %80, label %169

80:                                               ; preds = %71
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %81, i32 0, i32 0
  %83 = getelementptr inbounds %struct.anon.0, ptr %82, i32 0, i32 5
  %84 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %83, i32 0, i32 2
  %85 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %84, i32 0, i32 5
  %86 = getelementptr inbounds %struct.arm_2d_region_t, ptr %85, i32 0, i32 1
  %87 = getelementptr inbounds %struct.arm_2d_size_t, ptr %86, i32 0, i32 1
  %88 = load i16, ptr %87, align 2, !tbaa !24
  %89 = sext i16 %88 to i32
  %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_copy_t, ptr %92, i32 0, i32 2
  %94 = getelementptr inbounds %struct.arm_2d_size_t, ptr %93, i32 0, i32 1
  %95 = load i16, ptr %94, align 2, !tbaa !24
  %96 = sext i16 %95 to i32
  %97 = icmp sge i32 %89, %96
  br i1 %97, label %98, label %99

98:                                               ; preds = %80
  br label %100

99:                                               ; preds = %80
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.25, i32 noundef 180, ptr noundef @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_masks_and_x_mirror) #4
  unreachable

100:                                              ; preds = %98
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %101, i32 0, i32 0
  %103 = getelementptr inbounds %struct.anon.0, ptr %102, i32 0, i32 5
  %104 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %103, i32 0, i32 0
  %105 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %104, i32 0, i32 0
  %106 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %105, i32 0, i32 0
  %107 = load ptr, ptr %106, align 8, !tbaa !24
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %108, i32 0, i32 0
  %110 = getelementptr inbounds %struct.anon.0, ptr %109, i32 0, i32 5
  %111 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %110, i32 0, i32 0
  %112 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %111, i32 0, i32 0
  %113 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %112, i32 0, i32 2
  %114 = load i16, ptr %113, align 4, !tbaa !24
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %115, i32 0, i32 0
  %117 = getelementptr inbounds %struct.anon.0, ptr %116, i32 0, i32 5
  %118 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %117, i32 0, i32 1
  %119 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %118, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8, !tbaa !24
  %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_copy_msk_t, ptr %123, i32 0, i32 1
  %125 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %124, i32 0, i32 2
  %126 = load i16, ptr %125, align 4, !tbaa !24
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %127, i32 0, i32 0
  %129 = getelementptr inbounds %struct.anon.0, ptr %128, i32 0, i32 5
  %130 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %129, i32 0, i32 1
  %131 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %130, i32 0, i32 5
  %132 = getelementptr inbounds %struct.arm_2d_region_t, ptr %131, i32 0, i32 1
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %133, i32 0, i32 0
  %135 = getelementptr inbounds %struct.anon.0, ptr %134, i32 0, i32 5
  %136 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %135, i32 0, i32 0
  %137 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %136, i32 0, i32 1
  %138 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %137, i32 0, i32 0
  %139 = load ptr, ptr %138, align 8, !tbaa !24
  %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_copy_msk_t, ptr %142, i32 0, i32 0
  %144 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %143, i32 0, i32 1
  %145 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %144, i32 0, i32 2
  %146 = load i16, ptr %145, align 4, !tbaa !24
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %147, i32 0, i32 0
  %149 = getelementptr inbounds %struct.anon.0, ptr %148, i32 0, i32 5
  %150 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %149, i32 0, i32 2
  %151 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %150, i32 0, i32 0
  %152 = load ptr, ptr %151, align 8, !tbaa !24
  %153 = load ptr, ptr %3, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %153, i32 0, i32 0
  %155 = getelementptr inbounds %struct.anon.0, ptr %154, i32 0, i32 5
  %156 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %155, i32 0, i32 2
  %157 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %156, i32 0, i32 2
  %158 = load i16, ptr %157, align 4, !tbaa !24
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %159, i32 0, i32 0
  %161 = getelementptr inbounds %struct.anon.0, ptr %160, i32 0, i32 5
  %162 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %161, i32 0, i32 2
  %163 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %162, i32 0, i32 5
  %164 = getelementptr inbounds %struct.arm_2d_region_t, ptr %163, i32 0, i32 1
  %165 = load ptr, ptr %3, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %165, i32 0, i32 0
  %167 = getelementptr inbounds %struct.anon.0, ptr %166, i32 0, i32 5
  %168 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %167, i32 0, i32 2
  call void @__arm_2d_impl_cccn888_src_chn_msk_des_chn_msk_copy_x_mirror(ptr noundef %107, i16 noundef signext %114, ptr noundef %120, i16 noundef signext %126, ptr noundef %132, ptr noundef %139, i16 noundef signext %146, ptr noundef %152, i16 noundef signext %158, ptr noundef %164, ptr noundef %168)
  br label %618

169:                                              ; preds = %71, %62
  %170 = load ptr, ptr %3, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %170, i32 0, i32 0
  %172 = getelementptr inbounds %struct.anon.0, ptr %171, i32 0, i32 5
  %173 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %172, i32 0, i32 1
  %174 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %173, i32 0, i32 3
  %175 = load i8, ptr %174, align 2, !tbaa !24
  %176 = zext i8 %175 to i32
  %177 = icmp eq i32 107, %176
  br i1 %177, label %178, label %337

178:                                              ; preds = %169
  %179 = load ptr, ptr %3, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %179, i32 0, i32 0
  %181 = getelementptr inbounds %struct.anon.0, ptr %180, i32 0, i32 5
  %182 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %181, i32 0, i32 2
  %183 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %182, i32 0, i32 3
  %184 = load i8, ptr %183, align 2, !tbaa !24
  %185 = zext i8 %184 to i32
  %186 = icmp ne i32 107, %185
  br i1 %186, label %187, label %337

187:                                              ; preds = %178
  %188 = load ptr, ptr %3, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %188, i32 0, i32 0
  %190 = getelementptr inbounds %struct.anon.0, ptr %189, i32 0, i32 5
  %191 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %190, i32 0, i32 2
  %192 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %191, i32 0, i32 5
  %193 = getelementptr inbounds %struct.arm_2d_region_t, ptr %192, i32 0, i32 1
  %194 = getelementptr inbounds %struct.arm_2d_size_t, ptr %193, i32 0, i32 1
  %195 = load i16, ptr %194, align 2, !tbaa !24
  %196 = sext i16 %195 to i32
  %197 = icmp sgt i32 %196, 1
  br i1 %197, label %198, label %267

198:                                              ; preds = %187
  %199 = load ptr, ptr %3, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %199, i32 0, i32 0
  %201 = getelementptr inbounds %struct.anon.0, ptr %200, i32 0, i32 5
  %202 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %201, i32 0, i32 0
  %203 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %202, i32 0, i32 0
  %204 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %203, i32 0, i32 0
  %205 = load ptr, ptr %204, align 8, !tbaa !24
  %206 = load ptr, ptr %3, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %206, i32 0, i32 0
  %208 = getelementptr inbounds %struct.anon.0, ptr %207, i32 0, i32 5
  %209 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %208, i32 0, i32 0
  %210 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %209, i32 0, i32 0
  %211 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %210, i32 0, i32 2
  %212 = load i16, ptr %211, align 4, !tbaa !24
  %213 = load ptr, ptr %3, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %213, i32 0, i32 0
  %215 = getelementptr inbounds %struct.anon.0, ptr %214, i32 0, i32 5
  %216 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %215, i32 0, i32 1
  %217 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %216, i32 0, i32 0
  %218 = load ptr, ptr %217, align 8, !tbaa !24
  %219 = load ptr, ptr %3, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %219, i32 0, i32 0
  %221 = getelementptr inbounds %struct.anon.0, ptr %220, i32 0, i32 5
  %222 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %221, i32 0, i32 1
  %223 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %222, i32 0, i32 2
  %224 = load i16, ptr %223, align 4, !tbaa !24
  %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_copy_msk_t, ptr %227, i32 0, i32 1
  %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 = load ptr, ptr %3, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %231, i32 0, i32 0
  %233 = getelementptr inbounds %struct.anon.0, ptr %232, i32 0, i32 5
  %234 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %233, i32 0, i32 0
  %235 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %234, i32 0, i32 1
  %236 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %235, i32 0, i32 0
  %237 = load ptr, ptr %236, align 8, !tbaa !24
  %238 = load ptr, ptr %3, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %238, i32 0, i32 0
  %240 = getelementptr inbounds %struct.anon.0, ptr %239, i32 0, i32 5
  %241 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %240, i32 0, i32 0
  %242 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %241, i32 0, i32 1
  %243 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %242, i32 0, i32 2
  %244 = load i16, ptr %243, align 4, !tbaa !24
  %245 = load ptr, ptr %3, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %245, i32 0, i32 0
  %247 = getelementptr inbounds %struct.anon.0, ptr %246, i32 0, i32 5
  %248 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %247, i32 0, i32 2
  %249 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %248, i32 0, i32 0
  %250 = load ptr, ptr %249, align 8, !tbaa !24
  %251 = load ptr, ptr %3, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %251, i32 0, i32 0
  %253 = getelementptr inbounds %struct.anon.0, ptr %252, i32 0, i32 5
  %254 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %253, i32 0, i32 2
  %255 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %254, i32 0, i32 2
  %256 = load i16, ptr %255, align 4, !tbaa !24
  %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_copy_msk_t, ptr %259, i32 0, i32 2
  %261 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %260, i32 0, i32 5
  %262 = getelementptr inbounds %struct.arm_2d_region_t, ptr %261, i32 0, i32 1
  %263 = load ptr, ptr %3, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %263, i32 0, i32 0
  %265 = getelementptr inbounds %struct.anon.0, ptr %264, i32 0, i32 5
  %266 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %265, i32 0, i32 2
  call void @__arm_2d_impl_cccn888_src_chn_msk_des_msk_copy_x_mirror(ptr noundef %205, i16 noundef signext %212, ptr noundef %218, i16 noundef signext %224, ptr noundef %230, ptr noundef %237, i16 noundef signext %244, ptr noundef %250, i16 noundef signext %256, ptr noundef %262, ptr noundef %266)
  br label %336

267:                                              ; preds = %187
  %268 = load ptr, ptr %3, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %268, i32 0, i32 0
  %270 = getelementptr inbounds %struct.anon.0, ptr %269, i32 0, i32 5
  %271 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %270, i32 0, i32 0
  %272 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %271, i32 0, i32 0
  %273 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %272, i32 0, i32 0
  %274 = load ptr, ptr %273, align 8, !tbaa !24
  %275 = load ptr, ptr %3, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %275, i32 0, i32 0
  %277 = getelementptr inbounds %struct.anon.0, ptr %276, i32 0, i32 5
  %278 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %277, i32 0, i32 0
  %279 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %278, i32 0, i32 0
  %280 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %279, i32 0, i32 2
  %281 = load i16, ptr %280, align 4, !tbaa !24
  %282 = load ptr, ptr %3, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %282, i32 0, i32 0
  %284 = getelementptr inbounds %struct.anon.0, ptr %283, i32 0, i32 5
  %285 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %284, i32 0, i32 1
  %286 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %285, i32 0, i32 0
  %287 = load ptr, ptr %286, align 8, !tbaa !24
  %288 = load ptr, ptr %3, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %288, i32 0, i32 0
  %290 = getelementptr inbounds %struct.anon.0, ptr %289, i32 0, i32 5
  %291 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %290, i32 0, i32 1
  %292 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %291, i32 0, i32 2
  %293 = load i16, ptr %292, align 4, !tbaa !24
  %294 = load ptr, ptr %3, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %294, i32 0, i32 0
  %296 = getelementptr inbounds %struct.anon.0, ptr %295, i32 0, i32 5
  %297 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %296, i32 0, i32 1
  %298 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %297, i32 0, i32 5
  %299 = getelementptr inbounds %struct.arm_2d_region_t, ptr %298, i32 0, i32 1
  %300 = load ptr, ptr %3, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %300, i32 0, i32 0
  %302 = getelementptr inbounds %struct.anon.0, ptr %301, i32 0, i32 5
  %303 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %302, i32 0, i32 0
  %304 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %303, i32 0, i32 1
  %305 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %304, i32 0, i32 0
  %306 = load ptr, ptr %305, align 8, !tbaa !24
  %307 = load ptr, ptr %3, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %307, i32 0, i32 0
  %309 = getelementptr inbounds %struct.anon.0, ptr %308, i32 0, i32 5
  %310 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %309, i32 0, i32 0
  %311 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %310, i32 0, i32 1
  %312 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %311, i32 0, i32 2
  %313 = load i16, ptr %312, align 4, !tbaa !24
  %314 = load ptr, ptr %3, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %314, i32 0, i32 0
  %316 = getelementptr inbounds %struct.anon.0, ptr %315, i32 0, i32 5
  %317 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %316, i32 0, i32 2
  %318 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %317, i32 0, i32 0
  %319 = load ptr, ptr %318, align 8, !tbaa !24
  %320 = load ptr, ptr %3, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %320, i32 0, i32 0
  %322 = getelementptr inbounds %struct.anon.0, ptr %321, i32 0, i32 5
  %323 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %322, i32 0, i32 2
  %324 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %323, i32 0, i32 2
  %325 = load i16, ptr %324, align 4, !tbaa !24
  %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_copy_msk_t, ptr %328, i32 0, i32 2
  %330 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %329, i32 0, i32 5
  %331 = getelementptr inbounds %struct.arm_2d_region_t, ptr %330, i32 0, i32 1
  %332 = load ptr, ptr %3, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %332, i32 0, i32 0
  %334 = getelementptr inbounds %struct.anon.0, ptr %333, i32 0, i32 5
  %335 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %334, i32 0, i32 2
  call void @__arm_2d_impl_cccn888_src_chn_msk_1h_des_msk_copy_x_mirror(ptr noundef %274, i16 noundef signext %281, ptr noundef %287, i16 noundef signext %293, ptr noundef %299, ptr noundef %306, i16 noundef signext %313, ptr noundef %319, i16 noundef signext %325, ptr noundef %331, ptr noundef %335)
  br label %336

336:                                              ; preds = %267, %198
  br label %617

337:                                              ; preds = %178, %169
  %338 = load ptr, ptr %3, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %338, i32 0, i32 0
  %340 = getelementptr inbounds %struct.anon.0, ptr %339, i32 0, i32 5
  %341 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %340, i32 0, i32 1
  %342 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %341, i32 0, i32 3
  %343 = load i8, ptr %342, align 2, !tbaa !24
  %344 = zext i8 %343 to i32
  %345 = icmp ne i32 107, %344
  br i1 %345, label %346, label %444

346:                                              ; preds = %337
  %347 = load ptr, ptr %3, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %347, i32 0, i32 0
  %349 = getelementptr inbounds %struct.anon.0, ptr %348, i32 0, i32 5
  %350 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %349, i32 0, i32 2
  %351 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %350, i32 0, i32 3
  %352 = load i8, ptr %351, align 2, !tbaa !24
  %353 = zext i8 %352 to i32
  %354 = icmp eq i32 107, %353
  br i1 %354, label %355, label %444

355:                                              ; preds = %346
  %356 = load ptr, ptr %3, align 8, !tbaa !5
  %357 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %356, i32 0, i32 0
  %358 = getelementptr inbounds %struct.anon.0, ptr %357, i32 0, i32 5
  %359 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %358, i32 0, i32 2
  %360 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %359, i32 0, i32 5
  %361 = getelementptr inbounds %struct.arm_2d_region_t, ptr %360, i32 0, i32 1
  %362 = getelementptr inbounds %struct.arm_2d_size_t, ptr %361, i32 0, i32 1
  %363 = load i16, ptr %362, align 2, !tbaa !24
  %364 = sext i16 %363 to i32
  %365 = load ptr, ptr %3, align 8, !tbaa !5
  %366 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %365, i32 0, i32 0
  %367 = getelementptr inbounds %struct.anon.0, ptr %366, i32 0, i32 5
  %368 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %367, i32 0, i32 2
  %369 = getelementptr inbounds %struct.arm_2d_size_t, ptr %368, i32 0, i32 1
  %370 = load i16, ptr %369, align 2, !tbaa !24
  %371 = sext i16 %370 to i32
  %372 = icmp sge i32 %364, %371
  br i1 %372, label %373, label %374

373:                                              ; preds = %355
  br label %375

374:                                              ; preds = %355
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.25, i32 noundef 277, ptr noundef @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_masks_and_x_mirror) #4
  unreachable

375:                                              ; preds = %373
  %376 = load ptr, ptr %3, align 8, !tbaa !5
  %377 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %376, i32 0, i32 0
  %378 = getelementptr inbounds %struct.anon.0, ptr %377, i32 0, i32 5
  %379 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %378, i32 0, i32 0
  %380 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %379, i32 0, i32 0
  %381 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %380, i32 0, i32 0
  %382 = load ptr, ptr %381, align 8, !tbaa !24
  %383 = load ptr, ptr %3, align 8, !tbaa !5
  %384 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %383, i32 0, i32 0
  %385 = getelementptr inbounds %struct.anon.0, ptr %384, i32 0, i32 5
  %386 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %385, i32 0, i32 0
  %387 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %386, i32 0, i32 0
  %388 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %387, i32 0, i32 2
  %389 = load i16, ptr %388, align 4, !tbaa !24
  %390 = load ptr, ptr %3, align 8, !tbaa !5
  %391 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %390, i32 0, i32 0
  %392 = getelementptr inbounds %struct.anon.0, ptr %391, i32 0, i32 5
  %393 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %392, i32 0, i32 1
  %394 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %393, i32 0, i32 0
  %395 = load ptr, ptr %394, align 8, !tbaa !24
  %396 = load ptr, ptr %3, align 8, !tbaa !5
  %397 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %396, i32 0, i32 0
  %398 = getelementptr inbounds %struct.anon.0, ptr %397, i32 0, i32 5
  %399 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %398, i32 0, i32 1
  %400 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %399, i32 0, i32 2
  %401 = load i16, ptr %400, align 4, !tbaa !24
  %402 = load ptr, ptr %3, align 8, !tbaa !5
  %403 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %402, i32 0, i32 0
  %404 = getelementptr inbounds %struct.anon.0, ptr %403, i32 0, i32 5
  %405 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %404, i32 0, i32 1
  %406 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %405, i32 0, i32 5
  %407 = getelementptr inbounds %struct.arm_2d_region_t, ptr %406, i32 0, i32 1
  %408 = load ptr, ptr %3, align 8, !tbaa !5
  %409 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %408, i32 0, i32 0
  %410 = getelementptr inbounds %struct.anon.0, ptr %409, i32 0, i32 5
  %411 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %410, i32 0, i32 0
  %412 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %411, i32 0, i32 1
  %413 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %412, i32 0, i32 0
  %414 = load ptr, ptr %413, align 8, !tbaa !24
  %415 = load ptr, ptr %3, align 8, !tbaa !5
  %416 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %415, i32 0, i32 0
  %417 = getelementptr inbounds %struct.anon.0, ptr %416, i32 0, i32 5
  %418 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %417, i32 0, i32 0
  %419 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %418, i32 0, i32 1
  %420 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %419, i32 0, i32 2
  %421 = load i16, ptr %420, align 4, !tbaa !24
  %422 = load ptr, ptr %3, align 8, !tbaa !5
  %423 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %422, i32 0, i32 0
  %424 = getelementptr inbounds %struct.anon.0, ptr %423, i32 0, i32 5
  %425 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %424, i32 0, i32 2
  %426 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %425, i32 0, i32 0
  %427 = load ptr, ptr %426, align 8, !tbaa !24
  %428 = load ptr, ptr %3, align 8, !tbaa !5
  %429 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %428, i32 0, i32 0
  %430 = getelementptr inbounds %struct.anon.0, ptr %429, i32 0, i32 5
  %431 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %430, i32 0, i32 2
  %432 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %431, i32 0, i32 2
  %433 = load i16, ptr %432, align 4, !tbaa !24
  %434 = load ptr, ptr %3, align 8, !tbaa !5
  %435 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %434, i32 0, i32 0
  %436 = getelementptr inbounds %struct.anon.0, ptr %435, i32 0, i32 5
  %437 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %436, i32 0, i32 2
  %438 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %437, i32 0, i32 5
  %439 = getelementptr inbounds %struct.arm_2d_region_t, ptr %438, i32 0, i32 1
  %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_copy_t, ptr %442, i32 0, i32 2
  call void @__arm_2d_impl_cccn888_src_msk_des_chn_msk_copy_x_mirror(ptr noundef %382, i16 noundef signext %389, ptr noundef %395, i16 noundef signext %401, ptr noundef %407, ptr noundef %414, i16 noundef signext %421, ptr noundef %427, i16 noundef signext %433, ptr noundef %439, ptr noundef %443)
  br label %616

444:                                              ; preds = %346, %337
  %445 = load ptr, ptr %3, align 8, !tbaa !5
  %446 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %445, i32 0, i32 0
  %447 = getelementptr inbounds %struct.anon.0, ptr %446, i32 0, i32 5
  %448 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %447, i32 0, i32 1
  %449 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %448, i32 0, i32 3
  %450 = load i8, ptr %449, align 2, !tbaa !24
  %451 = zext i8 %450 to i32
  %452 = icmp eq i32 6, %451
  br i1 %452, label %453, label %454

453:                                              ; preds = %444
  br label %455

454:                                              ; preds = %444
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.25, i32 noundef 306, ptr noundef @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_masks_and_x_mirror) #4
  unreachable

455:                                              ; preds = %453
  %456 = load ptr, ptr %3, align 8, !tbaa !5
  %457 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %456, i32 0, i32 0
  %458 = getelementptr inbounds %struct.anon.0, ptr %457, i32 0, i32 5
  %459 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %458, i32 0, i32 2
  %460 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %459, i32 0, i32 3
  %461 = load i8, ptr %460, align 2, !tbaa !24
  %462 = zext i8 %461 to i32
  %463 = icmp eq i32 6, %462
  br i1 %463, label %464, label %465

464:                                              ; preds = %455
  br label %466

465:                                              ; preds = %455
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.25, i32 noundef 308, ptr noundef @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_masks_and_x_mirror) #4
  unreachable

466:                                              ; preds = %464
  %467 = load ptr, ptr %3, align 8, !tbaa !5
  %468 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %467, i32 0, i32 0
  %469 = getelementptr inbounds %struct.anon.0, ptr %468, i32 0, i32 5
  %470 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %469, i32 0, i32 2
  %471 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %470, i32 0, i32 5
  %472 = getelementptr inbounds %struct.arm_2d_region_t, ptr %471, i32 0, i32 1
  %473 = getelementptr inbounds %struct.arm_2d_size_t, ptr %472, i32 0, i32 1
  %474 = load i16, ptr %473, align 2, !tbaa !24
  %475 = sext i16 %474 to i32
  %476 = icmp sgt i32 %475, 1
  br i1 %476, label %477, label %546

477:                                              ; preds = %466
  %478 = load ptr, ptr %3, align 8, !tbaa !5
  %479 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %478, i32 0, i32 0
  %480 = getelementptr inbounds %struct.anon.0, ptr %479, i32 0, i32 5
  %481 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %480, i32 0, i32 0
  %482 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %481, i32 0, i32 0
  %483 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %482, i32 0, i32 0
  %484 = load ptr, ptr %483, align 8, !tbaa !24
  %485 = load ptr, ptr %3, align 8, !tbaa !5
  %486 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %485, i32 0, i32 0
  %487 = getelementptr inbounds %struct.anon.0, ptr %486, i32 0, i32 5
  %488 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %487, i32 0, i32 0
  %489 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %488, i32 0, i32 0
  %490 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %489, i32 0, i32 2
  %491 = load i16, ptr %490, align 4, !tbaa !24
  %492 = load ptr, ptr %3, align 8, !tbaa !5
  %493 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %492, i32 0, i32 0
  %494 = getelementptr inbounds %struct.anon.0, ptr %493, i32 0, i32 5
  %495 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %494, i32 0, i32 1
  %496 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %495, i32 0, i32 0
  %497 = load ptr, ptr %496, align 8, !tbaa !24
  %498 = load ptr, ptr %3, align 8, !tbaa !5
  %499 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %498, i32 0, i32 0
  %500 = getelementptr inbounds %struct.anon.0, ptr %499, i32 0, i32 5
  %501 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %500, i32 0, i32 1
  %502 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %501, i32 0, i32 2
  %503 = load i16, ptr %502, align 4, !tbaa !24
  %504 = load ptr, ptr %3, align 8, !tbaa !5
  %505 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %504, i32 0, i32 0
  %506 = getelementptr inbounds %struct.anon.0, ptr %505, i32 0, i32 5
  %507 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %506, i32 0, i32 1
  %508 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %507, i32 0, i32 5
  %509 = getelementptr inbounds %struct.arm_2d_region_t, ptr %508, i32 0, i32 1
  %510 = load ptr, ptr %3, align 8, !tbaa !5
  %511 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %510, i32 0, i32 0
  %512 = getelementptr inbounds %struct.anon.0, ptr %511, i32 0, i32 5
  %513 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %512, i32 0, i32 0
  %514 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %513, i32 0, i32 1
  %515 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %514, i32 0, i32 0
  %516 = load ptr, ptr %515, align 8, !tbaa !24
  %517 = load ptr, ptr %3, align 8, !tbaa !5
  %518 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %517, i32 0, i32 0
  %519 = getelementptr inbounds %struct.anon.0, ptr %518, i32 0, i32 5
  %520 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %519, i32 0, i32 0
  %521 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %520, i32 0, i32 1
  %522 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %521, i32 0, i32 2
  %523 = load i16, ptr %522, align 4, !tbaa !24
  %524 = load ptr, ptr %3, align 8, !tbaa !5
  %525 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %524, i32 0, i32 0
  %526 = getelementptr inbounds %struct.anon.0, ptr %525, i32 0, i32 5
  %527 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %526, i32 0, i32 2
  %528 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %527, i32 0, i32 0
  %529 = load ptr, ptr %528, align 8, !tbaa !24
  %530 = load ptr, ptr %3, align 8, !tbaa !5
  %531 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %530, i32 0, i32 0
  %532 = getelementptr inbounds %struct.anon.0, ptr %531, i32 0, i32 5
  %533 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %532, i32 0, i32 2
  %534 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %533, i32 0, i32 2
  %535 = load i16, ptr %534, align 4, !tbaa !24
  %536 = load ptr, ptr %3, align 8, !tbaa !5
  %537 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %536, i32 0, i32 0
  %538 = getelementptr inbounds %struct.anon.0, ptr %537, i32 0, i32 5
  %539 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %538, i32 0, i32 2
  %540 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %539, i32 0, i32 5
  %541 = getelementptr inbounds %struct.arm_2d_region_t, ptr %540, i32 0, i32 1
  %542 = load ptr, ptr %3, align 8, !tbaa !5
  %543 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %542, i32 0, i32 0
  %544 = getelementptr inbounds %struct.anon.0, ptr %543, i32 0, i32 5
  %545 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %544, i32 0, i32 2
  call void @__arm_2d_impl_cccn888_masks_copy_x_mirror(ptr noundef %484, i16 noundef signext %491, ptr noundef %497, i16 noundef signext %503, ptr noundef %509, ptr noundef %516, i16 noundef signext %523, ptr noundef %529, i16 noundef signext %535, ptr noundef %541, ptr noundef %545)
  br label %615

546:                                              ; preds = %466
  %547 = load ptr, ptr %3, align 8, !tbaa !5
  %548 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %547, i32 0, i32 0
  %549 = getelementptr inbounds %struct.anon.0, ptr %548, i32 0, i32 5
  %550 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %549, i32 0, i32 0
  %551 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %550, i32 0, i32 0
  %552 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %551, i32 0, i32 0
  %553 = load ptr, ptr %552, align 8, !tbaa !24
  %554 = load ptr, ptr %3, align 8, !tbaa !5
  %555 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %554, i32 0, i32 0
  %556 = getelementptr inbounds %struct.anon.0, ptr %555, i32 0, i32 5
  %557 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %556, i32 0, i32 0
  %558 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %557, i32 0, i32 0
  %559 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %558, i32 0, i32 2
  %560 = load i16, ptr %559, align 4, !tbaa !24
  %561 = load ptr, ptr %3, align 8, !tbaa !5
  %562 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %561, i32 0, i32 0
  %563 = getelementptr inbounds %struct.anon.0, ptr %562, i32 0, i32 5
  %564 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %563, i32 0, i32 1
  %565 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %564, i32 0, i32 0
  %566 = load ptr, ptr %565, align 8, !tbaa !24
  %567 = load ptr, ptr %3, align 8, !tbaa !5
  %568 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %567, i32 0, i32 0
  %569 = getelementptr inbounds %struct.anon.0, ptr %568, i32 0, i32 5
  %570 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %569, i32 0, i32 1
  %571 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %570, i32 0, i32 2
  %572 = load i16, ptr %571, align 4, !tbaa !24
  %573 = load ptr, ptr %3, align 8, !tbaa !5
  %574 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %573, i32 0, i32 0
  %575 = getelementptr inbounds %struct.anon.0, ptr %574, i32 0, i32 5
  %576 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %575, i32 0, i32 1
  %577 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %576, i32 0, i32 5
  %578 = getelementptr inbounds %struct.arm_2d_region_t, ptr %577, i32 0, i32 1
  %579 = load ptr, ptr %3, align 8, !tbaa !5
  %580 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %579, i32 0, i32 0
  %581 = getelementptr inbounds %struct.anon.0, ptr %580, i32 0, i32 5
  %582 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %581, i32 0, i32 0
  %583 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %582, i32 0, i32 1
  %584 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %583, i32 0, i32 0
  %585 = load ptr, ptr %584, align 8, !tbaa !24
  %586 = load ptr, ptr %3, align 8, !tbaa !5
  %587 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %586, i32 0, i32 0
  %588 = getelementptr inbounds %struct.anon.0, ptr %587, i32 0, i32 5
  %589 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %588, i32 0, i32 0
  %590 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %589, i32 0, i32 1
  %591 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %590, i32 0, i32 2
  %592 = load i16, ptr %591, align 4, !tbaa !24
  %593 = load ptr, ptr %3, align 8, !tbaa !5
  %594 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %593, i32 0, i32 0
  %595 = getelementptr inbounds %struct.anon.0, ptr %594, i32 0, i32 5
  %596 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %595, i32 0, i32 2
  %597 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %596, i32 0, i32 0
  %598 = load ptr, ptr %597, align 8, !tbaa !24
  %599 = load ptr, ptr %3, align 8, !tbaa !5
  %600 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %599, i32 0, i32 0
  %601 = getelementptr inbounds %struct.anon.0, ptr %600, i32 0, i32 5
  %602 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %601, i32 0, i32 2
  %603 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %602, i32 0, i32 2
  %604 = load i16, ptr %603, align 4, !tbaa !24
  %605 = load ptr, ptr %3, align 8, !tbaa !5
  %606 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %605, i32 0, i32 0
  %607 = getelementptr inbounds %struct.anon.0, ptr %606, i32 0, i32 5
  %608 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %607, i32 0, i32 2
  %609 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %608, i32 0, i32 5
  %610 = getelementptr inbounds %struct.arm_2d_region_t, ptr %609, i32 0, i32 1
  %611 = load ptr, ptr %3, align 8, !tbaa !5
  %612 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %611, i32 0, i32 0
  %613 = getelementptr inbounds %struct.anon.0, ptr %612, i32 0, i32 5
  %614 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %613, i32 0, i32 2
  call void @__arm_2d_impl_cccn888_src_msk_1h_des_msk_copy_x_mirror(ptr noundef %553, i16 noundef signext %560, ptr noundef %566, i16 noundef signext %572, ptr noundef %578, ptr noundef %585, i16 noundef signext %592, ptr noundef %598, i16 noundef signext %604, ptr noundef %610, ptr noundef %614)
  br label %615

615:                                              ; preds = %546, %477
  br label %616

616:                                              ; preds = %615, %375
  br label %617

617:                                              ; preds = %616, %336
  br label %618

618:                                              ; preds = %617, %100
  store i32 0, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %619

619:                                              ; preds = %618, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  %620 = load i32, ptr %2, align 4
  ret i32 %620
}

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, !6, i64 88}
!24 = !{!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.10 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [113 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [61 x i8], align 1
@__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_masks_and_x_mirror = external hidden unnamed_addr constant [90 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_masks_copy_x_mirror(ptr noalias noundef, i16 noundef signext, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #1

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -2, 1) i32 @__arm_2d_cccn888_sw_tile_copy_with_masks_and_x_mirror(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.26, ptr noundef nonnull @.str.25, i32 noundef 156, ptr noundef nonnull @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_masks_and_x_mirror) #2
  unreachable

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

15:                                               ; preds = %11
  %16 = getelementptr inbounds i8, ptr %spec.store.select, i64 88
  %17 = load ptr, ptr %16, align 8, !tbaa !22
  %18 = icmp eq ptr %17, null
  br i1 %18, label %19, label %20

19:                                               ; preds = %15
  tail call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.25, i32 noundef 160, ptr noundef nonnull @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_masks_and_x_mirror) #2
  unreachable

20:                                               ; preds = %11, %15
  %21 = getelementptr inbounds i8, ptr %0, i64 24
  %22 = getelementptr inbounds i8, ptr %0, i64 112
  %23 = getelementptr inbounds i8, ptr %0, i64 127
  %24 = load i8, ptr %23, align 1
  %25 = and i8 %24, 1
  %.not = icmp eq i8 %25, 0
  br i1 %.not, label %26, label %135

26:                                               ; preds = %20
  %27 = getelementptr inbounds i8, ptr %0, i64 152
  %28 = getelementptr inbounds i8, ptr %0, i64 167
  %29 = load i8, ptr %28, align 1
  %30 = and i8 %29, 1
  %.not87 = icmp eq i8 %30, 0
  br i1 %.not87, label %31, label %135

31:                                               ; preds = %26
  %32 = getelementptr inbounds i8, ptr %0, i64 126
  %33 = load i8, ptr %32, align 2, !tbaa !23
  %34 = icmp eq i8 %33, 107
  %35 = getelementptr inbounds i8, ptr %0, i64 166
  %36 = load i8, ptr %35, align 2, !tbaa !23
  %37 = icmp eq i8 %36, 107
  br i1 %34, label %38, label %84

38:                                               ; preds = %31
  br i1 %37, label %39, label %62

39:                                               ; preds = %38
  %40 = getelementptr inbounds i8, ptr %0, i64 174
  %41 = load i16, ptr %40, align 2, !tbaa !23
  %42 = getelementptr inbounds i8, ptr %0, i64 106
  %43 = load i16, ptr %42, align 2, !tbaa !23
  %.not91 = icmp slt i16 %41, %43
  br i1 %.not91, label %44, label %45

44:                                               ; preds = %39
  tail call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.25, i32 noundef 180, ptr noundef nonnull @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_masks_and_x_mirror) #2
  unreachable

45:                                               ; preds = %39
  %46 = getelementptr inbounds i8, ptr %0, i64 104
  %47 = getelementptr inbounds i8, ptr %0, i64 172
  %48 = load ptr, ptr %21, align 8, !tbaa !23
  %49 = getelementptr inbounds i8, ptr %0, i64 36
  %50 = load i16, ptr %49, align 4, !tbaa !23
  %51 = load ptr, ptr %22, align 8, !tbaa !23
  %52 = getelementptr inbounds i8, ptr %0, i64 124
  %53 = load i16, ptr %52, align 4, !tbaa !23
  %54 = getelementptr inbounds i8, ptr %0, i64 132
  %55 = getelementptr inbounds i8, ptr %0, i64 64
  %56 = load ptr, ptr %55, align 8, !tbaa !23
  %57 = getelementptr inbounds i8, ptr %0, i64 76
  %58 = load i16, ptr %57, align 4, !tbaa !23
  %59 = load ptr, ptr %27, align 8, !tbaa !23
  %60 = getelementptr inbounds i8, ptr %0, i64 164
  %61 = load i16, ptr %60, align 4, !tbaa !23
  tail call void @__arm_2d_impl_cccn888_src_chn_msk_des_chn_msk_copy_x_mirror(ptr noundef %48, i16 noundef signext %50, ptr noundef %51, i16 noundef signext %53, ptr noundef nonnull %54, ptr noundef %56, i16 noundef signext %58, ptr noundef %59, i16 noundef signext %61, ptr noundef nonnull %47, ptr noundef nonnull %46)
  br label %135

62:                                               ; preds = %38
  %63 = getelementptr inbounds i8, ptr %0, i64 172
  %64 = getelementptr inbounds i8, ptr %0, i64 174
  %65 = load i16, ptr %64, align 2, !tbaa !23
  %66 = icmp sgt i16 %65, 1
  %67 = load ptr, ptr %21, align 8, !tbaa !23
  %68 = getelementptr inbounds i8, ptr %0, i64 36
  %69 = load i16, ptr %68, align 4, !tbaa !23
  %70 = load ptr, ptr %22, align 8, !tbaa !23
  %71 = getelementptr inbounds i8, ptr %0, i64 124
  %72 = load i16, ptr %71, align 4, !tbaa !23
  %73 = getelementptr inbounds i8, ptr %0, i64 132
  %74 = getelementptr inbounds i8, ptr %0, i64 64
  %75 = load ptr, ptr %74, align 8, !tbaa !23
  %76 = getelementptr inbounds i8, ptr %0, i64 76
  %77 = load i16, ptr %76, align 4, !tbaa !23
  %78 = load ptr, ptr %27, align 8, !tbaa !23
  %79 = getelementptr inbounds i8, ptr %0, i64 164
  %80 = load i16, ptr %79, align 4, !tbaa !23
  %81 = getelementptr inbounds i8, ptr %0, i64 104
  br i1 %66, label %82, label %83

82:                                               ; preds = %62
  tail call void @__arm_2d_impl_cccn888_src_chn_msk_des_msk_copy_x_mirror(ptr noundef %67, i16 noundef signext %69, ptr noundef %70, i16 noundef signext %72, ptr noundef nonnull %73, ptr noundef %75, i16 noundef signext %77, ptr noundef %78, i16 noundef signext %80, ptr noundef nonnull %63, ptr noundef nonnull %81)
  br label %135

83:                                               ; preds = %62
  tail call void @__arm_2d_impl_cccn888_src_chn_msk_1h_des_msk_copy_x_mirror(ptr noundef %67, i16 noundef signext %69, ptr noundef %70, i16 noundef signext %72, ptr noundef nonnull %73, ptr noundef %75, i16 noundef signext %77, ptr noundef %78, i16 noundef signext %80, ptr noundef nonnull %63, ptr noundef nonnull %81)
  br label %135

84:                                               ; preds = %31
  br i1 %37, label %85, label %108

85:                                               ; preds = %84
  %86 = getelementptr inbounds i8, ptr %0, i64 174
  %87 = load i16, ptr %86, align 2, !tbaa !23
  %88 = getelementptr inbounds i8, ptr %0, i64 106
  %89 = load i16, ptr %88, align 2, !tbaa !23
  %.not90 = icmp slt i16 %87, %89
  br i1 %.not90, label %90, label %91

90:                                               ; preds = %85
  tail call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.25, i32 noundef 277, ptr noundef nonnull @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_masks_and_x_mirror) #2
  unreachable

91:                                               ; preds = %85
  %92 = getelementptr inbounds i8, ptr %0, i64 104
  %93 = getelementptr inbounds i8, ptr %0, i64 172
  %94 = load ptr, ptr %21, align 8, !tbaa !23
  %95 = getelementptr inbounds i8, ptr %0, i64 36
  %96 = load i16, ptr %95, align 4, !tbaa !23
  %97 = load ptr, ptr %22, align 8, !tbaa !23
  %98 = getelementptr inbounds i8, ptr %0, i64 124
  %99 = load i16, ptr %98, align 4, !tbaa !23
  %100 = getelementptr inbounds i8, ptr %0, i64 132
  %101 = getelementptr inbounds i8, ptr %0, i64 64
  %102 = load ptr, ptr %101, align 8, !tbaa !23
  %103 = getelementptr inbounds i8, ptr %0, i64 76
  %104 = load i16, ptr %103, align 4, !tbaa !23
  %105 = load ptr, ptr %27, align 8, !tbaa !23
  %106 = getelementptr inbounds i8, ptr %0, i64 164
  %107 = load i16, ptr %106, align 4, !tbaa !23
  tail call void @__arm_2d_impl_cccn888_src_msk_des_chn_msk_copy_x_mirror(ptr noundef %94, i16 noundef signext %96, ptr noundef %97, i16 noundef signext %99, ptr noundef nonnull %100, ptr noundef %102, i16 noundef signext %104, ptr noundef %105, i16 noundef signext %107, ptr noundef nonnull %93, ptr noundef nonnull %92)
  br label %135

108:                                              ; preds = %84
  %109 = icmp eq i8 %33, 6
  br i1 %109, label %110, label %.thread93

.thread93:                                        ; preds = %108
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.25, i32 noundef 306, ptr noundef nonnull @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_masks_and_x_mirror) #2
  unreachable

110:                                              ; preds = %108
  %111 = icmp eq i8 %36, 6
  br i1 %111, label %113, label %112

112:                                              ; preds = %110
  tail call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.25, i32 noundef 308, ptr noundef nonnull @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_masks_and_x_mirror) #2
  unreachable

113:                                              ; preds = %110
  %114 = getelementptr inbounds i8, ptr %0, i64 172
  %115 = getelementptr inbounds i8, ptr %0, i64 174
  %116 = load i16, ptr %115, align 2, !tbaa !23
  %117 = icmp sgt i16 %116, 1
  %118 = load ptr, ptr %21, align 8, !tbaa !23
  %119 = getelementptr inbounds i8, ptr %0, i64 36
  %120 = load i16, ptr %119, align 4, !tbaa !23
  %121 = load ptr, ptr %22, align 8, !tbaa !23
  %122 = getelementptr inbounds i8, ptr %0, i64 124
  %123 = load i16, ptr %122, align 4, !tbaa !23
  %124 = getelementptr inbounds i8, ptr %0, i64 132
  %125 = getelementptr inbounds i8, ptr %0, i64 64
  %126 = load ptr, ptr %125, align 8, !tbaa !23
  %127 = getelementptr inbounds i8, ptr %0, i64 76
  %128 = load i16, ptr %127, align 4, !tbaa !23
  %129 = load ptr, ptr %27, align 8, !tbaa !23
  %130 = getelementptr inbounds i8, ptr %0, i64 164
  %131 = load i16, ptr %130, align 4, !tbaa !23
  %132 = getelementptr inbounds i8, ptr %0, i64 104
  br i1 %117, label %133, label %134

133:                                              ; preds = %113
  tail call void @__arm_2d_impl_cccn888_masks_copy_x_mirror(ptr noundef %118, i16 noundef signext %120, ptr noundef %121, i16 noundef signext %123, ptr noundef nonnull %124, ptr noundef %126, i16 noundef signext %128, ptr noundef %129, i16 noundef signext %131, ptr noundef nonnull %114, ptr noundef nonnull %132)
  br label %135

134:                                              ; preds = %113
  tail call void @__arm_2d_impl_cccn888_src_msk_1h_des_msk_copy_x_mirror(ptr noundef %118, i16 noundef signext %120, ptr noundef %121, i16 noundef signext %123, ptr noundef nonnull %124, ptr noundef %126, i16 noundef signext %128, ptr noundef %129, i16 noundef signext %131, ptr noundef nonnull %114, ptr noundef nonnull %132)
  br label %135

135:                                              ; preds = %45, %91, %134, %133, %82, %83, %20, %26
  %.0 = phi i32 [ -2, %26 ], [ -2, %20 ], [ 0, %83 ], [ 0, %82 ], [ 0, %133 ], [ 0, %134 ], [ 0, %91 ], [ 0, %45 ]
  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, !8, i64 88}
!23 = !{!9, !9, i64 0}


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