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

; 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.5" }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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 }

@_ZL11duplex_bits = external hidden constant [33 x i16], align 16
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@_ZL13duplex_bits_2 = external hidden constant [32 x i16], align 16

declare void @_ZN4Code20prologue_permutationEPKcj(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef, i32 noundef) #0

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

declare void @_ZN4Code6logxorERK3RegS2_(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z24gen_subterranean_extractR4Code(ptr noundef nonnull align 8 dereferenceable(200) %0) #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %class.Reg, align 8
  %4 = alloca %class.Reg, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca [257 x i16], align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %class.Reg, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN4Code20prologue_permutationEPKcj(ptr noundef nonnull align 8 dereferenceable(200) %15, ptr noundef @.str.3, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #4
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN4Code12return_valueEj(ptr dead_on_unwind writable sret(%class.Reg) align 8 %3, ptr noundef nonnull align 8 dereferenceable(200) %16, i32 noundef 4)
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #4
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code11allocateRegEj(ptr dead_on_unwind writable sret(%class.Reg) align 8 %4, ptr noundef nonnull align 8 dereferenceable(200) %17, i32 noundef 4)
          to label %18 unwind label %25

18:                                               ; preds = %1
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code7setFlagENS_4FlagE(ptr noundef nonnull align 8 dereferenceable(200) %19, i32 noundef 32)
          to label %20 unwind label %29

20:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 514, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %37, %20
  %22 = load i32, ptr %8, align 4, !tbaa !9
  %23 = icmp slt i32 %22, 257
  br i1 %23, label %33, label %24

24:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %40

25:                                               ; preds = %1
  %26 = landingpad { ptr, i32 }
          cleanup
  %27 = extractvalue { ptr, i32 } %26, 0
  store ptr %27, ptr %5, align 8
  %28 = extractvalue { ptr, i32 } %26, 1
  store i32 %28, ptr %6, align 4
  br label %135

29:                                               ; preds = %18
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %5, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %6, align 4
  br label %134

33:                                               ; preds = %21
  %34 = load i32, ptr %8, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [257 x i16], ptr %7, i64 0, i64 %35
  store i16 -1, ptr %36, align 2, !tbaa !11
  br label %37

37:                                               ; preds = %33
  %38 = load i32, ptr %8, align 4, !tbaa !9
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %8, align 4, !tbaa !9
  br label %21, !llvm.loop !13

40:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %63, %40
  %42 = load i32, ptr %9, align 4, !tbaa !9
  %43 = icmp slt i32 %42, 32
  br i1 %43, label %45, label %44

44:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %66

45:                                               ; preds = %41
  %46 = load i32, ptr %9, align 4, !tbaa !9
  %47 = trunc i32 %46 to i16
  %48 = load i32, ptr %9, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [33 x i16], ptr @_ZL11duplex_bits, i64 0, i64 %49
  %51 = load i16, ptr %50, align 2, !tbaa !11
  %52 = zext i16 %51 to i64
  %53 = getelementptr inbounds [257 x i16], ptr %7, i64 0, i64 %52
  store i16 %47, ptr %53, align 2, !tbaa !11
  %54 = load i32, ptr %9, align 4, !tbaa !9
  %55 = add nsw i32 32, %54
  %56 = trunc i32 %55 to i16
  %57 = load i32, ptr %9, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [32 x i16], ptr @_ZL13duplex_bits_2, i64 0, i64 %58
  %60 = load i16, ptr %59, align 2, !tbaa !11
  %61 = zext i16 %60 to i64
  %62 = getelementptr inbounds [257 x i16], ptr %7, i64 0, i64 %61
  store i16 %56, ptr %62, align 2, !tbaa !11
  br label %63

63:                                               ; preds = %45
  %64 = load i32, ptr %9, align 4, !tbaa !9
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %9, align 4, !tbaa !9
  br label %41, !llvm.loop !15

66:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #4
  %67 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code11allocateRegEj(ptr dead_on_unwind writable sret(%class.Reg) align 8 %10, ptr noundef nonnull align 8 dereferenceable(200) %67, i32 noundef 1)
          to label %68 unwind label %73

68:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 -1, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %122, %68
  %70 = load i32, ptr %12, align 4, !tbaa !9
  %71 = icmp slt i32 %70, 257
  br i1 %71, label %77, label %72

72:                                               ; preds = %69
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %125

73:                                               ; preds = %66
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %5, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %6, align 4
  br label %133

77:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %78 = load i32, ptr %12, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [257 x i16], ptr %7, i64 0, i64 %79
  %81 = load i16, ptr %80, align 2, !tbaa !11
  %82 = sext i16 %81 to i32
  store i32 %82, ptr %14, align 4, !tbaa !9
  %83 = load i32, ptr %14, align 4, !tbaa !9
  %84 = icmp slt i32 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %77
  store i32 10, ptr %13, align 4
  br label %119

86:                                               ; preds = %77
  %87 = load i32, ptr %11, align 4, !tbaa !9
  %88 = load i32, ptr %12, align 4, !tbaa !9
  %89 = sdiv i32 %88, 8
  %90 = icmp ne i32 %87, %89
  br i1 %90, label %91, label %102

91:                                               ; preds = %86
  %92 = load i32, ptr %12, align 4, !tbaa !9
  %93 = sdiv i32 %92, 8
  store i32 %93, ptr %11, align 4, !tbaa !9
  %94 = load ptr, ptr %2, align 8, !tbaa !5
  %95 = load i32, ptr %11, align 4, !tbaa !9
  %96 = trunc i32 %95 to i8
  invoke void @_ZN4Code3ldzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %94, ptr noundef nonnull align 8 dereferenceable(24) %10, i8 noundef zeroext %96)
          to label %97 unwind label %98

97:                                               ; preds = %91
  br label %102

98:                                               ; preds = %113, %109, %102, %91
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %5, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %132

102:                                              ; preds = %97, %86
  %103 = load ptr, ptr %2, align 8, !tbaa !5
  %104 = load i32, ptr %12, align 4, !tbaa !9
  %105 = srem i32 %104, 8
  invoke void @_ZN4Code7bit_getERK3Regi(ptr noundef nonnull align 8 dereferenceable(200) %103, ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef %105)
          to label %106 unwind label %98

106:                                              ; preds = %102
  %107 = load i32, ptr %14, align 4, !tbaa !9
  %108 = icmp slt i32 %107, 32
  br i1 %108, label %109, label %113

109:                                              ; preds = %106
  %110 = load ptr, ptr %2, align 8, !tbaa !5
  %111 = load i32, ptr %14, align 4, !tbaa !9
  invoke void @_ZN4Code7bit_putERK3Regi(ptr noundef nonnull align 8 dereferenceable(200) %110, ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef %111)
          to label %112 unwind label %98

112:                                              ; preds = %109
  br label %118

113:                                              ; preds = %106
  %114 = load ptr, ptr %2, align 8, !tbaa !5
  %115 = load i32, ptr %14, align 4, !tbaa !9
  %116 = sub nsw i32 %115, 32
  invoke void @_ZN4Code7bit_putERK3Regi(ptr noundef nonnull align 8 dereferenceable(200) %114, ptr noundef nonnull align 8 dereferenceable(24) %4, i32 noundef %116)
          to label %117 unwind label %98

117:                                              ; preds = %113
  br label %118

118:                                              ; preds = %117, %112
  store i32 0, ptr %13, align 4
  br label %119

119:                                              ; preds = %118, %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  %120 = load i32, ptr %13, align 4
  switch i32 %120, label %141 [
    i32 0, label %121
    i32 10, label %122
  ]

121:                                              ; preds = %119
  br label %122

122:                                              ; preds = %121, %119
  %123 = load i32, ptr %12, align 4, !tbaa !9
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %12, align 4, !tbaa !9
  br label %69, !llvm.loop !16

125:                                              ; preds = %72
  %126 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code6logxorERK3RegS2_(ptr noundef nonnull align 8 dereferenceable(200) %126, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %127 unwind label %128

127:                                              ; preds = %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 514, ptr %7) #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 @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #4
  ret void

128:                                              ; preds = %125
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %5, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %6, align 4
  br label %132

132:                                              ; preds = %128, %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  br label %133

133:                                              ; preds = %132, %73
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 514, ptr %7) #4
  br label %134

134:                                              ; preds = %133, %29
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  br label %135

135:                                              ; preds = %134, %25
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #4
  br label %136

136:                                              ; preds = %135
  %137 = load ptr, ptr %5, align 8
  %138 = load i32, ptr %6, align 4
  %139 = insertvalue { ptr, i32 } poison, ptr %137, 0
  %140 = insertvalue { ptr, i32 } %139, i32 %138, 1
  resume { ptr, i32 } %140

141:                                              ; preds = %119
  unreachable
}

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

attributes #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 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 = { 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 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


; 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.5" }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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 }

@_ZL11duplex_bits = external hidden local_unnamed_addr constant [33 x i16], align 16
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@_ZL13duplex_bits_2 = external hidden local_unnamed_addr constant [32 x i16], align 16

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

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

declare i32 @__gxx_personality_v0(...)

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 #0

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

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

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

declare void @_ZN4Code6logxorERK3RegS2_(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z24gen_subterranean_extractR4Code(ptr noundef nonnull align 8 dereferenceable(200) %0) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %class.Reg, align 8
  %3 = alloca %class.Reg, align 8
  %4 = alloca [257 x i16], align 16
  %5 = alloca %class.Reg, align 8
  tail call void @_ZN4Code20prologue_permutationEPKcj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull @.str.3, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #5
  call void @_ZN4Code12return_valueEj(ptr dead_on_unwind nonnull writable sret(%class.Reg) align 8 %2, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 4)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  invoke void @_ZN4Code11allocateRegEj(ptr dead_on_unwind nonnull writable sret(%class.Reg) align 8 %3, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 4)
          to label %6 unwind label %199

6:                                                ; preds = %1
  invoke void @_ZN4Code7setFlagENS_4FlagE(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 32)
          to label %.preheader48.preheader unwind label %201

.preheader48.preheader:                           ; preds = %6
  call void @llvm.lifetime.start.p0(i64 514, ptr nonnull %4) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(514) %4, i8 -1, i64 514, i1 false), !tbaa !5
  %7 = load i16, ptr @_ZL11duplex_bits, align 16, !tbaa !5
  %8 = zext i16 %7 to i64
  %9 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %8
  store i16 0, ptr %9, align 2, !tbaa !5
  %10 = load i16, ptr @_ZL13duplex_bits_2, align 16, !tbaa !5
  %11 = zext i16 %10 to i64
  %12 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %11
  store i16 32, ptr %12, align 2, !tbaa !5
  %13 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 2), align 2, !tbaa !5
  %14 = zext i16 %13 to i64
  %15 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %14
  store i16 1, ptr %15, align 2, !tbaa !5
  %16 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 2), align 2, !tbaa !5
  %17 = zext i16 %16 to i64
  %18 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %17
  store i16 33, ptr %18, align 2, !tbaa !5
  %19 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 4), align 4, !tbaa !5
  %20 = zext i16 %19 to i64
  %21 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %20
  store i16 2, ptr %21, align 2, !tbaa !5
  %22 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 4), align 4, !tbaa !5
  %23 = zext i16 %22 to i64
  %24 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %23
  store i16 34, ptr %24, align 2, !tbaa !5
  %25 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 6), align 2, !tbaa !5
  %26 = zext i16 %25 to i64
  %27 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %26
  store i16 3, ptr %27, align 2, !tbaa !5
  %28 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 6), align 2, !tbaa !5
  %29 = zext i16 %28 to i64
  %30 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %29
  store i16 35, ptr %30, align 2, !tbaa !5
  %31 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 8), align 8, !tbaa !5
  %32 = zext i16 %31 to i64
  %33 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %32
  store i16 4, ptr %33, align 2, !tbaa !5
  %34 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 8), align 8, !tbaa !5
  %35 = zext i16 %34 to i64
  %36 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %35
  store i16 36, ptr %36, align 2, !tbaa !5
  %37 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 10), align 2, !tbaa !5
  %38 = zext i16 %37 to i64
  %39 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %38
  store i16 5, ptr %39, align 2, !tbaa !5
  %40 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 10), align 2, !tbaa !5
  %41 = zext i16 %40 to i64
  %42 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %41
  store i16 37, ptr %42, align 2, !tbaa !5
  %43 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 12), align 4, !tbaa !5
  %44 = zext i16 %43 to i64
  %45 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %44
  store i16 6, ptr %45, align 2, !tbaa !5
  %46 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 12), align 4, !tbaa !5
  %47 = zext i16 %46 to i64
  %48 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %47
  store i16 38, ptr %48, align 2, !tbaa !5
  %49 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 14), align 2, !tbaa !5
  %50 = zext i16 %49 to i64
  %51 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %50
  store i16 7, ptr %51, align 2, !tbaa !5
  %52 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 14), align 2, !tbaa !5
  %53 = zext i16 %52 to i64
  %54 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %53
  store i16 39, ptr %54, align 2, !tbaa !5
  %55 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 16), align 16, !tbaa !5
  %56 = zext i16 %55 to i64
  %57 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %56
  store i16 8, ptr %57, align 2, !tbaa !5
  %58 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 16), align 16, !tbaa !5
  %59 = zext i16 %58 to i64
  %60 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %59
  store i16 40, ptr %60, align 2, !tbaa !5
  %61 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 18), align 2, !tbaa !5
  %62 = zext i16 %61 to i64
  %63 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %62
  store i16 9, ptr %63, align 2, !tbaa !5
  %64 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 18), align 2, !tbaa !5
  %65 = zext i16 %64 to i64
  %66 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %65
  store i16 41, ptr %66, align 2, !tbaa !5
  %67 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 20), align 4, !tbaa !5
  %68 = zext i16 %67 to i64
  %69 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %68
  store i16 10, ptr %69, align 2, !tbaa !5
  %70 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 20), align 4, !tbaa !5
  %71 = zext i16 %70 to i64
  %72 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %71
  store i16 42, ptr %72, align 2, !tbaa !5
  %73 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 22), align 2, !tbaa !5
  %74 = zext i16 %73 to i64
  %75 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %74
  store i16 11, ptr %75, align 2, !tbaa !5
  %76 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 22), align 2, !tbaa !5
  %77 = zext i16 %76 to i64
  %78 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %77
  store i16 43, ptr %78, align 2, !tbaa !5
  %79 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 24), align 8, !tbaa !5
  %80 = zext i16 %79 to i64
  %81 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %80
  store i16 12, ptr %81, align 2, !tbaa !5
  %82 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 24), align 8, !tbaa !5
  %83 = zext i16 %82 to i64
  %84 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %83
  store i16 44, ptr %84, align 2, !tbaa !5
  %85 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 26), align 2, !tbaa !5
  %86 = zext i16 %85 to i64
  %87 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %86
  store i16 13, ptr %87, align 2, !tbaa !5
  %88 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 26), align 2, !tbaa !5
  %89 = zext i16 %88 to i64
  %90 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %89
  store i16 45, ptr %90, align 2, !tbaa !5
  %91 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 28), align 4, !tbaa !5
  %92 = zext i16 %91 to i64
  %93 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %92
  store i16 14, ptr %93, align 2, !tbaa !5
  %94 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 28), align 4, !tbaa !5
  %95 = zext i16 %94 to i64
  %96 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %95
  store i16 46, ptr %96, align 2, !tbaa !5
  %97 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 30), align 2, !tbaa !5
  %98 = zext i16 %97 to i64
  %99 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %98
  store i16 15, ptr %99, align 2, !tbaa !5
  %100 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 30), align 2, !tbaa !5
  %101 = zext i16 %100 to i64
  %102 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %101
  store i16 47, ptr %102, align 2, !tbaa !5
  %103 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 32), align 16, !tbaa !5
  %104 = zext i16 %103 to i64
  %105 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %104
  store i16 16, ptr %105, align 2, !tbaa !5
  %106 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 32), align 16, !tbaa !5
  %107 = zext i16 %106 to i64
  %108 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %107
  store i16 48, ptr %108, align 2, !tbaa !5
  %109 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 34), align 2, !tbaa !5
  %110 = zext i16 %109 to i64
  %111 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %110
  store i16 17, ptr %111, align 2, !tbaa !5
  %112 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 34), align 2, !tbaa !5
  %113 = zext i16 %112 to i64
  %114 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %113
  store i16 49, ptr %114, align 2, !tbaa !5
  %115 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 36), align 4, !tbaa !5
  %116 = zext i16 %115 to i64
  %117 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %116
  store i16 18, ptr %117, align 2, !tbaa !5
  %118 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 36), align 4, !tbaa !5
  %119 = zext i16 %118 to i64
  %120 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %119
  store i16 50, ptr %120, align 2, !tbaa !5
  %121 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 38), align 2, !tbaa !5
  %122 = zext i16 %121 to i64
  %123 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %122
  store i16 19, ptr %123, align 2, !tbaa !5
  %124 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 38), align 2, !tbaa !5
  %125 = zext i16 %124 to i64
  %126 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %125
  store i16 51, ptr %126, align 2, !tbaa !5
  %127 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 40), align 8, !tbaa !5
  %128 = zext i16 %127 to i64
  %129 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %128
  store i16 20, ptr %129, align 2, !tbaa !5
  %130 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 40), align 8, !tbaa !5
  %131 = zext i16 %130 to i64
  %132 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %131
  store i16 52, ptr %132, align 2, !tbaa !5
  %133 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 42), align 2, !tbaa !5
  %134 = zext i16 %133 to i64
  %135 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %134
  store i16 21, ptr %135, align 2, !tbaa !5
  %136 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 42), align 2, !tbaa !5
  %137 = zext i16 %136 to i64
  %138 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %137
  store i16 53, ptr %138, align 2, !tbaa !5
  %139 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 44), align 4, !tbaa !5
  %140 = zext i16 %139 to i64
  %141 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %140
  store i16 22, ptr %141, align 2, !tbaa !5
  %142 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 44), align 4, !tbaa !5
  %143 = zext i16 %142 to i64
  %144 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %143
  store i16 54, ptr %144, align 2, !tbaa !5
  %145 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 46), align 2, !tbaa !5
  %146 = zext i16 %145 to i64
  %147 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %146
  store i16 23, ptr %147, align 2, !tbaa !5
  %148 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 46), align 2, !tbaa !5
  %149 = zext i16 %148 to i64
  %150 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %149
  store i16 55, ptr %150, align 2, !tbaa !5
  %151 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 48), align 16, !tbaa !5
  %152 = zext i16 %151 to i64
  %153 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %152
  store i16 24, ptr %153, align 2, !tbaa !5
  %154 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 48), align 16, !tbaa !5
  %155 = zext i16 %154 to i64
  %156 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %155
  store i16 56, ptr %156, align 2, !tbaa !5
  %157 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 50), align 2, !tbaa !5
  %158 = zext i16 %157 to i64
  %159 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %158
  store i16 25, ptr %159, align 2, !tbaa !5
  %160 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 50), align 2, !tbaa !5
  %161 = zext i16 %160 to i64
  %162 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %161
  store i16 57, ptr %162, align 2, !tbaa !5
  %163 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 52), align 4, !tbaa !5
  %164 = zext i16 %163 to i64
  %165 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %164
  store i16 26, ptr %165, align 2, !tbaa !5
  %166 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 52), align 4, !tbaa !5
  %167 = zext i16 %166 to i64
  %168 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %167
  store i16 58, ptr %168, align 2, !tbaa !5
  %169 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 54), align 2, !tbaa !5
  %170 = zext i16 %169 to i64
  %171 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %170
  store i16 27, ptr %171, align 2, !tbaa !5
  %172 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 54), align 2, !tbaa !5
  %173 = zext i16 %172 to i64
  %174 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %173
  store i16 59, ptr %174, align 2, !tbaa !5
  %175 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 56), align 8, !tbaa !5
  %176 = zext i16 %175 to i64
  %177 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %176
  store i16 28, ptr %177, align 2, !tbaa !5
  %178 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 56), align 8, !tbaa !5
  %179 = zext i16 %178 to i64
  %180 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %179
  store i16 60, ptr %180, align 2, !tbaa !5
  %181 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 58), align 2, !tbaa !5
  %182 = zext i16 %181 to i64
  %183 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %182
  store i16 29, ptr %183, align 2, !tbaa !5
  %184 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 58), align 2, !tbaa !5
  %185 = zext i16 %184 to i64
  %186 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %185
  store i16 61, ptr %186, align 2, !tbaa !5
  %187 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 60), align 4, !tbaa !5
  %188 = zext i16 %187 to i64
  %189 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %188
  store i16 30, ptr %189, align 2, !tbaa !5
  %190 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 60), align 4, !tbaa !5
  %191 = zext i16 %190 to i64
  %192 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %191
  store i16 62, ptr %192, align 2, !tbaa !5
  %193 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL11duplex_bits, i64 62), align 2, !tbaa !5
  %194 = zext i16 %193 to i64
  %195 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %194
  store i16 31, ptr %195, align 2, !tbaa !5
  %196 = load i16, ptr getelementptr inbounds (i8, ptr @_ZL13duplex_bits_2, i64 62), align 2, !tbaa !5
  %197 = zext i16 %196 to i64
  %198 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %197
  store i16 63, ptr %198, align 2, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  invoke void @_ZN4Code11allocateRegEj(ptr dead_on_unwind nonnull writable sret(%class.Reg) align 8 %5, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 1)
          to label %.preheader unwind label %204

199:                                              ; preds = %1
  %200 = landingpad { ptr, i32 }
          cleanup
  br label %230

201:                                              ; preds = %6
  %202 = landingpad { ptr, i32 }
          cleanup
  br label %229

203:                                              ; preds = %223
  invoke void @_ZN4Code6logxorERK3RegS2_(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %224 unwind label %225

204:                                              ; preds = %.preheader48.preheader
  %205 = landingpad { ptr, i32 }
          cleanup
  br label %228

.preheader:                                       ; preds = %.preheader48.preheader, %223
  %indvars.iv = phi i64 [ %indvars.iv.next, %223 ], [ 0, %.preheader48.preheader ]
  %.03351 = phi i32 [ %.235, %223 ], [ -1, %.preheader48.preheader ]
  %206 = getelementptr inbounds [257 x i16], ptr %4, i64 0, i64 %indvars.iv
  %207 = load i16, ptr %206, align 2, !tbaa !5
  %208 = sext i16 %207 to i32
  %209 = icmp slt i16 %207, 0
  br i1 %209, label %223, label %210

210:                                              ; preds = %.preheader
  %211 = trunc nuw nsw i64 %indvars.iv to i32
  %212 = lshr i32 %211, 3
  %.not = icmp eq i32 %.03351, %212
  br i1 %.not, label %217, label %213

213:                                              ; preds = %210
  %214 = trunc nuw i32 %212 to i8
  invoke void @_ZN4Code3ldzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %5, i8 noundef zeroext %214)
          to label %217 unwind label %215

215:                                              ; preds = %.invoke, %217, %213
  %216 = landingpad { ptr, i32 }
          cleanup
  br label %227

217:                                              ; preds = %213, %210
  %.134 = phi i32 [ %212, %213 ], [ %.03351, %210 ]
  %218 = and i32 %211, 7
  invoke void @_ZN4Code7bit_getERK3Regi(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef %218)
          to label %.invoke unwind label %215

.invoke:                                          ; preds = %217
  %219 = icmp ult i16 %207, 32
  %220 = add nsw i32 %208, -32
  %221 = select i1 %219, ptr %2, ptr %3
  %222 = select i1 %219, i32 %208, i32 %220
  invoke void @_ZN4Code7bit_putERK3Regi(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %221, i32 noundef %222)
          to label %223 unwind label %215

223:                                              ; preds = %.invoke, %.preheader
  %.235 = phi i32 [ %.03351, %.preheader ], [ %.134, %.invoke ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 257
  br i1 %exitcond.not, label %203, label %.preheader, !llvm.loop !9

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

225:                                              ; preds = %203
  %226 = landingpad { ptr, i32 }
          cleanup
  br label %227

227:                                              ; preds = %225, %215
  %.pn = phi { ptr, i32 } [ %216, %215 ], [ %226, %225 ]
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  br label %228

228:                                              ; preds = %227, %204
  %.pn.pn = phi { ptr, i32 } [ %.pn, %227 ], [ %205, %204 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 514, ptr nonnull %4) #5
  br label %229

229:                                              ; preds = %228, %201
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %228 ], [ %202, %201 ]
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  br label %230

230:                                              ; preds = %229, %199
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %229 ], [ %200, %199 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  resume { ptr, i32 } %.pn.pn.pn.pn
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

attributes #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 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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !6, i64 0}
!6 = !{!"short", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass