; LLVM IR from ermig1979/Simd :: src/Simd (SimdBaseResizer)

; 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.Simd::ResParam" = type { i32, i32, i64, i64, i64, i64, i64, i64 }

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN4Simd4Base11ResizerInitEmmmmm21SimdResizeChannelType20SimdResizeMethodType(i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i32 noundef %5, i32 noundef %6) #0 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"struct.Simd::ResParam", align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store i64 %0, ptr %9, align 8, !tbaa !5
  store i64 %1, ptr %10, align 8, !tbaa !5
  store i64 %2, ptr %11, align 8, !tbaa !5
  store i64 %3, ptr %12, align 8, !tbaa !5
  store i64 %4, ptr %13, align 8, !tbaa !5
  store i32 %5, ptr %14, align 4, !tbaa !9
  store i32 %6, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 56, ptr %16) #6
  %20 = load i64, ptr %9, align 8, !tbaa !5
  %21 = load i64, ptr %10, align 8, !tbaa !5
  %22 = load i64, ptr %11, align 8, !tbaa !5
  %23 = load i64, ptr %12, align 8, !tbaa !5
  %24 = load i64, ptr %13, align 8, !tbaa !5
  %25 = load i32, ptr %14, align 4, !tbaa !9
  %26 = load i32, ptr %15, align 4, !tbaa !11
  call void @_ZN4Simd8ResParamC2Emmmmm21SimdResizeChannelType20SimdResizeMethodTypem(ptr noundef nonnull align 8 dereferenceable(56) %16, i64 noundef %20, i64 noundef %21, i64 noundef %22, i64 noundef %23, i64 noundef %24, i32 noundef %25, i32 noundef %26, i64 noundef 8)
  %27 = call noundef zeroext i1 @_ZNK4Simd8ResParam9IsNearestEv(ptr noundef nonnull align 8 dereferenceable(56) %16)
  br i1 %27, label %28, label %35

28:                                               ; preds = %7
  %29 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 104) #7
  invoke void @_ZN4Simd4Base14ResizerNearestC1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(104) %29, ptr noundef nonnull align 8 dereferenceable(56) %16)
          to label %30 unwind label %31

30:                                               ; preds = %28
  store ptr %29, ptr %8, align 8
  store i32 1, ptr %19, align 4
  br label %99

31:                                               ; preds = %28
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %17, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %18, align 4
  call void @_ZdlPvm(ptr noundef %29, i64 noundef 104) #8
  br label %101

35:                                               ; preds = %7
  %36 = call noundef zeroext i1 @_ZNK4Simd8ResParam14IsByteBilinearEv(ptr noundef nonnull align 8 dereferenceable(56) %16)
  br i1 %36, label %37, label %44

37:                                               ; preds = %35
  %38 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 160) #7
  invoke void @_ZN4Simd4Base19ResizerByteBilinearC1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(160) %38, ptr noundef nonnull align 8 dereferenceable(56) %16)
          to label %39 unwind label %40

39:                                               ; preds = %37
  store ptr %38, ptr %8, align 8
  store i32 1, ptr %19, align 4
  br label %99

40:                                               ; preds = %37
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %17, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %18, align 4
  call void @_ZdlPvm(ptr noundef %38, i64 noundef 160) #8
  br label %101

44:                                               ; preds = %35
  %45 = call noundef zeroext i1 @_ZNK4Simd8ResParam15IsShortBilinearEv(ptr noundef nonnull align 8 dereferenceable(56) %16)
  br i1 %45, label %46, label %53

46:                                               ; preds = %44
  %47 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 160) #7
  invoke void @_ZN4Simd4Base20ResizerShortBilinearC1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(160) %47, ptr noundef nonnull align 8 dereferenceable(56) %16)
          to label %48 unwind label %49

48:                                               ; preds = %46
  store ptr %47, ptr %8, align 8
  store i32 1, ptr %19, align 4
  br label %99

49:                                               ; preds = %46
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %17, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %18, align 4
  call void @_ZdlPvm(ptr noundef %47, i64 noundef 160) #8
  br label %101

53:                                               ; preds = %44
  %54 = call noundef zeroext i1 @_ZNK4Simd8ResParam15IsFloatBilinearEv(ptr noundef nonnull align 8 dereferenceable(56) %16)
  br i1 %54, label %55, label %62

55:                                               ; preds = %53
  %56 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 168) #7
  invoke void @_ZN4Simd4Base20ResizerFloatBilinearC1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(168) %56, ptr noundef nonnull align 8 dereferenceable(56) %16)
          to label %57 unwind label %58

57:                                               ; preds = %55
  store ptr %56, ptr %8, align 8
  store i32 1, ptr %19, align 4
  br label %99

58:                                               ; preds = %55
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %17, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %18, align 4
  call void @_ZdlPvm(ptr noundef %56, i64 noundef 168) #8
  br label %101

62:                                               ; preds = %53
  %63 = call noundef zeroext i1 @_ZNK4Simd8ResParam14IsBf16BilinearEv(ptr noundef nonnull align 8 dereferenceable(56) %16)
  br i1 %63, label %64, label %71

64:                                               ; preds = %62
  %65 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 168) #7
  invoke void @_ZN4Simd4Base19ResizerBf16BilinearC1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(168) %65, ptr noundef nonnull align 8 dereferenceable(56) %16)
          to label %66 unwind label %67

66:                                               ; preds = %64
  store ptr %65, ptr %8, align 8
  store i32 1, ptr %19, align 4
  br label %99

67:                                               ; preds = %64
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %17, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %18, align 4
  call void @_ZdlPvm(ptr noundef %65, i64 noundef 168) #8
  br label %101

71:                                               ; preds = %62
  %72 = call noundef zeroext i1 @_ZNK4Simd8ResParam13IsByteBicubicEv(ptr noundef nonnull align 8 dereferenceable(56) %16)
  br i1 %72, label %73, label %80

73:                                               ; preds = %71
  %74 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 216) #7
  invoke void @_ZN4Simd4Base18ResizerByteBicubicC1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(216) %74, ptr noundef nonnull align 8 dereferenceable(56) %16)
          to label %75 unwind label %76

75:                                               ; preds = %73
  store ptr %74, ptr %8, align 8
  store i32 1, ptr %19, align 4
  br label %99

76:                                               ; preds = %73
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %17, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %18, align 4
  call void @_ZdlPvm(ptr noundef %74, i64 noundef 216) #8
  br label %101

80:                                               ; preds = %71
  %81 = call noundef zeroext i1 @_ZNK4Simd8ResParam13IsByteArea2x2Ev(ptr noundef nonnull align 8 dereferenceable(56) %16)
  br i1 %81, label %82, label %89

82:                                               ; preds = %80
  %83 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 144) #7
  invoke void @_ZN4Simd4Base18ResizerByteArea2x2C1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(144) %83, ptr noundef nonnull align 8 dereferenceable(56) %16)
          to label %84 unwind label %85

84:                                               ; preds = %82
  store ptr %83, ptr %8, align 8
  store i32 1, ptr %19, align 4
  br label %99

85:                                               ; preds = %82
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %17, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %18, align 4
  call void @_ZdlPvm(ptr noundef %83, i64 noundef 144) #8
  br label %101

89:                                               ; preds = %80
  %90 = call noundef zeroext i1 @_ZNK4Simd8ResParam13IsByteArea1x1Ev(ptr noundef nonnull align 8 dereferenceable(56) %16)
  br i1 %90, label %91, label %98

91:                                               ; preds = %89
  %92 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 144) #7
  invoke void @_ZN4Simd4Base18ResizerByteArea1x1C1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(144) %92, ptr noundef nonnull align 8 dereferenceable(56) %16)
          to label %93 unwind label %94

93:                                               ; preds = %91
  store ptr %92, ptr %8, align 8
  store i32 1, ptr %19, align 4
  br label %99

94:                                               ; preds = %91
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %17, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %18, align 4
  call void @_ZdlPvm(ptr noundef %92, i64 noundef 144) #8
  br label %101

98:                                               ; preds = %89
  store ptr null, ptr %8, align 8
  store i32 1, ptr %19, align 4
  br label %99

99:                                               ; preds = %98, %93, %84, %75, %66, %57, %48, %39, %30
  call void @llvm.lifetime.end.p0(i64 56, ptr %16) #6
  %100 = load ptr, ptr %8, align 8
  ret ptr %100

101:                                              ; preds = %94, %85, %76, %67, %58, %49, %40, %31
  call void @llvm.lifetime.end.p0(i64 56, ptr %16) #6
  br label %102

102:                                              ; preds = %101
  %103 = load ptr, ptr %17, align 8
  %104 = load i32, ptr %18, align 4
  %105 = insertvalue { ptr, i32 } poison, ptr %103, 0
  %106 = insertvalue { ptr, i32 } %105, i32 %104, 1
  resume { ptr, i32 } %106
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd8ResParamC2Emmmmm21SimdResizeChannelType20SimdResizeMethodTypem(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i32 noundef, i32 noundef, i64 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Simd8ResParam9IsNearestEv(ptr noundef nonnull align 8 dereferenceable(56)) #2 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #3

declare void @_ZN4Simd4Base14ResizerNearestC1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Simd8ResParam14IsByteBilinearEv(ptr noundef nonnull align 8 dereferenceable(56)) #2 align 2

declare void @_ZN4Simd4Base19ResizerByteBilinearC1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Simd8ResParam15IsShortBilinearEv(ptr noundef nonnull align 8 dereferenceable(56)) #2 align 2

declare void @_ZN4Simd4Base20ResizerShortBilinearC1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Simd8ResParam15IsFloatBilinearEv(ptr noundef nonnull align 8 dereferenceable(56)) #2 align 2

declare void @_ZN4Simd4Base20ResizerFloatBilinearC1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Simd8ResParam14IsBf16BilinearEv(ptr noundef nonnull align 8 dereferenceable(56)) #2 align 2

declare void @_ZN4Simd4Base19ResizerBf16BilinearC1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Simd8ResParam13IsByteBicubicEv(ptr noundef nonnull align 8 dereferenceable(56)) #2 align 2

declare void @_ZN4Simd4Base18ResizerByteBicubicC1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4Simd8ResParam13IsByteArea2x2Ev(ptr noundef nonnull align 8 dereferenceable(56)) #0 align 2

declare void @_ZN4Simd4Base18ResizerByteArea2x2C1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Simd8ResParam13IsByteArea1x1Ev(ptr noundef nonnull align 8 dereferenceable(56)) #2 align 2

declare void @_ZN4Simd4Base18ResizerByteArea1x1C1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4

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

attributes #0 = { mustprogress 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 = { nobuiltin allocsize(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 = { "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 = { nobuiltin 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 #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTS21SimdResizeChannelType", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS20SimdResizeMethodType", !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.Simd::ResParam" = type { i32, i32, i64, i64, i64, i64, i64, i64 }

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN4Simd4Base11ResizerInitEmmmmm21SimdResizeChannelType20SimdResizeMethodType(i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"struct.Simd::ResParam", align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #6
  call void @_ZN4Simd8ResParamC2Emmmmm21SimdResizeChannelType20SimdResizeMethodTypem(ptr noundef nonnull align 8 dereferenceable(56) %8, i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i32 noundef %5, i32 noundef %6, i64 noundef 8)
  %9 = call noundef zeroext i1 @_ZNK4Simd8ResParam9IsNearestEv(ptr noundef nonnull align 8 dereferenceable(56) %8)
  br i1 %9, label %10, label %14

10:                                               ; preds = %7
  %11 = call noalias noundef nonnull dereferenceable(104) ptr @_Znwm(i64 noundef 104) #7
  invoke void @_ZN4Simd4Base14ResizerNearestC1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(104) %11, ptr noundef nonnull align 8 dereferenceable(56) %8)
          to label %56 unwind label %12

12:                                               ; preds = %10
  %13 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %11, i64 noundef 104) #8
  br label %57

14:                                               ; preds = %7
  %15 = call noundef zeroext i1 @_ZNK4Simd8ResParam14IsByteBilinearEv(ptr noundef nonnull align 8 dereferenceable(56) %8)
  br i1 %15, label %16, label %20

16:                                               ; preds = %14
  %17 = call noalias noundef nonnull dereferenceable(160) ptr @_Znwm(i64 noundef 160) #7
  invoke void @_ZN4Simd4Base19ResizerByteBilinearC1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(160) %17, ptr noundef nonnull align 8 dereferenceable(56) %8)
          to label %56 unwind label %18

18:                                               ; preds = %16
  %19 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %17, i64 noundef 160) #8
  br label %57

20:                                               ; preds = %14
  %21 = call noundef zeroext i1 @_ZNK4Simd8ResParam15IsShortBilinearEv(ptr noundef nonnull align 8 dereferenceable(56) %8)
  br i1 %21, label %22, label %26

22:                                               ; preds = %20
  %23 = call noalias noundef nonnull dereferenceable(160) ptr @_Znwm(i64 noundef 160) #7
  invoke void @_ZN4Simd4Base20ResizerShortBilinearC1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(160) %23, ptr noundef nonnull align 8 dereferenceable(56) %8)
          to label %56 unwind label %24

24:                                               ; preds = %22
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %23, i64 noundef 160) #8
  br label %57

26:                                               ; preds = %20
  %27 = call noundef zeroext i1 @_ZNK4Simd8ResParam15IsFloatBilinearEv(ptr noundef nonnull align 8 dereferenceable(56) %8)
  br i1 %27, label %28, label %32

28:                                               ; preds = %26
  %29 = call noalias noundef nonnull dereferenceable(168) ptr @_Znwm(i64 noundef 168) #7
  invoke void @_ZN4Simd4Base20ResizerFloatBilinearC1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(168) %29, ptr noundef nonnull align 8 dereferenceable(56) %8)
          to label %56 unwind label %30

30:                                               ; preds = %28
  %31 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %29, i64 noundef 168) #8
  br label %57

32:                                               ; preds = %26
  %33 = call noundef zeroext i1 @_ZNK4Simd8ResParam14IsBf16BilinearEv(ptr noundef nonnull align 8 dereferenceable(56) %8)
  br i1 %33, label %34, label %38

34:                                               ; preds = %32
  %35 = call noalias noundef nonnull dereferenceable(168) ptr @_Znwm(i64 noundef 168) #7
  invoke void @_ZN4Simd4Base19ResizerBf16BilinearC1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(168) %35, ptr noundef nonnull align 8 dereferenceable(56) %8)
          to label %56 unwind label %36

36:                                               ; preds = %34
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %35, i64 noundef 168) #8
  br label %57

38:                                               ; preds = %32
  %39 = call noundef zeroext i1 @_ZNK4Simd8ResParam13IsByteBicubicEv(ptr noundef nonnull align 8 dereferenceable(56) %8)
  br i1 %39, label %40, label %44

40:                                               ; preds = %38
  %41 = call noalias noundef nonnull dereferenceable(216) ptr @_Znwm(i64 noundef 216) #7
  invoke void @_ZN4Simd4Base18ResizerByteBicubicC1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(216) %41, ptr noundef nonnull align 8 dereferenceable(56) %8)
          to label %56 unwind label %42

42:                                               ; preds = %40
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %41, i64 noundef 216) #8
  br label %57

44:                                               ; preds = %38
  %45 = call noundef zeroext i1 @_ZNK4Simd8ResParam13IsByteArea2x2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8)
  br i1 %45, label %46, label %50

46:                                               ; preds = %44
  %47 = call noalias noundef nonnull dereferenceable(144) ptr @_Znwm(i64 noundef 144) #7
  invoke void @_ZN4Simd4Base18ResizerByteArea2x2C1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(144) %47, ptr noundef nonnull align 8 dereferenceable(56) %8)
          to label %56 unwind label %48

48:                                               ; preds = %46
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %47, i64 noundef 144) #8
  br label %57

50:                                               ; preds = %44
  %51 = call noundef zeroext i1 @_ZNK4Simd8ResParam13IsByteArea1x1Ev(ptr noundef nonnull align 8 dereferenceable(56) %8)
  br i1 %51, label %52, label %56

52:                                               ; preds = %50
  %53 = call noalias noundef nonnull dereferenceable(144) ptr @_Znwm(i64 noundef 144) #7
  invoke void @_ZN4Simd4Base18ResizerByteArea1x1C1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(144) %53, ptr noundef nonnull align 8 dereferenceable(56) %8)
          to label %56 unwind label %54

54:                                               ; preds = %52
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %53, i64 noundef 144) #8
  br label %57

56:                                               ; preds = %50, %52, %46, %40, %34, %28, %22, %16, %10
  %.010 = phi ptr [ %11, %10 ], [ %17, %16 ], [ %23, %22 ], [ %29, %28 ], [ %35, %34 ], [ %41, %40 ], [ %47, %46 ], [ %53, %52 ], [ null, %50 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #6
  ret ptr %.010

57:                                               ; preds = %54, %48, %42, %36, %30, %24, %18, %12
  %.pn = phi { ptr, i32 } [ %13, %12 ], [ %19, %18 ], [ %25, %24 ], [ %31, %30 ], [ %37, %36 ], [ %43, %42 ], [ %49, %48 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #6
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd8ResParamC2Emmmmm21SimdResizeChannelType20SimdResizeMethodTypem(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i32 noundef, i32 noundef, i64 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Simd8ResParam9IsNearestEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #2 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #3

declare void @_ZN4Simd4Base14ResizerNearestC1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Simd8ResParam14IsByteBilinearEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #2 align 2

declare void @_ZN4Simd4Base19ResizerByteBilinearC1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Simd8ResParam15IsShortBilinearEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #2 align 2

declare void @_ZN4Simd4Base20ResizerShortBilinearC1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Simd8ResParam15IsFloatBilinearEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #2 align 2

declare void @_ZN4Simd4Base20ResizerFloatBilinearC1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Simd8ResParam14IsBf16BilinearEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #2 align 2

declare void @_ZN4Simd4Base19ResizerBf16BilinearC1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(168), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Simd8ResParam13IsByteBicubicEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #2 align 2

declare void @_ZN4Simd4Base18ResizerByteBicubicC1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4Simd8ResParam13IsByteArea2x2Ev(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #0 align 2

declare void @_ZN4Simd4Base18ResizerByteArea2x2C1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4Simd8ResParam13IsByteArea1x1Ev(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #2 align 2

declare void @_ZN4Simd4Base18ResizerByteArea1x1C1ERKNS_8ResParamE(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #4

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

attributes #0 = { mustprogress 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 = { nobuiltin allocsize(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 = { "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 = { nobuiltin 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 #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass