; LLVM IR from cryspen/libcrux :: sys/hacl/c/src/msvc (Hacl_HMAC)

; 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.K___uint32_t_uint32_t_s = type { i32, i32 }

@.str = external hidden unnamed_addr constant [70 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [81 x i8], align 1
@__const.Hacl_HMAC_compute_sha1.s = external hidden unnamed_addr constant [5 x i32], align 16

; Function Attrs: nounwind uwtable
define dso_local void @Hacl_HMAC_compute_sha1(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i8, align 1
  %23 = alloca i8, align 1
  %24 = alloca [5 x i32], align 16
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca %struct.K___uint32_t_uint32_t_s, align 4
  %30 = alloca i32, align 4
  %31 = alloca %struct.K___uint32_t_uint32_t_s, align 4
  %32 = alloca %struct.K___uint32_t_uint32_t_s, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca %struct.K___uint32_t_uint32_t_s, align 4
  %43 = alloca i32, align 4
  %44 = alloca %struct.K___uint32_t_uint32_t_s, align 4
  %45 = alloca %struct.K___uint32_t_uint32_t_s, align 4
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca ptr, align 8
  %50 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 64, ptr %11, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %5
  %52 = load i32, ptr %11, align 4, !tbaa !9
  %53 = zext i32 %52 to i64
  %54 = icmp ugt i64 %53, -1
  br i1 %54, label %55, label %57

55:                                               ; preds = %51
  %56 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 50)
  call void @exit(i32 noundef 253) #7
  unreachable

57:                                               ; preds = %51
  br label %58

58:                                               ; preds = %57
  br label %59

59:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %60 = load i32, ptr %11, align 4, !tbaa !9
  %61 = zext i32 %60 to i64
  %62 = mul i64 %61, 1
  %63 = alloca i8, i64 %62, align 16
  store ptr %63, ptr %12, align 8, !tbaa !5
  %64 = load ptr, ptr %12, align 8, !tbaa !5
  %65 = load i32, ptr %11, align 4, !tbaa !9
  %66 = zext i32 %65 to i64
  %67 = mul i64 %66, 1
  call void @llvm.memset.p0.i64(ptr align 1 %64, i8 0, i64 %67, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %68, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %69 = load i32, ptr %8, align 4, !tbaa !9
  %70 = icmp ule i32 %69, 64
  br i1 %70, label %71, label %73

71:                                               ; preds = %59
  %72 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %72, ptr %14, align 4, !tbaa !9
  br label %74

73:                                               ; preds = %59
  store i32 20, ptr %14, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %73, %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %75 = load ptr, ptr %12, align 8, !tbaa !5
  %76 = load i32, ptr %14, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = getelementptr inbounds i8, ptr %75, i64 %77
  store ptr %78, ptr %15, align 8, !tbaa !5
  %79 = load ptr, ptr %15, align 8, !tbaa !5
  %80 = load i32, ptr %8, align 4, !tbaa !9
  %81 = icmp ule i32 %80, 64
  br i1 %81, label %82, label %88

82:                                               ; preds = %74
  %83 = load ptr, ptr %13, align 8, !tbaa !5
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = load i32, ptr %8, align 4, !tbaa !9
  %86 = zext i32 %85 to i64
  %87 = mul i64 %86, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %83, ptr align 1 %84, i64 %87, i1 false)
  br label %92

88:                                               ; preds = %74
  %89 = load ptr, ptr %13, align 8, !tbaa !5
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = load i32, ptr %8, align 4, !tbaa !9
  call void @Hacl_Hash_SHA1_hash_oneshot(ptr noundef %89, ptr noundef %90, i32 noundef %91)
  br label %92

92:                                               ; preds = %88, %82
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %11, align 4, !tbaa !9
  %95 = zext i32 %94 to i64
  %96 = icmp ugt i64 %95, -1
  br i1 %96, label %97, label %99

97:                                               ; preds = %93
  %98 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 73)
  call void @exit(i32 noundef 253) #7
  unreachable

99:                                               ; preds = %93
  br label %100

100:                                              ; preds = %99
  br label %101

101:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %102 = load i32, ptr %11, align 4, !tbaa !9
  %103 = zext i32 %102 to i64
  %104 = mul i64 %103, 1
  %105 = alloca i8, i64 %104, align 16
  store ptr %105, ptr %16, align 8, !tbaa !5
  %106 = load ptr, ptr %16, align 8, !tbaa !5
  %107 = load i32, ptr %11, align 4, !tbaa !9
  %108 = zext i32 %107 to i64
  %109 = mul i64 %108, 1
  call void @llvm.memset.p0.i64(ptr align 1 %106, i8 54, i64 %109, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %136, %101
  %111 = load i32, ptr %17, align 4, !tbaa !9
  %112 = load i32, ptr %11, align 4, !tbaa !9
  %113 = icmp ult i32 %111, %112
  br i1 %113, label %115, label %114

114:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %139

115:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #6
  %116 = load ptr, ptr %16, align 8, !tbaa !5
  %117 = load i32, ptr %17, align 4, !tbaa !9
  %118 = zext i32 %117 to i64
  %119 = getelementptr inbounds i8, ptr %116, i64 %118
  %120 = load i8, ptr %119, align 1, !tbaa !11
  store i8 %120, ptr %18, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  %121 = load ptr, ptr %12, align 8, !tbaa !5
  %122 = load i32, ptr %17, align 4, !tbaa !9
  %123 = zext i32 %122 to i64
  %124 = getelementptr inbounds i8, ptr %121, i64 %123
  %125 = load i8, ptr %124, align 1, !tbaa !11
  store i8 %125, ptr %19, align 1, !tbaa !11
  %126 = load i8, ptr %18, align 1, !tbaa !11
  %127 = zext i8 %126 to i32
  %128 = load i8, ptr %19, align 1, !tbaa !11
  %129 = zext i8 %128 to i32
  %130 = xor i32 %127, %129
  %131 = trunc i32 %130 to i8
  %132 = load ptr, ptr %16, align 8, !tbaa !5
  %133 = load i32, ptr %17, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = getelementptr inbounds i8, ptr %132, i64 %134
  store i8 %131, ptr %135, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  br label %136

136:                                              ; preds = %115
  %137 = load i32, ptr %17, align 4, !tbaa !9
  %138 = add i32 %137, 1
  store i32 %138, ptr %17, align 4, !tbaa !9
  br label %110, !llvm.loop !12

139:                                              ; preds = %114
  br label %140

140:                                              ; preds = %139
  %141 = load i32, ptr %11, align 4, !tbaa !9
  %142 = zext i32 %141 to i64
  %143 = icmp ugt i64 %142, -1
  br i1 %143, label %144, label %146

144:                                              ; preds = %140
  %145 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 82)
  call void @exit(i32 noundef 253) #7
  unreachable

146:                                              ; preds = %140
  br label %147

147:                                              ; preds = %146
  br label %148

148:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %149 = load i32, ptr %11, align 4, !tbaa !9
  %150 = zext i32 %149 to i64
  %151 = mul i64 %150, 1
  %152 = alloca i8, i64 %151, align 16
  store ptr %152, ptr %20, align 8, !tbaa !5
  %153 = load ptr, ptr %20, align 8, !tbaa !5
  %154 = load i32, ptr %11, align 4, !tbaa !9
  %155 = zext i32 %154 to i64
  %156 = mul i64 %155, 1
  call void @llvm.memset.p0.i64(ptr align 1 %153, i8 92, i64 %156, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %157

157:                                              ; preds = %183, %148
  %158 = load i32, ptr %21, align 4, !tbaa !9
  %159 = load i32, ptr %11, align 4, !tbaa !9
  %160 = icmp ult i32 %158, %159
  br i1 %160, label %162, label %161

161:                                              ; preds = %157
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %186

162:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #6
  %163 = load ptr, ptr %20, align 8, !tbaa !5
  %164 = load i32, ptr %21, align 4, !tbaa !9
  %165 = zext i32 %164 to i64
  %166 = getelementptr inbounds i8, ptr %163, i64 %165
  %167 = load i8, ptr %166, align 1, !tbaa !11
  store i8 %167, ptr %22, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #6
  %168 = load ptr, ptr %12, align 8, !tbaa !5
  %169 = load i32, ptr %21, align 4, !tbaa !9
  %170 = zext i32 %169 to i64
  %171 = getelementptr inbounds i8, ptr %168, i64 %170
  %172 = load i8, ptr %171, align 1, !tbaa !11
  store i8 %172, ptr %23, align 1, !tbaa !11
  %173 = load i8, ptr %22, align 1, !tbaa !11
  %174 = zext i8 %173 to i32
  %175 = load i8, ptr %23, align 1, !tbaa !11
  %176 = zext i8 %175 to i32
  %177 = xor i32 %174, %176
  %178 = trunc i32 %177 to i8
  %179 = load ptr, ptr %20, align 8, !tbaa !5
  %180 = load i32, ptr %21, align 4, !tbaa !9
  %181 = zext i32 %180 to i64
  %182 = getelementptr inbounds i8, ptr %179, i64 %181
  store i8 %178, ptr %182, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #6
  br label %183

183:                                              ; preds = %162
  %184 = load i32, ptr %21, align 4, !tbaa !9
  %185 = add i32 %184, 1
  store i32 %185, ptr %21, align 4, !tbaa !9
  br label %157, !llvm.loop !14

186:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 20, ptr %24) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 @__const.Hacl_HMAC_compute_sha1.s, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %187 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %187, ptr %25, align 8, !tbaa !5
  %188 = load i32, ptr %10, align 4, !tbaa !9
  %189 = icmp eq i32 %188, 0
  br i1 %189, label %190, label %193

190:                                              ; preds = %186
  %191 = getelementptr inbounds [5 x i32], ptr %24, i64 0, i64 0
  %192 = load ptr, ptr %16, align 8, !tbaa !5
  call void @Hacl_Hash_SHA1_update_last(ptr noundef %191, i64 noundef 0, ptr noundef %192, i32 noundef 64)
  br label %245

193:                                              ; preds = %186
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 64, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %194 = load i32, ptr %10, align 4, !tbaa !9
  %195 = load i32, ptr %26, align 4, !tbaa !9
  %196 = udiv i32 %194, %195
  store i32 %196, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %197 = load i32, ptr %10, align 4, !tbaa !9
  %198 = load i32, ptr %26, align 4, !tbaa !9
  %199 = urem i32 %197, %198
  store i32 %199, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %200 = load i32, ptr %27, align 4, !tbaa !9
  %201 = icmp ugt i32 %200, 0
  br i1 %201, label %202, label %216

202:                                              ; preds = %193
  %203 = load i32, ptr %28, align 4, !tbaa !9
  %204 = icmp eq i32 %203, 0
  br i1 %204, label %205, label %216

205:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %206 = load i32, ptr %27, align 4, !tbaa !9
  %207 = sub i32 %206, 1
  store i32 %207, ptr %30, align 4, !tbaa !9
  %208 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %31, i32 0, i32 0
  %209 = load i32, ptr %30, align 4, !tbaa !9
  store i32 %209, ptr %208, align 4, !tbaa !15
  %210 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %31, i32 0, i32 1
  %211 = load i32, ptr %10, align 4, !tbaa !9
  %212 = load i32, ptr %30, align 4, !tbaa !9
  %213 = load i32, ptr %26, align 4, !tbaa !9
  %214 = mul i32 %212, %213
  %215 = sub i32 %211, %214
  store i32 %215, ptr %210, align 4, !tbaa !17
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %31, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %221

216:                                              ; preds = %202, %193
  %217 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %32, i32 0, i32 0
  %218 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %218, ptr %217, align 4, !tbaa !15
  %219 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %32, i32 0, i32 1
  %220 = load i32, ptr %28, align 4, !tbaa !9
  store i32 %220, ptr %219, align 4, !tbaa !17
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 4 %32, i64 8, i1 false), !tbaa.struct !18
  br label %221

221:                                              ; preds = %216, %205
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  %222 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %29, i32 0, i32 0
  %223 = load i32, ptr %222, align 4, !tbaa !15
  store i32 %223, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  %224 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %29, i32 0, i32 1
  %225 = load i32, ptr %224, align 4, !tbaa !17
  store i32 %225, ptr %34, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  %226 = load i32, ptr %33, align 4, !tbaa !9
  %227 = load i32, ptr %26, align 4, !tbaa !9
  %228 = mul i32 %226, %227
  store i32 %228, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  %229 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %229, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  %230 = load ptr, ptr %9, align 8, !tbaa !5
  %231 = load i32, ptr %35, align 4, !tbaa !9
  %232 = zext i32 %231 to i64
  %233 = getelementptr inbounds i8, ptr %230, i64 %232
  store ptr %233, ptr %37, align 8, !tbaa !5
  %234 = getelementptr inbounds [5 x i32], ptr %24, i64 0, i64 0
  %235 = load ptr, ptr %16, align 8, !tbaa !5
  call void @Hacl_Hash_SHA1_update_multi(ptr noundef %234, ptr noundef %235, i32 noundef 1)
  %236 = getelementptr inbounds [5 x i32], ptr %24, i64 0, i64 0
  %237 = load ptr, ptr %36, align 8, !tbaa !5
  %238 = load i32, ptr %33, align 4, !tbaa !9
  call void @Hacl_Hash_SHA1_update_multi(ptr noundef %236, ptr noundef %237, i32 noundef %238)
  %239 = getelementptr inbounds [5 x i32], ptr %24, i64 0, i64 0
  %240 = load i32, ptr %35, align 4, !tbaa !9
  %241 = zext i32 %240 to i64
  %242 = add i64 64, %241
  %243 = load ptr, ptr %37, align 8, !tbaa !5
  %244 = load i32, ptr %34, align 4, !tbaa !9
  call void @Hacl_Hash_SHA1_update_last(ptr noundef %239, i64 noundef %242, ptr noundef %243, i32 noundef %244)
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %245

245:                                              ; preds = %221, %190
  %246 = getelementptr inbounds [5 x i32], ptr %24, i64 0, i64 0
  %247 = load ptr, ptr %25, align 8, !tbaa !5
  call void @Hacl_Hash_SHA1_finish(ptr noundef %246, ptr noundef %247)
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #6
  %248 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %248, ptr %38, align 8, !tbaa !5
  %249 = getelementptr inbounds [5 x i32], ptr %24, i64 0, i64 0
  call void @Hacl_Hash_SHA1_init(ptr noundef %249)
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #6
  store i32 64, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #6
  %250 = load i32, ptr %39, align 4, !tbaa !9
  %251 = udiv i32 20, %250
  store i32 %251, ptr %40, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  %252 = load i32, ptr %39, align 4, !tbaa !9
  %253 = urem i32 20, %252
  store i32 %253, ptr %41, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #6
  %254 = load i32, ptr %40, align 4, !tbaa !9
  %255 = icmp ugt i32 %254, 0
  br i1 %255, label %256, label %269

256:                                              ; preds = %245
  %257 = load i32, ptr %41, align 4, !tbaa !9
  %258 = icmp eq i32 %257, 0
  br i1 %258, label %259, label %269

259:                                              ; preds = %256
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #6
  %260 = load i32, ptr %40, align 4, !tbaa !9
  %261 = sub i32 %260, 1
  store i32 %261, ptr %43, align 4, !tbaa !9
  %262 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %44, i32 0, i32 0
  %263 = load i32, ptr %43, align 4, !tbaa !9
  store i32 %263, ptr %262, align 4, !tbaa !15
  %264 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %44, i32 0, i32 1
  %265 = load i32, ptr %43, align 4, !tbaa !9
  %266 = load i32, ptr %39, align 4, !tbaa !9
  %267 = mul i32 %265, %266
  %268 = sub i32 20, %267
  store i32 %268, ptr %264, align 4, !tbaa !17
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %44, i64 8, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  br label %274

269:                                              ; preds = %256, %245
  %270 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %45, i32 0, i32 0
  %271 = load i32, ptr %40, align 4, !tbaa !9
  store i32 %271, ptr %270, align 4, !tbaa !15
  %272 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %45, i32 0, i32 1
  %273 = load i32, ptr %41, align 4, !tbaa !9
  store i32 %273, ptr %272, align 4, !tbaa !17
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %45, i64 8, i1 false), !tbaa.struct !18
  br label %274

274:                                              ; preds = %269, %259
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #6
  %275 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %42, i32 0, i32 0
  %276 = load i32, ptr %275, align 4, !tbaa !15
  store i32 %276, ptr %46, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #6
  %277 = getelementptr inbounds %struct.K___uint32_t_uint32_t_s, ptr %42, i32 0, i32 1
  %278 = load i32, ptr %277, align 4, !tbaa !17
  store i32 %278, ptr %47, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #6
  %279 = load i32, ptr %46, align 4, !tbaa !9
  %280 = load i32, ptr %39, align 4, !tbaa !9
  %281 = mul i32 %279, %280
  store i32 %281, ptr %48, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #6
  %282 = load ptr, ptr %38, align 8, !tbaa !5
  store ptr %282, ptr %49, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #6
  %283 = load ptr, ptr %38, align 8, !tbaa !5
  %284 = load i32, ptr %48, align 4, !tbaa !9
  %285 = zext i32 %284 to i64
  %286 = getelementptr inbounds i8, ptr %283, i64 %285
  store ptr %286, ptr %50, align 8, !tbaa !5
  %287 = getelementptr inbounds [5 x i32], ptr %24, i64 0, i64 0
  %288 = load ptr, ptr %20, align 8, !tbaa !5
  call void @Hacl_Hash_SHA1_update_multi(ptr noundef %287, ptr noundef %288, i32 noundef 1)
  %289 = getelementptr inbounds [5 x i32], ptr %24, i64 0, i64 0
  %290 = load ptr, ptr %49, align 8, !tbaa !5
  %291 = load i32, ptr %46, align 4, !tbaa !9
  call void @Hacl_Hash_SHA1_update_multi(ptr noundef %289, ptr noundef %290, i32 noundef %291)
  %292 = getelementptr inbounds [5 x i32], ptr %24, i64 0, i64 0
  %293 = load i32, ptr %48, align 4, !tbaa !9
  %294 = zext i32 %293 to i64
  %295 = add i64 64, %294
  %296 = load ptr, ptr %50, align 8, !tbaa !5
  %297 = load i32, ptr %47, align 4, !tbaa !9
  call void @Hacl_Hash_SHA1_update_last(ptr noundef %292, i64 noundef %295, ptr noundef %296, i32 noundef %297)
  %298 = getelementptr inbounds [5 x i32], ptr %24, i64 0, i64 0
  %299 = load ptr, ptr %6, align 8, !tbaa !5
  call void @Hacl_Hash_SHA1_finish(ptr noundef %298, ptr noundef %299)
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 20, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  ret void
}

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

declare i32 @printf(ptr noundef, ...) #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

declare void @Hacl_Hash_SHA1_hash_oneshot(ptr noundef, ptr noundef, i32 noundef) #2

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

declare void @Hacl_Hash_SHA1_update_last(ptr noundef, i64 noundef, ptr noundef, i32 noundef) #2

declare void @Hacl_Hash_SHA1_update_multi(ptr noundef, ptr noundef, i32 noundef) #2

declare void @Hacl_Hash_SHA1_finish(ptr noundef, ptr noundef) #2

declare void @Hacl_Hash_SHA1_init(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 = { "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 = { noreturn nounwind "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }
attributes #7 = { noreturn 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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{!16, !10, i64 0}
!16 = !{!"K___uint32_t_uint32_t_s", !10, i64 0, !10, i64 4}
!17 = !{!16, !10, i64 4}
!18 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}


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

@__const.Hacl_HMAC_compute_sha1.s = external hidden unnamed_addr constant [5 x i32], align 16

; Function Attrs: nounwind uwtable
define dso_local void @Hacl_HMAC_compute_sha1(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #0 {
  %6 = alloca [5 x i32], align 16
  %7 = alloca [64 x i8], align 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %7, i8 0, i64 64, i1 false)
  %8 = icmp ult i32 %2, 65
  br i1 %8, label %9, label %11

9:                                                ; preds = %5
  %10 = zext nneg i32 %2 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %7, ptr align 1 %1, i64 %10, i1 false)
  br label %vector.ph

11:                                               ; preds = %5
  call void @Hacl_Hash_SHA1_hash_oneshot(ptr noundef nonnull %7, ptr noundef %1, i32 noundef %2) #5
  br label %vector.ph

vector.ph:                                        ; preds = %11, %9
  %12 = alloca [64 x i8], align 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %12, i8 54, i64 64, i1 false)
  %13 = getelementptr inbounds i8, ptr %12, i64 16
  %wide.load = load <16 x i8>, ptr %12, align 16, !tbaa !5
  %wide.load121 = load <16 x i8>, ptr %13, align 16, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %7, i64 16
  %wide.load122 = load <16 x i8>, ptr %7, align 16, !tbaa !5
  %wide.load123 = load <16 x i8>, ptr %14, align 16, !tbaa !5
  %15 = xor <16 x i8> %wide.load122, %wide.load
  %16 = xor <16 x i8> %wide.load123, %wide.load121
  store <16 x i8> %15, ptr %12, align 16, !tbaa !5
  store <16 x i8> %16, ptr %13, align 16, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %12, i64 32
  %18 = getelementptr inbounds i8, ptr %12, i64 48
  %wide.load.1 = load <16 x i8>, ptr %17, align 16, !tbaa !5
  %wide.load121.1 = load <16 x i8>, ptr %18, align 16, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %7, i64 32
  %20 = getelementptr inbounds i8, ptr %7, i64 48
  %wide.load122.1 = load <16 x i8>, ptr %19, align 16, !tbaa !5
  %wide.load123.1 = load <16 x i8>, ptr %20, align 16, !tbaa !5
  %21 = xor <16 x i8> %wide.load122.1, %wide.load.1
  %22 = xor <16 x i8> %wide.load123.1, %wide.load121.1
  store <16 x i8> %21, ptr %17, align 16, !tbaa !5
  store <16 x i8> %22, ptr %18, align 16, !tbaa !5
  %23 = alloca [64 x i8], align 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %23, i8 92, i64 64, i1 false)
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  %wide.load130 = load <16 x i8>, ptr %23, align 16, !tbaa !5
  %wide.load131 = load <16 x i8>, ptr %24, align 16, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %7, i64 16
  %wide.load132 = load <16 x i8>, ptr %7, align 16, !tbaa !5
  %wide.load133 = load <16 x i8>, ptr %25, align 16, !tbaa !5
  %26 = xor <16 x i8> %wide.load132, %wide.load130
  %27 = xor <16 x i8> %wide.load133, %wide.load131
  store <16 x i8> %26, ptr %23, align 16, !tbaa !5
  store <16 x i8> %27, ptr %24, align 16, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %23, i64 32
  %29 = getelementptr inbounds i8, ptr %23, i64 48
  %wide.load130.1 = load <16 x i8>, ptr %28, align 16, !tbaa !5
  %wide.load131.1 = load <16 x i8>, ptr %29, align 16, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %7, i64 32
  %31 = getelementptr inbounds i8, ptr %7, i64 48
  %wide.load132.1 = load <16 x i8>, ptr %30, align 16, !tbaa !5
  %wide.load133.1 = load <16 x i8>, ptr %31, align 16, !tbaa !5
  %32 = xor <16 x i8> %wide.load132.1, %wide.load130.1
  %33 = xor <16 x i8> %wide.load133.1, %wide.load131.1
  store <16 x i8> %32, ptr %28, align 16, !tbaa !5
  store <16 x i8> %33, ptr %29, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %6) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(20) %6, ptr noundef nonnull align 16 dereferenceable(20) @__const.Hacl_HMAC_compute_sha1.s, i64 20, i1 false)
  %34 = icmp eq i32 %4, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %vector.ph
  call void @Hacl_Hash_SHA1_update_last(ptr noundef nonnull %6, i64 noundef 0, ptr noundef nonnull %12, i32 noundef 64) #5
  br label %48

36:                                               ; preds = %vector.ph
  %37 = lshr i32 %4, 6
  %38 = and i32 %4, 63
  %39 = icmp ugt i32 %4, 63
  %40 = icmp eq i32 %38, 0
  %or.cond = and i1 %39, %40
  %41 = add nsw i32 %37, -1
  %42 = shl nuw i32 %41, 6
  %43 = sub i32 %4, %42
  %.sroa.038.0 = select i1 %or.cond, i32 %41, i32 %37
  %.sroa.539.0 = select i1 %or.cond, i32 %43, i32 %38
  %44 = shl nuw i32 %.sroa.038.0, 6
  %45 = zext i32 %44 to i64
  %46 = getelementptr inbounds i8, ptr %3, i64 %45
  call void @Hacl_Hash_SHA1_update_multi(ptr noundef nonnull %6, ptr noundef nonnull %12, i32 noundef 1) #5
  call void @Hacl_Hash_SHA1_update_multi(ptr noundef nonnull %6, ptr noundef %3, i32 noundef %.sroa.038.0) #5
  %47 = add nuw nsw i64 %45, 64
  call void @Hacl_Hash_SHA1_update_last(ptr noundef nonnull %6, i64 noundef %47, ptr noundef %46, i32 noundef %.sroa.539.0) #5
  br label %48

48:                                               ; preds = %36, %35
  call void @Hacl_Hash_SHA1_finish(ptr noundef nonnull %6, ptr noundef nonnull %12) #5
  call void @Hacl_Hash_SHA1_init(ptr noundef nonnull %6) #5
  call void @Hacl_Hash_SHA1_update_multi(ptr noundef nonnull %6, ptr noundef nonnull %23, i32 noundef 1) #5
  call void @Hacl_Hash_SHA1_update_multi(ptr noundef nonnull %6, ptr noundef nonnull %12, i32 noundef 0) #5
  call void @Hacl_Hash_SHA1_update_last(ptr noundef nonnull %6, i64 noundef 64, ptr noundef nonnull %12, i32 noundef 20) #5
  call void @Hacl_Hash_SHA1_finish(ptr noundef nonnull %6, ptr noundef %0) #5
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %6) #5
  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: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare void @Hacl_Hash_SHA1_hash_oneshot(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

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

declare void @Hacl_Hash_SHA1_update_last(ptr noundef, i64 noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

declare void @Hacl_Hash_SHA1_update_multi(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

declare void @Hacl_Hash_SHA1_finish(ptr noundef, ptr noundef) local_unnamed_addr #4

declare void @Hacl_Hash_SHA1_init(ptr noundef) local_unnamed_addr #4

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { "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 #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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopLoadEliminationPass,LoopRotatePass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass