; LLVM IR from ARM-software/Arm-2D :: examples/common/controls//simple_list.ll_ (simple_list_show)

; 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_region_t = type { %union.anon, %union.anon.0 }
%union.anon = type { %struct.arm_2d_location_t }
%struct.arm_2d_location_t = type { i16, i16 }
%union.anon.0 = type { %struct.arm_2d_size_t }
%struct.arm_2d_size_t = type { i16, i16 }
%struct.__simple_list_t = type { %union.anon.13, %struct.anon.23, %struct.anon.26 }
%union.anon.13 = type { %struct.__arm_2d_list_core_t }
%struct.__arm_2d_list_core_t = type { %struct.anon.14, %struct.anon.16, %struct.anon.20 }
%struct.anon.14 = type { %struct.__arm_2d_list_core_cfg_t }
%struct.__arm_2d_list_core_cfg_t = type { %struct.arm_2d_size_t, ptr, %union.anon.15, ptr, ptr, ptr, i32, ptr, i16, i16, i16, i16, ptr }
%union.anon.15 = type { ptr }
%struct.anon.16 = type { %struct.anon.17, [112 x i8] }
%struct.anon.17 = type { %struct.arm_2d_tile_t, %struct.arm_2d_tile_t, %struct.__arm_2d_list_work_area_t, i8, %union.anon.18 }
%struct.arm_2d_tile_t = type { %union.anon.1, %union.anon.11, %union.anon.12 }
%union.anon.1 = type { %struct.anon }
%struct.anon = type { i8, %union.arm_2d_color_info_t, %union.anon.4 }
%union.arm_2d_color_info_t = type { %struct.anon.2 }
%struct.anon.2 = type { i8 }
%union.anon.4 = type { i16 }
%union.anon.11 = type { %struct.arm_2d_region_t }
%union.anon.12 = type { ptr }
%struct.__arm_2d_list_work_area_t = type { ptr, %struct.arm_2d_region_t, %struct.arm_2d_list_item_param_t, i32 }
%struct.arm_2d_list_item_param_t = type { i8, i8, i16 }
%union.anon.18 = type { %struct.anon.19 }
%struct.anon.19 = type { i16 }
%struct.anon.20 = type { i8, i8, i16, i32, %union.anon.21 }
%union.anon.21 = type { %struct.anon.22 }
%struct.anon.22 = type { i16, i16, i16, i16 }
%struct.anon.23 = type { %struct.__simple_list_cfg_t }
%struct.__simple_list_cfg_t = type { i16, i8, i8, i8, %union.anon.24, %union.anon.25, %union.COLOUR_TYPE_T, %struct.arm_2d_size_t, %struct.arm_2d_size_t, i8, i8, i16, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr }
%union.anon.24 = type { %union.COLOUR_TYPE_T }
%union.anon.25 = type { %union.COLOUR_TYPE_T }
%union.COLOUR_TYPE_T = type { i32 }
%struct.anon.26 = type { %struct.arm_2d_list_item_t, i16, i8, i8, %struct.arm_2d_region_t, i64, [2 x %struct.arm_2d_helper_dirty_region_item_t] }
%struct.arm_2d_list_item_t = type { %struct.anon.27, i16, %union.anon.28, ptr, ptr, %struct.anon.30, %struct.arm_2d_margin_t, %struct.arm_2d_size_t, i64 }
%struct.anon.27 = type { ptr }
%union.anon.28 = type { i16 }
%struct.anon.30 = type { i8, i8 }
%struct.arm_2d_margin_t = type { i8, i8, i8, i8 }
%struct.arm_2d_helper_dirty_region_item_t = type { [48 x i8], %struct.arm_2d_region_t }

@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [94 x i8], align 1
@__PRETTY_FUNCTION__.__simple_list_show = external hidden unnamed_addr constant [106 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [15 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; 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) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @__simple_list_show(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, i1 noundef zeroext %3) #4 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %struct.arm_2d_region_t, align 2
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  %19 = zext i1 %3 to i8
  store i8 %19, ptr %9, align 1, !tbaa !9
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = icmp ne ptr null, %20
  br i1 %21, label %22, label %23

22:                                               ; preds = %4
  br label %24

23:                                               ; preds = %4
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 808, ptr noundef @__PRETTY_FUNCTION__.__simple_list_show) #6
  unreachable

24:                                               ; preds = %22
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = icmp ne ptr null, %25
  br i1 %26, label %27, label %28

27:                                               ; preds = %24
  br label %29

28:                                               ; preds = %24
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 809, ptr noundef @__PRETTY_FUNCTION__.__simple_list_show) #6
  unreachable

29:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 1, ptr %10, align 4, !tbaa !11
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = call zeroext i1 @__arm_2d_helper_pfb_is_region_active0(ptr noundef %30, ptr noundef %31, i1 noundef zeroext true)
  br i1 %32, label %34, label %33

33:                                               ; preds = %29
  store i32 0, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %130

34:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.__simple_list_t, ptr %35, i32 0, i32 0
  store ptr %36, ptr %12, align 8, !tbaa !5
  %37 = load ptr, ptr %12, align 8, !tbaa !5
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = load i8, ptr %9, align 1, !tbaa !9, !range !13, !noundef !14
  %41 = trunc i8 %40 to i1
  %42 = call i32 @__arm_2d_list_core_show(ptr noundef %37, ptr noundef %38, ptr noundef %39, i1 noundef zeroext %41)
  store i32 %42, ptr %10, align 4, !tbaa !11
  %43 = load i8, ptr %9, align 1, !tbaa !9, !range !13, !noundef !14
  %44 = trunc i8 %43 to i1
  br i1 %44, label %45, label %128

45:                                               ; preds = %34
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.__simple_list_t, ptr %46, i32 0, i32 1
  %48 = getelementptr inbounds %struct.anon.23, ptr %47, i32 0, i32 0
  %49 = getelementptr inbounds %struct.__simple_list_cfg_t, ptr %48, i32 0, i32 1
  %50 = load i8, ptr %49, align 2
  %51 = lshr i8 %50, 1
  %52 = and i8 %51, 1
  %53 = icmp ne i8 %52, 0
  br i1 %53, label %54, label %127

54:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #7
  store i8 0, ptr %13, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #7
  store i8 0, ptr %14, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store ptr null, ptr %16, align 8, !tbaa !5
  br label %55

55:                                               ; preds = %60, %54
  %56 = load ptr, ptr %16, align 8, !tbaa !5
  %57 = getelementptr inbounds i32, ptr %56, i32 1
  store ptr %57, ptr %16, align 8, !tbaa !5
  %58 = icmp eq ptr %56, null
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  store i32 2, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %89

60:                                               ; preds = %55
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.__simple_list_t, ptr %61, i32 0, i32 2
  %63 = getelementptr inbounds %struct.anon.26, ptr %62, i32 0, i32 2
  %64 = load i8, ptr %63, align 2
  %65 = lshr i8 %64, 1
  %66 = and i8 %65, 1
  %67 = icmp ne i8 %66, 0
  %68 = zext i1 %67 to i8
  store i8 %68, ptr %13, align 1, !tbaa !9
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.__simple_list_t, ptr %69, i32 0, i32 2
  %71 = getelementptr inbounds %struct.anon.26, ptr %70, i32 0, i32 2
  %72 = load i8, ptr %71, align 2
  %73 = lshr i8 %72, 2
  %74 = and i8 %73, 1
  %75 = icmp ne i8 %74, 0
  %76 = zext i1 %75 to i8
  store i8 %76, ptr %14, align 1, !tbaa !9
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.__simple_list_t, ptr %77, i32 0, i32 2
  %79 = getelementptr inbounds %struct.anon.26, ptr %78, i32 0, i32 2
  %80 = load i8, ptr %79, align 2
  %81 = and i8 %80, -3
  %82 = or i8 %81, 0
  store i8 %82, ptr %79, align 2
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.__simple_list_t, ptr %83, i32 0, i32 2
  %85 = getelementptr inbounds %struct.anon.26, ptr %84, i32 0, i32 2
  %86 = load i8, ptr %85, align 2
  %87 = and i8 %86, -5
  %88 = or i8 %87, 0
  store i8 %88, ptr %85, align 2
  br label %55, !llvm.loop !15

89:                                               ; preds = %59
  %90 = load ptr, ptr %12, align 8, !tbaa !5
  %91 = call zeroext i1 @__arm_2d_list_core_need_redraw(ptr noundef %90, i1 noundef zeroext true)
  br i1 %91, label %98, label %92

92:                                               ; preds = %89
  %93 = load i8, ptr %13, align 1, !tbaa !9, !range !13, !noundef !14
  %94 = trunc i8 %93 to i1
  br i1 %94, label %98, label %95

95:                                               ; preds = %92
  %96 = load i8, ptr %14, align 1, !tbaa !9, !range !13, !noundef !14
  %97 = trunc i8 %96 to i1
  br i1 %97, label %98, label %126

98:                                               ; preds = %95, %92, %89
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.__simple_list_t, ptr %99, i32 0, i32 0
  %101 = call ptr @__arm_2d_list_core_get_inner_tile(ptr noundef %100)
  store ptr %101, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %102 = getelementptr inbounds %struct.arm_2d_region_t, ptr %18, i32 0, i32 0
  call void @llvm.memset.p0.i64(ptr align 2 %102, i8 0, i64 4, i1 false)
  %103 = getelementptr inbounds %struct.arm_2d_region_t, ptr %18, i32 0, i32 1
  %104 = load ptr, ptr %17, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.arm_2d_tile_t, ptr %104, i32 0, i32 1
  %106 = getelementptr inbounds %struct.arm_2d_region_t, ptr %105, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %103, ptr align 4 %106, i64 4, i1 false), !tbaa.struct !17
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.__simple_list_t, ptr %107, i32 0, i32 0
  %109 = call zeroext i1 @__arm_2d_list_core_is_list_scrolling(ptr noundef %108)
  br i1 %109, label %110, label %113

110:                                              ; preds = %98
  %111 = load i8, ptr %14, align 1, !tbaa !9, !range !13, !noundef !14
  %112 = trunc i8 %111 to i1
  br i1 %112, label %113, label %120

113:                                              ; preds = %110, %98
  %114 = load i8, ptr %13, align 1, !tbaa !9, !range !13, !noundef !14
  %115 = trunc i8 %114 to i1
  br i1 %115, label %120, label %116

116:                                              ; preds = %113
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.__simple_list_t, ptr %117, i32 0, i32 0
  %119 = call ptr @__arm_2d_list_core_get_selection_region(ptr noundef %118, ptr noundef %18)
  br label %120

120:                                              ; preds = %116, %113, %110
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.__simple_list_t, ptr %121, i32 0, i32 2
  %123 = getelementptr inbounds %struct.anon.26, ptr %122, i32 0, i32 6
  %124 = getelementptr inbounds [2 x %struct.arm_2d_helper_dirty_region_item_t], ptr %123, i64 0, i64 0
  %125 = load ptr, ptr %17, align 8, !tbaa !5
  call void @__arm_2d_helper_dirty_region_item_update(ptr noundef %124, ptr noundef %125, ptr noundef null, ptr noundef %18)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %126

126:                                              ; preds = %120, %95
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #7
  br label %127

127:                                              ; preds = %126, %45
  br label %128

128:                                              ; preds = %127, %34
  %129 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %129, ptr %5, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %130

130:                                              ; preds = %128, %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  %131 = load i32, ptr %5, align 4
  ret i32 %131
}

declare zeroext i1 @__arm_2d_helper_pfb_is_region_active0(ptr noundef, ptr noundef, i1 noundef zeroext) #5

declare i32 @__arm_2d_list_core_show(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) #5

declare zeroext i1 @__arm_2d_list_core_need_redraw(ptr noundef, i1 noundef zeroext) #5

declare ptr @__arm_2d_list_core_get_inner_tile(ptr noundef) #5

declare zeroext i1 @__arm_2d_list_core_is_list_scrolling(ptr noundef) #5

declare ptr @__arm_2d_list_core_get_selection_region(ptr noundef, ptr noundef) #5

declare void @__arm_2d_helper_dirty_region_item_update(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { "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 #6 = { noreturn nounwind }
attributes #7 = { 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, !10, i64 0}
!10 = !{!"_Bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{i64 0, i64 2, !18, i64 2, i64 2, !18}
!18 = !{!19, !19, i64 0}
!19 = !{!"short", !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_region_t = type { %union.anon, %union.anon.0 }
%union.anon = type { %struct.arm_2d_location_t }
%struct.arm_2d_location_t = type { i16, i16 }
%union.anon.0 = type { %struct.arm_2d_size_t }
%struct.arm_2d_size_t = type { i16, i16 }

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @__simple_list_show(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, i1 noundef zeroext %3) local_unnamed_addr #1 {
  %5 = alloca %struct.arm_2d_region_t, align 4
  %6 = tail call zeroext i1 @__arm_2d_helper_pfb_is_region_active0(ptr noundef nonnull %1, ptr noundef %2, i1 noundef zeroext true) #3
  br i1 %6, label %7, label %31

7:                                                ; preds = %4
  %8 = tail call i32 @__arm_2d_list_core_show(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, i1 noundef zeroext %3) #3
  br i1 %3, label %9, label %31

9:                                                ; preds = %7
  %10 = getelementptr inbounds i8, ptr %0, i64 290
  %11 = load i8, ptr %10, align 2
  %12 = and i8 %11, 2
  %.not = icmp eq i8 %12, 0
  br i1 %.not, label %31, label %.preheader

.preheader:                                       ; preds = %9
  %13 = getelementptr inbounds i8, ptr %0, i64 442
  %.promoted = load i8, ptr %13, align 2
  %14 = and i8 %.promoted, -7
  store i8 %14, ptr %13, align 2
  %15 = tail call zeroext i1 @__arm_2d_list_core_need_redraw(ptr noundef nonnull %0, i1 noundef zeroext true) #3
  %16 = and i8 %.promoted, 6
  %17 = icmp ne i8 %16, 0
  %brmerge31 = select i1 %15, i1 true, i1 %17
  br i1 %brmerge31, label %18, label %31

18:                                               ; preds = %.preheader
  %19 = and i8 %.promoted, 4
  %.not40 = icmp eq i8 %19, 0
  %20 = and i8 %.promoted, 2
  %21 = icmp ne i8 %20, 0
  %22 = tail call ptr @__arm_2d_list_core_get_inner_tile(ptr noundef nonnull %0) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  store i32 0, ptr %5, align 4
  %23 = getelementptr inbounds i8, ptr %5, i64 4
  %24 = getelementptr inbounds i8, ptr %22, i64 8
  %25 = load i32, ptr %24, align 4
  store i32 %25, ptr %23, align 4
  %26 = tail call zeroext i1 @__arm_2d_list_core_is_list_scrolling(ptr noundef nonnull %0) #3
  %brmerge33.not = select i1 %26, i1 %.not40, i1 false
  %brmerge34 = select i1 %brmerge33.not, i1 true, i1 %21
  br i1 %brmerge34, label %29, label %27

27:                                               ; preds = %18
  %28 = call ptr @__arm_2d_list_core_get_selection_region(ptr noundef nonnull %0, ptr noundef nonnull %5) #3
  br label %29

29:                                               ; preds = %18, %27
  %30 = getelementptr inbounds i8, ptr %0, i64 464
  call void @__arm_2d_helper_dirty_region_item_update(ptr noundef nonnull %30, ptr noundef nonnull %22, ptr noundef null, ptr noundef nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  br label %31

31:                                               ; preds = %7, %9, %.preheader, %29, %4
  %.0 = phi i32 [ 0, %4 ], [ %8, %29 ], [ %8, %.preheader ], [ %8, %9 ], [ %8, %7 ]
  ret i32 %.0
}

declare zeroext i1 @__arm_2d_helper_pfb_is_region_active0(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare i32 @__arm_2d_list_core_show(ptr noundef, ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare zeroext i1 @__arm_2d_list_core_need_redraw(ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare ptr @__arm_2d_list_core_get_inner_tile(ptr noundef) local_unnamed_addr #2

declare zeroext i1 @__arm_2d_list_core_is_list_scrolling(ptr noundef) local_unnamed_addr #2

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

declare void @__arm_2d_helper_dirty_region_item_update(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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)"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass,TailCallElimPass