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

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

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@_ZL12photon256_rc = external hidden constant [12 x i32], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z25gen_photon256_permutationR4Code(ptr noundef nonnull align 8 dereferenceable(200) %0) #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca %class.Reg, align 8
  %5 = alloca %class.Reg, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %class.Reg, align 8
  %9 = alloca %class.Reg, align 8
  %10 = alloca %class.Reg, align 8
  %11 = alloca %class.Reg, align 8
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  %15 = alloca %class.Reg, align 8
  %16 = alloca %class.Reg, align 8
  %17 = alloca %class.Reg, align 8
  %18 = alloca %class.Reg, align 8
  %19 = alloca %class.Reg, align 8
  %20 = alloca %class.Reg, align 8
  %21 = alloca %class.Reg, align 8
  %22 = alloca %class.Reg, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN4Code20prologue_permutationEPKcj(ptr noundef nonnull align 8 dereferenceable(200) %23, ptr noundef @.str, i32 noundef 32)
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #4
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  call void @_ZN4Code15allocateHighRegEj(ptr dead_on_unwind writable sret(%class.Reg) align 8 %4, ptr noundef nonnull align 8 dereferenceable(200) %24, i32 noundef 4)
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #4
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code15allocateHighRegEj(ptr dead_on_unwind writable sret(%class.Reg) align 8 %5, ptr noundef nonnull align 8 dereferenceable(200) %25, i32 noundef 4)
          to label %26 unwind label %51

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

28:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #4
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code11allocateRegEj(ptr dead_on_unwind writable sret(%class.Reg) align 8 %9, ptr noundef nonnull align 8 dereferenceable(200) %29, i32 noundef 4)
          to label %30 unwind label %59

30:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #4
  %31 = 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) %31, i32 noundef 4)
          to label %32 unwind label %63

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

34:                                               ; preds = %32
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZL23photon256_to_sliced_128R4CodeiRK3RegS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200) %35, i32 noundef 16, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %36 unwind label %71

36:                                               ; preds = %34
  %37 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %37, ptr noundef nonnull align 8 dereferenceable(24) %8, i8 noundef zeroext 16)
          to label %38 unwind label %71

38:                                               ; preds = %36
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %39, ptr noundef nonnull align 8 dereferenceable(24) %9, i8 noundef zeroext 20)
          to label %40 unwind label %71

40:                                               ; preds = %38
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %41, ptr noundef nonnull align 8 dereferenceable(24) %10, i8 noundef zeroext 24)
          to label %42 unwind label %71

42:                                               ; preds = %40
  %43 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %43, ptr noundef nonnull align 8 dereferenceable(24) %11, i8 noundef zeroext 28)
          to label %44 unwind label %71

44:                                               ; preds = %42
  %45 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZL23photon256_to_sliced_128R4CodeiRK3RegS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200) %45, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %46 unwind label %71

46:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  store i8 0, ptr %12, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #4
  store i8 0, ptr %13, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !10
  br label %47

47:                                               ; preds = %85, %46
  %48 = load i32, ptr %14, align 4, !tbaa !10
  %49 = icmp slt i32 %48, 12
  br i1 %49, label %75, label %50

50:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %92

51:                                               ; preds = %1
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %6, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %7, align 4
  br label %277

55:                                               ; preds = %26
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %6, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %7, align 4
  br label %276

59:                                               ; preds = %28
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %6, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %7, align 4
  br label %275

63:                                               ; preds = %30
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %6, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %7, align 4
  br label %274

67:                                               ; preds = %32
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %6, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %7, align 4
  br label %273

71:                                               ; preds = %44, %42, %40, %38, %36, %34
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %6, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %7, align 4
  br label %272

75:                                               ; preds = %47
  %76 = load ptr, ptr %2, align 8, !tbaa !5
  %77 = load i32, ptr %14, align 4, !tbaa !10
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [12 x i32], ptr @_ZL12photon256_rc, i64 0, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !10
  %81 = zext i32 %80 to i64
  invoke void @_ZN4Code4moveERK3Regy(ptr noundef nonnull align 8 dereferenceable(200) %76, ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %81)
          to label %82 unwind label %88

82:                                               ; preds = %75
  %83 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code4callERh(ptr noundef nonnull align 8 dereferenceable(200) %83, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %84 unwind label %88

84:                                               ; preds = %82
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %14, align 4, !tbaa !10
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %14, align 4, !tbaa !10
  br label %47, !llvm.loop !12

88:                                               ; preds = %82, %75
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %6, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %271

92:                                               ; preds = %50
  %93 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code3jmpERh(ptr noundef nonnull align 8 dereferenceable(200) %93, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %94 unwind label %132

94:                                               ; preds = %92
  %95 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code5labelERh(ptr noundef nonnull align 8 dereferenceable(200) %95, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %96 unwind label %132

96:                                               ; preds = %94
  %97 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZL18photon256_apply_rcR4CodeRK3RegS3_S3_S3_S3_S3_b(ptr noundef nonnull align 8 dereferenceable(200) %97, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, i1 noundef zeroext false)
          to label %98 unwind label %132

98:                                               ; preds = %96
  %99 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZL14photon256_sboxR4CodeRK3RegS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200) %99, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %100 unwind label %132

100:                                              ; preds = %98
  store i32 1, ptr %3, align 4, !tbaa !10
  br label %101

101:                                              ; preds = %129, %100
  %102 = load i32, ptr %3, align 4, !tbaa !10
  %103 = icmp slt i32 %102, 4
  br i1 %103, label %104, label %172

104:                                              ; preds = %101
  %105 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #4
  %106 = load i32, ptr %3, align 4, !tbaa !10
  %107 = trunc i32 %106 to i8
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %8, i8 noundef zeroext %107, i8 noundef zeroext 1)
          to label %108 unwind label %136

108:                                              ; preds = %104
  %109 = load i32, ptr %3, align 4, !tbaa !10
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %105, ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef %109)
          to label %110 unwind label %140

110:                                              ; preds = %108
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #4
  %111 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #4
  %112 = load i32, ptr %3, align 4, !tbaa !10
  %113 = trunc i32 %112 to i8
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %9, i8 noundef zeroext %113, i8 noundef zeroext 1)
          to label %114 unwind label %145

114:                                              ; preds = %110
  %115 = load i32, ptr %3, align 4, !tbaa !10
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %111, ptr noundef nonnull align 8 dereferenceable(24) %16, i32 noundef %115)
          to label %116 unwind label %149

116:                                              ; preds = %114
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #4
  %117 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #4
  %118 = load i32, ptr %3, align 4, !tbaa !10
  %119 = trunc i32 %118 to i8
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %10, i8 noundef zeroext %119, i8 noundef zeroext 1)
          to label %120 unwind label %154

120:                                              ; preds = %116
  %121 = load i32, ptr %3, align 4, !tbaa !10
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %117, ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef %121)
          to label %122 unwind label %158

122:                                              ; preds = %120
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #4
  %123 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #4
  %124 = load i32, ptr %3, align 4, !tbaa !10
  %125 = trunc i32 %124 to i8
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %11, i8 noundef zeroext %125, i8 noundef zeroext 1)
          to label %126 unwind label %163

126:                                              ; preds = %122
  %127 = load i32, ptr %3, align 4, !tbaa !10
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %123, ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef %127)
          to label %128 unwind label %167

128:                                              ; preds = %126
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #4
  br label %129

129:                                              ; preds = %128
  %130 = load i32, ptr %3, align 4, !tbaa !10
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %3, align 4, !tbaa !10
  br label %101, !llvm.loop !14

132:                                              ; preds = %268, %266, %264, %262, %260, %258, %256, %254, %180, %178, %176, %174, %172, %98, %96, %94, %92
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %6, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %7, align 4
  br label %271

136:                                              ; preds = %104
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %6, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %7, align 4
  br label %144

140:                                              ; preds = %108
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %6, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %7, align 4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #4
  br label %144

144:                                              ; preds = %140, %136
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #4
  br label %271

145:                                              ; preds = %110
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %6, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %7, align 4
  br label %153

149:                                              ; preds = %114
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %6, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %7, align 4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  br label %153

153:                                              ; preds = %149, %145
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #4
  br label %271

154:                                              ; preds = %116
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %6, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %7, align 4
  br label %162

158:                                              ; preds = %120
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %6, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %7, align 4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  br label %162

162:                                              ; preds = %158, %154
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #4
  br label %271

163:                                              ; preds = %122
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %6, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %7, align 4
  br label %171

167:                                              ; preds = %126
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %6, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %7, align 4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #4
  br label %171

171:                                              ; preds = %167, %163
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #4
  br label %271

172:                                              ; preds = %101
  %173 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZL19photon256_store_topR4CodeRK3RegS3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200) %173, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %174 unwind label %132

174:                                              ; preds = %172
  %175 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZL21photon256_load_bottomR4CodeRK3RegS3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200) %175, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %176 unwind label %132

176:                                              ; preds = %174
  %177 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZL18photon256_apply_rcR4CodeRK3RegS3_S3_S3_S3_S3_b(ptr noundef nonnull align 8 dereferenceable(200) %177, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, i1 noundef zeroext true)
          to label %178 unwind label %132

178:                                              ; preds = %176
  %179 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code10releaseRegERK3Reg(ptr noundef nonnull align 8 dereferenceable(200) %179, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %180 unwind label %132

180:                                              ; preds = %178
  %181 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZL14photon256_sboxR4CodeRK3RegS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200) %181, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %182 unwind label %132

182:                                              ; preds = %180
  store i32 0, ptr %3, align 4, !tbaa !10
  br label %183

183:                                              ; preds = %215, %182
  %184 = load i32, ptr %3, align 4, !tbaa !10
  %185 = icmp slt i32 %184, 4
  br i1 %185, label %186, label %254

186:                                              ; preds = %183
  %187 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #4
  %188 = load i32, ptr %3, align 4, !tbaa !10
  %189 = trunc i32 %188 to i8
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %8, i8 noundef zeroext %189, i8 noundef zeroext 1)
          to label %190 unwind label %218

190:                                              ; preds = %186
  %191 = load i32, ptr %3, align 4, !tbaa !10
  %192 = add nsw i32 %191, 4
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %187, ptr noundef nonnull align 8 dereferenceable(24) %19, i32 noundef %192)
          to label %193 unwind label %222

193:                                              ; preds = %190
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #4
  %194 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #4
  %195 = load i32, ptr %3, align 4, !tbaa !10
  %196 = trunc i32 %195 to i8
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %9, i8 noundef zeroext %196, i8 noundef zeroext 1)
          to label %197 unwind label %227

197:                                              ; preds = %193
  %198 = load i32, ptr %3, align 4, !tbaa !10
  %199 = add nsw i32 %198, 4
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %194, ptr noundef nonnull align 8 dereferenceable(24) %20, i32 noundef %199)
          to label %200 unwind label %231

200:                                              ; preds = %197
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #4
  %201 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #4
  %202 = load i32, ptr %3, align 4, !tbaa !10
  %203 = trunc i32 %202 to i8
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %10, i8 noundef zeroext %203, i8 noundef zeroext 1)
          to label %204 unwind label %236

204:                                              ; preds = %200
  %205 = load i32, ptr %3, align 4, !tbaa !10
  %206 = add nsw i32 %205, 4
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %201, ptr noundef nonnull align 8 dereferenceable(24) %21, i32 noundef %206)
          to label %207 unwind label %240

207:                                              ; preds = %204
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #4
  %208 = load ptr, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #4
  %209 = load i32, ptr %3, align 4, !tbaa !10
  %210 = trunc i32 %209 to i8
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %11, i8 noundef zeroext %210, i8 noundef zeroext 1)
          to label %211 unwind label %245

211:                                              ; preds = %207
  %212 = load i32, ptr %3, align 4, !tbaa !10
  %213 = add nsw i32 %212, 4
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %208, ptr noundef nonnull align 8 dereferenceable(24) %22, i32 noundef %213)
          to label %214 unwind label %249

214:                                              ; preds = %211
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #4
  br label %215

215:                                              ; preds = %214
  %216 = load i32, ptr %3, align 4, !tbaa !10
  %217 = add nsw i32 %216, 1
  store i32 %217, ptr %3, align 4, !tbaa !10
  br label %183, !llvm.loop !15

218:                                              ; preds = %186
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %6, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %7, align 4
  br label %226

222:                                              ; preds = %190
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %6, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %7, align 4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #4
  br label %226

226:                                              ; preds = %222, %218
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #4
  br label %271

227:                                              ; preds = %193
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %6, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %7, align 4
  br label %235

231:                                              ; preds = %197
  %232 = landingpad { ptr, i32 }
          cleanup
  %233 = extractvalue { ptr, i32 } %232, 0
  store ptr %233, ptr %6, align 8
  %234 = extractvalue { ptr, i32 } %232, 1
  store i32 %234, ptr %7, align 4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #4
  br label %235

235:                                              ; preds = %231, %227
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #4
  br label %271

236:                                              ; preds = %200
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %6, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %7, align 4
  br label %244

240:                                              ; preds = %204
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %6, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %7, align 4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #4
  br label %244

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

245:                                              ; preds = %207
  %246 = landingpad { ptr, i32 }
          cleanup
  %247 = extractvalue { ptr, i32 } %246, 0
  store ptr %247, ptr %6, align 8
  %248 = extractvalue { ptr, i32 } %246, 1
  store i32 %248, ptr %7, align 4
  br label %253

249:                                              ; preds = %211
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %6, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %7, align 4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #4
  br label %253

253:                                              ; preds = %249, %245
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #4
  br label %271

254:                                              ; preds = %183
  %255 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZL22photon256_store_bottomR4CodeRK3RegS3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200) %255, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %256 unwind label %132

256:                                              ; preds = %254
  %257 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZL21photon256_mix_columnsR4CodeRK3RegS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200) %257, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %258 unwind label %132

258:                                              ; preds = %256
  %259 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZL18photon256_load_topR4CodeRK3RegS3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200) %259, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %260 unwind label %132

260:                                              ; preds = %258
  %261 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code3retEv(ptr noundef nonnull align 8 dereferenceable(200) %261)
          to label %262 unwind label %132

262:                                              ; preds = %260
  %263 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN4Code5labelERh(ptr noundef nonnull align 8 dereferenceable(200) %263, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %264 unwind label %132

264:                                              ; preds = %262
  %265 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZL25photon256_from_sliced_128R4CodeiRK3RegS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200) %265, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %266 unwind label %132

266:                                              ; preds = %264
  %267 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZL21photon256_load_bottomR4CodeRK3RegS3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200) %267, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11)
          to label %268 unwind label %132

268:                                              ; preds = %266
  %269 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZL25photon256_from_sliced_128R4CodeiRK3RegS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200) %269, i32 noundef 16, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %270 unwind label %132

270:                                              ; preds = %268
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  call void @llvm.lifetime.end.p0(i64 24, 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 @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #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
  ret void

271:                                              ; preds = %253, %244, %235, %226, %171, %162, %153, %144, %132, %88
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  br label %272

272:                                              ; preds = %271, %71
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  br label %273

273:                                              ; preds = %272, %67
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  br label %274

274:                                              ; preds = %273, %63
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  br label %275

275:                                              ; preds = %274, %59
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  br label %276

276:                                              ; preds = %275, %55
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  br label %277

277:                                              ; preds = %276, %51
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #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 %278

278:                                              ; preds = %277
  %279 = load ptr, ptr %6, align 8
  %280 = load i32, ptr %7, align 4
  %281 = insertvalue { ptr, i32 } poison, ptr %279, 0
  %282 = insertvalue { ptr, i32 } %281, i32 %280, 1
  resume { ptr, i32 } %282
}

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

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

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

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) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL23photon256_to_sliced_128R4CodeiRK3RegS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0

; 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) #0 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL18photon256_apply_rcR4CodeRK3RegS3_S3_S3_S3_S3_b(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL14photon256_sboxR4CodeRK3RegS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0

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

declare void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i8 noundef zeroext, i8 noundef zeroext) 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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL19photon256_store_topR4CodeRK3RegS3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL21photon256_load_bottomR4CodeRK3RegS3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22photon256_store_bottomR4CodeRK3RegS3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL21photon256_mix_columnsR4CodeRK3RegS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL18photon256_load_topR4CodeRK3RegS3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL25photon256_from_sliced_128R4CodeiRK3RegS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #0

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 = { "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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}


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

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@_ZL12photon256_rc = external hidden local_unnamed_addr constant [12 x i32], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_Z25gen_photon256_permutationR4Code(ptr noundef nonnull align 8 dereferenceable(200) %0) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca %class.Reg, align 8
  %3 = alloca %class.Reg, align 8
  %4 = alloca %class.Reg, align 8
  %5 = alloca %class.Reg, align 8
  %6 = alloca %class.Reg, align 8
  %7 = alloca %class.Reg, align 8
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca %class.Reg, align 8
  %11 = alloca %class.Reg, align 8
  %12 = alloca %class.Reg, align 8
  %13 = alloca %class.Reg, align 8
  %14 = alloca %class.Reg, align 8
  %15 = alloca %class.Reg, align 8
  %16 = alloca %class.Reg, align 8
  %17 = alloca %class.Reg, align 8
  tail call void @_ZN4Code20prologue_permutationEPKcj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull @.str, i32 noundef 32)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #4
  call void @_ZN4Code15allocateHighRegEj(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) #4
  invoke void @_ZN4Code15allocateHighRegEj(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 %18 unwind label %31

18:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #4
  invoke void @_ZN4Code11allocateRegEj(ptr dead_on_unwind nonnull writable sret(%class.Reg) align 8 %4, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 4)
          to label %19 unwind label %33

19:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #4
  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 4)
          to label %20 unwind label %35

20:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  invoke void @_ZN4Code11allocateRegEj(ptr dead_on_unwind nonnull writable sret(%class.Reg) align 8 %6, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 4)
          to label %21 unwind label %37

21:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  invoke void @_ZN4Code11allocateRegEj(ptr dead_on_unwind nonnull writable sret(%class.Reg) align 8 %7, ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 4)
          to label %22 unwind label %39

22:                                               ; preds = %21
  invoke void @_ZL23photon256_to_sliced_128R4CodeiRK3RegS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 16, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %23 unwind label %41

23:                                               ; preds = %22
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %4, i8 noundef zeroext 16)
          to label %24 unwind label %41

24:                                               ; preds = %23
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %5, i8 noundef zeroext 20)
          to label %25 unwind label %41

25:                                               ; preds = %24
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %6, i8 noundef zeroext 24)
          to label %26 unwind label %41

26:                                               ; preds = %25
  invoke void @_ZN4Code3stzERK3Regh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %7, i8 noundef zeroext 28)
          to label %27 unwind label %41

27:                                               ; preds = %26
  invoke void @_ZL23photon256_to_sliced_128R4CodeiRK3RegS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %28 unwind label %41

28:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #4
  store i8 0, ptr %8, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #4
  store i8 0, ptr %9, align 1, !tbaa !5
  %29 = load i32, ptr @_ZL12photon256_rc, align 16, !tbaa !8
  %30 = zext i32 %29 to i64
  invoke void @_ZN4Code4moveERK3Regy(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %30)
          to label %43 unwind label %89

31:                                               ; preds = %1
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %205

33:                                               ; preds = %18
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %204

35:                                               ; preds = %19
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %203

37:                                               ; preds = %20
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %202

39:                                               ; preds = %21
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %201

41:                                               ; preds = %27, %26, %25, %24, %23, %22
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %200

43:                                               ; preds = %28
  invoke void @_ZN4Code4callERh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %44 unwind label %89

44:                                               ; preds = %43
  %45 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL12photon256_rc, i64 4), align 4, !tbaa !8
  %46 = zext i32 %45 to i64
  invoke void @_ZN4Code4moveERK3Regy(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %46)
          to label %47 unwind label %89

47:                                               ; preds = %44
  invoke void @_ZN4Code4callERh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %48 unwind label %89

48:                                               ; preds = %47
  %49 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL12photon256_rc, i64 8), align 8, !tbaa !8
  %50 = zext i32 %49 to i64
  invoke void @_ZN4Code4moveERK3Regy(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %50)
          to label %51 unwind label %89

51:                                               ; preds = %48
  invoke void @_ZN4Code4callERh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %52 unwind label %89

52:                                               ; preds = %51
  %53 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL12photon256_rc, i64 12), align 4, !tbaa !8
  %54 = zext i32 %53 to i64
  invoke void @_ZN4Code4moveERK3Regy(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %54)
          to label %55 unwind label %89

55:                                               ; preds = %52
  invoke void @_ZN4Code4callERh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %56 unwind label %89

56:                                               ; preds = %55
  %57 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL12photon256_rc, i64 16), align 16, !tbaa !8
  %58 = zext i32 %57 to i64
  invoke void @_ZN4Code4moveERK3Regy(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %58)
          to label %59 unwind label %89

59:                                               ; preds = %56
  invoke void @_ZN4Code4callERh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %60 unwind label %89

60:                                               ; preds = %59
  %61 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL12photon256_rc, i64 20), align 4, !tbaa !8
  %62 = zext i32 %61 to i64
  invoke void @_ZN4Code4moveERK3Regy(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %62)
          to label %63 unwind label %89

63:                                               ; preds = %60
  invoke void @_ZN4Code4callERh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %64 unwind label %89

64:                                               ; preds = %63
  %65 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL12photon256_rc, i64 24), align 8, !tbaa !8
  %66 = zext i32 %65 to i64
  invoke void @_ZN4Code4moveERK3Regy(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %66)
          to label %67 unwind label %89

67:                                               ; preds = %64
  invoke void @_ZN4Code4callERh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %68 unwind label %89

68:                                               ; preds = %67
  %69 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL12photon256_rc, i64 28), align 4, !tbaa !8
  %70 = zext i32 %69 to i64
  invoke void @_ZN4Code4moveERK3Regy(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %70)
          to label %71 unwind label %89

71:                                               ; preds = %68
  invoke void @_ZN4Code4callERh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %72 unwind label %89

72:                                               ; preds = %71
  %73 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL12photon256_rc, i64 32), align 16, !tbaa !8
  %74 = zext i32 %73 to i64
  invoke void @_ZN4Code4moveERK3Regy(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %74)
          to label %75 unwind label %89

75:                                               ; preds = %72
  invoke void @_ZN4Code4callERh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %76 unwind label %89

76:                                               ; preds = %75
  %77 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL12photon256_rc, i64 36), align 4, !tbaa !8
  %78 = zext i32 %77 to i64
  invoke void @_ZN4Code4moveERK3Regy(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %78)
          to label %79 unwind label %89

79:                                               ; preds = %76
  invoke void @_ZN4Code4callERh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %80 unwind label %89

80:                                               ; preds = %79
  %81 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL12photon256_rc, i64 40), align 8, !tbaa !8
  %82 = zext i32 %81 to i64
  invoke void @_ZN4Code4moveERK3Regy(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %82)
          to label %83 unwind label %89

83:                                               ; preds = %80
  invoke void @_ZN4Code4callERh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %84 unwind label %89

84:                                               ; preds = %83
  %85 = load i32, ptr getelementptr inbounds (i8, ptr @_ZL12photon256_rc, i64 44), align 4, !tbaa !8
  %86 = zext i32 %85 to i64
  invoke void @_ZN4Code4moveERK3Regy(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %86)
          to label %87 unwind label %89

87:                                               ; preds = %84
  invoke void @_ZN4Code4callERh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %88 unwind label %89

88:                                               ; preds = %87
  invoke void @_ZN4Code3jmpERh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %91 unwind label %116

89:                                               ; preds = %87, %84, %83, %80, %79, %76, %75, %72, %71, %68, %67, %64, %63, %60, %59, %56, %55, %52, %51, %48, %47, %44, %43, %28
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %199

91:                                               ; preds = %88
  invoke void @_ZN4Code5labelERh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %92 unwind label %116

92:                                               ; preds = %91
  invoke void @_ZL18photon256_apply_rcR4CodeRK3RegS3_S3_S3_S3_S3_b(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, i1 noundef zeroext false)
          to label %93 unwind label %116

93:                                               ; preds = %92
  invoke void @_ZL14photon256_sboxR4CodeRK3RegS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %.preheader105.preheader unwind label %116

.preheader105.preheader:                          ; preds = %93
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %4, i8 noundef zeroext 1, i8 noundef zeroext 1)
          to label %94 unwind label %118

94:                                               ; preds = %.preheader105.preheader
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 1)
          to label %95 unwind label %120

95:                                               ; preds = %94
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %5, i8 noundef zeroext 1, i8 noundef zeroext 1)
          to label %96 unwind label %123

96:                                               ; preds = %95
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %11, i32 noundef 1)
          to label %97 unwind label %125

97:                                               ; preds = %96
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %6, i8 noundef zeroext 1, i8 noundef zeroext 1)
          to label %98 unwind label %128

98:                                               ; preds = %97
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 1)
          to label %99 unwind label %130

99:                                               ; preds = %98
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %7, i8 noundef zeroext 1, i8 noundef zeroext 1)
          to label %100 unwind label %133

100:                                              ; preds = %99
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 1)
          to label %.preheader105.1 unwind label %135

.preheader105.1:                                  ; preds = %100
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %4, i8 noundef zeroext 2, i8 noundef zeroext 1)
          to label %101 unwind label %118

101:                                              ; preds = %.preheader105.1
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 2)
          to label %102 unwind label %120

102:                                              ; preds = %101
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %5, i8 noundef zeroext 2, i8 noundef zeroext 1)
          to label %103 unwind label %123

103:                                              ; preds = %102
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %11, i32 noundef 2)
          to label %104 unwind label %125

104:                                              ; preds = %103
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %6, i8 noundef zeroext 2, i8 noundef zeroext 1)
          to label %105 unwind label %128

105:                                              ; preds = %104
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 2)
          to label %106 unwind label %130

106:                                              ; preds = %105
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %7, i8 noundef zeroext 2, i8 noundef zeroext 1)
          to label %107 unwind label %133

107:                                              ; preds = %106
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 2)
          to label %.preheader105.2 unwind label %135

.preheader105.2:                                  ; preds = %107
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %4, i8 noundef zeroext 3, i8 noundef zeroext 1)
          to label %108 unwind label %118

108:                                              ; preds = %.preheader105.2
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 3)
          to label %109 unwind label %120

109:                                              ; preds = %108
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %5, i8 noundef zeroext 3, i8 noundef zeroext 1)
          to label %110 unwind label %123

110:                                              ; preds = %109
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %11, i32 noundef 3)
          to label %111 unwind label %125

111:                                              ; preds = %110
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %6, i8 noundef zeroext 3, i8 noundef zeroext 1)
          to label %112 unwind label %128

112:                                              ; preds = %111
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef 3)
          to label %113 unwind label %130

113:                                              ; preds = %112
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %7, i8 noundef zeroext 3, i8 noundef zeroext 1)
          to label %114 unwind label %133

114:                                              ; preds = %113
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %13, i32 noundef 3)
          to label %115 unwind label %135

115:                                              ; preds = %114
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #4
  invoke void @_ZL19photon256_store_topR4CodeRK3RegS3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %138 unwind label %116

116:                                              ; preds = %197, %196, %195, %194, %193, %192, %191, %170, %141, %140, %139, %138, %115, %93, %92, %91, %88
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %199

118:                                              ; preds = %.preheader105.2, %.preheader105.1, %.preheader105.preheader
  %119 = landingpad { ptr, i32 }
          cleanup
  br label %122

120:                                              ; preds = %108, %101, %94
  %121 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #4
  br label %122

122:                                              ; preds = %120, %118
  %.pn89 = phi { ptr, i32 } [ %121, %120 ], [ %119, %118 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #4
  br label %199

123:                                              ; preds = %109, %102, %95
  %124 = landingpad { ptr, i32 }
          cleanup
  br label %127

125:                                              ; preds = %110, %103, %96
  %126 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #4
  br label %127

127:                                              ; preds = %125, %123
  %.pn91 = phi { ptr, i32 } [ %126, %125 ], [ %124, %123 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #4
  br label %199

128:                                              ; preds = %111, %104, %97
  %129 = landingpad { ptr, i32 }
          cleanup
  br label %132

130:                                              ; preds = %112, %105, %98
  %131 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #4
  br label %132

132:                                              ; preds = %130, %128
  %.pn93 = phi { ptr, i32 } [ %131, %130 ], [ %129, %128 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #4
  br label %199

133:                                              ; preds = %113, %106, %99
  %134 = landingpad { ptr, i32 }
          cleanup
  br label %137

135:                                              ; preds = %114, %107, %100
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  br label %137

137:                                              ; preds = %135, %133
  %.pn95 = phi { ptr, i32 } [ %136, %135 ], [ %134, %133 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #4
  br label %199

138:                                              ; preds = %115
  invoke void @_ZL21photon256_load_bottomR4CodeRK3RegS3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %139 unwind label %116

139:                                              ; preds = %138
  invoke void @_ZL18photon256_apply_rcR4CodeRK3RegS3_S3_S3_S3_S3_b(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, i1 noundef zeroext true)
          to label %140 unwind label %116

140:                                              ; preds = %139
  invoke void @_ZN4Code10releaseRegERK3Reg(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %141 unwind label %116

141:                                              ; preds = %140
  invoke void @_ZL14photon256_sboxR4CodeRK3RegS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %.preheader.preheader unwind label %116

.preheader.preheader:                             ; preds = %141
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %4, i8 noundef zeroext 0, i8 noundef zeroext 1)
          to label %142 unwind label %171

142:                                              ; preds = %.preheader.preheader
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 4)
          to label %143 unwind label %173

143:                                              ; preds = %142
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %5, i8 noundef zeroext 0, i8 noundef zeroext 1)
          to label %144 unwind label %176

144:                                              ; preds = %143
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef 4)
          to label %145 unwind label %178

145:                                              ; preds = %144
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %6, i8 noundef zeroext 0, i8 noundef zeroext 1)
          to label %146 unwind label %181

146:                                              ; preds = %145
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %16, i32 noundef 4)
          to label %147 unwind label %183

147:                                              ; preds = %146
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %7, i8 noundef zeroext 0, i8 noundef zeroext 1)
          to label %148 unwind label %186

148:                                              ; preds = %147
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef 4)
          to label %.preheader.1 unwind label %188

.preheader.1:                                     ; preds = %148
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %4, i8 noundef zeroext 1, i8 noundef zeroext 1)
          to label %149 unwind label %171

149:                                              ; preds = %.preheader.1
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 5)
          to label %150 unwind label %173

150:                                              ; preds = %149
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %5, i8 noundef zeroext 1, i8 noundef zeroext 1)
          to label %151 unwind label %176

151:                                              ; preds = %150
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef 5)
          to label %152 unwind label %178

152:                                              ; preds = %151
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %6, i8 noundef zeroext 1, i8 noundef zeroext 1)
          to label %153 unwind label %181

153:                                              ; preds = %152
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %16, i32 noundef 5)
          to label %154 unwind label %183

154:                                              ; preds = %153
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %7, i8 noundef zeroext 1, i8 noundef zeroext 1)
          to label %155 unwind label %186

155:                                              ; preds = %154
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef 5)
          to label %.preheader.2 unwind label %188

.preheader.2:                                     ; preds = %155
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %4, i8 noundef zeroext 2, i8 noundef zeroext 1)
          to label %156 unwind label %171

156:                                              ; preds = %.preheader.2
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 6)
          to label %157 unwind label %173

157:                                              ; preds = %156
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %5, i8 noundef zeroext 2, i8 noundef zeroext 1)
          to label %158 unwind label %176

158:                                              ; preds = %157
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef 6)
          to label %159 unwind label %178

159:                                              ; preds = %158
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %6, i8 noundef zeroext 2, i8 noundef zeroext 1)
          to label %160 unwind label %181

160:                                              ; preds = %159
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %16, i32 noundef 6)
          to label %161 unwind label %183

161:                                              ; preds = %160
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %7, i8 noundef zeroext 2, i8 noundef zeroext 1)
          to label %162 unwind label %186

162:                                              ; preds = %161
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef 6)
          to label %.preheader.3 unwind label %188

.preheader.3:                                     ; preds = %162
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %4, i8 noundef zeroext 3, i8 noundef zeroext 1)
          to label %163 unwind label %171

163:                                              ; preds = %.preheader.3
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %14, i32 noundef 7)
          to label %164 unwind label %173

164:                                              ; preds = %163
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %5, i8 noundef zeroext 3, i8 noundef zeroext 1)
          to label %165 unwind label %176

165:                                              ; preds = %164
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %15, i32 noundef 7)
          to label %166 unwind label %178

166:                                              ; preds = %165
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %6, i8 noundef zeroext 3, i8 noundef zeroext 1)
          to label %167 unwind label %181

167:                                              ; preds = %166
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %16, i32 noundef 7)
          to label %168 unwind label %183

168:                                              ; preds = %167
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %17) #4
  invoke void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %7, i8 noundef zeroext 3, i8 noundef zeroext 1)
          to label %169 unwind label %186

169:                                              ; preds = %168
  invoke void @_ZN4Code3rorERK3Regj(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef 7)
          to label %170 unwind label %188

170:                                              ; preds = %169
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #4
  invoke void @_ZL22photon256_store_bottomR4CodeRK3RegS3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %191 unwind label %116

171:                                              ; preds = %.preheader.3, %.preheader.2, %.preheader.1, %.preheader.preheader
  %172 = landingpad { ptr, i32 }
          cleanup
  br label %175

173:                                              ; preds = %163, %156, %149, %142
  %174 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #4
  br label %175

175:                                              ; preds = %173, %171
  %.pn = phi { ptr, i32 } [ %174, %173 ], [ %172, %171 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #4
  br label %199

176:                                              ; preds = %164, %157, %150, %143
  %177 = landingpad { ptr, i32 }
          cleanup
  br label %180

178:                                              ; preds = %165, %158, %151, %144
  %179 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #4
  br label %180

180:                                              ; preds = %178, %176
  %.pn83 = phi { ptr, i32 } [ %179, %178 ], [ %177, %176 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #4
  br label %199

181:                                              ; preds = %166, %159, %152, %145
  %182 = landingpad { ptr, i32 }
          cleanup
  br label %185

183:                                              ; preds = %167, %160, %153, %146
  %184 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #4
  br label %185

185:                                              ; preds = %183, %181
  %.pn85 = phi { ptr, i32 } [ %184, %183 ], [ %182, %181 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #4
  br label %199

186:                                              ; preds = %168, %161, %154, %147
  %187 = landingpad { ptr, i32 }
          cleanup
  br label %190

188:                                              ; preds = %169, %162, %155, %148
  %189 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  br label %190

190:                                              ; preds = %188, %186
  %.pn87 = phi { ptr, i32 } [ %189, %188 ], [ %187, %186 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %17) #4
  br label %199

191:                                              ; preds = %170
  invoke void @_ZL21photon256_mix_columnsR4CodeRK3RegS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %192 unwind label %116

192:                                              ; preds = %191
  invoke void @_ZL18photon256_load_topR4CodeRK3RegS3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %193 unwind label %116

193:                                              ; preds = %192
  invoke void @_ZN4Code3retEv(ptr noundef nonnull align 8 dereferenceable(200) %0)
          to label %194 unwind label %116

194:                                              ; preds = %193
  invoke void @_ZN4Code5labelERh(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %195 unwind label %116

195:                                              ; preds = %194
  invoke void @_ZL25photon256_from_sliced_128R4CodeiRK3RegS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 0, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %196 unwind label %116

196:                                              ; preds = %195
  invoke void @_ZL21photon256_load_bottomR4CodeRK3RegS3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200) %0, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %197 unwind label %116

197:                                              ; preds = %196
  invoke void @_ZL25photon256_from_sliced_128R4CodeiRK3RegS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200) %0, i32 noundef 16, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %198 unwind label %116

198:                                              ; preds = %197
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  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

199:                                              ; preds = %190, %185, %180, %175, %137, %132, %127, %122, %116, %89
  %.pn97 = phi { ptr, i32 } [ %90, %89 ], [ %.pn95, %137 ], [ %.pn93, %132 ], [ %.pn91, %127 ], [ %.pn89, %122 ], [ %.pn87, %190 ], [ %.pn85, %185 ], [ %.pn83, %180 ], [ %.pn, %175 ], [ %117, %116 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #4
  br label %200

200:                                              ; preds = %199, %41
  %.pn97.pn = phi { ptr, i32 } [ %.pn97, %199 ], [ %42, %41 ]
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #4
  br label %201

201:                                              ; preds = %200, %39
  %.pn97.pn.pn = phi { ptr, i32 } [ %.pn97.pn, %200 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  br label %202

202:                                              ; preds = %201, %37
  %.pn97.pn.pn.pn = phi { ptr, i32 } [ %.pn97.pn.pn, %201 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  br label %203

203:                                              ; preds = %202, %35
  %.pn97.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn97.pn.pn.pn, %202 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  br label %204

204:                                              ; preds = %203, %33
  %.pn97.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn97.pn.pn.pn.pn, %203 ], [ %34, %33 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  call void @_ZN3RegD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  br label %205

205:                                              ; preds = %204, %31
  %.pn97.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn97.pn.pn.pn.pn.pn, %204 ], [ %32, %31 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #4
  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 } %.pn97.pn.pn.pn.pn.pn.pn
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL23photon256_to_sliced_128R4CodeiRK3RegS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

; 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 #0 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL18photon256_apply_rcR4CodeRK3RegS3_S3_S3_S3_S3_b(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL14photon256_sboxR4CodeRK3RegS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

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

declare void @_ZN3RegC1ERKS_hh(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i8 noundef zeroext, i8 noundef zeroext) 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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL19photon256_store_topR4CodeRK3RegS3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL21photon256_load_bottomR4CodeRK3RegS3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL22photon256_store_bottomR4CodeRK3RegS3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL21photon256_mix_columnsR4CodeRK3RegS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL18photon256_load_topR4CodeRK3RegS3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL25photon256_from_sliced_128R4CodeiRK3RegS3_S3_S3_S3_(ptr noundef nonnull align 8 dereferenceable(200), i32 noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0

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 = { "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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}


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