; LLVM IR from intel/cryptography-primitives :: sources/ippcp (pcpaesgcmtbl2k_mulpx)

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

; Function Attrs: nounwind uwtable
define dso_local void @AesGcmMulGcm_table2K_ct(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [16 x i8], align 16
  %8 = alloca [16 x i8], align 16
  %9 = alloca [16 x i8], align 16
  %10 = alloca [16 x i8], align 16
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
  call void @PadBlock(i8 noundef zeroext 0, ptr noundef %29, i32 noundef 16)
  %30 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
  call void @PadBlock(i8 noundef zeroext 0, ptr noundef %30, i32 noundef 16)
  %31 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 0
  call void @PadBlock(i8 noundef zeroext 0, ptr noundef %31, i32 noundef 16)
  %32 = getelementptr inbounds [16 x i8], ptr %10, i64 0, i64 0
  call void @PadBlock(i8 noundef zeroext 0, ptr noundef %32, i32 noundef 16)
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %227, %3
  %34 = load i32, ptr %11, align 4, !tbaa !9
  %35 = icmp slt i32 %34, 4
  br i1 %35, label %36, label %230

36:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = load i32, ptr %11, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds i32, ptr %37, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !9
  store i32 %41, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %42 = load i32, ptr %12, align 4, !tbaa !9
  %43 = and i32 %42, -252645136
  store i32 %43, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  %44 = load i32, ptr %13, align 4, !tbaa !9
  %45 = lshr i32 %44, 0
  %46 = trunc i32 %45 to i8
  %47 = zext i8 %46 to i32
  store i32 %47, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %48 = load i32, ptr %13, align 4, !tbaa !9
  %49 = lshr i32 %48, 8
  %50 = trunc i32 %49 to i8
  %51 = zext i8 %50 to i32
  store i32 %51, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %52 = load i32, ptr %13, align 4, !tbaa !9
  %53 = lshr i32 %52, 16
  %54 = trunc i32 %53 to i8
  %55 = zext i8 %54 to i32
  store i32 %55, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %56 = load i32, ptr %13, align 4, !tbaa !9
  %57 = lshr i32 %56, 24
  %58 = trunc i32 %57 to i8
  %59 = zext i8 %58 to i32
  store i32 %59, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %60

60:                                               ; preds = %132, %36
  %61 = load i32, ptr %18, align 4, !tbaa !9
  %62 = icmp slt i32 %61, 256
  br i1 %62, label %63, label %135

63:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %64 = load i32, ptr %14, align 4, !tbaa !9
  %65 = zext i32 %64 to i64
  %66 = load i32, ptr %18, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = call i64 @cpIsEqu_ct(i64 noundef %65, i64 noundef %67)
  store i64 %68, ptr %19, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  %69 = load i32, ptr %15, align 4, !tbaa !9
  %70 = zext i32 %69 to i64
  %71 = load i32, ptr %18, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = call i64 @cpIsEqu_ct(i64 noundef %70, i64 noundef %72)
  store i64 %73, ptr %20, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  %74 = load i32, ptr %16, align 4, !tbaa !9
  %75 = zext i32 %74 to i64
  %76 = load i32, ptr %18, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = call i64 @cpIsEqu_ct(i64 noundef %75, i64 noundef %77)
  store i64 %78, ptr %21, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  %79 = load i32, ptr %17, align 4, !tbaa !9
  %80 = zext i32 %79 to i64
  %81 = load i32, ptr %18, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = call i64 @cpIsEqu_ct(i64 noundef %80, i64 noundef %82)
  store i64 %83, ptr %22, align 8, !tbaa !11
  %84 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds i8, ptr %85, i64 1024
  %87 = load i32, ptr %11, align 4, !tbaa !9
  %88 = mul nsw i32 256, %87
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds i8, ptr %86, i64 %89
  %91 = load i32, ptr %18, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds i8, ptr %90, i64 %92
  %94 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
  %95 = load i64, ptr %20, align 8, !tbaa !11
  call void @MaskedXorBlock16(ptr noundef %84, ptr noundef %93, ptr noundef %94, i64 noundef %95)
  %96 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds i8, ptr %97, i64 1024
  %99 = load i32, ptr %11, align 4, !tbaa !9
  %100 = mul nsw i32 256, %99
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds i8, ptr %98, i64 %101
  %103 = load i32, ptr %18, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds i8, ptr %102, i64 %104
  %106 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
  %107 = load i64, ptr %19, align 8, !tbaa !11
  call void @MaskedXorBlock16(ptr noundef %96, ptr noundef %105, ptr noundef %106, i64 noundef %107)
  %108 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 0
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds i8, ptr %109, i64 1024
  %111 = load i32, ptr %11, align 4, !tbaa !9
  %112 = mul nsw i32 256, %111
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds i8, ptr %110, i64 %113
  %115 = load i32, ptr %18, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds i8, ptr %114, i64 %116
  %118 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 0
  %119 = load i64, ptr %22, align 8, !tbaa !11
  call void @MaskedXorBlock16(ptr noundef %108, ptr noundef %117, ptr noundef %118, i64 noundef %119)
  %120 = getelementptr inbounds [16 x i8], ptr %10, i64 0, i64 0
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds i8, ptr %121, i64 1024
  %123 = load i32, ptr %11, align 4, !tbaa !9
  %124 = mul nsw i32 256, %123
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds i8, ptr %122, i64 %125
  %127 = load i32, ptr %18, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds i8, ptr %126, i64 %128
  %130 = getelementptr inbounds [16 x i8], ptr %10, i64 0, i64 0
  %131 = load i64, ptr %21, align 8, !tbaa !11
  call void @MaskedXorBlock16(ptr noundef %120, ptr noundef %129, ptr noundef %130, i64 noundef %131)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  br label %132

132:                                              ; preds = %63
  %133 = load i32, ptr %18, align 4, !tbaa !9
  %134 = add nsw i32 %133, 16
  store i32 %134, ptr %18, align 4, !tbaa !9
  br label %60, !llvm.loop !13

135:                                              ; preds = %60
  %136 = load i32, ptr %12, align 4, !tbaa !9
  %137 = shl i32 %136, 4
  %138 = and i32 %137, -252645136
  store i32 %138, ptr %13, align 4, !tbaa !9
  %139 = load i32, ptr %13, align 4, !tbaa !9
  %140 = lshr i32 %139, 0
  %141 = trunc i32 %140 to i8
  %142 = zext i8 %141 to i32
  store i32 %142, ptr %14, align 4, !tbaa !9
  %143 = load i32, ptr %13, align 4, !tbaa !9
  %144 = lshr i32 %143, 8
  %145 = trunc i32 %144 to i8
  %146 = zext i8 %145 to i32
  store i32 %146, ptr %15, align 4, !tbaa !9
  %147 = load i32, ptr %13, align 4, !tbaa !9
  %148 = lshr i32 %147, 16
  %149 = trunc i32 %148 to i8
  %150 = zext i8 %149 to i32
  store i32 %150, ptr %16, align 4, !tbaa !9
  %151 = load i32, ptr %13, align 4, !tbaa !9
  %152 = lshr i32 %151, 24
  %153 = trunc i32 %152 to i8
  %154 = zext i8 %153 to i32
  store i32 %154, ptr %17, align 4, !tbaa !9
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %155

155:                                              ; preds = %223, %135
  %156 = load i32, ptr %18, align 4, !tbaa !9
  %157 = icmp slt i32 %156, 256
  br i1 %157, label %158, label %226

158:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  %159 = load i32, ptr %14, align 4, !tbaa !9
  %160 = zext i32 %159 to i64
  %161 = load i32, ptr %18, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = call i64 @cpIsEqu_ct(i64 noundef %160, i64 noundef %162)
  store i64 %163, ptr %23, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  %164 = load i32, ptr %15, align 4, !tbaa !9
  %165 = zext i32 %164 to i64
  %166 = load i32, ptr %18, align 4, !tbaa !9
  %167 = sext i32 %166 to i64
  %168 = call i64 @cpIsEqu_ct(i64 noundef %165, i64 noundef %167)
  store i64 %168, ptr %24, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  %169 = load i32, ptr %16, align 4, !tbaa !9
  %170 = zext i32 %169 to i64
  %171 = load i32, ptr %18, align 4, !tbaa !9
  %172 = sext i32 %171 to i64
  %173 = call i64 @cpIsEqu_ct(i64 noundef %170, i64 noundef %172)
  store i64 %173, ptr %25, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  %174 = load i32, ptr %17, align 4, !tbaa !9
  %175 = zext i32 %174 to i64
  %176 = load i32, ptr %18, align 4, !tbaa !9
  %177 = sext i32 %176 to i64
  %178 = call i64 @cpIsEqu_ct(i64 noundef %175, i64 noundef %177)
  store i64 %178, ptr %26, align 8, !tbaa !11
  %179 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = load i32, ptr %11, align 4, !tbaa !9
  %182 = mul nsw i32 256, %181
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds i8, ptr %180, i64 %183
  %185 = load i32, ptr %18, align 4, !tbaa !9
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds i8, ptr %184, i64 %186
  %188 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
  %189 = load i64, ptr %24, align 8, !tbaa !11
  call void @MaskedXorBlock16(ptr noundef %179, ptr noundef %187, ptr noundef %188, i64 noundef %189)
  %190 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = load i32, ptr %11, align 4, !tbaa !9
  %193 = mul nsw i32 256, %192
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds i8, ptr %191, i64 %194
  %196 = load i32, ptr %18, align 4, !tbaa !9
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds i8, ptr %195, i64 %197
  %199 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
  %200 = load i64, ptr %23, align 8, !tbaa !11
  call void @MaskedXorBlock16(ptr noundef %190, ptr noundef %198, ptr noundef %199, i64 noundef %200)
  %201 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 0
  %202 = load ptr, ptr %5, align 8, !tbaa !5
  %203 = load i32, ptr %11, align 4, !tbaa !9
  %204 = mul nsw i32 256, %203
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds i8, ptr %202, i64 %205
  %207 = load i32, ptr %18, align 4, !tbaa !9
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds i8, ptr %206, i64 %208
  %210 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 0
  %211 = load i64, ptr %26, align 8, !tbaa !11
  call void @MaskedXorBlock16(ptr noundef %201, ptr noundef %209, ptr noundef %210, i64 noundef %211)
  %212 = getelementptr inbounds [16 x i8], ptr %10, i64 0, i64 0
  %213 = load ptr, ptr %5, align 8, !tbaa !5
  %214 = load i32, ptr %11, align 4, !tbaa !9
  %215 = mul nsw i32 256, %214
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds i8, ptr %213, i64 %216
  %218 = load i32, ptr %18, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds i8, ptr %217, i64 %219
  %221 = getelementptr inbounds [16 x i8], ptr %10, i64 0, i64 0
  %222 = load i64, ptr %25, align 8, !tbaa !11
  call void @MaskedXorBlock16(ptr noundef %212, ptr noundef %220, ptr noundef %221, i64 noundef %222)
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  br label %223

223:                                              ; preds = %158
  %224 = load i32, ptr %18, align 4, !tbaa !9
  %225 = add nsw i32 %224, 16
  store i32 %225, ptr %18, align 4, !tbaa !9
  br label %155, !llvm.loop !15

226:                                              ; preds = %155
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %227

227:                                              ; preds = %226
  %228 = load i32, ptr %11, align 4, !tbaa !9
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %11, align 4, !tbaa !9
  br label %33, !llvm.loop !16

230:                                              ; preds = %33
  %231 = getelementptr inbounds [16 x i8], ptr %10, i64 0, i64 0
  %232 = getelementptr inbounds i8, ptr %231, i64 1
  %233 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 0
  %234 = getelementptr inbounds [16 x i8], ptr %10, i64 0, i64 0
  %235 = getelementptr inbounds i8, ptr %234, i64 1
  call void @XorBlock(ptr noundef %232, ptr noundef %233, ptr noundef %235, i32 noundef 15)
  %236 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
  %237 = getelementptr inbounds i8, ptr %236, i64 1
  %238 = getelementptr inbounds [16 x i8], ptr %10, i64 0, i64 0
  %239 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
  %240 = getelementptr inbounds i8, ptr %239, i64 1
  call void @XorBlock(ptr noundef %237, ptr noundef %238, ptr noundef %240, i32 noundef 15)
  %241 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
  %242 = getelementptr inbounds i8, ptr %241, i64 1
  %243 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 0
  %244 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
  %245 = getelementptr inbounds i8, ptr %244, i64 1
  call void @XorBlock(ptr noundef %242, ptr noundef %243, ptr noundef %245, i32 noundef 15)
  %246 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 15
  %247 = load i8, ptr %246, align 1, !tbaa !17
  %248 = zext i8 %247 to i32
  store i32 %248, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  %249 = load i32, ptr %11, align 4, !tbaa !9
  %250 = call zeroext i16 @getAesGcmConst_table_ct(i32 noundef %249)
  %251 = zext i16 %250 to i32
  store i32 %251, ptr %27, align 4, !tbaa !9
  %252 = load i32, ptr %27, align 4, !tbaa !9
  %253 = shl i32 %252, 8
  store i32 %253, ptr %27, align 4, !tbaa !9
  %254 = getelementptr inbounds [16 x i8], ptr %10, i64 0, i64 15
  %255 = load i8, ptr %254, align 1, !tbaa !17
  %256 = zext i8 %255 to i32
  store i32 %256, ptr %11, align 4, !tbaa !9
  %257 = load i32, ptr %11, align 4, !tbaa !9
  %258 = call zeroext i16 @getAesGcmConst_table_ct(i32 noundef %257)
  %259 = zext i16 %258 to i32
  %260 = load i32, ptr %27, align 4, !tbaa !9
  %261 = xor i32 %260, %259
  store i32 %261, ptr %27, align 4, !tbaa !9
  %262 = load i32, ptr %27, align 4, !tbaa !9
  %263 = shl i32 %262, 8
  store i32 %263, ptr %27, align 4, !tbaa !9
  %264 = getelementptr inbounds [16 x i8], ptr %7, i64 0, i64 15
  %265 = load i8, ptr %264, align 1, !tbaa !17
  %266 = zext i8 %265 to i32
  store i32 %266, ptr %11, align 4, !tbaa !9
  %267 = load i32, ptr %11, align 4, !tbaa !9
  %268 = call zeroext i16 @getAesGcmConst_table_ct(i32 noundef %267)
  %269 = zext i16 %268 to i32
  %270 = load i32, ptr %27, align 4, !tbaa !9
  %271 = xor i32 %270, %269
  store i32 %271, ptr %27, align 4, !tbaa !9
  %272 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
  %273 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
  call void @XorBlock(ptr noundef %272, ptr noundef %27, ptr noundef %273, i32 noundef 4)
  %274 = getelementptr inbounds [16 x i8], ptr %8, i64 0, i64 0
  %275 = load ptr, ptr %4, align 8, !tbaa !5
  call void @CopyBlock16(ptr noundef %274, ptr noundef %275)
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #3
  ret void
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @PadBlock(i8 noundef zeroext, ptr noundef, i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @cpIsEqu_ct(i64 noundef, i64 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @MaskedXorBlock16(ptr noundef, ptr noundef, ptr noundef, i64 noundef) #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @XorBlock(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @getAesGcmConst_table_ct(i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @CopyBlock16(ptr noundef, ptr noundef) #2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = !{!7, !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: nounwind uwtable
define dso_local void @AesGcmMulGcm_table2K_ct(ptr noundef %0, ptr noundef %1, ptr nocapture noundef readnone %2) local_unnamed_addr #0 {
  %4 = alloca [16 x i8], align 16
  %5 = alloca [16 x i8], align 16
  %6 = alloca [16 x i8], align 16
  %7 = alloca [16 x i8], align 16
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #3
  call void @PadBlock(i8 noundef zeroext 0, ptr noundef nonnull %4, i32 noundef 16)
  call void @PadBlock(i8 noundef zeroext 0, ptr noundef nonnull %5, i32 noundef 16)
  call void @PadBlock(i8 noundef zeroext 0, ptr noundef nonnull %6, i32 noundef 16)
  call void @PadBlock(i8 noundef zeroext 0, ptr noundef nonnull %7, i32 noundef 16)
  %9 = getelementptr inbounds i8, ptr %1, i64 1024
  br label %10

10:                                               ; preds = %3, %54
  %indvars.iv78 = phi i64 [ 0, %3 ], [ %indvars.iv.next79, %54 ]
  %11 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv78
  %12 = load i32, ptr %11, align 4, !tbaa !5
  %13 = and i32 %12, 240
  %14 = lshr i32 %12, 8
  %15 = and i32 %14, 240
  %16 = lshr i32 %12, 16
  %17 = and i32 %16, 240
  %18 = lshr i32 %12, 24
  %19 = and i32 %18, 240
  %20 = zext nneg i32 %13 to i64
  %21 = zext nneg i32 %15 to i64
  %22 = zext nneg i32 %17 to i64
  %23 = zext nneg i32 %19 to i64
  %24 = shl nuw nsw i64 %indvars.iv78, 8
  %25 = getelementptr inbounds i8, ptr %9, i64 %24
  br label %26

26:                                               ; preds = %10, %26
  %indvars.iv = phi i64 [ 0, %10 ], [ %indvars.iv.next, %26 ]
  %27 = call i64 @cpIsEqu_ct(i64 noundef %20, i64 noundef %indvars.iv)
  %28 = call i64 @cpIsEqu_ct(i64 noundef %21, i64 noundef %indvars.iv)
  %29 = call i64 @cpIsEqu_ct(i64 noundef %22, i64 noundef %indvars.iv)
  %30 = call i64 @cpIsEqu_ct(i64 noundef %23, i64 noundef %indvars.iv)
  %31 = getelementptr inbounds i8, ptr %25, i64 %indvars.iv
  call void @MaskedXorBlock16(ptr noundef nonnull %4, ptr noundef nonnull %31, ptr noundef nonnull %4, i64 noundef %28)
  call void @MaskedXorBlock16(ptr noundef nonnull %5, ptr noundef nonnull %31, ptr noundef nonnull %5, i64 noundef %27)
  call void @MaskedXorBlock16(ptr noundef nonnull %6, ptr noundef nonnull %31, ptr noundef nonnull %6, i64 noundef %30)
  call void @MaskedXorBlock16(ptr noundef nonnull %7, ptr noundef nonnull %31, ptr noundef nonnull %7, i64 noundef %29)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 16
  %32 = icmp ult i64 %indvars.iv, 240
  br i1 %32, label %26, label %33, !llvm.loop !9

33:                                               ; preds = %26
  %34 = shl i32 %12, 4
  %35 = and i32 %34, 240
  %36 = lshr i32 %34, 8
  %37 = and i32 %36, 240
  %38 = lshr i32 %34, 16
  %39 = and i32 %38, 240
  %40 = lshr i32 %34, 24
  %41 = and i32 %40, 240
  %42 = zext nneg i32 %35 to i64
  %43 = zext nneg i32 %37 to i64
  %44 = zext nneg i32 %39 to i64
  %45 = zext nneg i32 %41 to i64
  %46 = getelementptr inbounds i8, ptr %1, i64 %24
  br label %47

47:                                               ; preds = %33, %47
  %indvars.iv75 = phi i64 [ 0, %33 ], [ %indvars.iv.next76, %47 ]
  %48 = call i64 @cpIsEqu_ct(i64 noundef %42, i64 noundef %indvars.iv75)
  %49 = call i64 @cpIsEqu_ct(i64 noundef %43, i64 noundef %indvars.iv75)
  %50 = call i64 @cpIsEqu_ct(i64 noundef %44, i64 noundef %indvars.iv75)
  %51 = call i64 @cpIsEqu_ct(i64 noundef %45, i64 noundef %indvars.iv75)
  %52 = getelementptr inbounds i8, ptr %46, i64 %indvars.iv75
  call void @MaskedXorBlock16(ptr noundef nonnull %4, ptr noundef %52, ptr noundef nonnull %4, i64 noundef %49)
  call void @MaskedXorBlock16(ptr noundef nonnull %5, ptr noundef %52, ptr noundef nonnull %5, i64 noundef %48)
  call void @MaskedXorBlock16(ptr noundef nonnull %6, ptr noundef %52, ptr noundef nonnull %6, i64 noundef %51)
  call void @MaskedXorBlock16(ptr noundef nonnull %7, ptr noundef %52, ptr noundef nonnull %7, i64 noundef %50)
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 16
  %53 = icmp ult i64 %indvars.iv75, 240
  br i1 %53, label %47, label %54, !llvm.loop !11

54:                                               ; preds = %47
  %indvars.iv.next79 = add nuw nsw i64 %indvars.iv78, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next79, 4
  br i1 %exitcond.not, label %55, label %10, !llvm.loop !12

55:                                               ; preds = %54
  %56 = getelementptr inbounds i8, ptr %7, i64 1
  call void @XorBlock(ptr noundef nonnull %56, ptr noundef nonnull %6, ptr noundef nonnull %56, i32 noundef 15)
  %57 = getelementptr inbounds i8, ptr %4, i64 1
  call void @XorBlock(ptr noundef nonnull %57, ptr noundef nonnull %7, ptr noundef nonnull %57, i32 noundef 15)
  %58 = getelementptr inbounds i8, ptr %5, i64 1
  call void @XorBlock(ptr noundef nonnull %58, ptr noundef nonnull %4, ptr noundef nonnull %58, i32 noundef 15)
  %59 = getelementptr inbounds i8, ptr %6, i64 15
  %60 = load i8, ptr %59, align 1, !tbaa !13
  %61 = zext i8 %60 to i32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #3
  %62 = call zeroext i16 @getAesGcmConst_table_ct(i32 noundef %61)
  %63 = zext i16 %62 to i32
  %64 = getelementptr inbounds i8, ptr %7, i64 15
  %65 = load i8, ptr %64, align 1, !tbaa !13
  %66 = zext i8 %65 to i32
  %67 = call zeroext i16 @getAesGcmConst_table_ct(i32 noundef %66)
  %68 = zext i16 %67 to i32
  %69 = shl nuw i32 %63, 16
  %70 = shl nuw nsw i32 %68, 8
  %71 = xor i32 %69, %70
  %72 = getelementptr inbounds i8, ptr %4, i64 15
  %73 = load i8, ptr %72, align 1, !tbaa !13
  %74 = zext i8 %73 to i32
  %75 = call zeroext i16 @getAesGcmConst_table_ct(i32 noundef %74)
  %76 = zext i16 %75 to i32
  %77 = xor i32 %71, %76
  store i32 %77, ptr %8, align 4, !tbaa !5
  call void @XorBlock(ptr noundef nonnull %5, ptr noundef nonnull %8, ptr noundef nonnull %5, i32 noundef 4)
  call void @CopyBlock16(ptr noundef nonnull %5, ptr noundef %0)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #3
  ret void
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @PadBlock(i8 noundef zeroext, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @cpIsEqu_ct(i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @MaskedXorBlock16(ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #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: inlinehint nounwind uwtable
declare hidden void @XorBlock(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @getAesGcmConst_table_ct(i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @CopyBlock16(ptr noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = !{!7, !7, i64 0}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass