; 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.7 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [116 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [62 x i8], align 1
@__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_src_mask_and_y_mirror = external hidden unnamed_addr constant [93 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: nounwind uwtable
declare dso_local void @__arm_2d_impl_cccn888_src_msk_copy_y_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) #2

; Function Attrs: nounwind uwtable
declare dso_local void @__arm_2d_impl_cccn888_src_chn_msk_copy_y_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) #2

declare ptr @arm_2d_tile_get_root(ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @__arm_2d_impl_ccca8888_tile_copy_to_cccn888_with_src_chn_mask(ptr noalias noundef, i16 noundef signext, 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_ccca8888_tile_copy_to_cccn888_with_src_mask(ptr noalias noundef, i16 noundef signext, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noalias noundef, i16 noundef signext, ptr noalias noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @__arm_2d_cccn888_sw_tile_copy_with_src_mask_and_y_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
  %6 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %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.24, ptr noundef @.str.23, i32 noundef 179, ptr noundef @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_src_mask_and_y_mirror) #5
  unreachable

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

34:                                               ; preds = %28
  br label %36

35:                                               ; preds = %28
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.23, i32 noundef 182, ptr noundef @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_src_mask_and_y_mirror) #5
  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_copy_msk_t, ptr %39, i32 0, i32 1
  %41 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %40, i32 0, i32 4
  %42 = load i8, ptr %41, align 1
  %43 = and i8 %42, 1
  %44 = icmp ne i8 %43, 0
  br i1 %44, label %45, label %46

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

46:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.arm_2d_op_src_msk_t, ptr %47, i32 0, i32 2
  %49 = getelementptr inbounds %struct.anon.37, ptr %48, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8, !tbaa !23
  %51 = call ptr @arm_2d_tile_get_root(ptr noundef %50, ptr noundef null, ptr noundef null)
  store ptr %51, ptr %6, align 8, !tbaa !5
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = icmp ne ptr null, %52
  br i1 %53, label %54, label %55

54:                                               ; preds = %46
  br label %56

55:                                               ; preds = %46
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.23, i32 noundef 190, ptr noundef @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_src_mask_and_y_mirror) #5
  unreachable

56:                                               ; preds = %54
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.arm_2d_tile_t, ptr %57, i32 0, i32 0
  %59 = getelementptr inbounds %struct.anon.49, ptr %58, i32 0, i32 1
  %60 = load i8, ptr %59, align 1, !tbaa !24
  %61 = zext i8 %60 to i32
  %62 = icmp eq i32 11, %61
  br i1 %62, label %63, label %175

63:                                               ; preds = %56
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %64, i32 0, i32 0
  %66 = getelementptr inbounds %struct.anon.0, ptr %65, i32 0, i32 5
  %67 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %66, i32 0, i32 1
  %68 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %67, i32 0, i32 3
  %69 = load i8, ptr %68, align 2, !tbaa !24
  %70 = zext i8 %69 to i32
  %71 = icmp eq i32 107, %70
  br i1 %71, label %72, label %123

72:                                               ; preds = %63
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %73, i32 0, i32 0
  %75 = getelementptr inbounds %struct.anon.0, ptr %74, i32 0, i32 5
  %76 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %75, i32 0, i32 0
  %77 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %76, i32 0, i32 0
  %78 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %77, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8, !tbaa !24
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %80, i32 0, i32 0
  %82 = getelementptr inbounds %struct.anon.0, ptr %81, i32 0, i32 5
  %83 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %82, i32 0, i32 0
  %84 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %83, i32 0, i32 0
  %85 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %84, i32 0, i32 2
  %86 = load i16, ptr %85, align 4, !tbaa !24
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %87, i32 0, i32 0
  %89 = getelementptr inbounds %struct.anon.0, ptr %88, i32 0, i32 5
  %90 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %89, i32 0, i32 1
  %91 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %90, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8, !tbaa !24
  %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_copy_msk_t, ptr %95, i32 0, i32 1
  %97 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %96, i32 0, i32 2
  %98 = load i16, ptr %97, align 4, !tbaa !24
  %99 = load ptr, ptr %3, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %99, i32 0, i32 0
  %101 = getelementptr inbounds %struct.anon.0, ptr %100, i32 0, i32 5
  %102 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %101, i32 0, i32 1
  %103 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %102, i32 0, i32 5
  %104 = getelementptr inbounds %struct.arm_2d_region_t, ptr %103, i32 0, i32 1
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %105, i32 0, i32 0
  %107 = getelementptr inbounds %struct.anon.0, ptr %106, i32 0, i32 5
  %108 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %107, i32 0, i32 0
  %109 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %108, i32 0, i32 1
  %110 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %109, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8, !tbaa !24
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %112, i32 0, i32 0
  %114 = getelementptr inbounds %struct.anon.0, ptr %113, i32 0, i32 5
  %115 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %114, i32 0, i32 0
  %116 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %115, i32 0, i32 1
  %117 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %116, i32 0, i32 2
  %118 = load i16, ptr %117, align 4, !tbaa !24
  %119 = load ptr, ptr %3, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %119, i32 0, i32 0
  %121 = getelementptr inbounds %struct.anon.0, ptr %120, i32 0, i32 5
  %122 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %121, i32 0, i32 2
  call void @__arm_2d_impl_ccca8888_tile_copy_to_cccn888_with_src_chn_mask(ptr noundef %79, i16 noundef signext %86, ptr noundef %92, i16 noundef signext %98, ptr noundef %104, ptr noundef %111, i16 noundef signext %118, ptr noundef %122)
  br label %174

123:                                              ; preds = %63
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %124, i32 0, i32 0
  %126 = getelementptr inbounds %struct.anon.0, ptr %125, i32 0, i32 5
  %127 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %126, i32 0, i32 0
  %128 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %127, i32 0, i32 0
  %129 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %128, i32 0, i32 0
  %130 = load ptr, ptr %129, align 8, !tbaa !24
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %131, i32 0, i32 0
  %133 = getelementptr inbounds %struct.anon.0, ptr %132, i32 0, i32 5
  %134 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %133, i32 0, i32 0
  %135 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %134, i32 0, i32 0
  %136 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %135, i32 0, i32 2
  %137 = load i16, ptr %136, align 4, !tbaa !24
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %138, i32 0, i32 0
  %140 = getelementptr inbounds %struct.anon.0, ptr %139, i32 0, i32 5
  %141 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %140, i32 0, i32 1
  %142 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %141, i32 0, i32 0
  %143 = load ptr, ptr %142, align 8, !tbaa !24
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %144, i32 0, i32 0
  %146 = getelementptr inbounds %struct.anon.0, ptr %145, i32 0, i32 5
  %147 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %146, i32 0, i32 1
  %148 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %147, i32 0, i32 2
  %149 = load i16, ptr %148, align 4, !tbaa !24
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %150, i32 0, i32 0
  %152 = getelementptr inbounds %struct.anon.0, ptr %151, i32 0, i32 5
  %153 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %152, i32 0, i32 1
  %154 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %153, i32 0, i32 5
  %155 = getelementptr inbounds %struct.arm_2d_region_t, ptr %154, i32 0, i32 1
  %156 = load ptr, ptr %3, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %156, i32 0, i32 0
  %158 = getelementptr inbounds %struct.anon.0, ptr %157, i32 0, i32 5
  %159 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %158, i32 0, i32 0
  %160 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %159, i32 0, i32 1
  %161 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %160, i32 0, i32 0
  %162 = load ptr, ptr %161, align 8, !tbaa !24
  %163 = load ptr, ptr %3, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %163, i32 0, i32 0
  %165 = getelementptr inbounds %struct.anon.0, ptr %164, i32 0, i32 5
  %166 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %165, i32 0, i32 0
  %167 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %166, i32 0, i32 1
  %168 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %167, i32 0, i32 2
  %169 = load i16, ptr %168, align 4, !tbaa !24
  %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_t, ptr %172, i32 0, i32 2
  call void @__arm_2d_impl_ccca8888_tile_copy_to_cccn888_with_src_mask(ptr noundef %130, i16 noundef signext %137, ptr noundef %143, i16 noundef signext %149, ptr noundef %155, ptr noundef %162, i16 noundef signext %169, ptr noundef %173)
  br label %174

174:                                              ; preds = %123, %72
  store i32 0, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %298

175:                                              ; preds = %56
  %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_copy_msk_t, ptr %178, i32 0, i32 1
  %180 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %179, i32 0, i32 3
  %181 = load i8, ptr %180, align 2, !tbaa !24
  %182 = zext i8 %181 to i32
  %183 = icmp eq i32 107, %182
  br i1 %183, label %184, label %235

184:                                              ; preds = %175
  %185 = load ptr, ptr %3, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %185, i32 0, i32 0
  %187 = getelementptr inbounds %struct.anon.0, ptr %186, i32 0, i32 5
  %188 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %187, i32 0, i32 0
  %189 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %188, i32 0, i32 0
  %190 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %189, i32 0, i32 0
  %191 = load ptr, ptr %190, align 8, !tbaa !24
  %192 = load ptr, ptr %3, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %192, i32 0, i32 0
  %194 = getelementptr inbounds %struct.anon.0, ptr %193, i32 0, i32 5
  %195 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %194, i32 0, i32 0
  %196 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %195, i32 0, i32 0
  %197 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %196, i32 0, i32 2
  %198 = load i16, ptr %197, align 4, !tbaa !24
  %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 1
  %203 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %202, i32 0, i32 0
  %204 = load ptr, ptr %203, align 8, !tbaa !24
  %205 = load ptr, ptr %3, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %205, i32 0, i32 0
  %207 = getelementptr inbounds %struct.anon.0, ptr %206, i32 0, i32 5
  %208 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %207, i32 0, i32 1
  %209 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %208, i32 0, i32 2
  %210 = load i16, ptr %209, align 4, !tbaa !24
  %211 = load ptr, ptr %3, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %211, i32 0, i32 0
  %213 = getelementptr inbounds %struct.anon.0, ptr %212, i32 0, i32 5
  %214 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %213, i32 0, i32 1
  %215 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %214, i32 0, i32 5
  %216 = getelementptr inbounds %struct.arm_2d_region_t, ptr %215, i32 0, i32 1
  %217 = load ptr, ptr %3, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %217, i32 0, i32 0
  %219 = getelementptr inbounds %struct.anon.0, ptr %218, i32 0, i32 5
  %220 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %219, i32 0, i32 0
  %221 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %220, i32 0, i32 1
  %222 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %221, i32 0, i32 0
  %223 = load ptr, ptr %222, align 8, !tbaa !24
  %224 = load ptr, ptr %3, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %224, i32 0, i32 0
  %226 = getelementptr inbounds %struct.anon.0, ptr %225, i32 0, i32 5
  %227 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %226, i32 0, i32 0
  %228 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %227, i32 0, i32 1
  %229 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %228, i32 0, i32 2
  %230 = load i16, ptr %229, align 4, !tbaa !24
  %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_t, ptr %233, i32 0, i32 2
  call void @__arm_2d_impl_cccn888_src_chn_msk_copy_y_mirror(ptr noundef %191, i16 noundef signext %198, ptr noundef %204, i16 noundef signext %210, ptr noundef %216, ptr noundef %223, i16 noundef signext %230, ptr noundef %234)
  br label %297

235:                                              ; preds = %175
  %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_copy_msk_t, ptr %238, i32 0, i32 1
  %240 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %239, i32 0, i32 3
  %241 = load i8, ptr %240, align 2, !tbaa !24
  %242 = zext i8 %241 to i32
  %243 = icmp eq i32 6, %242
  br i1 %243, label %244, label %245

244:                                              ; preds = %235
  br label %246

245:                                              ; preds = %235
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.23, i32 noundef 341, ptr noundef @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_src_mask_and_y_mirror) #5
  unreachable

246:                                              ; preds = %244
  %247 = load ptr, ptr %3, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %247, i32 0, i32 0
  %249 = getelementptr inbounds %struct.anon.0, ptr %248, i32 0, i32 5
  %250 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %249, i32 0, i32 0
  %251 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %250, i32 0, i32 0
  %252 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %251, i32 0, i32 0
  %253 = load ptr, ptr %252, align 8, !tbaa !24
  %254 = load ptr, ptr %3, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %254, i32 0, i32 0
  %256 = getelementptr inbounds %struct.anon.0, ptr %255, i32 0, i32 5
  %257 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %256, i32 0, i32 0
  %258 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %257, i32 0, i32 0
  %259 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %258, i32 0, i32 2
  %260 = load i16, ptr %259, align 4, !tbaa !24
  %261 = load ptr, ptr %3, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %261, i32 0, i32 0
  %263 = getelementptr inbounds %struct.anon.0, ptr %262, i32 0, i32 5
  %264 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %263, i32 0, i32 1
  %265 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %264, i32 0, i32 0
  %266 = load ptr, ptr %265, align 8, !tbaa !24
  %267 = load ptr, ptr %3, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %267, i32 0, i32 0
  %269 = getelementptr inbounds %struct.anon.0, ptr %268, i32 0, i32 5
  %270 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %269, i32 0, i32 1
  %271 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %270, i32 0, i32 2
  %272 = load i16, ptr %271, align 4, !tbaa !24
  %273 = load ptr, ptr %3, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %273, i32 0, i32 0
  %275 = getelementptr inbounds %struct.anon.0, ptr %274, i32 0, i32 5
  %276 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %275, i32 0, i32 1
  %277 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %276, i32 0, i32 5
  %278 = getelementptr inbounds %struct.arm_2d_region_t, ptr %277, i32 0, i32 1
  %279 = load ptr, ptr %3, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %279, i32 0, i32 0
  %281 = getelementptr inbounds %struct.anon.0, ptr %280, i32 0, i32 5
  %282 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %281, i32 0, i32 0
  %283 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %282, i32 0, i32 1
  %284 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %283, i32 0, i32 0
  %285 = load ptr, ptr %284, align 8, !tbaa !24
  %286 = load ptr, ptr %3, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %286, i32 0, i32 0
  %288 = getelementptr inbounds %struct.anon.0, ptr %287, i32 0, i32 5
  %289 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %288, i32 0, i32 0
  %290 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %289, i32 0, i32 1
  %291 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %290, i32 0, i32 2
  %292 = load i16, ptr %291, align 4, !tbaa !24
  %293 = load ptr, ptr %3, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %293, i32 0, i32 0
  %295 = getelementptr inbounds %struct.anon.0, ptr %294, i32 0, i32 5
  %296 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %295, i32 0, i32 2
  call void @__arm_2d_impl_cccn888_src_msk_copy_y_mirror(ptr noundef %253, i16 noundef signext %260, ptr noundef %266, i16 noundef signext %272, ptr noundef %278, ptr noundef %285, i16 noundef signext %292, ptr noundef %296)
  br label %297

297:                                              ; preds = %246, %184
  store i32 0, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %298

298:                                              ; preds = %297, %174
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %299

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

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { 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 64}
!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.7 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [116 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [62 x i8], align 1
@__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_src_mask_and_y_mirror = external hidden unnamed_addr constant [93 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local void @__arm_2d_impl_cccn888_src_msk_copy_y_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) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @__arm_2d_impl_cccn888_src_chn_msk_copy_y_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) local_unnamed_addr #1

declare ptr @arm_2d_tile_get_root(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @__arm_2d_impl_ccca8888_tile_copy_to_cccn888_with_src_chn_mask(ptr noalias noundef, i16 noundef signext, 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_ccca8888_tile_copy_to_cccn888_with_src_mask(ptr noalias noundef, i16 noundef signext, 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
define dso_local range(i32 -2, 1) i32 @__arm_2d_cccn888_sw_tile_copy_with_src_mask_and_y_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.24, ptr noundef nonnull @.str.23, i32 noundef 179, ptr noundef nonnull @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_src_mask_and_y_mirror) #3
  unreachable

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

14:                                               ; preds = %11
  tail call void @__assert_fail(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.23, i32 noundef 182, ptr noundef nonnull @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_src_mask_and_y_mirror) #3
  unreachable

15:                                               ; preds = %11
  %16 = getelementptr inbounds i8, ptr %0, i64 24
  %17 = getelementptr inbounds i8, ptr %0, i64 112
  %18 = getelementptr inbounds i8, ptr %0, i64 127
  %19 = load i8, ptr %18, align 1
  %20 = and i8 %19, 1
  %.not44 = icmp eq i8 %20, 0
  br i1 %.not44, label %21, label %76

21:                                               ; preds = %15
  %22 = getelementptr inbounds i8, ptr %spec.store.select, i64 64
  %23 = load ptr, ptr %22, align 8, !tbaa !22
  %24 = tail call ptr @arm_2d_tile_get_root(ptr noundef %23, ptr noundef null, ptr noundef null) #4
  %.not45 = icmp eq ptr %24, null
  br i1 %.not45, label %25, label %26

25:                                               ; preds = %21
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.23, i32 noundef 190, ptr noundef nonnull @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_src_mask_and_y_mirror) #3
  unreachable

26:                                               ; preds = %21
  %27 = getelementptr inbounds i8, ptr %24, i64 1
  %28 = load i8, ptr %27, align 1, !tbaa !23
  %29 = icmp eq i8 %28, 11
  %30 = getelementptr inbounds i8, ptr %0, i64 126
  %31 = load i8, ptr %30, align 2, !tbaa !23
  br i1 %29, label %32, label %48

32:                                               ; preds = %26
  %33 = icmp eq i8 %31, 107
  %34 = load ptr, ptr %16, align 8, !tbaa !23
  %35 = getelementptr inbounds i8, ptr %0, i64 36
  %36 = load i16, ptr %35, align 4, !tbaa !23
  %37 = load ptr, ptr %17, align 8, !tbaa !23
  %38 = getelementptr inbounds i8, ptr %0, i64 124
  %39 = load i16, ptr %38, align 4, !tbaa !23
  %40 = getelementptr inbounds i8, ptr %0, i64 132
  %41 = getelementptr inbounds i8, ptr %0, i64 64
  %42 = load ptr, ptr %41, align 8, !tbaa !23
  %43 = getelementptr inbounds i8, ptr %0, i64 76
  %44 = load i16, ptr %43, align 4, !tbaa !23
  %45 = getelementptr inbounds i8, ptr %0, i64 104
  br i1 %33, label %46, label %47

46:                                               ; preds = %32
  tail call void @__arm_2d_impl_ccca8888_tile_copy_to_cccn888_with_src_chn_mask(ptr noundef %34, i16 noundef signext %36, ptr noundef %37, i16 noundef signext %39, ptr noundef nonnull %40, ptr noundef %42, i16 noundef signext %44, ptr noundef nonnull %45)
  br label %76

47:                                               ; preds = %32
  tail call void @__arm_2d_impl_ccca8888_tile_copy_to_cccn888_with_src_mask(ptr noundef %34, i16 noundef signext %36, ptr noundef %37, i16 noundef signext %39, ptr noundef nonnull %40, ptr noundef %42, i16 noundef signext %44, ptr noundef nonnull %45)
  br label %76

48:                                               ; preds = %26
  switch i8 %31, label %62 [
    i8 107, label %49
    i8 6, label %63
  ]

49:                                               ; preds = %48
  %50 = load ptr, ptr %16, align 8, !tbaa !23
  %51 = getelementptr inbounds i8, ptr %0, i64 36
  %52 = load i16, ptr %51, align 4, !tbaa !23
  %53 = load ptr, ptr %17, align 8, !tbaa !23
  %54 = getelementptr inbounds i8, ptr %0, i64 124
  %55 = load i16, ptr %54, align 4, !tbaa !23
  %56 = getelementptr inbounds i8, ptr %0, i64 132
  %57 = getelementptr inbounds i8, ptr %0, i64 64
  %58 = load ptr, ptr %57, align 8, !tbaa !23
  %59 = getelementptr inbounds i8, ptr %0, i64 76
  %60 = load i16, ptr %59, align 4, !tbaa !23
  %61 = getelementptr inbounds i8, ptr %0, i64 104
  tail call void @__arm_2d_impl_cccn888_src_chn_msk_copy_y_mirror(ptr noundef %50, i16 noundef signext %52, ptr noundef %53, i16 noundef signext %55, ptr noundef nonnull %56, ptr noundef %58, i16 noundef signext %60, ptr noundef nonnull %61)
  br label %76

62:                                               ; preds = %48
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.23, i32 noundef 341, ptr noundef nonnull @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_src_mask_and_y_mirror) #3
  unreachable

63:                                               ; preds = %48
  %64 = load ptr, ptr %16, align 8, !tbaa !23
  %65 = getelementptr inbounds i8, ptr %0, i64 36
  %66 = load i16, ptr %65, align 4, !tbaa !23
  %67 = load ptr, ptr %17, align 8, !tbaa !23
  %68 = getelementptr inbounds i8, ptr %0, i64 124
  %69 = load i16, ptr %68, align 4, !tbaa !23
  %70 = getelementptr inbounds i8, ptr %0, i64 132
  %71 = getelementptr inbounds i8, ptr %0, i64 64
  %72 = load ptr, ptr %71, align 8, !tbaa !23
  %73 = getelementptr inbounds i8, ptr %0, i64 76
  %74 = load i16, ptr %73, align 4, !tbaa !23
  %75 = getelementptr inbounds i8, ptr %0, i64 104
  tail call void @__arm_2d_impl_cccn888_src_msk_copy_y_mirror(ptr noundef %64, i16 noundef signext %66, ptr noundef %67, i16 noundef signext %69, ptr noundef nonnull %70, ptr noundef %72, i16 noundef signext %74, ptr noundef nonnull %75)
  br label %76

76:                                               ; preds = %47, %46, %63, %49, %15
  %.1 = phi i32 [ -2, %15 ], [ 0, %49 ], [ 0, %63 ], [ 0, %46 ], [ 0, %47 ]
  ret i32 %.1
}

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 = { "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 = { noreturn nounwind }
attributes #4 = { 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 64}
!23 = !{!9, !9, i64 0}


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