; LLVM IR from intel/intel-ipsec-mb :: lib/x86_64 (hmac_ipad_opad)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.IMB_MGR = type { i64, i64, [4 x i64], [7 x i8], i8, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, [256 x %struct.IMB_JOB], ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.IMB_JOB = type { ptr, ptr, i64, %union.anon, %union.anon.0, %union.anon.1, %union.anon.2, i64, %union.anon.3, ptr, i64, ptr, i64, %union.anon.4, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, i32, %union.anon.5, [2 x i32], i32 }
%union.anon = type { ptr }
%union.anon.0 = type { ptr }
%union.anon.1 = type { i64 }
%union.anon.2 = type { i64 }
%union.anon.3 = type { i64 }
%union.anon.4 = type { %struct._AES_XCBC_specific_fields }
%struct._AES_XCBC_specific_fields = type { ptr, ptr, ptr }
%union.anon.5 = type { %struct._CBCS_specific_fields }
%struct._CBCS_specific_fields = type { ptr }

; Function Attrs: nounwind uwtable
define dso_local void @imb_hmac_ipad_opad(ptr noundef %0, i32 noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca [128 x i8], align 16
  %17 = alloca [128 x i8], align 16
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i64 %3, ptr %10, align 8, !tbaa !11
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store i64 0, ptr %14, align 8, !tbaa !11
  %18 = load i32, ptr %8, align 4, !tbaa !9
  switch i32 %18, label %74 [
    i32 1, label %19
    i32 2, label %27
    i32 3, label %35
    i32 4, label %43
    i32 5, label %51
    i32 7, label %59
    i32 48, label %66
  ]

19:                                               ; preds = %6
  %20 = load i64, ptr %10, align 8, !tbaa !11
  %21 = icmp ule i64 %20, 64
  br i1 %21, label %22, label %24

22:                                               ; preds = %19
  %23 = load i64, ptr %10, align 8, !tbaa !11
  br label %25

24:                                               ; preds = %19
  br label %25

25:                                               ; preds = %24, %22
  %26 = phi i64 [ %23, %22 ], [ 20, %24 ]
  store i64 %26, ptr %14, align 8, !tbaa !11
  br label %75

27:                                               ; preds = %6
  %28 = load i64, ptr %10, align 8, !tbaa !11
  %29 = icmp ule i64 %28, 64
  br i1 %29, label %30, label %32

30:                                               ; preds = %27
  %31 = load i64, ptr %10, align 8, !tbaa !11
  br label %33

32:                                               ; preds = %27
  br label %33

33:                                               ; preds = %32, %30
  %34 = phi i64 [ %31, %30 ], [ 28, %32 ]
  store i64 %34, ptr %14, align 8, !tbaa !11
  br label %75

35:                                               ; preds = %6
  %36 = load i64, ptr %10, align 8, !tbaa !11
  %37 = icmp ule i64 %36, 64
  br i1 %37, label %38, label %40

38:                                               ; preds = %35
  %39 = load i64, ptr %10, align 8, !tbaa !11
  br label %41

40:                                               ; preds = %35
  br label %41

41:                                               ; preds = %40, %38
  %42 = phi i64 [ %39, %38 ], [ 32, %40 ]
  store i64 %42, ptr %14, align 8, !tbaa !11
  br label %75

43:                                               ; preds = %6
  %44 = load i64, ptr %10, align 8, !tbaa !11
  %45 = icmp ule i64 %44, 128
  br i1 %45, label %46, label %48

46:                                               ; preds = %43
  %47 = load i64, ptr %10, align 8, !tbaa !11
  br label %49

48:                                               ; preds = %43
  br label %49

49:                                               ; preds = %48, %46
  %50 = phi i64 [ %47, %46 ], [ 48, %48 ]
  store i64 %50, ptr %14, align 8, !tbaa !11
  br label %75

51:                                               ; preds = %6
  %52 = load i64, ptr %10, align 8, !tbaa !11
  %53 = icmp ule i64 %52, 128
  br i1 %53, label %54, label %56

54:                                               ; preds = %51
  %55 = load i64, ptr %10, align 8, !tbaa !11
  br label %57

56:                                               ; preds = %51
  br label %57

57:                                               ; preds = %56, %54
  %58 = phi i64 [ %55, %54 ], [ 64, %56 ]
  store i64 %58, ptr %14, align 8, !tbaa !11
  br label %75

59:                                               ; preds = %6
  %60 = load i64, ptr %10, align 8, !tbaa !11
  %61 = icmp ule i64 %60, 64
  br i1 %61, label %62, label %64

62:                                               ; preds = %59
  %63 = load i64, ptr %10, align 8, !tbaa !11
  store i64 %63, ptr %14, align 8, !tbaa !11
  br label %65

64:                                               ; preds = %59
  call void @imb_set_errno(ptr noundef null, i32 noundef 2032)
  store i32 1, ptr %15, align 4
  br label %262

65:                                               ; preds = %62
  br label %75

66:                                               ; preds = %6
  %67 = load i64, ptr %10, align 8, !tbaa !11
  %68 = icmp ule i64 %67, 64
  br i1 %68, label %69, label %71

69:                                               ; preds = %66
  %70 = load i64, ptr %10, align 8, !tbaa !11
  br label %72

71:                                               ; preds = %66
  br label %72

72:                                               ; preds = %71, %69
  %73 = phi i64 [ %70, %69 ], [ 32, %71 ]
  store i64 %73, ptr %14, align 8, !tbaa !11
  br label %75

74:                                               ; preds = %6
  call void @imb_set_errno(ptr noundef null, i32 noundef 2017)
  store i32 1, ptr %15, align 4
  br label %262

75:                                               ; preds = %72, %65, %57, %49, %41, %33, %25
  call void @llvm.lifetime.start.p0(i64 128, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 128, ptr %17) #5
  %76 = load i64, ptr %14, align 8, !tbaa !11
  %77 = load i64, ptr %10, align 8, !tbaa !11
  %78 = icmp eq i64 %76, %77
  br i1 %78, label %79, label %83

79:                                               ; preds = %75
  %80 = getelementptr inbounds [128 x i8], ptr %16, i64 0, i64 0
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = load i64, ptr %10, align 8, !tbaa !11
  call void @safe_memcpy(ptr noundef %80, ptr noundef %81, i64 noundef %82)
  br label %125

83:                                               ; preds = %75
  %84 = load i32, ptr %8, align 4, !tbaa !9
  switch i32 %84, label %117 [
    i32 1, label %85
    i32 2, label %92
    i32 3, label %99
    i32 4, label %106
    i32 48, label %113
  ]

85:                                               ; preds = %83
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.IMB_MGR, ptr %86, i32 0, i32 25
  %88 = load ptr, ptr %87, align 8, !tbaa !13
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = load i64, ptr %10, align 8, !tbaa !11
  %91 = getelementptr inbounds [128 x i8], ptr %16, i64 0, i64 0
  call void %88(ptr noundef %89, i64 noundef %90, ptr noundef %91)
  br label %124

92:                                               ; preds = %83
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.IMB_MGR, ptr %93, i32 0, i32 26
  %95 = load ptr, ptr %94, align 8, !tbaa !15
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = load i64, ptr %10, align 8, !tbaa !11
  %98 = getelementptr inbounds [128 x i8], ptr %16, i64 0, i64 0
  call void %95(ptr noundef %96, i64 noundef %97, ptr noundef %98)
  br label %124

99:                                               ; preds = %83
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.IMB_MGR, ptr %100, i32 0, i32 27
  %102 = load ptr, ptr %101, align 8, !tbaa !16
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = load i64, ptr %10, align 8, !tbaa !11
  %105 = getelementptr inbounds [128 x i8], ptr %16, i64 0, i64 0
  call void %102(ptr noundef %103, i64 noundef %104, ptr noundef %105)
  br label %124

106:                                              ; preds = %83
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.IMB_MGR, ptr %107, i32 0, i32 28
  %109 = load ptr, ptr %108, align 8, !tbaa !17
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = load i64, ptr %10, align 8, !tbaa !11
  %112 = getelementptr inbounds [128 x i8], ptr %16, i64 0, i64 0
  call void %109(ptr noundef %110, i64 noundef %111, ptr noundef %112)
  br label %124

113:                                              ; preds = %83
  %114 = getelementptr inbounds [128 x i8], ptr %16, i64 0, i64 0
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = load i64, ptr %10, align 8, !tbaa !11
  call void @sm3_msg_sse(ptr noundef %114, i64 noundef 32, ptr noundef %115, i64 noundef %116)
  br label %124

117:                                              ; preds = %83
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.IMB_MGR, ptr %118, i32 0, i32 29
  %120 = load ptr, ptr %119, align 8, !tbaa !18
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = load i64, ptr %10, align 8, !tbaa !11
  %123 = getelementptr inbounds [128 x i8], ptr %16, i64 0, i64 0
  call void %120(ptr noundef %121, i64 noundef %122, ptr noundef %123)
  br label %124

124:                                              ; preds = %117, %113, %106, %99, %92, %85
  br label %125

125:                                              ; preds = %124, %79
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  %127 = icmp ne ptr %126, null
  br i1 %127, label %128, label %193

128:                                              ; preds = %125
  %129 = getelementptr inbounds [128 x i8], ptr %17, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %129, i8 54, i64 128, i1 false)
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %130

130:                                              ; preds = %148, %128
  %131 = load i32, ptr %13, align 4, !tbaa !9
  %132 = zext i32 %131 to i64
  %133 = load i64, ptr %14, align 8, !tbaa !11
  %134 = icmp ult i64 %132, %133
  br i1 %134, label %135, label %151

135:                                              ; preds = %130
  %136 = load i32, ptr %13, align 4, !tbaa !9
  %137 = zext i32 %136 to i64
  %138 = getelementptr inbounds [128 x i8], ptr %16, i64 0, i64 %137
  %139 = load i8, ptr %138, align 1, !tbaa !19
  %140 = zext i8 %139 to i32
  %141 = load i32, ptr %13, align 4, !tbaa !9
  %142 = zext i32 %141 to i64
  %143 = getelementptr inbounds [128 x i8], ptr %17, i64 0, i64 %142
  %144 = load i8, ptr %143, align 1, !tbaa !19
  %145 = zext i8 %144 to i32
  %146 = xor i32 %145, %140
  %147 = trunc i32 %146 to i8
  store i8 %147, ptr %143, align 1, !tbaa !19
  br label %148

148:                                              ; preds = %135
  %149 = load i32, ptr %13, align 4, !tbaa !9
  %150 = add i32 %149, 1
  store i32 %150, ptr %13, align 4, !tbaa !9
  br label %130, !llvm.loop !20

151:                                              ; preds = %130
  %152 = load i32, ptr %8, align 4, !tbaa !9
  switch i32 %152, label %186 [
    i32 1, label %153
    i32 2, label %159
    i32 3, label %165
    i32 4, label %171
    i32 5, label %177
    i32 48, label %183
  ]

153:                                              ; preds = %151
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.IMB_MGR, ptr %154, i32 0, i32 19
  %156 = load ptr, ptr %155, align 8, !tbaa !22
  %157 = getelementptr inbounds [128 x i8], ptr %17, i64 0, i64 0
  %158 = load ptr, ptr %11, align 8, !tbaa !5
  call void %156(ptr noundef %157, ptr noundef %158)
  br label %192

159:                                              ; preds = %151
  %160 = load ptr, ptr %7, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.IMB_MGR, ptr %160, i32 0, i32 20
  %162 = load ptr, ptr %161, align 8, !tbaa !23
  %163 = getelementptr inbounds [128 x i8], ptr %17, i64 0, i64 0
  %164 = load ptr, ptr %11, align 8, !tbaa !5
  call void %162(ptr noundef %163, ptr noundef %164)
  br label %192

165:                                              ; preds = %151
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.IMB_MGR, ptr %166, i32 0, i32 21
  %168 = load ptr, ptr %167, align 8, !tbaa !24
  %169 = getelementptr inbounds [128 x i8], ptr %17, i64 0, i64 0
  %170 = load ptr, ptr %11, align 8, !tbaa !5
  call void %168(ptr noundef %169, ptr noundef %170)
  br label %192

171:                                              ; preds = %151
  %172 = load ptr, ptr %7, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.IMB_MGR, ptr %172, i32 0, i32 22
  %174 = load ptr, ptr %173, align 8, !tbaa !25
  %175 = getelementptr inbounds [128 x i8], ptr %17, i64 0, i64 0
  %176 = load ptr, ptr %11, align 8, !tbaa !5
  call void %174(ptr noundef %175, ptr noundef %176)
  br label %192

177:                                              ; preds = %151
  %178 = load ptr, ptr %7, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.IMB_MGR, ptr %178, i32 0, i32 23
  %180 = load ptr, ptr %179, align 8, !tbaa !26
  %181 = getelementptr inbounds [128 x i8], ptr %17, i64 0, i64 0
  %182 = load ptr, ptr %11, align 8, !tbaa !5
  call void %180(ptr noundef %181, ptr noundef %182)
  br label %192

183:                                              ; preds = %151
  %184 = load ptr, ptr %11, align 8, !tbaa !5
  %185 = getelementptr inbounds [128 x i8], ptr %17, i64 0, i64 0
  call void @sm3_one_block_sse(ptr noundef %184, ptr noundef %185)
  br label %192

186:                                              ; preds = %151
  %187 = load ptr, ptr %7, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.IMB_MGR, ptr %187, i32 0, i32 24
  %189 = load ptr, ptr %188, align 8, !tbaa !27
  %190 = getelementptr inbounds [128 x i8], ptr %17, i64 0, i64 0
  %191 = load ptr, ptr %11, align 8, !tbaa !5
  call void %189(ptr noundef %190, ptr noundef %191)
  br label %192

192:                                              ; preds = %186, %183, %177, %171, %165, %159, %153
  br label %193

193:                                              ; preds = %192, %125
  %194 = load ptr, ptr %12, align 8, !tbaa !5
  %195 = icmp ne ptr %194, null
  br i1 %195, label %196, label %261

196:                                              ; preds = %193
  %197 = getelementptr inbounds [128 x i8], ptr %17, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %197, i8 92, i64 128, i1 false)
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %198

198:                                              ; preds = %216, %196
  %199 = load i32, ptr %13, align 4, !tbaa !9
  %200 = zext i32 %199 to i64
  %201 = load i64, ptr %14, align 8, !tbaa !11
  %202 = icmp ult i64 %200, %201
  br i1 %202, label %203, label %219

203:                                              ; preds = %198
  %204 = load i32, ptr %13, align 4, !tbaa !9
  %205 = zext i32 %204 to i64
  %206 = getelementptr inbounds [128 x i8], ptr %16, i64 0, i64 %205
  %207 = load i8, ptr %206, align 1, !tbaa !19
  %208 = zext i8 %207 to i32
  %209 = load i32, ptr %13, align 4, !tbaa !9
  %210 = zext i32 %209 to i64
  %211 = getelementptr inbounds [128 x i8], ptr %17, i64 0, i64 %210
  %212 = load i8, ptr %211, align 1, !tbaa !19
  %213 = zext i8 %212 to i32
  %214 = xor i32 %213, %208
  %215 = trunc i32 %214 to i8
  store i8 %215, ptr %211, align 1, !tbaa !19
  br label %216

216:                                              ; preds = %203
  %217 = load i32, ptr %13, align 4, !tbaa !9
  %218 = add i32 %217, 1
  store i32 %218, ptr %13, align 4, !tbaa !9
  br label %198, !llvm.loop !28

219:                                              ; preds = %198
  %220 = load i32, ptr %8, align 4, !tbaa !9
  switch i32 %220, label %254 [
    i32 1, label %221
    i32 2, label %227
    i32 3, label %233
    i32 4, label %239
    i32 5, label %245
    i32 48, label %251
  ]

221:                                              ; preds = %219
  %222 = load ptr, ptr %7, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.IMB_MGR, ptr %222, i32 0, i32 19
  %224 = load ptr, ptr %223, align 8, !tbaa !22
  %225 = getelementptr inbounds [128 x i8], ptr %17, i64 0, i64 0
  %226 = load ptr, ptr %12, align 8, !tbaa !5
  call void %224(ptr noundef %225, ptr noundef %226)
  br label %260

227:                                              ; preds = %219
  %228 = load ptr, ptr %7, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.IMB_MGR, ptr %228, i32 0, i32 20
  %230 = load ptr, ptr %229, align 8, !tbaa !23
  %231 = getelementptr inbounds [128 x i8], ptr %17, i64 0, i64 0
  %232 = load ptr, ptr %12, align 8, !tbaa !5
  call void %230(ptr noundef %231, ptr noundef %232)
  br label %260

233:                                              ; preds = %219
  %234 = load ptr, ptr %7, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.IMB_MGR, ptr %234, i32 0, i32 21
  %236 = load ptr, ptr %235, align 8, !tbaa !24
  %237 = getelementptr inbounds [128 x i8], ptr %17, i64 0, i64 0
  %238 = load ptr, ptr %12, align 8, !tbaa !5
  call void %236(ptr noundef %237, ptr noundef %238)
  br label %260

239:                                              ; preds = %219
  %240 = load ptr, ptr %7, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.IMB_MGR, ptr %240, i32 0, i32 22
  %242 = load ptr, ptr %241, align 8, !tbaa !25
  %243 = getelementptr inbounds [128 x i8], ptr %17, i64 0, i64 0
  %244 = load ptr, ptr %12, align 8, !tbaa !5
  call void %242(ptr noundef %243, ptr noundef %244)
  br label %260

245:                                              ; preds = %219
  %246 = load ptr, ptr %7, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.IMB_MGR, ptr %246, i32 0, i32 23
  %248 = load ptr, ptr %247, align 8, !tbaa !26
  %249 = getelementptr inbounds [128 x i8], ptr %17, i64 0, i64 0
  %250 = load ptr, ptr %12, align 8, !tbaa !5
  call void %248(ptr noundef %249, ptr noundef %250)
  br label %260

251:                                              ; preds = %219
  %252 = load ptr, ptr %12, align 8, !tbaa !5
  %253 = getelementptr inbounds [128 x i8], ptr %17, i64 0, i64 0
  call void @sm3_one_block_sse(ptr noundef %252, ptr noundef %253)
  br label %260

254:                                              ; preds = %219
  %255 = load ptr, ptr %7, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.IMB_MGR, ptr %255, i32 0, i32 24
  %257 = load ptr, ptr %256, align 8, !tbaa !27
  %258 = getelementptr inbounds [128 x i8], ptr %17, i64 0, i64 0
  %259 = load ptr, ptr %12, align 8, !tbaa !5
  call void %257(ptr noundef %258, ptr noundef %259)
  br label %260

260:                                              ; preds = %254, %251, %245, %239, %233, %227, %221
  br label %261

261:                                              ; preds = %260, %193
  call void @llvm.lifetime.end.p0(i64 128, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr %16) #5
  store i32 0, ptr %15, align 4
  br label %262

262:                                              ; preds = %261, %74, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  %263 = load i32, ptr %15, align 4
  switch i32 %263, label %265 [
    i32 0, label %264
    i32 1, label %264
  ]

264:                                              ; preds = %262, %262
  ret void

265:                                              ; preds = %262
  unreachable
}

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

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

declare void @safe_memcpy(ptr noundef, ptr noundef, i64 noundef) #3

declare void @sm3_msg_sse(ptr noundef, i64 noundef, ptr noundef, i64 noundef) #3

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

declare void @sm3_one_block_sse(ptr noundef, ptr noundef) #3

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

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 = { alwaysinline 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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", !7, i64 0}
!13 = !{!14, !6, i64 208}
!14 = !{!"IMB_MGR", !12, i64 0, !12, i64 8, !7, i64 16, !7, i64 48, !7, i64 55, !10, i64 56, !10, i64 60, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !6, i64 392, !6, i64 400, !6, i64 408, !6, i64 416, !6, i64 424, !6, i64 432, !6, i64 440, !6, i64 448, !6, i64 456, !6, i64 464, !6, i64 472, !6, i64 480, !6, i64 488, !6, i64 496, !6, i64 504, !6, i64 512, !6, i64 520, !6, i64 528, !6, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !6, i64 576, !6, i64 584, !6, i64 592, !6, i64 600, !6, i64 608, !6, i64 616, !6, i64 624, !6, i64 632, !6, i64 640, !6, i64 648, !6, i64 656, !6, i64 664, !6, i64 672, !6, i64 680, !6, i64 688, !6, i64 696, !6, i64 704, !6, i64 712, !6, i64 720, !6, i64 728, !6, i64 736, !6, i64 744, !6, i64 752, !6, i64 760, !6, i64 768, !6, i64 776, !6, i64 784, !6, i64 792, !6, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !6, i64 832, !6, i64 840, !6, i64 848, !6, i64 856, !6, i64 864, !6, i64 872, !6, i64 880, !6, i64 888, !6, i64 896, !6, i64 904, !6, i64 912, !6, i64 920, !6, i64 928, !6, i64 936, !6, i64 944, !6, i64 952, !6, i64 960, !6, i64 968, !6, i64 976, !6, i64 984, !6, i64 992, !6, i64 1000, !6, i64 1008, !6, i64 1016, !6, i64 1024, !6, i64 1032, !6, i64 1040, !6, i64 1048, !6, i64 1056, !6, i64 1064, !6, i64 1072, !6, i64 1080, !6, i64 1088, !6, i64 1096, !10, i64 1104, !10, i64 1108, !7, i64 1112, !6, i64 56408, !6, i64 56416, !6, i64 56424, !6, i64 56432, !6, i64 56440, !6, i64 56448, !6, i64 56456, !6, i64 56464, !6, i64 56472, !6, i64 56480, !6, i64 56488, !6, i64 56496, !6, i64 56504, !6, i64 56512, !6, i64 56520, !6, i64 56528, !6, i64 56536, !6, i64 56544, !6, i64 56552, !6, i64 56560, !6, i64 56568, !6, i64 56576, !6, i64 56584, !6, i64 56592, !6, i64 56600, !6, i64 56608, !6, i64 56616, !6, i64 56624, !6, i64 56632, !6, i64 56640, !6, i64 56648, !6, i64 56656, !6, i64 56664, !6, i64 56672, !6, i64 56680, !6, i64 56688, !6, i64 56696, !6, i64 56704, !6, i64 56712, !6, i64 56720, !6, i64 56728, !6, i64 56736}
!15 = !{!14, !6, i64 216}
!16 = !{!14, !6, i64 224}
!17 = !{!14, !6, i64 232}
!18 = !{!14, !6, i64 240}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!14, !6, i64 160}
!23 = !{!14, !6, i64 168}
!24 = !{!14, !6, i64 176}
!25 = !{!14, !6, i64 184}
!26 = !{!14, !6, i64 192}
!27 = !{!14, !6, i64 200}
!28 = distinct !{!28, !21}


; 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 @imb_hmac_ipad_opad(ptr nocapture noundef readonly %0, i32 noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, ptr noundef %5) local_unnamed_addr #0 {
  %7 = alloca [128 x i8], align 16
  %8 = alloca [128 x i8], align 16
  switch i32 %1, label %17 [
    i32 1, label %18
    i32 2, label %9
    i32 3, label %10
    i32 4, label %11
    i32 5, label %12
    i32 7, label %13
    i32 48, label %16
  ]

9:                                                ; preds = %6
  br label %18

10:                                               ; preds = %6
  br label %18

11:                                               ; preds = %6
  br label %18

12:                                               ; preds = %6
  br label %18

13:                                               ; preds = %6
  %14 = icmp ult i64 %3, 65
  br i1 %14, label %.thread, label %15

.thread:                                          ; preds = %13
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %8) #5
  br label %22

15:                                               ; preds = %13
  tail call void @imb_set_errno(ptr noundef null, i32 noundef 2032)
  br label %133

16:                                               ; preds = %6
  br label %18

17:                                               ; preds = %6
  tail call void @imb_set_errno(ptr noundef null, i32 noundef 2017)
  br label %133

18:                                               ; preds = %6, %16, %12, %11, %10, %9
  %.sink95 = phi i64 [ 65, %16 ], [ 129, %12 ], [ 129, %11 ], [ 65, %10 ], [ 65, %9 ], [ 65, %6 ]
  %.sink94 = phi i64 [ 32, %16 ], [ 64, %12 ], [ 48, %11 ], [ 32, %10 ], [ 28, %9 ], [ 20, %6 ]
  %19 = icmp ugt i64 %.sink95, %3
  %20 = select i1 %19, i64 %3, i64 %.sink94
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %8) #5
  %21 = icmp eq i64 %20, %3
  br i1 %21, label %22, label %23

22:                                               ; preds = %.thread, %18
  call void @safe_memcpy(ptr noundef nonnull %7, ptr noundef %2, i64 noundef %3) #5
  br label %40

23:                                               ; preds = %18
  switch i32 %1, label %37 [
    i32 1, label %24
    i32 2, label %27
    i32 3, label %30
    i32 4, label %33
    i32 48, label %36
  ]

24:                                               ; preds = %23
  %25 = getelementptr inbounds i8, ptr %0, i64 208
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  call void %26(ptr noundef %2, i64 noundef %3, ptr noundef nonnull %7) #5
  br label %40

27:                                               ; preds = %23
  %28 = getelementptr inbounds i8, ptr %0, i64 216
  %29 = load ptr, ptr %28, align 8, !tbaa !12
  call void %29(ptr noundef %2, i64 noundef %3, ptr noundef nonnull %7) #5
  br label %40

30:                                               ; preds = %23
  %31 = getelementptr inbounds i8, ptr %0, i64 224
  %32 = load ptr, ptr %31, align 8, !tbaa !13
  call void %32(ptr noundef %2, i64 noundef %3, ptr noundef nonnull %7) #5
  br label %40

33:                                               ; preds = %23
  %34 = getelementptr inbounds i8, ptr %0, i64 232
  %35 = load ptr, ptr %34, align 8, !tbaa !14
  call void %35(ptr noundef %2, i64 noundef %3, ptr noundef nonnull %7) #5
  br label %40

36:                                               ; preds = %23
  call void @sm3_msg_sse(ptr noundef nonnull %7, i64 noundef 32, ptr noundef %2, i64 noundef %3) #5
  br label %40

37:                                               ; preds = %23
  %38 = getelementptr inbounds i8, ptr %0, i64 240
  %39 = load ptr, ptr %38, align 8, !tbaa !15
  call void %39(ptr noundef %2, i64 noundef %3, ptr noundef nonnull %7) #5
  br label %40

40:                                               ; preds = %24, %27, %30, %33, %36, %37, %22
  %.085 = phi i64 [ %20, %24 ], [ %20, %27 ], [ %20, %30 ], [ %20, %33 ], [ %20, %36 ], [ %20, %37 ], [ %3, %22 ]
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %86, label %41

41:                                               ; preds = %40
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %8, i8 54, i64 128, i1 false)
  %.not92 = icmp eq i64 %.085, 0
  br i1 %.not92, label %._crit_edge, label %iter.check

iter.check:                                       ; preds = %41
  %min.iters.check = icmp ult i64 %.085, 8
  br i1 %min.iters.check, label %.lr.ph.preheader, label %vector.scevcheck

vector.scevcheck:                                 ; preds = %iter.check
  %42 = add i64 %.085, -1
  %43 = and i64 %42, 4294967295
  %44 = icmp eq i64 %43, 4294967295
  %45 = icmp ugt i64 %42, 4294967295
  %46 = or i1 %44, %45
  br i1 %46, label %.lr.ph.preheader, label %vector.main.loop.iter.check

vector.main.loop.iter.check:                      ; preds = %vector.scevcheck
  %min.iters.check96 = icmp ult i64 %.085, 32
  br i1 %min.iters.check96, label %vec.epilog.ph, label %vector.ph

vector.ph:                                        ; preds = %vector.main.loop.iter.check
  %n.vec = and i64 %.085, 8589934560
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %47 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 %index
  %48 = getelementptr inbounds i8, ptr %47, i64 16
  %wide.load = load <16 x i8>, ptr %47, align 16, !tbaa !16
  %wide.load97 = load <16 x i8>, ptr %48, align 16, !tbaa !16
  %49 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 %index
  %50 = getelementptr inbounds i8, ptr %49, i64 16
  %wide.load98 = load <16 x i8>, ptr %49, align 16, !tbaa !16
  %wide.load99 = load <16 x i8>, ptr %50, align 16, !tbaa !16
  %51 = xor <16 x i8> %wide.load98, %wide.load
  %52 = xor <16 x i8> %wide.load99, %wide.load97
  store <16 x i8> %51, ptr %49, align 16, !tbaa !16
  store <16 x i8> %52, ptr %50, align 16, !tbaa !16
  %index.next = add nuw i64 %index, 32
  %53 = icmp eq i64 %index.next, %n.vec
  br i1 %53, label %middle.block, label %vector.body, !llvm.loop !17

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %.085, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %vec.epilog.iter.check

vec.epilog.iter.check:                            ; preds = %middle.block
  %ind.end102 = trunc i64 %n.vec to i32
  %n.vec.remaining = and i64 %.085, 24
  %min.epilog.iters.check = icmp eq i64 %n.vec.remaining, 0
  br i1 %min.epilog.iters.check, label %.lr.ph.preheader, label %vec.epilog.ph

vec.epilog.ph:                                    ; preds = %vector.main.loop.iter.check, %vec.epilog.iter.check
  %vec.epilog.resume.val = phi i64 [ %n.vec, %vec.epilog.iter.check ], [ 0, %vector.main.loop.iter.check ]
  %n.vec101 = and i64 %.085, 8589934584
  %ind.end = trunc i64 %n.vec101 to i32
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index104 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next107, %vec.epilog.vector.body ]
  %54 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 %index104
  %wide.load105 = load <8 x i8>, ptr %54, align 8, !tbaa !16
  %55 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 %index104
  %wide.load106 = load <8 x i8>, ptr %55, align 8, !tbaa !16
  %56 = xor <8 x i8> %wide.load106, %wide.load105
  store <8 x i8> %56, ptr %55, align 8, !tbaa !16
  %index.next107 = add nuw i64 %index104, 8
  %57 = icmp eq i64 %index.next107, %n.vec101
  br i1 %57, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !21

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  %cmp.n108 = icmp eq i64 %.085, %n.vec101
  br i1 %cmp.n108, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %vec.epilog.middle.block, %vector.scevcheck, %iter.check, %vec.epilog.iter.check
  %.ph146 = phi i64 [ 0, %iter.check ], [ 0, %vector.scevcheck ], [ %n.vec, %vec.epilog.iter.check ], [ %n.vec101, %vec.epilog.middle.block ]
  %.07687.ph = phi i32 [ 0, %iter.check ], [ 0, %vector.scevcheck ], [ %ind.end102, %vec.epilog.iter.check ], [ %ind.end, %vec.epilog.middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %58 = phi i64 [ %65, %.lr.ph ], [ %.ph146, %.lr.ph.preheader ]
  %.07687 = phi i32 [ %64, %.lr.ph ], [ %.07687.ph, %.lr.ph.preheader ]
  %59 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 %58
  %60 = load i8, ptr %59, align 1, !tbaa !16
  %61 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 %58
  %62 = load i8, ptr %61, align 1, !tbaa !16
  %63 = xor i8 %62, %60
  store i8 %63, ptr %61, align 1, !tbaa !16
  %64 = add i32 %.07687, 1
  %65 = zext i32 %64 to i64
  %66 = icmp ugt i64 %.085, %65
  br i1 %66, label %.lr.ph, label %._crit_edge, !llvm.loop !22

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %vec.epilog.middle.block, %41
  switch i32 %1, label %83 [
    i32 1, label %67
    i32 2, label %70
    i32 3, label %73
    i32 4, label %76
    i32 5, label %79
    i32 48, label %82
  ]

67:                                               ; preds = %._crit_edge
  %68 = getelementptr inbounds i8, ptr %0, i64 160
  %69 = load ptr, ptr %68, align 8, !tbaa !23
  call void %69(ptr noundef nonnull %8, ptr noundef nonnull %4) #5
  br label %86

70:                                               ; preds = %._crit_edge
  %71 = getelementptr inbounds i8, ptr %0, i64 168
  %72 = load ptr, ptr %71, align 8, !tbaa !24
  call void %72(ptr noundef nonnull %8, ptr noundef nonnull %4) #5
  br label %86

73:                                               ; preds = %._crit_edge
  %74 = getelementptr inbounds i8, ptr %0, i64 176
  %75 = load ptr, ptr %74, align 8, !tbaa !25
  call void %75(ptr noundef nonnull %8, ptr noundef nonnull %4) #5
  br label %86

76:                                               ; preds = %._crit_edge
  %77 = getelementptr inbounds i8, ptr %0, i64 184
  %78 = load ptr, ptr %77, align 8, !tbaa !26
  call void %78(ptr noundef nonnull %8, ptr noundef nonnull %4) #5
  br label %86

79:                                               ; preds = %._crit_edge
  %80 = getelementptr inbounds i8, ptr %0, i64 192
  %81 = load ptr, ptr %80, align 8, !tbaa !27
  call void %81(ptr noundef nonnull %8, ptr noundef nonnull %4) #5
  br label %86

82:                                               ; preds = %._crit_edge
  call void @sm3_one_block_sse(ptr noundef nonnull %4, ptr noundef nonnull %8) #5
  br label %86

83:                                               ; preds = %._crit_edge
  %84 = getelementptr inbounds i8, ptr %0, i64 200
  %85 = load ptr, ptr %84, align 8, !tbaa !28
  call void %85(ptr noundef nonnull %8, ptr noundef nonnull %4) #5
  br label %86

86:                                               ; preds = %67, %70, %73, %76, %79, %82, %83, %40
  %.not83 = icmp eq ptr %5, null
  br i1 %.not83, label %132, label %87

87:                                               ; preds = %86
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(128) %8, i8 92, i64 128, i1 false)
  %.not93 = icmp eq i64 %.085, 0
  br i1 %.not93, label %._crit_edge91, label %iter.check113

iter.check113:                                    ; preds = %87
  %min.iters.check111 = icmp ult i64 %.085, 8
  br i1 %min.iters.check111, label %.lr.ph90.preheader, label %vector.scevcheck109

vector.scevcheck109:                              ; preds = %iter.check113
  %88 = add i64 %.085, -1
  %89 = and i64 %88, 4294967295
  %90 = icmp eq i64 %89, 4294967295
  %91 = icmp ugt i64 %88, 4294967295
  %92 = or i1 %90, %91
  br i1 %92, label %.lr.ph90.preheader, label %vector.main.loop.iter.check115

vector.main.loop.iter.check115:                   ; preds = %vector.scevcheck109
  %min.iters.check114 = icmp ult i64 %.085, 32
  br i1 %min.iters.check114, label %vec.epilog.ph129, label %vector.ph116

vector.ph116:                                     ; preds = %vector.main.loop.iter.check115
  %n.vec118 = and i64 %.085, 8589934560
  br label %vector.body119

vector.body119:                                   ; preds = %vector.body119, %vector.ph116
  %index120 = phi i64 [ 0, %vector.ph116 ], [ %index.next125, %vector.body119 ]
  %93 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 %index120
  %94 = getelementptr inbounds i8, ptr %93, i64 16
  %wide.load121 = load <16 x i8>, ptr %93, align 16, !tbaa !16
  %wide.load122 = load <16 x i8>, ptr %94, align 16, !tbaa !16
  %95 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 %index120
  %96 = getelementptr inbounds i8, ptr %95, i64 16
  %wide.load123 = load <16 x i8>, ptr %95, align 16, !tbaa !16
  %wide.load124 = load <16 x i8>, ptr %96, align 16, !tbaa !16
  %97 = xor <16 x i8> %wide.load123, %wide.load121
  %98 = xor <16 x i8> %wide.load124, %wide.load122
  store <16 x i8> %97, ptr %95, align 16, !tbaa !16
  store <16 x i8> %98, ptr %96, align 16, !tbaa !16
  %index.next125 = add nuw i64 %index120, 32
  %99 = icmp eq i64 %index.next125, %n.vec118
  br i1 %99, label %middle.block110, label %vector.body119, !llvm.loop !29

middle.block110:                                  ; preds = %vector.body119
  %cmp.n126 = icmp eq i64 %.085, %n.vec118
  br i1 %cmp.n126, label %._crit_edge91, label %vec.epilog.iter.check130

vec.epilog.iter.check130:                         ; preds = %middle.block110
  %ind.end138 = trunc i64 %n.vec118 to i32
  %n.vec.remaining131 = and i64 %.085, 24
  %min.epilog.iters.check132 = icmp eq i64 %n.vec.remaining131, 0
  br i1 %min.epilog.iters.check132, label %.lr.ph90.preheader, label %vec.epilog.ph129

vec.epilog.ph129:                                 ; preds = %vector.main.loop.iter.check115, %vec.epilog.iter.check130
  %vec.epilog.resume.val133 = phi i64 [ %n.vec118, %vec.epilog.iter.check130 ], [ 0, %vector.main.loop.iter.check115 ]
  %n.vec135 = and i64 %.085, 8589934584
  %ind.end137 = trunc i64 %n.vec135 to i32
  br label %vec.epilog.vector.body140

vec.epilog.vector.body140:                        ; preds = %vec.epilog.vector.body140, %vec.epilog.ph129
  %index141 = phi i64 [ %vec.epilog.resume.val133, %vec.epilog.ph129 ], [ %index.next144, %vec.epilog.vector.body140 ]
  %100 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 %index141
  %wide.load142 = load <8 x i8>, ptr %100, align 8, !tbaa !16
  %101 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 %index141
  %wide.load143 = load <8 x i8>, ptr %101, align 8, !tbaa !16
  %102 = xor <8 x i8> %wide.load143, %wide.load142
  store <8 x i8> %102, ptr %101, align 8, !tbaa !16
  %index.next144 = add nuw i64 %index141, 8
  %103 = icmp eq i64 %index.next144, %n.vec135
  br i1 %103, label %vec.epilog.middle.block127, label %vec.epilog.vector.body140, !llvm.loop !30

vec.epilog.middle.block127:                       ; preds = %vec.epilog.vector.body140
  %cmp.n145 = icmp eq i64 %.085, %n.vec135
  br i1 %cmp.n145, label %._crit_edge91, label %.lr.ph90.preheader

.lr.ph90.preheader:                               ; preds = %vec.epilog.middle.block127, %vector.scevcheck109, %iter.check113, %vec.epilog.iter.check130
  %.ph = phi i64 [ 0, %iter.check113 ], [ 0, %vector.scevcheck109 ], [ %n.vec118, %vec.epilog.iter.check130 ], [ %n.vec135, %vec.epilog.middle.block127 ]
  %.188.ph = phi i32 [ 0, %iter.check113 ], [ 0, %vector.scevcheck109 ], [ %ind.end138, %vec.epilog.iter.check130 ], [ %ind.end137, %vec.epilog.middle.block127 ]
  br label %.lr.ph90

.lr.ph90:                                         ; preds = %.lr.ph90.preheader, %.lr.ph90
  %104 = phi i64 [ %111, %.lr.ph90 ], [ %.ph, %.lr.ph90.preheader ]
  %.188 = phi i32 [ %110, %.lr.ph90 ], [ %.188.ph, %.lr.ph90.preheader ]
  %105 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 %104
  %106 = load i8, ptr %105, align 1, !tbaa !16
  %107 = getelementptr inbounds [128 x i8], ptr %8, i64 0, i64 %104
  %108 = load i8, ptr %107, align 1, !tbaa !16
  %109 = xor i8 %108, %106
  store i8 %109, ptr %107, align 1, !tbaa !16
  %110 = add i32 %.188, 1
  %111 = zext i32 %110 to i64
  %112 = icmp ugt i64 %.085, %111
  br i1 %112, label %.lr.ph90, label %._crit_edge91, !llvm.loop !31

._crit_edge91:                                    ; preds = %.lr.ph90, %middle.block110, %vec.epilog.middle.block127, %87
  switch i32 %1, label %129 [
    i32 1, label %113
    i32 2, label %116
    i32 3, label %119
    i32 4, label %122
    i32 5, label %125
    i32 48, label %128
  ]

113:                                              ; preds = %._crit_edge91
  %114 = getelementptr inbounds i8, ptr %0, i64 160
  %115 = load ptr, ptr %114, align 8, !tbaa !23
  call void %115(ptr noundef nonnull %8, ptr noundef nonnull %5) #5
  br label %132

116:                                              ; preds = %._crit_edge91
  %117 = getelementptr inbounds i8, ptr %0, i64 168
  %118 = load ptr, ptr %117, align 8, !tbaa !24
  call void %118(ptr noundef nonnull %8, ptr noundef nonnull %5) #5
  br label %132

119:                                              ; preds = %._crit_edge91
  %120 = getelementptr inbounds i8, ptr %0, i64 176
  %121 = load ptr, ptr %120, align 8, !tbaa !25
  call void %121(ptr noundef nonnull %8, ptr noundef nonnull %5) #5
  br label %132

122:                                              ; preds = %._crit_edge91
  %123 = getelementptr inbounds i8, ptr %0, i64 184
  %124 = load ptr, ptr %123, align 8, !tbaa !26
  call void %124(ptr noundef nonnull %8, ptr noundef nonnull %5) #5
  br label %132

125:                                              ; preds = %._crit_edge91
  %126 = getelementptr inbounds i8, ptr %0, i64 192
  %127 = load ptr, ptr %126, align 8, !tbaa !27
  call void %127(ptr noundef nonnull %8, ptr noundef nonnull %5) #5
  br label %132

128:                                              ; preds = %._crit_edge91
  call void @sm3_one_block_sse(ptr noundef nonnull %5, ptr noundef nonnull %8) #5
  br label %132

129:                                              ; preds = %._crit_edge91
  %130 = getelementptr inbounds i8, ptr %0, i64 200
  %131 = load ptr, ptr %130, align 8, !tbaa !28
  call void %131(ptr noundef nonnull %8, ptr noundef nonnull %5) #5
  br label %132

132:                                              ; preds = %113, %116, %119, %122, %125, %128, %129, %86
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %7) #5
  br label %133

133:                                              ; preds = %132, %17, %15
  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: alwaysinline nounwind uwtable
declare hidden void @imb_set_errno(ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @safe_memcpy(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

declare void @sm3_msg_sse(ptr noundef, i64 noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

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

declare void @sm3_one_block_sse(ptr noundef, ptr noundef) local_unnamed_addr #3

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

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 = { alwaysinline 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 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 208}
!6 = !{!"IMB_MGR", !7, i64 0, !7, i64 8, !8, i64 16, !8, i64 48, !8, i64 55, !10, i64 56, !10, i64 60, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !11, i64 184, !11, i64 192, !11, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !11, i64 248, !11, i64 256, !11, i64 264, !11, i64 272, !11, i64 280, !11, i64 288, !11, i64 296, !11, i64 304, !11, i64 312, !11, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !11, i64 360, !11, i64 368, !11, i64 376, !11, i64 384, !11, i64 392, !11, i64 400, !11, i64 408, !11, i64 416, !11, i64 424, !11, i64 432, !11, i64 440, !11, i64 448, !11, i64 456, !11, i64 464, !11, i64 472, !11, i64 480, !11, i64 488, !11, i64 496, !11, i64 504, !11, i64 512, !11, i64 520, !11, i64 528, !11, i64 536, !11, i64 544, !11, i64 552, !11, i64 560, !11, i64 568, !11, i64 576, !11, i64 584, !11, i64 592, !11, i64 600, !11, i64 608, !11, i64 616, !11, i64 624, !11, i64 632, !11, i64 640, !11, i64 648, !11, i64 656, !11, i64 664, !11, i64 672, !11, i64 680, !11, i64 688, !11, i64 696, !11, i64 704, !11, i64 712, !11, i64 720, !11, i64 728, !11, i64 736, !11, i64 744, !11, i64 752, !11, i64 760, !11, i64 768, !11, i64 776, !11, i64 784, !11, i64 792, !11, i64 800, !11, i64 808, !11, i64 816, !11, i64 824, !11, i64 832, !11, i64 840, !11, i64 848, !11, i64 856, !11, i64 864, !11, i64 872, !11, i64 880, !11, i64 888, !11, i64 896, !11, i64 904, !11, i64 912, !11, i64 920, !11, i64 928, !11, i64 936, !11, i64 944, !11, i64 952, !11, i64 960, !11, i64 968, !11, i64 976, !11, i64 984, !11, i64 992, !11, i64 1000, !11, i64 1008, !11, i64 1016, !11, i64 1024, !11, i64 1032, !11, i64 1040, !11, i64 1048, !11, i64 1056, !11, i64 1064, !11, i64 1072, !11, i64 1080, !11, i64 1088, !11, i64 1096, !10, i64 1104, !10, i64 1108, !8, i64 1112, !11, i64 56408, !11, i64 56416, !11, i64 56424, !11, i64 56432, !11, i64 56440, !11, i64 56448, !11, i64 56456, !11, i64 56464, !11, i64 56472, !11, i64 56480, !11, i64 56488, !11, i64 56496, !11, i64 56504, !11, i64 56512, !11, i64 56520, !11, i64 56528, !11, i64 56536, !11, i64 56544, !11, i64 56552, !11, i64 56560, !11, i64 56568, !11, i64 56576, !11, i64 56584, !11, i64 56592, !11, i64 56600, !11, i64 56608, !11, i64 56616, !11, i64 56624, !11, i64 56632, !11, i64 56640, !11, i64 56648, !11, i64 56656, !11, i64 56664, !11, i64 56672, !11, i64 56680, !11, i64 56688, !11, i64 56696, !11, i64 56704, !11, i64 56712, !11, i64 56720, !11, i64 56728, !11, i64 56736}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !11, i64 216}
!13 = !{!6, !11, i64 224}
!14 = !{!6, !11, i64 232}
!15 = !{!6, !11, i64 240}
!16 = !{!8, !8, i64 0}
!17 = distinct !{!17, !18, !19, !20}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!"llvm.loop.isvectorized", i32 1}
!20 = !{!"llvm.loop.unroll.runtime.disable"}
!21 = distinct !{!21, !18, !19, !20}
!22 = distinct !{!22, !18, !19}
!23 = !{!6, !11, i64 160}
!24 = !{!6, !11, i64 168}
!25 = !{!6, !11, i64 176}
!26 = !{!6, !11, i64 184}
!27 = !{!6, !11, i64 192}
!28 = !{!6, !11, i64 200}
!29 = distinct !{!29, !18, !19, !20}
!30 = distinct !{!30, !18, !19, !20}
!31 = distinct !{!31, !18, !19}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass