; LLVM IR from ARM-software/Arm-2D :: Library/Source/arm_2d_filter.ll_ (arm_2d_cccn888_sw_filter_iir_blur)

; 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 }
%struct.anon = type { ptr, %struct.anon.0, %struct.anon.1, i16, i16, i16, i16, ptr, %union.anon }
%struct.anon.0 = type { ptr, ptr }
%struct.anon.1 = type { ptr, ptr }
%union.anon = 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.59, %struct.anon.60, %union.anon.61, %struct.anon.63, %struct.anon.64, %struct.__arm_2d_transform_info_t, i8 }
%struct.arm_2d_op_core_t = type { %struct.anon.2, i64 }
%struct.anon.2 = type { ptr, ptr, %struct.anon.3, i8, %union.arm_2d_op_status_t, %struct.arm_2d_op_evt_t }
%struct.anon.3 = type { i8 }
%union.arm_2d_op_status_t = type { %struct.anon.4 }
%struct.anon.4 = type { i16 }
%struct.arm_2d_op_evt_t = type { ptr, ptr }
%struct.anon.59 = type { ptr, ptr }
%struct.anon.60 = type { ptr }
%union.anon.61 = type { %struct.anon.62 }
%struct.anon.62 = type { i32 }
%struct.anon.63 = type { ptr, %struct.arm_2d_tile_t }
%struct.arm_2d_tile_t = type { %union.anon.36, %union.anon.47, %union.anon.50 }
%union.anon.36 = type { %struct.anon.37 }
%struct.anon.37 = type { i8, %union.arm_2d_color_info_t, %union.anon.40 }
%union.arm_2d_color_info_t = type { %struct.anon.38 }
%struct.anon.38 = type { i8 }
%union.anon.40 = type { i16 }
%union.anon.47 = type { %struct.arm_2d_region_t }
%struct.arm_2d_region_t = type { %union.anon.48, %union.anon.49 }
%union.anon.48 = type { %struct.arm_2d_location_t }
%struct.arm_2d_location_t = type { i16, i16 }
%union.anon.49 = type { %struct.arm_2d_size_t }
%struct.arm_2d_size_t = type { i16, i16 }
%union.anon.50 = type { ptr }
%struct.anon.64 = type { ptr, ptr }
%struct.__arm_2d_transform_info_t = type { float, float, float, %struct.arm_2d_point_float_t, %union.anon.51, %struct.anon.52 }
%struct.arm_2d_point_float_t = type { float, float }
%union.anon.51 = type { i32 }
%struct.anon.52 = type { %struct.arm_2d_location_t, %struct.anon.53 }
%struct.anon.53 = type { %struct.arm_2d_region_t, %struct.arm_2d_tile_t }
%struct.__arm_2d_sub_task_t = type { %struct.anon.91 }
%struct.anon.91 = type <{ ptr, ptr, i8, i32, [3 x i8], %union.anon.92 }>
%union.anon.92 = type { %struct.__arm_2d_param_copy_orig_msk_t }
%struct.__arm_2d_param_copy_orig_msk_t = type { %union.anon.95, %struct.__arm_2d_tile_param_t, %struct.__arm_2d_tile_param_t }
%union.anon.95 = type { %struct.__arm_2d_param_copy_orig_t }
%struct.__arm_2d_param_copy_orig_t = type { %union.anon.94, %struct.__arm_2d_tile_param_t }
%union.anon.94 = 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_filter_iir_blur_descriptor_t = type { %struct.anon.71, %struct.arm_2d_scratch_mem_t }
%struct.anon.71 = type { %union.anon.72, %union.anon.73, i8 }
%union.anon.72 = type { %struct.arm_2d_op_t }
%struct.arm_2d_op_t = type { %struct.arm_2d_op_core_t, %struct.anon.5 }
%struct.anon.5 = type { ptr, ptr }
%union.anon.73 = type { i8 }
%struct.arm_2d_scratch_mem_t = type { %union.anon.75, i64 }
%union.anon.75 = type { %union.anon.76 }
%union.anon.76 = type { %struct.anon.77 }
%struct.anon.77 = type { i32 }
%struct.anon.80 = type { %union.arm_2d_color_info_t, %union.anon.81, i8, i8, %union.anon.83, %union.anon.87 }
%union.anon.81 = type { %struct.anon.82 }
%struct.anon.82 = type { i8 }
%union.anon.83 = type { %struct.anon.84 }
%struct.anon.84 = type { i8, i8 }
%union.anon.87 = type { [2 x ptr] }

@ARM_2D_CTRL = external global %struct.__arm_2d_op_control, align 8
@.str.1 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [63 x i8], align 1
@__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_filter_iir_blur = external hidden unnamed_addr constant [72 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: 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

declare i32 @arm_2d_get_absolute_location(ptr noundef, i32, i1 noundef zeroext) #4

; Function Attrs: nounwind uwtable
declare dso_local void @__arm_2d_impl_cccn888_filter_iir_blur(ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noundef, i8 noundef zeroext, ptr noundef) #5

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

14:                                               ; preds = %1
  store ptr getelementptr inbounds (%struct.anon, ptr @ARM_2D_CTRL, i32 0, i32 8), ptr %4, align 8, !tbaa !5
  br label %15

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

29:                                               ; preds = %15
  br label %31

30:                                               ; preds = %15
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 1130, ptr noundef @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_filter_iir_blur) #7
  unreachable

31:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.memset.p0.i64(ptr align 2 %5, i8 0, i64 8, i1 false)
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.arm_2d_filter_iir_blur_descriptor_t, ptr %32, i32 0, i32 0
  %34 = getelementptr inbounds %struct.anon.71, ptr %33, i32 0, i32 2
  %35 = load i8, ptr %34, align 1, !tbaa !13
  %36 = zext i8 %35 to i32
  %37 = icmp eq i32 0, %36
  br i1 %37, label %38, label %39

38:                                               ; preds = %31
  store i32 0, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %94

39:                                               ; preds = %31
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.arm_2d_filter_iir_blur_descriptor_t, ptr %40, i32 0, i32 0
  %42 = getelementptr inbounds %struct.anon.71, ptr %41, i32 0, i32 0
  %43 = getelementptr inbounds %struct.arm_2d_op_t, ptr %42, i32 0, i32 1
  %44 = getelementptr inbounds %struct.anon.5, ptr %43, i32 0, i32 1
  %45 = load ptr, ptr %44, align 8, !tbaa !12
  %46 = icmp eq ptr null, %45
  br i1 %46, label %47, label %57

47:                                               ; preds = %39
  %48 = getelementptr inbounds %struct.arm_2d_region_t, ptr %5, i32 0, i32 1
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.arm_2d_filter_iir_blur_descriptor_t, ptr %49, i32 0, i32 0
  %51 = getelementptr inbounds %struct.anon.71, ptr %50, i32 0, i32 0
  %52 = getelementptr inbounds %struct.arm_2d_op_t, ptr %51, i32 0, i32 1
  %53 = getelementptr inbounds %struct.anon.5, ptr %52, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8, !tbaa !12
  %55 = getelementptr inbounds %struct.arm_2d_tile_t, ptr %54, i32 0, i32 1
  %56 = getelementptr inbounds %struct.arm_2d_region_t, ptr %55, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %48, ptr align 4 %56, i64 4, i1 false), !tbaa.struct !18
  br label %64

57:                                               ; preds = %39
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.arm_2d_filter_iir_blur_descriptor_t, ptr %58, i32 0, i32 0
  %60 = getelementptr inbounds %struct.anon.71, ptr %59, i32 0, i32 0
  %61 = getelementptr inbounds %struct.arm_2d_op_t, ptr %60, i32 0, i32 1
  %62 = getelementptr inbounds %struct.anon.5, ptr %61, i32 0, i32 1
  %63 = load ptr, ptr %62, align 8, !tbaa !12
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %5, ptr align 2 %63, i64 8, i1 false), !tbaa.struct !21
  br label %64

64:                                               ; preds = %57, %47
  %65 = getelementptr inbounds %struct.arm_2d_region_t, ptr %5, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.arm_2d_filter_iir_blur_descriptor_t, ptr %66, i32 0, i32 0
  %68 = getelementptr inbounds %struct.anon.71, ptr %67, i32 0, i32 0
  %69 = getelementptr inbounds %struct.arm_2d_op_t, ptr %68, i32 0, i32 1
  %70 = getelementptr inbounds %struct.anon.5, ptr %69, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8, !tbaa !12
  %72 = getelementptr inbounds %struct.arm_2d_region_t, ptr %5, i32 0, i32 0
  %73 = load i32, ptr %72, align 2
  %74 = call i32 @arm_2d_get_absolute_location(ptr noundef %71, i32 %73, i1 noundef zeroext true)
  store i32 %74, ptr %7, align 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %65, ptr align 2 %7, i64 4, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %75, i32 0, i32 0
  %77 = getelementptr inbounds %struct.anon.91, ptr %76, i32 0, i32 5
  %78 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %77, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8, !tbaa !12
  %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.91, ptr %81, i32 0, i32 5
  %83 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %82, i32 0, i32 2
  %84 = load i16, ptr %83, align 4, !tbaa !12
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.__arm_2d_sub_task_t, ptr %85, i32 0, i32 0
  %87 = getelementptr inbounds %struct.anon.91, ptr %86, i32 0, i32 5
  %88 = getelementptr inbounds %struct.__arm_2d_tile_param_t, ptr %87, i32 0, i32 6
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.arm_2d_filter_iir_blur_descriptor_t, ptr %89, i32 0, i32 0
  %91 = getelementptr inbounds %struct.anon.71, ptr %90, i32 0, i32 2
  %92 = load i8, ptr %91, align 1, !tbaa !13
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  call void @__arm_2d_impl_cccn888_filter_iir_blur(ptr noundef %79, i16 noundef signext %84, ptr noundef %88, ptr noundef %5, i8 noundef zeroext %92, ptr noundef %93)
  store i32 0, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %94

94:                                               ; preds = %64, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  %95 = load i32, ptr %2, align 4
  ret i32 %95
}

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { "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 = { 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 #6 = { nounwind }
attributes #7 = { 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 = !{!7, !7, i64 0}
!13 = !{!14, !7, i64 65}
!14 = !{!"arm_2d_filter_iir_blur_descriptor_t", !15, i64 0, !16, i64 72}
!15 = !{!"", !7, i64 0, !7, i64 64, !7, i64 65}
!16 = !{!"arm_2d_scratch_mem_t", !7, i64 0, !17, i64 8}
!17 = !{!"long", !7, i64 0}
!18 = !{i64 0, i64 2, !19, i64 2, i64 2, !19}
!19 = !{!20, !20, i64 0}
!20 = !{!"short", !7, i64 0}
!21 = !{i64 0, i64 4, !12, i64 4, i64 4, !12}


; 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 }
%struct.anon = type { ptr, %struct.anon.0, %struct.anon.1, i16, i16, i16, i16, ptr, %union.anon }
%struct.anon.0 = type { ptr, ptr }
%struct.anon.1 = type { ptr, ptr }
%union.anon = 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.59, %struct.anon.60, %union.anon.61, %struct.anon.63, %struct.anon.64, %struct.__arm_2d_transform_info_t, i8 }
%struct.arm_2d_op_core_t = type { %struct.anon.2, i64 }
%struct.anon.2 = type { ptr, ptr, %struct.anon.3, i8, %union.arm_2d_op_status_t, %struct.arm_2d_op_evt_t }
%struct.anon.3 = type { i8 }
%union.arm_2d_op_status_t = type { %struct.anon.4 }
%struct.anon.4 = type { i16 }
%struct.arm_2d_op_evt_t = type { ptr, ptr }
%struct.anon.59 = type { ptr, ptr }
%struct.anon.60 = type { ptr }
%union.anon.61 = type { %struct.anon.62 }
%struct.anon.62 = type { i32 }
%struct.anon.63 = type { ptr, %struct.arm_2d_tile_t }
%struct.arm_2d_tile_t = type { %union.anon.36, %union.anon.47, %union.anon.50 }
%union.anon.36 = type { %struct.anon.37 }
%struct.anon.37 = type { i8, %union.arm_2d_color_info_t, %union.anon.40 }
%union.arm_2d_color_info_t = type { %struct.anon.38 }
%struct.anon.38 = type { i8 }
%union.anon.40 = type { i16 }
%union.anon.47 = type { %struct.arm_2d_region_t }
%struct.arm_2d_region_t = type { %union.anon.48, %union.anon.49 }
%union.anon.48 = type { %struct.arm_2d_location_t }
%struct.arm_2d_location_t = type { i16, i16 }
%union.anon.49 = type { %struct.arm_2d_size_t }
%struct.arm_2d_size_t = type { i16, i16 }
%union.anon.50 = type { ptr }
%struct.anon.64 = type { ptr, ptr }
%struct.__arm_2d_transform_info_t = type { float, float, float, %struct.arm_2d_point_float_t, %union.anon.51, %struct.anon.52 }
%struct.arm_2d_point_float_t = type { float, float }
%union.anon.51 = type { i32 }
%struct.anon.52 = type { %struct.arm_2d_location_t, %struct.anon.53 }
%struct.anon.53 = type { %struct.arm_2d_region_t, %struct.arm_2d_tile_t }

@ARM_2D_CTRL = external global %struct.__arm_2d_op_control, align 8
@.str.1 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [63 x i8], align 1
@__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_filter_iir_blur = external hidden unnamed_addr constant [72 x i8], align 1

; 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @__arm_2d_impl_cccn888_filter_iir_blur(ptr noalias noundef, i16 noundef signext, ptr noalias noundef, ptr noundef, i8 noundef zeroext, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @__arm_2d_cccn888_sw_filter_iir_blur(ptr noundef %0) local_unnamed_addr #3 {
  %2 = alloca %struct.arm_2d_region_t, align 8
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = icmp eq ptr %4, null
  %spec.store.select = select i1 %5, ptr getelementptr inbounds (i8, ptr @ARM_2D_CTRL, i64 56), ptr %4
  %6 = getelementptr inbounds i8, ptr %spec.store.select, i64 8
  %7 = load ptr, ptr %6, align 8, !tbaa !11
  %8 = load i8, ptr %7, align 8
  %9 = and i8 %8, 14
  %10 = icmp eq i8 %9, 10
  br i1 %10, label %12, label %11

11:                                               ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 1130, ptr noundef nonnull @__PRETTY_FUNCTION__.__arm_2d_cccn888_sw_filter_iir_blur) #4
  unreachable

12:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %13 = getelementptr inbounds i8, ptr %spec.store.select, i64 65
  %14 = load i8, ptr %13, align 1, !tbaa !12
  %15 = icmp eq i8 %14, 0
  br i1 %15, label %39, label %16

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

21:                                               ; preds = %16
  %22 = getelementptr inbounds i8, ptr %2, i64 4
  %23 = load ptr, ptr %17, align 8, !tbaa !11
  %24 = getelementptr inbounds i8, ptr %23, i64 8
  %25 = load i32, ptr %24, align 4
  store i32 %25, ptr %22, align 4
  br label %29

26:                                               ; preds = %16
  %27 = load i64, ptr %19, align 2
  store i64 %27, ptr %2, align 8
  %.pre = load ptr, ptr %17, align 8, !tbaa !11
  %28 = trunc i64 %27 to i32
  br label %29

29:                                               ; preds = %26, %21
  %30 = phi i32 [ %28, %26 ], [ 0, %21 ]
  %31 = phi ptr [ %.pre, %26 ], [ %23, %21 ]
  %32 = tail call i32 @arm_2d_get_absolute_location(ptr noundef %31, i32 %30, i1 noundef zeroext true) #5
  store i32 %32, ptr %2, align 8
  %33 = getelementptr inbounds i8, ptr %0, i64 24
  %34 = load ptr, ptr %33, align 8, !tbaa !11
  %35 = getelementptr inbounds i8, ptr %0, i64 36
  %36 = load i16, ptr %35, align 4, !tbaa !11
  %37 = getelementptr inbounds i8, ptr %0, i64 48
  %38 = load i8, ptr %13, align 1, !tbaa !12
  call void @__arm_2d_impl_cccn888_filter_iir_blur(ptr noundef %34, i16 noundef signext %36, ptr noundef nonnull %37, ptr noundef nonnull %2, i8 noundef zeroext %38, ptr noundef nonnull %spec.store.select)
  br label %39

39:                                               ; preds = %12, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  ret i32 0
}

attributes #0 = { mustprogress 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 = { noreturn nounwind }
attributes #5 = { 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 = !{!9, !9, i64 0}
!12 = !{!13, !9, i64 65}
!13 = !{!"arm_2d_filter_iir_blur_descriptor_t", !14, i64 0, !15, i64 72}
!14 = !{!"", !9, i64 0, !9, i64 64, !9, i64 65}
!15 = !{!"arm_2d_scratch_mem_t", !9, i64 0, !16, i64 8}
!16 = !{!"long", !9, i64 0}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass