; LLVM IR from ARM-software/Arm-2D :: Helper/Source (arm_2d_helper_pfb)

; 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_helper_pfb_t = type { %struct.anon, %struct.anon.30 }
%struct.anon = type { %struct.arm_2d_helper_pfb_cfg_t, %struct.anon.4 }
%struct.arm_2d_helper_pfb_cfg_t = type { %struct.arm_2d_region_t, %struct.anon.1, %struct.anon.2, %struct.arm_2d_helper_pfb_dependency_t }
%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.anon.1 = type <{ ptr, %struct.arm_2d_size_t, i64, [4 x i8] }>
%struct.anon.2 = type { ptr, i8 }
%struct.arm_2d_helper_pfb_dependency_t = type { %struct.arm_2d_helper_render_evt_t, %struct.arm_2d_helper_draw_evt_t, %struct.arm_2d_evt_t, %struct.arm_2d_evt_t, %struct.anon.3, %struct.arm_2d_helper_before_flushing_evt_t }
%struct.arm_2d_helper_render_evt_t = type { ptr, ptr }
%struct.arm_2d_helper_draw_evt_t = type { ptr, ptr }
%struct.arm_2d_evt_t = type { ptr, ptr }
%struct.anon.3 = type { %struct.arm_2d_helper_draw_evt_t, ptr }
%struct.arm_2d_helper_before_flushing_evt_t = type { ptr, ptr }
%struct.anon.4 = type { %struct.arm_2d_location_t, %struct.arm_2d_region_t, ptr, %struct.anon.5, %struct.arm_2d_tile_t, %struct.arm_2d_size_t, i32, i8, i8, i16, %struct.anon.21, %union.arm_2d_colour_t, i64, ptr, ptr, ptr, %struct.anon.29, ptr }
%struct.anon.5 = type { ptr, ptr, ptr, ptr, %struct.arm_2d_region_list_item_t }
%struct.arm_2d_region_list_item_t = type { ptr, %struct.anon.6, %struct.arm_2d_region_t, %struct.anon.7 }
%struct.anon.6 = type { ptr }
%struct.anon.7 = type { i8, i8, i16 }
%struct.arm_2d_tile_t = type { %union.anon.8, %union.anon.19, %union.anon.20 }
%union.anon.8 = type { %struct.anon.9 }
%struct.anon.9 = type { i8, %union.arm_2d_color_info_t, %union.anon.12 }
%union.arm_2d_color_info_t = type { %struct.anon.10 }
%struct.anon.10 = type { i8 }
%union.anon.12 = type { i16 }
%union.anon.19 = type { %struct.arm_2d_region_t }
%union.anon.20 = type { ptr }
%struct.anon.21 = type { i32 }
%union.arm_2d_colour_t = type { i32 }
%struct.anon.29 = type { ptr, ptr }
%struct.anon.30 = type { i64, i32, i32 }
%struct.__arm_slist_node_t = type { ptr }
%struct.arm_2d_pfb_t = type { ptr, ptr, %struct.arm_2d_tile_t, i32 }

@.str = external hidden unnamed_addr constant [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [87 x i8], align 1
@__PRETTY_FUNCTION__.arm_2d_helper_pfb_flush = external hidden unnamed_addr constant [52 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @arm_2d_helper_pfb_flush(ptr noundef nonnull %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %6 = load ptr, ptr %2, align 8, !tbaa !5
  %7 = icmp ne ptr null, %6
  br i1 %7, label %8, label %9

8:                                                ; preds = %1
  br label %10

9:                                                ; preds = %1
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 449, ptr noundef @__PRETTY_FUNCTION__.arm_2d_helper_pfb_flush) #3
  unreachable

10:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store ptr null, ptr %5, align 8, !tbaa !5
  br label %11

11:                                               ; preds = %87, %23, %10
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = getelementptr inbounds i32, ptr %12, i32 1
  store ptr %13, ptr %5, align 8, !tbaa !5
  %14 = icmp eq ptr %12, null
  br i1 %14, label %16, label %15

15:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %88

16:                                               ; preds = %11
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.arm_2d_helper_pfb_t, ptr %17, i32 0, i32 0
  %19 = getelementptr inbounds %struct.anon, ptr %18, i32 0, i32 1
  %20 = getelementptr inbounds %struct.anon.4, ptr %19, i32 0, i32 15
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %22 = icmp ne ptr null, %21
  br i1 %22, label %23, label %24

23:                                               ; preds = %16
  br label %11, !llvm.loop !37

24:                                               ; preds = %16
  br label %25

25:                                               ; preds = %24
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.arm_2d_helper_pfb_t, ptr %26, i32 0, i32 0
  %28 = getelementptr inbounds %struct.anon, ptr %27, i32 0, i32 1
  %29 = getelementptr inbounds %struct.anon.4, ptr %28, i32 0, i32 16
  %30 = getelementptr inbounds %struct.anon.29, ptr %29, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !39
  store ptr %31, ptr %3, align 8, !tbaa !5
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.arm_2d_helper_pfb_t, ptr %32, i32 0, i32 0
  %34 = getelementptr inbounds %struct.anon, ptr %33, i32 0, i32 1
  %35 = getelementptr inbounds %struct.anon.4, ptr %34, i32 0, i32 16
  %36 = getelementptr inbounds %struct.anon.29, ptr %35, i32 0, i32 0
  %37 = load ptr, ptr %36, align 8, !tbaa !39
  %38 = icmp ne ptr null, %37
  br i1 %38, label %39, label %67

39:                                               ; preds = %25
  %40 = load ptr, ptr %2, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.arm_2d_helper_pfb_t, ptr %40, i32 0, i32 0
  %42 = getelementptr inbounds %struct.anon, ptr %41, i32 0, i32 1
  %43 = getelementptr inbounds %struct.anon.4, ptr %42, i32 0, i32 16
  %44 = getelementptr inbounds %struct.anon.29, ptr %43, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8, !tbaa !39
  %46 = getelementptr inbounds %struct.__arm_slist_node_t, ptr %45, i32 0, i32 0
  %47 = load ptr, ptr %46, align 8, !tbaa !40
  %48 = load ptr, ptr %2, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.arm_2d_helper_pfb_t, ptr %48, i32 0, i32 0
  %50 = getelementptr inbounds %struct.anon, ptr %49, i32 0, i32 1
  %51 = getelementptr inbounds %struct.anon.4, ptr %50, i32 0, i32 16
  %52 = getelementptr inbounds %struct.anon.29, ptr %51, i32 0, i32 0
  store ptr %47, ptr %52, align 8, !tbaa !5
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.arm_2d_helper_pfb_t, ptr %53, i32 0, i32 0
  %55 = getelementptr inbounds %struct.anon, ptr %54, i32 0, i32 1
  %56 = getelementptr inbounds %struct.anon.4, ptr %55, i32 0, i32 16
  %57 = getelementptr inbounds %struct.anon.29, ptr %56, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8, !tbaa !39
  %59 = icmp eq ptr null, %58
  br i1 %59, label %60, label %66

60:                                               ; preds = %39
  %61 = load ptr, ptr %2, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.arm_2d_helper_pfb_t, ptr %61, i32 0, i32 0
  %63 = getelementptr inbounds %struct.anon, ptr %62, i32 0, i32 1
  %64 = getelementptr inbounds %struct.anon.4, ptr %63, i32 0, i32 16
  %65 = getelementptr inbounds %struct.anon.29, ptr %64, i32 0, i32 1
  store ptr null, ptr %65, align 8, !tbaa !42
  br label %66

66:                                               ; preds = %60, %39
  br label %67

67:                                               ; preds = %66, %25
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = icmp ne ptr null, %68
  br i1 %69, label %70, label %73

70:                                               ; preds = %67
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.__arm_slist_node_t, ptr %71, i32 0, i32 0
  store ptr null, ptr %72, align 8, !tbaa !40
  br label %73

73:                                               ; preds = %70, %67
  br label %74

74:                                               ; preds = %73
  br label %75

75:                                               ; preds = %74
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = icmp ne ptr null, %76
  br i1 %77, label %78, label %87

78:                                               ; preds = %75
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = load ptr, ptr %2, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.arm_2d_helper_pfb_t, ptr %80, i32 0, i32 0
  %82 = getelementptr inbounds %struct.anon, ptr %81, i32 0, i32 1
  %83 = getelementptr inbounds %struct.anon.4, ptr %82, i32 0, i32 15
  store ptr %79, ptr %83, align 8, !tbaa !11
  %84 = load ptr, ptr %2, align 8, !tbaa !5
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.arm_2d_pfb_t, ptr %85, i32 0, i32 1
  store ptr %84, ptr %86, align 8, !tbaa !43
  br label %87

87:                                               ; preds = %78, %75
  br label %11, !llvm.loop !37

88:                                               ; preds = %15
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = icmp ne ptr null, %89
  br i1 %90, label %91, label %134

91:                                               ; preds = %88
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.arm_2d_helper_pfb_t, ptr %92, i32 0, i32 0
  %94 = getelementptr inbounds %struct.anon, ptr %93, i32 0, i32 0
  %95 = getelementptr inbounds %struct.arm_2d_helper_pfb_cfg_t, ptr %94, i32 0, i32 3
  %96 = getelementptr inbounds %struct.arm_2d_helper_pfb_dependency_t, ptr %95, i32 0, i32 0
  %97 = getelementptr inbounds %struct.arm_2d_helper_render_evt_t, ptr %96, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8, !tbaa !45
  %99 = icmp eq ptr null, %98
  br i1 %99, label %109, label %100

100:                                              ; preds = %91
  %101 = load ptr, ptr %2, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.arm_2d_helper_pfb_t, ptr %101, i32 0, i32 0
  %103 = getelementptr inbounds %struct.anon, ptr %102, i32 0, i32 1
  %104 = getelementptr inbounds %struct.anon.4, ptr %103, i32 0, i32 10
  %105 = load i32, ptr %104, align 4
  %106 = lshr i32 %105, 10
  %107 = and i32 %106, 1
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %112

109:                                              ; preds = %100, %91
  %110 = load ptr, ptr %2, align 8, !tbaa !5
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  call void @__arm_2d_helper_pfb_report_rendering_complete(ptr noundef %110, ptr noundef %111)
  br label %133

112:                                              ; preds = %100
  %113 = load ptr, ptr %2, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.arm_2d_helper_pfb_t, ptr %113, i32 0, i32 0
  %115 = getelementptr inbounds %struct.anon, ptr %114, i32 0, i32 0
  %116 = getelementptr inbounds %struct.arm_2d_helper_pfb_cfg_t, ptr %115, i32 0, i32 3
  %117 = getelementptr inbounds %struct.arm_2d_helper_pfb_dependency_t, ptr %116, i32 0, i32 0
  %118 = getelementptr inbounds %struct.arm_2d_helper_render_evt_t, ptr %117, i32 0, i32 0
  %119 = load ptr, ptr %118, align 8, !tbaa !45
  %120 = load ptr, ptr %2, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.arm_2d_helper_pfb_t, ptr %120, i32 0, i32 0
  %122 = getelementptr inbounds %struct.anon, ptr %121, i32 0, i32 0
  %123 = getelementptr inbounds %struct.arm_2d_helper_pfb_cfg_t, ptr %122, i32 0, i32 3
  %124 = getelementptr inbounds %struct.arm_2d_helper_pfb_dependency_t, ptr %123, i32 0, i32 0
  %125 = getelementptr inbounds %struct.arm_2d_helper_render_evt_t, ptr %124, i32 0, i32 1
  %126 = load ptr, ptr %125, align 8, !tbaa !46
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.arm_2d_pfb_t, ptr %128, i32 0, i32 3
  %130 = load i32, ptr %129, align 8
  %131 = lshr i32 %130, 31
  %132 = icmp ne i32 %131, 0
  call void %119(ptr noundef %126, ptr noundef %127, i1 noundef zeroext %132)
  br label %133

133:                                              ; preds = %112, %109
  br label %134

134:                                              ; preds = %133, %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @__arm_2d_helper_pfb_report_rendering_complete(ptr noundef nonnull, ptr noundef) #2

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !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 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 312}
!12 = !{!"arm_2d_helper_pfb_t", !13, i64 0, !36, i64 344}
!13 = !{!"", !14, i64 0, !26, i64 152}
!14 = !{!"arm_2d_helper_pfb_cfg_t", !15, i64 0, !16, i64 8, !19, i64 32, !20, i64 48}
!15 = !{!"arm_2d_region_t", !7, i64 0, !7, i64 4}
!16 = !{!"", !6, i64 0, !17, i64 8, !10, i64 12, !10, i64 15, !10, i64 16, !10, i64 17, !10, i64 17, !10, i64 17, !10, i64 17, !10, i64 18, !10, i64 19, !10, i64 19}
!17 = !{!"arm_2d_size_t", !18, i64 0, !18, i64 2}
!18 = !{!"short", !7, i64 0}
!19 = !{!"", !6, i64 0, !7, i64 8}
!20 = !{!"arm_2d_helper_pfb_dependency_t", !21, i64 0, !22, i64 16, !23, i64 32, !23, i64 48, !24, i64 64, !25, i64 88}
!21 = !{!"arm_2d_helper_render_evt_t", !6, i64 0, !6, i64 8}
!22 = !{!"arm_2d_helper_draw_evt_t", !6, i64 0, !6, i64 8}
!23 = !{!"arm_2d_evt_t", !6, i64 0, !6, i64 8}
!24 = !{!"", !22, i64 0, !6, i64 16}
!25 = !{!"arm_2d_helper_before_flushing_evt_t", !6, i64 0, !6, i64 8}
!26 = !{!"", !27, i64 0, !15, i64 4, !6, i64 16, !28, i64 24, !32, i64 88, !17, i64 112, !10, i64 116, !7, i64 120, !7, i64 121, !18, i64 122, !33, i64 124, !7, i64 128, !34, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !35, i64 168, !6, i64 184}
!27 = !{!"arm_2d_location_t", !18, i64 0, !18, i64 2}
!28 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !29, i64 32}
!29 = !{!"arm_2d_region_list_item_t", !6, i64 0, !30, i64 8, !15, i64 16, !31, i64 24}
!30 = !{!"", !6, i64 0}
!31 = !{!"", !7, i64 0, !7, i64 1, !7, i64 1, !18, i64 2, !18, i64 2, !18, i64 2, !18, i64 2}
!32 = !{!"arm_2d_tile_t", !7, i64 0, !7, i64 4, !7, i64 16}
!33 = !{!"", !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 0, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 1, !10, i64 2}
!34 = !{!"long", !7, i64 0}
!35 = !{!"", !6, i64 0, !6, i64 8}
!36 = !{!"", !34, i64 0, !10, i64 8, !10, i64 12}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = !{!12, !6, i64 320}
!40 = !{!41, !6, i64 0}
!41 = !{!"__arm_slist_node_t", !6, i64 0}
!42 = !{!12, !6, i64 328}
!43 = !{!44, !6, i64 8}
!44 = !{!"arm_2d_pfb_t", !6, i64 0, !6, i64 8, !32, i64 16, !10, i64 40, !10, i64 43, !10, i64 43}
!45 = !{!12, !6, i64 48}
!46 = !{!12, !6, i64 56}


; 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"

; Function Attrs: nounwind uwtable
define dso_local void @arm_2d_helper_pfb_flush(ptr noundef nonnull %0) local_unnamed_addr #0 {
.outer:
  %1 = getelementptr inbounds i8, ptr %0, i64 312
  %2 = getelementptr inbounds i8, ptr %0, i64 320
  %3 = getelementptr inbounds i8, ptr %0, i64 328
  %4 = load ptr, ptr %1, align 8, !tbaa !5
  %.not29.peel = icmp eq ptr %4, null
  br i1 %.not29.peel, label %5, label %.loopexit

.loopexit:                                        ; preds = %.critedge, %5, %.outer
  %.025.ph.lcssa = phi ptr [ null, %.outer ], [ %6, %5 ], [ %6, %.critedge ]
  %.not = icmp eq ptr %.025.ph.lcssa, null
  br i1 %.not, label %27, label %12

5:                                                ; preds = %.outer
  %6 = load ptr, ptr %2, align 8, !tbaa !35
  %.not30 = icmp eq ptr %6, null
  br i1 %.not30, label %.loopexit, label %7

7:                                                ; preds = %5
  %8 = load ptr, ptr %6, align 8, !tbaa !36
  store ptr %8, ptr %2, align 8, !tbaa !38
  %9 = icmp eq ptr %8, null
  br i1 %9, label %10, label %.critedge

10:                                               ; preds = %7
  store ptr null, ptr %3, align 8, !tbaa !39
  br label %.critedge

.critedge:                                        ; preds = %10, %7
  store ptr null, ptr %6, align 8, !tbaa !36
  store ptr %6, ptr %1, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr %0, ptr %11, align 8, !tbaa !40
  br label %.loopexit

12:                                               ; preds = %.loopexit
  %13 = getelementptr inbounds i8, ptr %0, i64 48
  %14 = load ptr, ptr %13, align 8, !tbaa !42
  %15 = icmp eq ptr %14, null
  br i1 %15, label %20, label %16

16:                                               ; preds = %12
  %17 = getelementptr inbounds i8, ptr %0, i64 276
  %18 = load i32, ptr %17, align 4
  %19 = and i32 %18, 1024
  %.not28 = icmp eq i32 %19, 0
  br i1 %.not28, label %21, label %20

20:                                               ; preds = %16, %12
  tail call void @__arm_2d_helper_pfb_report_rendering_complete(ptr noundef %0, ptr noundef nonnull %.025.ph.lcssa)
  br label %27

21:                                               ; preds = %16
  %22 = getelementptr inbounds i8, ptr %0, i64 56
  %23 = load ptr, ptr %22, align 8, !tbaa !43
  %24 = getelementptr inbounds i8, ptr %.025.ph.lcssa, i64 40
  %25 = load i32, ptr %24, align 8
  %26 = icmp slt i32 %25, 0
  tail call void %14(ptr noundef %23, ptr noundef nonnull %.025.ph.lcssa, i1 noundef zeroext %26) #1
  br label %27

27:                                               ; preds = %20, %21, %.loopexit
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @__arm_2d_helper_pfb_report_rendering_complete(ptr noundef nonnull, ptr noundef) local_unnamed_addr #0

attributes #0 = { 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 #1 = { 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, !13, i64 312}
!6 = !{!"arm_2d_helper_pfb_t", !7, i64 0, !34, i64 344}
!7 = !{!"", !8, i64 0, !24, i64 152}
!8 = !{!"arm_2d_helper_pfb_cfg_t", !9, i64 0, !12, i64 8, !17, i64 32, !18, i64 48}
!9 = !{!"arm_2d_region_t", !10, i64 0, !10, i64 4}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"", !13, i64 0, !14, i64 8, !16, i64 12, !16, i64 15, !16, i64 16, !16, i64 17, !16, i64 17, !16, i64 17, !16, i64 17, !16, i64 18, !16, i64 19, !16, i64 19}
!13 = !{!"any pointer", !10, i64 0}
!14 = !{!"arm_2d_size_t", !15, i64 0, !15, i64 2}
!15 = !{!"short", !10, i64 0}
!16 = !{!"int", !10, i64 0}
!17 = !{!"", !13, i64 0, !10, i64 8}
!18 = !{!"arm_2d_helper_pfb_dependency_t", !19, i64 0, !20, i64 16, !21, i64 32, !21, i64 48, !22, i64 64, !23, i64 88}
!19 = !{!"arm_2d_helper_render_evt_t", !13, i64 0, !13, i64 8}
!20 = !{!"arm_2d_helper_draw_evt_t", !13, i64 0, !13, i64 8}
!21 = !{!"arm_2d_evt_t", !13, i64 0, !13, i64 8}
!22 = !{!"", !20, i64 0, !13, i64 16}
!23 = !{!"arm_2d_helper_before_flushing_evt_t", !13, i64 0, !13, i64 8}
!24 = !{!"", !25, i64 0, !9, i64 4, !13, i64 16, !26, i64 24, !30, i64 88, !14, i64 112, !16, i64 116, !10, i64 120, !10, i64 121, !15, i64 122, !31, i64 124, !10, i64 128, !32, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !33, i64 168, !13, i64 184}
!25 = !{!"arm_2d_location_t", !15, i64 0, !15, i64 2}
!26 = !{!"", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !27, i64 32}
!27 = !{!"arm_2d_region_list_item_t", !13, i64 0, !28, i64 8, !9, i64 16, !29, i64 24}
!28 = !{!"", !13, i64 0}
!29 = !{!"", !10, i64 0, !10, i64 1, !10, i64 1, !15, i64 2, !15, i64 2, !15, i64 2, !15, i64 2}
!30 = !{!"arm_2d_tile_t", !10, i64 0, !10, i64 4, !10, i64 16}
!31 = !{!"", !16, i64 0, !16, i64 0, !16, i64 0, !16, i64 0, !16, i64 0, !16, i64 0, !16, i64 0, !16, i64 0, !16, i64 1, !16, i64 1, !16, i64 1, !16, i64 1, !16, i64 1, !16, i64 1, !16, i64 1, !16, i64 1, !16, i64 2}
!32 = !{!"long", !10, i64 0}
!33 = !{!"", !13, i64 0, !13, i64 8}
!34 = !{!"", !32, i64 0, !16, i64 8, !16, i64 12}
!35 = !{!6, !13, i64 320}
!36 = !{!37, !13, i64 0}
!37 = !{!"__arm_slist_node_t", !13, i64 0}
!38 = !{!13, !13, i64 0}
!39 = !{!6, !13, i64 328}
!40 = !{!41, !13, i64 8}
!41 = !{!"arm_2d_pfb_t", !13, i64 0, !13, i64 8, !30, i64 16, !16, i64 40, !16, i64 43, !16, i64 43}
!42 = !{!6, !13, i64 48}
!43 = !{!6, !13, i64 56}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass