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

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

@chacha20_constants = external hidden constant [4 x i32], align 16

; Function Attrs: nounwind uwtable
define dso_local void @Hacl_Impl_Chacha20_chacha20_init(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca ptr, align 8
  %40 = alloca ptr, align 8
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca ptr, align 8
  %45 = alloca ptr, align 8
  %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
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  %54 = alloca ptr, align 8
  %55 = alloca ptr, align 8
  %56 = alloca i32, align 4
  %57 = alloca i32, align 4
  %58 = alloca i32, align 4
  %59 = alloca i32, align 4
  %60 = alloca ptr, align 8
  %61 = alloca ptr, align 8
  %62 = alloca i32, align 4
  %63 = alloca i32, align 4
  %64 = alloca i32, align 4
  %65 = alloca ptr, align 8
  %66 = alloca ptr, align 8
  %67 = alloca i32, align 4
  %68 = alloca i32, align 4
  %69 = alloca i32, align 4
  %70 = alloca ptr, align 8
  %71 = alloca ptr, align 8
  %72 = alloca i32, align 4
  %73 = alloca i32, align 4
  %74 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %76, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %77 = load i32, ptr %9, align 4, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds [4 x i32], ptr @chacha20_constants, i64 0, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !9
  store i32 %80, ptr %11, align 4, !tbaa !9
  %81 = load i32, ptr %11, align 4, !tbaa !9
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = load i32, ptr %9, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds i32, ptr %82, i64 %84
  store i32 %81, ptr %85, align 4, !tbaa !9
  %86 = load i32, ptr %9, align 4, !tbaa !9
  %87 = add i32 %86, 1
  store i32 %87, ptr %9, align 4, !tbaa !9
  %88 = load i32, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %89, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %90 = load i32, ptr %9, align 4, !tbaa !9
  %91 = zext i32 %90 to i64
  %92 = getelementptr inbounds [4 x i32], ptr @chacha20_constants, i64 0, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !9
  store i32 %93, ptr %13, align 4, !tbaa !9
  %94 = load i32, ptr %13, align 4, !tbaa !9
  %95 = load ptr, ptr %12, align 8, !tbaa !5
  %96 = load i32, ptr %9, align 4, !tbaa !9
  %97 = zext i32 %96 to i64
  %98 = getelementptr inbounds i32, ptr %95, i64 %97
  store i32 %94, ptr %98, align 4, !tbaa !9
  %99 = load i32, ptr %9, align 4, !tbaa !9
  %100 = add i32 %99, 1
  store i32 %100, ptr %9, align 4, !tbaa !9
  %101 = load i32, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %102, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %103 = load i32, ptr %9, align 4, !tbaa !9
  %104 = zext i32 %103 to i64
  %105 = getelementptr inbounds [4 x i32], ptr @chacha20_constants, i64 0, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !9
  store i32 %106, ptr %15, align 4, !tbaa !9
  %107 = load i32, ptr %15, align 4, !tbaa !9
  %108 = load ptr, ptr %14, align 8, !tbaa !5
  %109 = load i32, ptr %9, align 4, !tbaa !9
  %110 = zext i32 %109 to i64
  %111 = getelementptr inbounds i32, ptr %108, i64 %110
  store i32 %107, ptr %111, align 4, !tbaa !9
  %112 = load i32, ptr %9, align 4, !tbaa !9
  %113 = add i32 %112, 1
  store i32 %113, ptr %9, align 4, !tbaa !9
  %114 = load i32, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %115, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %116 = load i32, ptr %9, align 4, !tbaa !9
  %117 = zext i32 %116 to i64
  %118 = getelementptr inbounds [4 x i32], ptr @chacha20_constants, i64 0, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !9
  store i32 %119, ptr %17, align 4, !tbaa !9
  %120 = load i32, ptr %17, align 4, !tbaa !9
  %121 = load ptr, ptr %16, align 8, !tbaa !5
  %122 = load i32, ptr %9, align 4, !tbaa !9
  %123 = zext i32 %122 to i64
  %124 = getelementptr inbounds i32, ptr %121, i64 %123
  store i32 %120, ptr %124, align 4, !tbaa !9
  %125 = load i32, ptr %9, align 4, !tbaa !9
  %126 = add i32 %125, 1
  store i32 %126, ptr %9, align 4, !tbaa !9
  %127 = load i32, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %128

128:                                              ; preds = %75
  br label %129

129:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  store i32 0, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds i32, ptr %130, i64 4
  store ptr %131, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = load i32, ptr %18, align 4, !tbaa !9
  %134 = mul i32 %133, 4
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds i8, ptr %132, i64 %135
  store ptr %136, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  %137 = load ptr, ptr %20, align 8, !tbaa !5
  %138 = call i32 @load32(ptr noundef %137)
  %139 = call i32 @__uint32_identity(i32 noundef %138)
  store i32 %139, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  %140 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %140, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  %141 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %141, ptr %23, align 4, !tbaa !9
  %142 = load i32, ptr %23, align 4, !tbaa !9
  %143 = load ptr, ptr %19, align 8, !tbaa !5
  %144 = load i32, ptr %18, align 4, !tbaa !9
  %145 = zext i32 %144 to i64
  %146 = getelementptr inbounds i32, ptr %143, i64 %145
  store i32 %142, ptr %146, align 4, !tbaa !9
  %147 = load i32, ptr %18, align 4, !tbaa !9
  %148 = add i32 %147, 1
  store i32 %148, ptr %18, align 4, !tbaa !9
  %149 = load i32, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = getelementptr inbounds i32, ptr %150, i64 4
  store ptr %151, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  %152 = load ptr, ptr %6, align 8, !tbaa !5
  %153 = load i32, ptr %18, align 4, !tbaa !9
  %154 = mul i32 %153, 4
  %155 = zext i32 %154 to i64
  %156 = getelementptr inbounds i8, ptr %152, i64 %155
  store ptr %156, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  %157 = load ptr, ptr %25, align 8, !tbaa !5
  %158 = call i32 @load32(ptr noundef %157)
  %159 = call i32 @__uint32_identity(i32 noundef %158)
  store i32 %159, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  %160 = load i32, ptr %26, align 4, !tbaa !9
  store i32 %160, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
  %161 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %161, ptr %28, align 4, !tbaa !9
  %162 = load i32, ptr %28, align 4, !tbaa !9
  %163 = load ptr, ptr %24, align 8, !tbaa !5
  %164 = load i32, ptr %18, align 4, !tbaa !9
  %165 = zext i32 %164 to i64
  %166 = getelementptr inbounds i32, ptr %163, i64 %165
  store i32 %162, ptr %166, align 4, !tbaa !9
  %167 = load i32, ptr %18, align 4, !tbaa !9
  %168 = add i32 %167, 1
  store i32 %168, ptr %18, align 4, !tbaa !9
  %169 = load i32, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, 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.start.p0(i64 8, ptr %29) #3
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = getelementptr inbounds i32, ptr %170, i64 4
  store ptr %171, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #3
  %172 = load ptr, ptr %6, align 8, !tbaa !5
  %173 = load i32, ptr %18, align 4, !tbaa !9
  %174 = mul i32 %173, 4
  %175 = zext i32 %174 to i64
  %176 = getelementptr inbounds i8, ptr %172, i64 %175
  store ptr %176, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
  %177 = load ptr, ptr %30, align 8, !tbaa !5
  %178 = call i32 @load32(ptr noundef %177)
  %179 = call i32 @__uint32_identity(i32 noundef %178)
  store i32 %179, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #3
  %180 = load i32, ptr %31, align 4, !tbaa !9
  store i32 %180, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #3
  %181 = load i32, ptr %32, align 4, !tbaa !9
  store i32 %181, ptr %33, align 4, !tbaa !9
  %182 = load i32, ptr %33, align 4, !tbaa !9
  %183 = load ptr, ptr %29, align 8, !tbaa !5
  %184 = load i32, ptr %18, align 4, !tbaa !9
  %185 = zext i32 %184 to i64
  %186 = getelementptr inbounds i32, ptr %183, i64 %185
  store i32 %182, ptr %186, align 4, !tbaa !9
  %187 = load i32, ptr %18, align 4, !tbaa !9
  %188 = add i32 %187, 1
  store i32 %188, ptr %18, align 4, !tbaa !9
  %189 = load i32, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #3
  %190 = load ptr, ptr %5, align 8, !tbaa !5
  %191 = getelementptr inbounds i32, ptr %190, i64 4
  store ptr %191, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #3
  %192 = load ptr, ptr %6, align 8, !tbaa !5
  %193 = load i32, ptr %18, align 4, !tbaa !9
  %194 = mul i32 %193, 4
  %195 = zext i32 %194 to i64
  %196 = getelementptr inbounds i8, ptr %192, i64 %195
  store ptr %196, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #3
  %197 = load ptr, ptr %35, align 8, !tbaa !5
  %198 = call i32 @load32(ptr noundef %197)
  %199 = call i32 @__uint32_identity(i32 noundef %198)
  store i32 %199, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #3
  %200 = load i32, ptr %36, align 4, !tbaa !9
  store i32 %200, ptr %37, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #3
  %201 = load i32, ptr %37, align 4, !tbaa !9
  store i32 %201, ptr %38, align 4, !tbaa !9
  %202 = load i32, ptr %38, align 4, !tbaa !9
  %203 = load ptr, ptr %34, align 8, !tbaa !5
  %204 = load i32, ptr %18, align 4, !tbaa !9
  %205 = zext i32 %204 to i64
  %206 = getelementptr inbounds i32, ptr %203, i64 %205
  store i32 %202, ptr %206, align 4, !tbaa !9
  %207 = load i32, ptr %18, align 4, !tbaa !9
  %208 = add i32 %207, 1
  store i32 %208, ptr %18, align 4, !tbaa !9
  %209 = load i32, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #3
  %210 = load ptr, ptr %5, align 8, !tbaa !5
  %211 = getelementptr inbounds i32, ptr %210, i64 4
  store ptr %211, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #3
  %212 = load ptr, ptr %6, align 8, !tbaa !5
  %213 = load i32, ptr %18, align 4, !tbaa !9
  %214 = mul i32 %213, 4
  %215 = zext i32 %214 to i64
  %216 = getelementptr inbounds i8, ptr %212, i64 %215
  store ptr %216, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #3
  %217 = load ptr, ptr %40, align 8, !tbaa !5
  %218 = call i32 @load32(ptr noundef %217)
  %219 = call i32 @__uint32_identity(i32 noundef %218)
  store i32 %219, ptr %41, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #3
  %220 = load i32, ptr %41, align 4, !tbaa !9
  store i32 %220, ptr %42, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #3
  %221 = load i32, ptr %42, align 4, !tbaa !9
  store i32 %221, ptr %43, align 4, !tbaa !9
  %222 = load i32, ptr %43, align 4, !tbaa !9
  %223 = load ptr, ptr %39, align 8, !tbaa !5
  %224 = load i32, ptr %18, align 4, !tbaa !9
  %225 = zext i32 %224 to i64
  %226 = getelementptr inbounds i32, ptr %223, i64 %225
  store i32 %222, ptr %226, align 4, !tbaa !9
  %227 = load i32, ptr %18, align 4, !tbaa !9
  %228 = add i32 %227, 1
  store i32 %228, ptr %18, align 4, !tbaa !9
  %229 = load i32, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #3
  %230 = load ptr, ptr %5, align 8, !tbaa !5
  %231 = getelementptr inbounds i32, ptr %230, i64 4
  store ptr %231, ptr %44, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #3
  %232 = load ptr, ptr %6, align 8, !tbaa !5
  %233 = load i32, ptr %18, align 4, !tbaa !9
  %234 = mul i32 %233, 4
  %235 = zext i32 %234 to i64
  %236 = getelementptr inbounds i8, ptr %232, i64 %235
  store ptr %236, ptr %45, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #3
  %237 = load ptr, ptr %45, align 8, !tbaa !5
  %238 = call i32 @load32(ptr noundef %237)
  %239 = call i32 @__uint32_identity(i32 noundef %238)
  store i32 %239, ptr %46, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #3
  %240 = load i32, ptr %46, align 4, !tbaa !9
  store i32 %240, ptr %47, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #3
  %241 = load i32, ptr %47, align 4, !tbaa !9
  store i32 %241, ptr %48, align 4, !tbaa !9
  %242 = load i32, ptr %48, align 4, !tbaa !9
  %243 = load ptr, ptr %44, align 8, !tbaa !5
  %244 = load i32, ptr %18, align 4, !tbaa !9
  %245 = zext i32 %244 to i64
  %246 = getelementptr inbounds i32, ptr %243, i64 %245
  store i32 %242, ptr %246, align 4, !tbaa !9
  %247 = load i32, ptr %18, align 4, !tbaa !9
  %248 = add i32 %247, 1
  store i32 %248, ptr %18, align 4, !tbaa !9
  %249 = load i32, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #3
  %250 = load ptr, ptr %5, align 8, !tbaa !5
  %251 = getelementptr inbounds i32, ptr %250, i64 4
  store ptr %251, ptr %49, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #3
  %252 = load ptr, ptr %6, align 8, !tbaa !5
  %253 = load i32, ptr %18, align 4, !tbaa !9
  %254 = mul i32 %253, 4
  %255 = zext i32 %254 to i64
  %256 = getelementptr inbounds i8, ptr %252, i64 %255
  store ptr %256, ptr %50, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #3
  %257 = load ptr, ptr %50, align 8, !tbaa !5
  %258 = call i32 @load32(ptr noundef %257)
  %259 = call i32 @__uint32_identity(i32 noundef %258)
  store i32 %259, ptr %51, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #3
  %260 = load i32, ptr %51, align 4, !tbaa !9
  store i32 %260, ptr %52, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #3
  %261 = load i32, ptr %52, align 4, !tbaa !9
  store i32 %261, ptr %53, align 4, !tbaa !9
  %262 = load i32, ptr %53, align 4, !tbaa !9
  %263 = load ptr, ptr %49, align 8, !tbaa !5
  %264 = load i32, ptr %18, align 4, !tbaa !9
  %265 = zext i32 %264 to i64
  %266 = getelementptr inbounds i32, ptr %263, i64 %265
  store i32 %262, ptr %266, align 4, !tbaa !9
  %267 = load i32, ptr %18, align 4, !tbaa !9
  %268 = add i32 %267, 1
  store i32 %268, ptr %18, align 4, !tbaa !9
  %269 = load i32, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #3
  %270 = load ptr, ptr %5, align 8, !tbaa !5
  %271 = getelementptr inbounds i32, ptr %270, i64 4
  store ptr %271, ptr %54, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #3
  %272 = load ptr, ptr %6, align 8, !tbaa !5
  %273 = load i32, ptr %18, align 4, !tbaa !9
  %274 = mul i32 %273, 4
  %275 = zext i32 %274 to i64
  %276 = getelementptr inbounds i8, ptr %272, i64 %275
  store ptr %276, ptr %55, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #3
  %277 = load ptr, ptr %55, align 8, !tbaa !5
  %278 = call i32 @load32(ptr noundef %277)
  %279 = call i32 @__uint32_identity(i32 noundef %278)
  store i32 %279, ptr %56, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #3
  %280 = load i32, ptr %56, align 4, !tbaa !9
  store i32 %280, ptr %57, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #3
  %281 = load i32, ptr %57, align 4, !tbaa !9
  store i32 %281, ptr %58, align 4, !tbaa !9
  %282 = load i32, ptr %58, align 4, !tbaa !9
  %283 = load ptr, ptr %54, align 8, !tbaa !5
  %284 = load i32, ptr %18, align 4, !tbaa !9
  %285 = zext i32 %284 to i64
  %286 = getelementptr inbounds i32, ptr %283, i64 %285
  store i32 %282, ptr %286, align 4, !tbaa !9
  %287 = load i32, ptr %18, align 4, !tbaa !9
  %288 = add i32 %287, 1
  store i32 %288, ptr %18, align 4, !tbaa !9
  %289 = load i32, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  br label %290

290:                                              ; preds = %129
  %291 = load i32, ptr %8, align 4, !tbaa !9
  %292 = load ptr, ptr %5, align 8, !tbaa !5
  %293 = getelementptr inbounds i32, ptr %292, i64 12
  store i32 %291, ptr %293, align 4, !tbaa !9
  br label %294

294:                                              ; preds = %290
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #3
  store i32 0, ptr %59, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #3
  %295 = load ptr, ptr %5, align 8, !tbaa !5
  %296 = getelementptr inbounds i32, ptr %295, i64 13
  store ptr %296, ptr %60, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #3
  %297 = load ptr, ptr %7, align 8, !tbaa !5
  %298 = load i32, ptr %59, align 4, !tbaa !9
  %299 = mul i32 %298, 4
  %300 = zext i32 %299 to i64
  %301 = getelementptr inbounds i8, ptr %297, i64 %300
  store ptr %301, ptr %61, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #3
  %302 = load ptr, ptr %61, align 8, !tbaa !5
  %303 = call i32 @load32(ptr noundef %302)
  %304 = call i32 @__uint32_identity(i32 noundef %303)
  store i32 %304, ptr %62, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #3
  %305 = load i32, ptr %62, align 4, !tbaa !9
  store i32 %305, ptr %63, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %64) #3
  %306 = load i32, ptr %63, align 4, !tbaa !9
  store i32 %306, ptr %64, align 4, !tbaa !9
  %307 = load i32, ptr %64, align 4, !tbaa !9
  %308 = load ptr, ptr %60, align 8, !tbaa !5
  %309 = load i32, ptr %59, align 4, !tbaa !9
  %310 = zext i32 %309 to i64
  %311 = getelementptr inbounds i32, ptr %308, i64 %310
  store i32 %307, ptr %311, align 4, !tbaa !9
  %312 = load i32, ptr %59, align 4, !tbaa !9
  %313 = add i32 %312, 1
  store i32 %313, ptr %59, align 4, !tbaa !9
  %314 = load i32, ptr %59, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #3
  %315 = load ptr, ptr %5, align 8, !tbaa !5
  %316 = getelementptr inbounds i32, ptr %315, i64 13
  store ptr %316, ptr %65, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #3
  %317 = load ptr, ptr %7, align 8, !tbaa !5
  %318 = load i32, ptr %59, align 4, !tbaa !9
  %319 = mul i32 %318, 4
  %320 = zext i32 %319 to i64
  %321 = getelementptr inbounds i8, ptr %317, i64 %320
  store ptr %321, ptr %66, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %67) #3
  %322 = load ptr, ptr %66, align 8, !tbaa !5
  %323 = call i32 @load32(ptr noundef %322)
  %324 = call i32 @__uint32_identity(i32 noundef %323)
  store i32 %324, ptr %67, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %68) #3
  %325 = load i32, ptr %67, align 4, !tbaa !9
  store i32 %325, ptr %68, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %69) #3
  %326 = load i32, ptr %68, align 4, !tbaa !9
  store i32 %326, ptr %69, align 4, !tbaa !9
  %327 = load i32, ptr %69, align 4, !tbaa !9
  %328 = load ptr, ptr %65, align 8, !tbaa !5
  %329 = load i32, ptr %59, align 4, !tbaa !9
  %330 = zext i32 %329 to i64
  %331 = getelementptr inbounds i32, ptr %328, i64 %330
  store i32 %327, ptr %331, align 4, !tbaa !9
  %332 = load i32, ptr %59, align 4, !tbaa !9
  %333 = add i32 %332, 1
  store i32 %333, ptr %59, align 4, !tbaa !9
  %334 = load i32, ptr %59, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %70) #3
  %335 = load ptr, ptr %5, align 8, !tbaa !5
  %336 = getelementptr inbounds i32, ptr %335, i64 13
  store ptr %336, ptr %70, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %71) #3
  %337 = load ptr, ptr %7, align 8, !tbaa !5
  %338 = load i32, ptr %59, align 4, !tbaa !9
  %339 = mul i32 %338, 4
  %340 = zext i32 %339 to i64
  %341 = getelementptr inbounds i8, ptr %337, i64 %340
  store ptr %341, ptr %71, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %72) #3
  %342 = load ptr, ptr %71, align 8, !tbaa !5
  %343 = call i32 @load32(ptr noundef %342)
  %344 = call i32 @__uint32_identity(i32 noundef %343)
  store i32 %344, ptr %72, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %73) #3
  %345 = load i32, ptr %72, align 4, !tbaa !9
  store i32 %345, ptr %73, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %74) #3
  %346 = load i32, ptr %73, align 4, !tbaa !9
  store i32 %346, ptr %74, align 4, !tbaa !9
  %347 = load i32, ptr %74, align 4, !tbaa !9
  %348 = load ptr, ptr %70, align 8, !tbaa !5
  %349 = load i32, ptr %59, align 4, !tbaa !9
  %350 = zext i32 %349 to i64
  %351 = getelementptr inbounds i32, ptr %348, i64 %350
  store i32 %347, ptr %351, align 4, !tbaa !9
  %352 = load i32, ptr %59, align 4, !tbaa !9
  %353 = add i32 %352, 1
  store i32 %353, ptr %59, align 4, !tbaa !9
  %354 = load i32, ptr %59, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %74) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %73) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %72) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %71) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #3
  br label %355

355:                                              ; preds = %294
  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: 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 i32 @__uint32_identity(i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @load32(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}


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

@chacha20_constants = external hidden local_unnamed_addr constant [4 x i32], align 16

; Function Attrs: nounwind uwtable
define dso_local void @Hacl_Impl_Chacha20_chacha20_init(ptr nocapture noundef writeonly %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = load i32, ptr @chacha20_constants, align 16, !tbaa !5
  store i32 %5, ptr %0, align 4, !tbaa !5
  %6 = load i32, ptr getelementptr inbounds (i8, ptr @chacha20_constants, i64 4), align 4, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 %6, ptr %7, align 4, !tbaa !5
  %8 = load i32, ptr getelementptr inbounds (i8, ptr @chacha20_constants, i64 8), align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  store i32 %8, ptr %9, align 4, !tbaa !5
  %10 = load i32, ptr getelementptr inbounds (i8, ptr @chacha20_constants, i64 12), align 4, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 12
  store i32 %10, ptr %11, align 4, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  %13 = tail call i32 @load32(ptr noundef %1)
  %14 = tail call i32 @__uint32_identity(i32 noundef %13)
  store i32 %14, ptr %12, align 4, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %1, i64 4
  %16 = tail call i32 @load32(ptr noundef nonnull %15)
  %17 = tail call i32 @__uint32_identity(i32 noundef %16)
  %18 = getelementptr inbounds i8, ptr %0, i64 20
  store i32 %17, ptr %18, align 4, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %1, i64 8
  %20 = tail call i32 @load32(ptr noundef nonnull %19)
  %21 = tail call i32 @__uint32_identity(i32 noundef %20)
  %22 = getelementptr inbounds i8, ptr %0, i64 24
  store i32 %21, ptr %22, align 4, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %1, i64 12
  %24 = tail call i32 @load32(ptr noundef nonnull %23)
  %25 = tail call i32 @__uint32_identity(i32 noundef %24)
  %26 = getelementptr inbounds i8, ptr %0, i64 28
  store i32 %25, ptr %26, align 4, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %1, i64 16
  %28 = tail call i32 @load32(ptr noundef nonnull %27)
  %29 = tail call i32 @__uint32_identity(i32 noundef %28)
  %30 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 %29, ptr %30, align 4, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %1, i64 20
  %32 = tail call i32 @load32(ptr noundef nonnull %31)
  %33 = tail call i32 @__uint32_identity(i32 noundef %32)
  %34 = getelementptr inbounds i8, ptr %0, i64 36
  store i32 %33, ptr %34, align 4, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %1, i64 24
  %36 = tail call i32 @load32(ptr noundef nonnull %35)
  %37 = tail call i32 @__uint32_identity(i32 noundef %36)
  %38 = getelementptr inbounds i8, ptr %0, i64 40
  store i32 %37, ptr %38, align 4, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %1, i64 28
  %40 = tail call i32 @load32(ptr noundef nonnull %39)
  %41 = tail call i32 @__uint32_identity(i32 noundef %40)
  %42 = getelementptr inbounds i8, ptr %0, i64 44
  store i32 %41, ptr %42, align 4, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %0, i64 48
  store i32 %3, ptr %43, align 4, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %0, i64 52
  %45 = tail call i32 @load32(ptr noundef %2)
  %46 = tail call i32 @__uint32_identity(i32 noundef %45)
  store i32 %46, ptr %44, align 4, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %2, i64 4
  %48 = tail call i32 @load32(ptr noundef nonnull %47)
  %49 = tail call i32 @__uint32_identity(i32 noundef %48)
  %50 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 %49, ptr %50, align 4, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %2, i64 8
  %52 = tail call i32 @load32(ptr noundef nonnull %51)
  %53 = tail call i32 @__uint32_identity(i32 noundef %52)
  %54 = getelementptr inbounds i8, ptr %0, i64 60
  store i32 %53, ptr %54, align 4, !tbaa !5
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @__uint32_identity(i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @load32(ptr noundef) local_unnamed_addr #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 = { 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" }

!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"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass