; 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_opc_t = type { %struct.arm_2d_op_core_t, %struct.anon.92, %struct.anon.93, i32, %struct.anon.94, i8 }
%struct.anon.92 = type { ptr, ptr }
%struct.anon.93 = type { ptr }
%struct.anon.94 = 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.37 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.170 = external hidden unnamed_addr constant [118 x i8], align 1
@__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_source_mask_and_opacity_only = external hidden unnamed_addr constant [100 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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @__arm_2d_cccn888_sw_tile_copy_with_src_mask_and_only(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @__arm_2d_impl_ccca8888_tile_copy_to_cccn888_with_src_mask_and_opacity(ptr noalias noundef, i16 noundef signext, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, i64 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @__arm_2d_impl_cccn888_tile_copy_with_src_mask_and_opacity(ptr noalias noundef, i16 noundef signext, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, i64 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @__arm_2d_impl_cccn888_tile_copy_with_src_chn_mask_and_opacity(ptr noalias noundef, i16 noundef signext, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, i64 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @__arm_2d_impl_ccca8888_tile_copy_to_cccn888_with_src_chn_mask_and_opacity(ptr noalias noundef, i16 noundef signext, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noalias noundef, i16 noundef signext, ptr noalias noundef, i64 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @__arm_2d_cccn888_sw_tile_copy_with_source_mask_and_opacity_only(ptr noundef %0) #3 {
  %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_opc_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.37, ptr noundef @.str.170, i32 noundef 1674, ptr noundef @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_source_mask_and_opacity_only) #5
  unreachable

28:                                               ; preds = %26
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.arm_2d_op_src_msk_opc_t, ptr %29, i32 0, i32 4
  %31 = getelementptr inbounds %struct.anon.94, 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.170, i32 noundef 1677, ptr noundef @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_source_mask_and_opacity_only) #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 %324

46:                                               ; preds = %36
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.arm_2d_op_src_msk_opc_t, ptr %47, i32 0, i32 5
  %49 = load i8, ptr %48, align 8, !tbaa !23
  %50 = zext i8 %49 to i32
  %51 = icmp eq i32 255, %50
  br i1 %51, label %52, label %55

52:                                               ; preds = %46
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = call i32 @__arm_2d_cccn888_sw_tile_copy_with_src_mask_and_only(ptr noundef %53)
  store i32 %54, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %324

55:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.arm_2d_op_src_msk_opc_t, ptr %56, i32 0, i32 2
  %58 = getelementptr inbounds %struct.anon.93, ptr %57, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8, !tbaa !24
  %60 = call ptr @arm_2d_tile_get_root(ptr noundef %59, ptr noundef null, ptr noundef null)
  store ptr %60, ptr %6, align 8, !tbaa !5
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = icmp ne ptr null, %61
  br i1 %62, label %63, label %64

63:                                               ; preds = %55
  br label %65

64:                                               ; preds = %55
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.170, i32 noundef 1689, ptr noundef @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_source_mask_and_opacity_only) #5
  unreachable

65:                                               ; preds = %63
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.arm_2d_tile_t, ptr %66, i32 0, i32 0
  %68 = getelementptr inbounds %struct.anon.49, ptr %67, i32 0, i32 1
  %69 = load i8, ptr %68, align 1, !tbaa !25
  %70 = zext i8 %69 to i32
  %71 = icmp eq i32 11, %70
  br i1 %71, label %72, label %192

72:                                               ; preds = %65
  %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 1
  %77 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %76, i32 0, i32 3
  %78 = load i8, ptr %77, align 2, !tbaa !25
  %79 = zext i8 %78 to i32
  %80 = icmp eq i32 107, %79
  br i1 %80, label %81, label %136

81:                                               ; preds = %72
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %82, i32 0, i32 0
  %84 = getelementptr inbounds %struct.anon.0, ptr %83, i32 0, i32 5
  %85 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %84, i32 0, i32 0
  %86 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %85, i32 0, i32 0
  %87 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %86, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8, !tbaa !25
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %89, i32 0, i32 0
  %91 = getelementptr inbounds %struct.anon.0, ptr %90, i32 0, i32 5
  %92 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %91, i32 0, i32 0
  %93 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %92, i32 0, i32 0
  %94 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %93, i32 0, i32 2
  %95 = load i16, ptr %94, align 4, !tbaa !25
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %96, i32 0, i32 0
  %98 = getelementptr inbounds %struct.anon.0, ptr %97, i32 0, i32 5
  %99 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %98, i32 0, i32 1
  %100 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %99, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8, !tbaa !25
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %102, i32 0, i32 0
  %104 = getelementptr inbounds %struct.anon.0, ptr %103, i32 0, i32 5
  %105 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %104, i32 0, i32 1
  %106 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %105, i32 0, i32 2
  %107 = load i16, ptr %106, align 4, !tbaa !25
  %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 1
  %112 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %111, i32 0, i32 5
  %113 = getelementptr inbounds %struct.arm_2d_region_t, ptr %112, i32 0, i32 1
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %114, i32 0, i32 0
  %116 = getelementptr inbounds %struct.anon.0, ptr %115, i32 0, i32 5
  %117 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %116, i32 0, i32 0
  %118 = getelementptr inbounds %struct.__arm_2d_param_copy_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 !25
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %121, i32 0, i32 0
  %123 = getelementptr inbounds %struct.anon.0, ptr %122, i32 0, i32 5
  %124 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %123, i32 0, i32 0
  %125 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %124, i32 0, i32 1
  %126 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %125, i32 0, i32 2
  %127 = load i16, ptr %126, align 4, !tbaa !25
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %128, i32 0, i32 0
  %130 = getelementptr inbounds %struct.anon.0, ptr %129, i32 0, i32 5
  %131 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %130, i32 0, i32 2
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.arm_2d_op_src_msk_opc_t, ptr %132, i32 0, i32 5
  %134 = load i8, ptr %133, align 8, !tbaa !23
  %135 = zext i8 %134 to i64
  call void @__arm_2d_impl_ccca8888_tile_copy_to_cccn888_with_src_chn_mask_and_opacity(ptr noundef %88, i16 noundef signext %95, ptr noundef %101, i16 noundef signext %107, ptr noundef %113, ptr noundef %120, i16 noundef signext %127, ptr noundef %131, i64 noundef %135)
  br label %191

136:                                              ; preds = %72
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %137, i32 0, i32 0
  %139 = getelementptr inbounds %struct.anon.0, ptr %138, i32 0, i32 5
  %140 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %139, i32 0, i32 0
  %141 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %140, i32 0, i32 0
  %142 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %141, i32 0, i32 0
  %143 = load ptr, ptr %142, align 8, !tbaa !25
  %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 0
  %148 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %147, i32 0, i32 0
  %149 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %148, i32 0, i32 2
  %150 = load i16, ptr %149, align 4, !tbaa !25
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %151, i32 0, i32 0
  %153 = getelementptr inbounds %struct.anon.0, ptr %152, i32 0, i32 5
  %154 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %153, i32 0, i32 1
  %155 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %154, i32 0, i32 0
  %156 = load ptr, ptr %155, align 8, !tbaa !25
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %157, i32 0, i32 0
  %159 = getelementptr inbounds %struct.anon.0, ptr %158, i32 0, i32 5
  %160 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %159, i32 0, i32 1
  %161 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %160, i32 0, i32 2
  %162 = load i16, ptr %161, align 4, !tbaa !25
  %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 1
  %167 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %166, i32 0, i32 5
  %168 = getelementptr inbounds %struct.arm_2d_region_t, ptr %167, i32 0, i32 1
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %169, i32 0, i32 0
  %171 = getelementptr inbounds %struct.anon.0, ptr %170, i32 0, i32 5
  %172 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %171, i32 0, i32 0
  %173 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %172, i32 0, i32 1
  %174 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %173, i32 0, i32 0
  %175 = load ptr, ptr %174, align 8, !tbaa !25
  %176 = load ptr, ptr %3, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %176, i32 0, i32 0
  %178 = getelementptr inbounds %struct.anon.0, ptr %177, i32 0, i32 5
  %179 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %178, i32 0, i32 0
  %180 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %179, i32 0, i32 1
  %181 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %180, i32 0, i32 2
  %182 = load i16, ptr %181, align 4, !tbaa !25
  %183 = load ptr, ptr %3, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %183, i32 0, i32 0
  %185 = getelementptr inbounds %struct.anon.0, ptr %184, i32 0, i32 5
  %186 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %185, i32 0, i32 2
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.arm_2d_op_src_msk_opc_t, ptr %187, i32 0, i32 5
  %189 = load i8, ptr %188, align 8, !tbaa !23
  %190 = zext i8 %189 to i64
  call void @__arm_2d_impl_ccca8888_tile_copy_to_cccn888_with_src_mask_and_opacity(ptr noundef %143, i16 noundef signext %150, ptr noundef %156, i16 noundef signext %162, ptr noundef %168, ptr noundef %175, i16 noundef signext %182, ptr noundef %186, i64 noundef %190)
  br label %191

191:                                              ; preds = %136, %81
  store i32 0, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %323

192:                                              ; preds = %65
  %193 = load ptr, ptr %3, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %193, i32 0, i32 0
  %195 = getelementptr inbounds %struct.anon.0, ptr %194, i32 0, i32 5
  %196 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %195, i32 0, i32 1
  %197 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %196, i32 0, i32 3
  %198 = load i8, ptr %197, align 2, !tbaa !25
  %199 = zext i8 %198 to i32
  %200 = icmp eq i32 107, %199
  br i1 %200, label %201, label %256

201:                                              ; preds = %192
  %202 = load ptr, ptr %3, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %202, i32 0, i32 0
  %204 = getelementptr inbounds %struct.anon.0, ptr %203, i32 0, i32 5
  %205 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %204, i32 0, i32 0
  %206 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %205, i32 0, i32 0
  %207 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %206, i32 0, i32 0
  %208 = load ptr, ptr %207, align 8, !tbaa !25
  %209 = load ptr, ptr %3, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %209, i32 0, i32 0
  %211 = getelementptr inbounds %struct.anon.0, ptr %210, i32 0, i32 5
  %212 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %211, i32 0, i32 0
  %213 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %212, i32 0, i32 0
  %214 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %213, i32 0, i32 2
  %215 = load i16, ptr %214, align 4, !tbaa !25
  %216 = load ptr, ptr %3, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %216, i32 0, i32 0
  %218 = getelementptr inbounds %struct.anon.0, ptr %217, i32 0, i32 5
  %219 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %218, i32 0, i32 1
  %220 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %219, i32 0, i32 0
  %221 = load ptr, ptr %220, align 8, !tbaa !25
  %222 = load ptr, ptr %3, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %222, i32 0, i32 0
  %224 = getelementptr inbounds %struct.anon.0, ptr %223, i32 0, i32 5
  %225 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %224, i32 0, i32 1
  %226 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %225, i32 0, i32 2
  %227 = load i16, ptr %226, align 4, !tbaa !25
  %228 = load ptr, ptr %3, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %228, i32 0, i32 0
  %230 = getelementptr inbounds %struct.anon.0, ptr %229, i32 0, i32 5
  %231 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %230, i32 0, i32 1
  %232 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %231, i32 0, i32 5
  %233 = getelementptr inbounds %struct.arm_2d_region_t, ptr %232, i32 0, i32 1
  %234 = load ptr, ptr %3, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %234, i32 0, i32 0
  %236 = getelementptr inbounds %struct.anon.0, ptr %235, i32 0, i32 5
  %237 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %236, i32 0, i32 0
  %238 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %237, i32 0, i32 1
  %239 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %238, i32 0, i32 0
  %240 = load ptr, ptr %239, align 8, !tbaa !25
  %241 = load ptr, ptr %3, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %241, i32 0, i32 0
  %243 = getelementptr inbounds %struct.anon.0, ptr %242, i32 0, i32 5
  %244 = getelementptr inbounds %struct.__arm_2d_param_copy_msk_t, ptr %243, i32 0, i32 0
  %245 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %244, i32 0, i32 1
  %246 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %245, i32 0, i32 2
  %247 = load i16, ptr %246, align 4, !tbaa !25
  %248 = load ptr, ptr %3, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %248, i32 0, i32 0
  %250 = getelementptr inbounds %struct.anon.0, ptr %249, i32 0, i32 5
  %251 = getelementptr inbounds %struct.__arm_2d_param_copy_t, ptr %250, i32 0, i32 2
  %252 = load ptr, ptr %4, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.arm_2d_op_src_msk_opc_t, ptr %252, i32 0, i32 5
  %254 = load i8, ptr %253, align 8, !tbaa !23
  %255 = zext i8 %254 to i64
  call void @__arm_2d_impl_cccn888_tile_copy_with_src_chn_mask_and_opacity(ptr noundef %208, i16 noundef signext %215, ptr noundef %221, i16 noundef signext %227, ptr noundef %233, ptr noundef %240, i16 noundef signext %247, ptr noundef %251, i64 noundef %255)
  br label %322

256:                                              ; preds = %192
  %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 1
  %261 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %260, i32 0, i32 3
  %262 = load i8, ptr %261, align 2, !tbaa !25
  %263 = zext i8 %262 to i32
  %264 = icmp eq i32 6, %263
  br i1 %264, label %265, label %266

265:                                              ; preds = %256
  br label %267

266:                                              ; preds = %256
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.170, i32 noundef 1767, ptr noundef @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_source_mask_and_opacity_only) #5
  unreachable

267:                                              ; preds = %265
  %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 !25
  %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 !25
  %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 !25
  %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 !25
  %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 !25
  %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 !25
  %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_t, ptr %316, i32 0, i32 2
  %318 = load ptr, ptr %4, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.arm_2d_op_src_msk_opc_t, ptr %318, i32 0, i32 5
  %320 = load i8, ptr %319, align 8, !tbaa !23
  %321 = zext i8 %320 to i64
  call void @__arm_2d_impl_cccn888_tile_copy_with_src_mask_and_opacity(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 %317, i64 noundef %321)
  br label %322

322:                                              ; preds = %267, %201
  store i32 0, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %323

323:                                              ; preds = %322, %191
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %324

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

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 = { "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 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 #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_opc_t", !14, i64 0, !19, i64 48, !20, i64 64, !21, i64 72, !19, i64 80, !7, i64 96}
!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, !7, i64 96}
!24 = !{!13, !6, i64 64}
!25 = !{!7, !7, i64 0}


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

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

@ARM_2D_CTRL = external local_unnamed_addr global %struct.__arm_2d_op_control, align 8
@.str.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.37 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.170 = external hidden unnamed_addr constant [118 x i8], align 1
@__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_source_mask_and_opacity_only = external hidden unnamed_addr constant [100 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @__arm_2d_cccn888_sw_tile_copy_with_src_mask_and_only(ptr noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @__arm_2d_cccn888_sw_tile_copy_with_source_mask_and_opacity_only(ptr noundef %0) local_unnamed_addr #2 {
  %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.37, ptr noundef nonnull @.str.170, i32 noundef 1674, ptr noundef nonnull @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_source_mask_and_opacity_only) #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.170, i32 noundef 1677, ptr noundef nonnull @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_source_mask_and_opacity_only) #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
  %.not50 = icmp eq i8 %20, 0
  br i1 %.not50, label %21, label %88

21:                                               ; preds = %15
  %22 = getelementptr inbounds i8, ptr %spec.store.select, i64 96
  %23 = load i8, ptr %22, align 8, !tbaa !22
  %24 = icmp eq i8 %23, -1
  br i1 %24, label %25, label %27

25:                                               ; preds = %21
  %26 = tail call i32 @__arm_2d_cccn888_sw_tile_copy_with_src_mask_and_only(ptr noundef nonnull %0)
  br label %88

27:                                               ; preds = %21
  %28 = getelementptr inbounds i8, ptr %spec.store.select, i64 64
  %29 = load ptr, ptr %28, align 8, !tbaa !23
  %30 = tail call ptr @arm_2d_tile_get_root(ptr noundef %29, ptr noundef null, ptr noundef null) #4
  %.not51 = icmp eq ptr %30, null
  br i1 %.not51, label %31, label %32

31:                                               ; preds = %27
  tail call void @__assert_fail(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.170, i32 noundef 1689, ptr noundef nonnull @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_source_mask_and_opacity_only) #3
  unreachable

32:                                               ; preds = %27
  %33 = getelementptr inbounds i8, ptr %30, i64 1
  %34 = load i8, ptr %33, align 1, !tbaa !24
  %35 = icmp eq i8 %34, 11
  %36 = getelementptr inbounds i8, ptr %0, i64 126
  %37 = load i8, ptr %36, align 2, !tbaa !24
  br i1 %35, label %38, label %56

38:                                               ; preds = %32
  %39 = icmp eq i8 %37, 107
  %40 = load ptr, ptr %16, align 8, !tbaa !24
  %41 = getelementptr inbounds i8, ptr %0, i64 36
  %42 = load i16, ptr %41, align 4, !tbaa !24
  %43 = load ptr, ptr %17, align 8, !tbaa !24
  %44 = getelementptr inbounds i8, ptr %0, i64 124
  %45 = load i16, ptr %44, align 4, !tbaa !24
  %46 = getelementptr inbounds i8, ptr %0, i64 132
  %47 = getelementptr inbounds i8, ptr %0, i64 64
  %48 = load ptr, ptr %47, align 8, !tbaa !24
  %49 = getelementptr inbounds i8, ptr %0, i64 76
  %50 = load i16, ptr %49, align 4, !tbaa !24
  %51 = getelementptr inbounds i8, ptr %0, i64 104
  %52 = load i8, ptr %22, align 8, !tbaa !22
  %53 = zext i8 %52 to i64
  br i1 %39, label %54, label %55

54:                                               ; preds = %38
  tail call void @__arm_2d_impl_ccca8888_tile_copy_to_cccn888_with_src_chn_mask_and_opacity(ptr noundef %40, i16 noundef signext %42, ptr noundef %43, i16 noundef signext %45, ptr noundef nonnull %46, ptr noundef %48, i16 noundef signext %50, ptr noundef nonnull %51, i64 noundef %53)
  br label %88

55:                                               ; preds = %38
  tail call void @__arm_2d_impl_ccca8888_tile_copy_to_cccn888_with_src_mask_and_opacity(ptr noundef %40, i16 noundef signext %42, ptr noundef %43, i16 noundef signext %45, ptr noundef nonnull %46, ptr noundef %48, i16 noundef signext %50, ptr noundef nonnull %51, i64 noundef %53)
  br label %88

56:                                               ; preds = %32
  switch i8 %37, label %72 [
    i8 107, label %57
    i8 6, label %73
  ]

57:                                               ; preds = %56
  %58 = load ptr, ptr %16, align 8, !tbaa !24
  %59 = getelementptr inbounds i8, ptr %0, i64 36
  %60 = load i16, ptr %59, align 4, !tbaa !24
  %61 = load ptr, ptr %17, align 8, !tbaa !24
  %62 = getelementptr inbounds i8, ptr %0, i64 124
  %63 = load i16, ptr %62, align 4, !tbaa !24
  %64 = getelementptr inbounds i8, ptr %0, i64 132
  %65 = getelementptr inbounds i8, ptr %0, i64 64
  %66 = load ptr, ptr %65, align 8, !tbaa !24
  %67 = getelementptr inbounds i8, ptr %0, i64 76
  %68 = load i16, ptr %67, align 4, !tbaa !24
  %69 = getelementptr inbounds i8, ptr %0, i64 104
  %70 = load i8, ptr %22, align 8, !tbaa !22
  %71 = zext i8 %70 to i64
  tail call void @__arm_2d_impl_cccn888_tile_copy_with_src_chn_mask_and_opacity(ptr noundef %58, i16 noundef signext %60, ptr noundef %61, i16 noundef signext %63, ptr noundef nonnull %64, ptr noundef %66, i16 noundef signext %68, ptr noundef nonnull %69, i64 noundef %71)
  br label %88

72:                                               ; preds = %56
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.170, i32 noundef 1767, ptr noundef nonnull @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_tile_copy_with_source_mask_and_opacity_only) #3
  unreachable

73:                                               ; preds = %56
  %74 = load ptr, ptr %16, align 8, !tbaa !24
  %75 = getelementptr inbounds i8, ptr %0, i64 36
  %76 = load i16, ptr %75, align 4, !tbaa !24
  %77 = load ptr, ptr %17, align 8, !tbaa !24
  %78 = getelementptr inbounds i8, ptr %0, i64 124
  %79 = load i16, ptr %78, align 4, !tbaa !24
  %80 = getelementptr inbounds i8, ptr %0, i64 132
  %81 = getelementptr inbounds i8, ptr %0, i64 64
  %82 = load ptr, ptr %81, align 8, !tbaa !24
  %83 = getelementptr inbounds i8, ptr %0, i64 76
  %84 = load i16, ptr %83, align 4, !tbaa !24
  %85 = getelementptr inbounds i8, ptr %0, i64 104
  %86 = load i8, ptr %22, align 8, !tbaa !22
  %87 = zext i8 %86 to i64
  tail call void @__arm_2d_impl_cccn888_tile_copy_with_src_mask_and_opacity(ptr noundef %74, i16 noundef signext %76, ptr noundef %77, i16 noundef signext %79, ptr noundef nonnull %80, ptr noundef %82, i16 noundef signext %84, ptr noundef nonnull %85, i64 noundef %87)
  br label %88

88:                                               ; preds = %55, %54, %73, %57, %15, %25
  %.1 = phi i32 [ %26, %25 ], [ -2, %15 ], [ 0, %57 ], [ 0, %73 ], [ 0, %54 ], [ 0, %55 ]
  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 = { "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 = { 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_opc_t", !13, i64 0, !18, i64 48, !19, i64 64, !20, i64 72, !18, i64 80, !9, i64 96}
!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, !9, i64 96}
!23 = !{!12, !8, i64 64}
!24 = !{!9, !9, i64 0}


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