; LLVM IR from rweather/lightweight-crypto :: src/genavr/algorithm_saturnin.ll (Z22gen_saturnin_setup_keyR4Code)

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

%class.Reg = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [19 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: mustprogress uwtable
define dso_local void @_Z22gen_saturnin_setup_keyR4Code(ptr noundef nonnull align 8 dereferenceable(200) %0) #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %class.Reg, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  %7 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN4Code18prologue_setup_keyEPKcj(ptr noundef nonnull align 8 dereferenceable(200) %7, ptr noundef @.str, i32 noundef 0)
  %8 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN4Code7setFlagENS_4FlagE(ptr noundef nonnull align 8 dereferenceable(200) %8, i32 noundef 32)
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #4
  %9 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN4Code11allocateRegEj(ptr dead_on_unwind writable sret(%class.Reg) align 8 %4, ptr noundef nonnull align 8 dereferenceable(200) %9, i32 noundef 2)
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %10

10:                                               ; preds = %29, %1
  %11 = load i32, ptr %3, align 4, !tbaa !9
  %12 = icmp ult i32 %11, 16
  br i1 %12, label %13, label %36

13:                                               ; preds = %10
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code3ldxERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %14, ptr noundef nonnull align 8 dereferenceable(24) %4, i8 noundef zeroext -1)
          to label %15 unwind label %32

15:                                               ; preds = %13
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  %17 = load i32, ptr %3, align 4, !tbaa !9
  %18 = mul i32 %17, 2
  %19 = trunc i32 %18 to i8
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %16, ptr noundef nonnull align 8 dereferenceable(24) %4, i8 noundef zeroext %19)
          to label %20 unwind label %32

20:                                               ; preds = %15
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %21, ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 5)
          to label %22 unwind label %32

22:                                               ; preds = %20
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  %24 = load i32, ptr %3, align 4, !tbaa !9
  %25 = mul i32 %24, 2
  %26 = add i32 %25, 32
  %27 = trunc i32 %26 to i8
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %23, ptr noundef nonnull align 8 dereferenceable(24) %4, i8 noundef zeroext %27)
          to label %28 unwind label %32

28:                                               ; preds = %22
  br label %29

29:                                               ; preds = %28
  %30 = load i32, ptr %3, align 4, !tbaa !9
  %31 = add i32 %30, 2
  store i32 %31, ptr %3, align 4, !tbaa !9
  br label %10, !llvm.loop !11

32:                                               ; preds = %50, %48, %42, %40, %22, %20, %15, %13
  %33 = landingpad { ptr, i32 }
          cleanup
  %34 = extractvalue { ptr, i32 } %33, 0
  store ptr %34, ptr %5, align 8
  %35 = extractvalue { ptr, i32 } %33, 1
  store i32 %35, ptr %6, align 4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %61

36:                                               ; preds = %10
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %57, %36
  %38 = load i32, ptr %3, align 4, !tbaa !9
  %39 = icmp ult i32 %38, 16
  br i1 %39, label %40, label %60

40:                                               ; preds = %37
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code3ldxERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %41, ptr noundef nonnull align 8 dereferenceable(24) %4, i8 noundef zeroext -1)
          to label %42 unwind label %32

42:                                               ; preds = %40
  %43 = load ptr, ptr %2, align 8, !tbaa !5
  %44 = load i32, ptr %3, align 4, !tbaa !9
  %45 = mul i32 %44, 2
  %46 = add i32 %45, 2
  %47 = trunc i32 %46 to i8
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %43, ptr noundef nonnull align 8 dereferenceable(24) %4, i8 noundef zeroext %47)
          to label %48 unwind label %32

48:                                               ; preds = %42
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %49, ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef 5)
          to label %50 unwind label %32

50:                                               ; preds = %48
  %51 = load ptr, ptr %2, align 8, !tbaa !5
  %52 = load i32, ptr %3, align 4, !tbaa !9
  %53 = mul i32 %52, 2
  %54 = add i32 %53, 34
  %55 = trunc i32 %54 to i8
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %51, ptr noundef nonnull align 8 dereferenceable(24) %4, i8 noundef zeroext %55)
          to label %56 unwind label %32

56:                                               ; preds = %50
  br label %57

57:                                               ; preds = %56
  %58 = load i32, ptr %3, align 4, !tbaa !9
  %59 = add i32 %58, 2
  store i32 %59, ptr %3, align 4, !tbaa !9
  br label %37, !llvm.loop !13

60:                                               ; preds = %37
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  ret void

61:                                               ; preds = %32
  %62 = load ptr, ptr %5, align 8
  %63 = load i32, ptr %6, align 4
  %64 = insertvalue { ptr, i32 } poison, ptr %62, 0
  %65 = insertvalue { ptr, i32 } %64, i32 %63, 1
  resume { ptr, i32 } %65
}

declare void @_ZN4Code18prologue_setup_keyEPKcj(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code7setFlagENS_4FlagE(ptr noundef nonnull align 8 dereferenceable(200), i32 noundef) #1 align 2

declare void @_ZN4Code11allocateRegEj(ptr dead_on_unwind writable sret(%class.Reg) align 8, ptr noundef nonnull align 8 dereferenceable(200), i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code3ldxERK3Regh(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), i8 noundef zeroext) #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), i8 noundef zeroext) #1 align 2

declare void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !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"

%class.Reg = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [19 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: mustprogress uwtable
define dso_local void @_Z22gen_saturnin_setup_keyR4Code(ptr noundef nonnull align 8 dereferenceable(200) %0) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %2 = alloca %class.Reg, align 8
  tail call void @_ZN4Code18prologue_setup_keyEPKcj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull @.str, i32 noundef 0)
  tail call void @_ZN4Code7setFlagENS_4FlagE(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 32)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #4
  call void @_ZN4Code11allocateRegEj(ptr dead_on_unwind nonnull writable sret(%class.Reg) align 8 %2, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 2)
  invoke void @_ZN4Code3ldxERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext -1)
          to label %3 unwind label %.loopexit.split-lp

3:                                                ; preds = %1
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 0)
          to label %4 unwind label %.loopexit.split-lp

4:                                                ; preds = %3
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 5)
          to label %5 unwind label %.loopexit.split-lp

5:                                                ; preds = %4
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 32)
          to label %6 unwind label %.loopexit.split-lp

6:                                                ; preds = %5
  invoke void @_ZN4Code3ldxERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext -1)
          to label %7 unwind label %.loopexit.split-lp

7:                                                ; preds = %6
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 4)
          to label %8 unwind label %.loopexit.split-lp

8:                                                ; preds = %7
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 5)
          to label %9 unwind label %.loopexit.split-lp

9:                                                ; preds = %8
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 36)
          to label %10 unwind label %.loopexit.split-lp

10:                                               ; preds = %9
  invoke void @_ZN4Code3ldxERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext -1)
          to label %11 unwind label %.loopexit.split-lp

11:                                               ; preds = %10
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 8)
          to label %12 unwind label %.loopexit.split-lp

12:                                               ; preds = %11
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 5)
          to label %13 unwind label %.loopexit.split-lp

13:                                               ; preds = %12
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 40)
          to label %14 unwind label %.loopexit.split-lp

14:                                               ; preds = %13
  invoke void @_ZN4Code3ldxERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext -1)
          to label %15 unwind label %.loopexit.split-lp

15:                                               ; preds = %14
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 12)
          to label %16 unwind label %.loopexit.split-lp

16:                                               ; preds = %15
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 5)
          to label %17 unwind label %.loopexit.split-lp

17:                                               ; preds = %16
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 44)
          to label %18 unwind label %.loopexit.split-lp

18:                                               ; preds = %17
  invoke void @_ZN4Code3ldxERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext -1)
          to label %19 unwind label %.loopexit.split-lp

19:                                               ; preds = %18
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 16)
          to label %20 unwind label %.loopexit.split-lp

20:                                               ; preds = %19
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 5)
          to label %21 unwind label %.loopexit.split-lp

21:                                               ; preds = %20
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 48)
          to label %22 unwind label %.loopexit.split-lp

22:                                               ; preds = %21
  invoke void @_ZN4Code3ldxERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext -1)
          to label %23 unwind label %.loopexit.split-lp

23:                                               ; preds = %22
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 20)
          to label %24 unwind label %.loopexit.split-lp

24:                                               ; preds = %23
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 5)
          to label %25 unwind label %.loopexit.split-lp

25:                                               ; preds = %24
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 52)
          to label %26 unwind label %.loopexit.split-lp

26:                                               ; preds = %25
  invoke void @_ZN4Code3ldxERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext -1)
          to label %27 unwind label %.loopexit.split-lp

27:                                               ; preds = %26
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 24)
          to label %28 unwind label %.loopexit.split-lp

28:                                               ; preds = %27
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 5)
          to label %29 unwind label %.loopexit.split-lp

29:                                               ; preds = %28
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 56)
          to label %30 unwind label %.loopexit.split-lp

30:                                               ; preds = %29
  invoke void @_ZN4Code3ldxERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext -1)
          to label %31 unwind label %.loopexit.split-lp

31:                                               ; preds = %30
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 28)
          to label %32 unwind label %.loopexit.split-lp

32:                                               ; preds = %31
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 5)
          to label %33 unwind label %.loopexit.split-lp

33:                                               ; preds = %32
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 60)
          to label %.preheader.preheader unwind label %.loopexit.split-lp

.preheader.preheader:                             ; preds = %33
  invoke void @_ZN4Code3ldxERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext -1)
          to label %35 unwind label %.loopexit

.loopexit:                                        ; preds = %58, %57, %56, %.preheader.7, %55, %54, %53, %.preheader.6, %52, %51, %50, %.preheader.5, %49, %48, %47, %.preheader.4, %46, %45, %44, %.preheader.3, %43, %42, %41, %.preheader.2, %40, %39, %38, %.preheader.1, %.preheader.preheader, %35, %36, %37
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %34

.loopexit.split-lp:                               ; preds = %33, %32, %31, %30, %29, %28, %27, %26, %25, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %1, %3, %4, %5
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %34

34:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #4
  resume { ptr, i32 } %lpad.phi

35:                                               ; preds = %.preheader.preheader
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 2)
          to label %36 unwind label %.loopexit

36:                                               ; preds = %35
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 5)
          to label %37 unwind label %.loopexit

37:                                               ; preds = %36
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 34)
          to label %.preheader.1 unwind label %.loopexit

.preheader.1:                                     ; preds = %37
  invoke void @_ZN4Code3ldxERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext -1)
          to label %38 unwind label %.loopexit

38:                                               ; preds = %.preheader.1
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 6)
          to label %39 unwind label %.loopexit

39:                                               ; preds = %38
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 5)
          to label %40 unwind label %.loopexit

40:                                               ; preds = %39
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 38)
          to label %.preheader.2 unwind label %.loopexit

.preheader.2:                                     ; preds = %40
  invoke void @_ZN4Code3ldxERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext -1)
          to label %41 unwind label %.loopexit

41:                                               ; preds = %.preheader.2
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 10)
          to label %42 unwind label %.loopexit

42:                                               ; preds = %41
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 5)
          to label %43 unwind label %.loopexit

43:                                               ; preds = %42
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 42)
          to label %.preheader.3 unwind label %.loopexit

.preheader.3:                                     ; preds = %43
  invoke void @_ZN4Code3ldxERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext -1)
          to label %44 unwind label %.loopexit

44:                                               ; preds = %.preheader.3
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 14)
          to label %45 unwind label %.loopexit

45:                                               ; preds = %44
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 5)
          to label %46 unwind label %.loopexit

46:                                               ; preds = %45
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 46)
          to label %.preheader.4 unwind label %.loopexit

.preheader.4:                                     ; preds = %46
  invoke void @_ZN4Code3ldxERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext -1)
          to label %47 unwind label %.loopexit

47:                                               ; preds = %.preheader.4
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 18)
          to label %48 unwind label %.loopexit

48:                                               ; preds = %47
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 5)
          to label %49 unwind label %.loopexit

49:                                               ; preds = %48
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 50)
          to label %.preheader.5 unwind label %.loopexit

.preheader.5:                                     ; preds = %49
  invoke void @_ZN4Code3ldxERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext -1)
          to label %50 unwind label %.loopexit

50:                                               ; preds = %.preheader.5
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 22)
          to label %51 unwind label %.loopexit

51:                                               ; preds = %50
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 5)
          to label %52 unwind label %.loopexit

52:                                               ; preds = %51
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 54)
          to label %.preheader.6 unwind label %.loopexit

.preheader.6:                                     ; preds = %52
  invoke void @_ZN4Code3ldxERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext -1)
          to label %53 unwind label %.loopexit

53:                                               ; preds = %.preheader.6
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 26)
          to label %54 unwind label %.loopexit

54:                                               ; preds = %53
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 5)
          to label %55 unwind label %.loopexit

55:                                               ; preds = %54
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 58)
          to label %.preheader.7 unwind label %.loopexit

.preheader.7:                                     ; preds = %55
  invoke void @_ZN4Code3ldxERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext -1)
          to label %56 unwind label %.loopexit

56:                                               ; preds = %.preheader.7
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 30)
          to label %57 unwind label %.loopexit

57:                                               ; preds = %56
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 5)
          to label %58 unwind label %.loopexit

58:                                               ; preds = %57
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, i8 noundef zeroext 62)
          to label %59 unwind label %.loopexit

59:                                               ; preds = %58
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #4
  ret void
}

declare void @_ZN4Code18prologue_setup_keyEPKcj(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code7setFlagENS_4FlagE(ptr noundef nonnull align 8 dereferenceable(200), i32 noundef) local_unnamed_addr #1 align 2

declare void @_ZN4Code11allocateRegEj(ptr dead_on_unwind writable sret(%class.Reg) align 8, ptr noundef nonnull align 8 dereferenceable(200), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code3ldxERK3Regh(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), i8 noundef zeroext) local_unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), i8 noundef zeroext) local_unnamed_addr #1 align 2

declare void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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


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