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

; 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.Hacl_Streaming_MD_state_32_s = type { ptr, ptr, i64 }

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @Hacl_Hash_MD5_update_multi(ptr noundef, ptr noundef, i32 noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local zeroext i8 @Hacl_Hash_MD5_update(ptr noundef %0, ptr noundef %1, i32 noundef %2) #1 {
  %4 = alloca i8, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %struct.Hacl_Streaming_MD_state_32_s, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %struct.Hacl_Streaming_MD_state_32_s, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca %struct.Hacl_Streaming_MD_state_32_s, align 8
  %20 = alloca %struct.Hacl_Streaming_MD_state_32_s, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i64, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %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 ptr, align 8
  %32 = alloca %struct.Hacl_Streaming_MD_state_32_s, align 8
  %33 = alloca i32, align 4
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca %struct.Hacl_Streaming_MD_state_32_s, align 8
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca i64, align 8
  %40 = alloca i32, align 4
  %41 = alloca ptr, align 8
  %42 = alloca i64, align 8
  %43 = alloca %struct.Hacl_Streaming_MD_state_32_s, align 8
  %44 = alloca %struct.Hacl_Streaming_MD_state_32_s, align 8
  %45 = alloca ptr, align 8
  %46 = alloca ptr, align 8
  %47 = alloca i64, align 8
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca ptr, align 8
  %54 = alloca ptr, align 8
  %55 = alloca ptr, align 8
  %56 = alloca %struct.Hacl_Streaming_MD_state_32_s, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #3
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %57, i64 24, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %58 = getelementptr inbounds %struct.Hacl_Streaming_MD_state_32_s, ptr %8, i32 0, i32 2
  %59 = load i64, ptr %58, align 8, !tbaa !14
  store i64 %59, ptr %9, align 8, !tbaa !12
  %60 = load i32, ptr %7, align 4, !tbaa !9
  %61 = zext i32 %60 to i64
  %62 = load i64, ptr %9, align 8, !tbaa !12
  %63 = sub i64 2305843009213693951, %62
  %64 = icmp ugt i64 %61, %63
  br i1 %64, label %65, label %66

65:                                               ; preds = %3
  store i8 3, ptr %4, align 1
  store i32 1, ptr %10, align 4
  br label %336

66:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %67 = load i64, ptr %9, align 8, !tbaa !12
  %68 = urem i64 %67, 64
  %69 = icmp eq i64 %68, 0
  br i1 %69, label %70, label %74

70:                                               ; preds = %66
  %71 = load i64, ptr %9, align 8, !tbaa !12
  %72 = icmp ugt i64 %71, 0
  br i1 %72, label %73, label %74

73:                                               ; preds = %70
  store i32 64, ptr %11, align 4, !tbaa !9
  br label %78

74:                                               ; preds = %70, %66
  %75 = load i64, ptr %9, align 8, !tbaa !12
  %76 = urem i64 %75, 64
  %77 = trunc i64 %76 to i32
  store i32 %77, ptr %11, align 4, !tbaa !9
  br label %78

78:                                               ; preds = %74, %73
  %79 = load i32, ptr %7, align 4, !tbaa !9
  %80 = load i32, ptr %11, align 4, !tbaa !9
  %81 = sub i32 64, %80
  %82 = icmp ule i32 %79, %81
  br i1 %82, label %83, label %123

83:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #3
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %84, i64 24, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %85 = getelementptr inbounds %struct.Hacl_Streaming_MD_state_32_s, ptr %12, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8, !tbaa !16
  store ptr %86, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %87 = getelementptr inbounds %struct.Hacl_Streaming_MD_state_32_s, ptr %12, i32 0, i32 1
  %88 = load ptr, ptr %87, align 8, !tbaa !17
  store ptr %88, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %89 = getelementptr inbounds %struct.Hacl_Streaming_MD_state_32_s, ptr %12, i32 0, i32 2
  %90 = load i64, ptr %89, align 8, !tbaa !14
  store i64 %90, ptr %15, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %91 = load i64, ptr %15, align 8, !tbaa !12
  %92 = urem i64 %91, 64
  %93 = icmp eq i64 %92, 0
  br i1 %93, label %94, label %98

94:                                               ; preds = %83
  %95 = load i64, ptr %15, align 8, !tbaa !12
  %96 = icmp ugt i64 %95, 0
  br i1 %96, label %97, label %98

97:                                               ; preds = %94
  store i32 64, ptr %16, align 4, !tbaa !9
  br label %102

98:                                               ; preds = %94, %83
  %99 = load i64, ptr %15, align 8, !tbaa !12
  %100 = urem i64 %99, 64
  %101 = trunc i64 %100 to i32
  store i32 %101, ptr %16, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %98, %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = load i32, ptr %16, align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  %106 = getelementptr inbounds i8, ptr %103, i64 %105
  store ptr %106, ptr %17, align 8, !tbaa !5
  %107 = load ptr, ptr %17, align 8, !tbaa !5
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = load i32, ptr %7, align 4, !tbaa !9
  %110 = zext i32 %109 to i64
  %111 = mul i64 %110, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %107, ptr align 1 %108, i64 %111, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %112 = load i64, ptr %15, align 8, !tbaa !12
  %113 = load i32, ptr %7, align 4, !tbaa !9
  %114 = zext i32 %113 to i64
  %115 = add i64 %112, %114
  store i64 %115, ptr %18, align 8, !tbaa !12
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.Hacl_Streaming_MD_state_32_s, ptr %19, i32 0, i32 0
  %118 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %118, ptr %117, align 8, !tbaa !16
  %119 = getelementptr inbounds %struct.Hacl_Streaming_MD_state_32_s, ptr %19, i32 0, i32 1
  %120 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %120, ptr %119, align 8, !tbaa !17
  %121 = getelementptr inbounds %struct.Hacl_Streaming_MD_state_32_s, ptr %19, i32 0, i32 2
  %122 = load i64, ptr %18, align 8, !tbaa !12
  store i64 %122, ptr %121, align 8, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %116, ptr align 8 %19, i64 24, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #3
  br label %335

123:                                              ; preds = %78
  %124 = load i32, ptr %11, align 4, !tbaa !9
  %125 = icmp eq i32 %124, 0
  br i1 %125, label %126, label %201

126:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #3
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %127, i64 24, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  %128 = getelementptr inbounds %struct.Hacl_Streaming_MD_state_32_s, ptr %20, i32 0, i32 0
  %129 = load ptr, ptr %128, align 8, !tbaa !16
  store ptr %129, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  %130 = getelementptr inbounds %struct.Hacl_Streaming_MD_state_32_s, ptr %20, i32 0, i32 1
  %131 = load ptr, ptr %130, align 8, !tbaa !17
  store ptr %131, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  %132 = getelementptr inbounds %struct.Hacl_Streaming_MD_state_32_s, ptr %20, i32 0, i32 2
  %133 = load i64, ptr %132, align 8, !tbaa !14
  store i64 %133, ptr %23, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  %134 = load i64, ptr %23, align 8, !tbaa !12
  %135 = urem i64 %134, 64
  %136 = icmp eq i64 %135, 0
  br i1 %136, label %137, label %141

137:                                              ; preds = %126
  %138 = load i64, ptr %23, align 8, !tbaa !12
  %139 = icmp ugt i64 %138, 0
  br i1 %139, label %140, label %141

140:                                              ; preds = %137
  store i32 64, ptr %24, align 4, !tbaa !9
  br label %145

141:                                              ; preds = %137, %126
  %142 = load i64, ptr %23, align 8, !tbaa !12
  %143 = urem i64 %142, 64
  %144 = trunc i64 %143 to i32
  store i32 %144, ptr %24, align 4, !tbaa !9
  br label %145

145:                                              ; preds = %141, %140
  %146 = load i32, ptr %24, align 4, !tbaa !9
  %147 = icmp eq i32 %146, 0
  br i1 %147, label %151, label %148

148:                                              ; preds = %145
  %149 = load ptr, ptr %21, align 8, !tbaa !5
  %150 = load ptr, ptr %22, align 8, !tbaa !5
  call void @Hacl_Hash_MD5_update_multi(ptr noundef %149, ptr noundef %150, i32 noundef 1)
  br label %151

151:                                              ; preds = %148, %145
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  %152 = load i32, ptr %7, align 4, !tbaa !9
  %153 = zext i32 %152 to i64
  %154 = urem i64 %153, 64
  %155 = icmp eq i64 %154, 0
  br i1 %155, label %156, label %161

156:                                              ; preds = %151
  %157 = load i32, ptr %7, align 4, !tbaa !9
  %158 = zext i32 %157 to i64
  %159 = icmp ugt i64 %158, 0
  br i1 %159, label %160, label %161

160:                                              ; preds = %156
  store i32 64, ptr %25, align 4, !tbaa !9
  br label %166

161:                                              ; preds = %156, %151
  %162 = load i32, ptr %7, align 4, !tbaa !9
  %163 = zext i32 %162 to i64
  %164 = urem i64 %163, 64
  %165 = trunc i64 %164 to i32
  store i32 %165, ptr %25, align 4, !tbaa !9
  br label %166

166:                                              ; preds = %161, %160
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  %167 = load i32, ptr %7, align 4, !tbaa !9
  %168 = load i32, ptr %25, align 4, !tbaa !9
  %169 = sub i32 %167, %168
  %170 = udiv i32 %169, 64
  store i32 %170, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  %171 = load i32, ptr %26, align 4, !tbaa !9
  %172 = mul i32 %171, 64
  store i32 %172, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
  %173 = load i32, ptr %7, align 4, !tbaa !9
  %174 = load i32, ptr %27, align 4, !tbaa !9
  %175 = sub i32 %173, %174
  store i32 %175, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #3
  %176 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %176, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #3
  %177 = load ptr, ptr %6, align 8, !tbaa !5
  %178 = load i32, ptr %27, align 4, !tbaa !9
  %179 = zext i32 %178 to i64
  %180 = getelementptr inbounds i8, ptr %177, i64 %179
  store ptr %180, ptr %30, align 8, !tbaa !5
  %181 = load ptr, ptr %21, align 8, !tbaa !5
  %182 = load ptr, ptr %29, align 8, !tbaa !5
  %183 = load i32, ptr %27, align 4, !tbaa !9
  %184 = udiv i32 %183, 64
  call void @Hacl_Hash_MD5_update_multi(ptr noundef %181, ptr noundef %182, i32 noundef %184)
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #3
  %185 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %185, ptr %31, align 8, !tbaa !5
  %186 = load ptr, ptr %31, align 8, !tbaa !5
  %187 = load ptr, ptr %30, align 8, !tbaa !5
  %188 = load i32, ptr %28, align 4, !tbaa !9
  %189 = zext i32 %188 to i64
  %190 = mul i64 %189, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %186, ptr align 1 %187, i64 %190, i1 false)
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.Hacl_Streaming_MD_state_32_s, ptr %32, i32 0, i32 0
  %193 = load ptr, ptr %21, align 8, !tbaa !5
  store ptr %193, ptr %192, align 8, !tbaa !16
  %194 = getelementptr inbounds %struct.Hacl_Streaming_MD_state_32_s, ptr %32, i32 0, i32 1
  %195 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %195, ptr %194, align 8, !tbaa !17
  %196 = getelementptr inbounds %struct.Hacl_Streaming_MD_state_32_s, ptr %32, i32 0, i32 2
  %197 = load i64, ptr %23, align 8, !tbaa !12
  %198 = load i32, ptr %7, align 4, !tbaa !9
  %199 = zext i32 %198 to i64
  %200 = add i64 %197, %199
  store i64 %200, ptr %196, align 8, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %191, ptr align 8 %32, i64 24, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, 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.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 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #3
  br label %334

201:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #3
  %202 = load i32, ptr %11, align 4, !tbaa !9
  %203 = sub i32 64, %202
  store i32 %203, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #3
  %204 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %204, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #3
  %205 = load ptr, ptr %6, align 8, !tbaa !5
  %206 = load i32, ptr %33, align 4, !tbaa !9
  %207 = zext i32 %206 to i64
  %208 = getelementptr inbounds i8, ptr %205, i64 %207
  store ptr %208, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %36) #3
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %36, ptr align 8 %209, i64 24, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #3
  %210 = getelementptr inbounds %struct.Hacl_Streaming_MD_state_32_s, ptr %36, i32 0, i32 0
  %211 = load ptr, ptr %210, align 8, !tbaa !16
  store ptr %211, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #3
  %212 = getelementptr inbounds %struct.Hacl_Streaming_MD_state_32_s, ptr %36, i32 0, i32 1
  %213 = load ptr, ptr %212, align 8, !tbaa !17
  store ptr %213, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #3
  %214 = getelementptr inbounds %struct.Hacl_Streaming_MD_state_32_s, ptr %36, i32 0, i32 2
  %215 = load i64, ptr %214, align 8, !tbaa !14
  store i64 %215, ptr %39, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #3
  %216 = load i64, ptr %39, align 8, !tbaa !12
  %217 = urem i64 %216, 64
  %218 = icmp eq i64 %217, 0
  br i1 %218, label %219, label %223

219:                                              ; preds = %201
  %220 = load i64, ptr %39, align 8, !tbaa !12
  %221 = icmp ugt i64 %220, 0
  br i1 %221, label %222, label %223

222:                                              ; preds = %219
  store i32 64, ptr %40, align 4, !tbaa !9
  br label %227

223:                                              ; preds = %219, %201
  %224 = load i64, ptr %39, align 8, !tbaa !12
  %225 = urem i64 %224, 64
  %226 = trunc i64 %225 to i32
  store i32 %226, ptr %40, align 4, !tbaa !9
  br label %227

227:                                              ; preds = %223, %222
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #3
  %228 = load ptr, ptr %38, align 8, !tbaa !5
  %229 = load i32, ptr %40, align 4, !tbaa !9
  %230 = zext i32 %229 to i64
  %231 = getelementptr inbounds i8, ptr %228, i64 %230
  store ptr %231, ptr %41, align 8, !tbaa !5
  %232 = load ptr, ptr %41, align 8, !tbaa !5
  %233 = load ptr, ptr %34, align 8, !tbaa !5
  %234 = load i32, ptr %33, align 4, !tbaa !9
  %235 = zext i32 %234 to i64
  %236 = mul i64 %235, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %232, ptr align 1 %233, i64 %236, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #3
  %237 = load i64, ptr %39, align 8, !tbaa !12
  %238 = load i32, ptr %33, align 4, !tbaa !9
  %239 = zext i32 %238 to i64
  %240 = add i64 %237, %239
  store i64 %240, ptr %42, align 8, !tbaa !12
  %241 = load ptr, ptr %5, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.Hacl_Streaming_MD_state_32_s, ptr %43, i32 0, i32 0
  %243 = load ptr, ptr %37, align 8, !tbaa !5
  store ptr %243, ptr %242, align 8, !tbaa !16
  %244 = getelementptr inbounds %struct.Hacl_Streaming_MD_state_32_s, ptr %43, i32 0, i32 1
  %245 = load ptr, ptr %38, align 8, !tbaa !5
  store ptr %245, ptr %244, align 8, !tbaa !17
  %246 = getelementptr inbounds %struct.Hacl_Streaming_MD_state_32_s, ptr %43, i32 0, i32 2
  %247 = load i64, ptr %42, align 8, !tbaa !12
  store i64 %247, ptr %246, align 8, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %241, ptr align 8 %43, i64 24, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 24, ptr %44) #3
  %248 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %44, ptr align 8 %248, i64 24, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #3
  %249 = getelementptr inbounds %struct.Hacl_Streaming_MD_state_32_s, ptr %44, i32 0, i32 0
  %250 = load ptr, ptr %249, align 8, !tbaa !16
  store ptr %250, ptr %45, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #3
  %251 = getelementptr inbounds %struct.Hacl_Streaming_MD_state_32_s, ptr %44, i32 0, i32 1
  %252 = load ptr, ptr %251, align 8, !tbaa !17
  store ptr %252, ptr %46, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #3
  %253 = getelementptr inbounds %struct.Hacl_Streaming_MD_state_32_s, ptr %44, i32 0, i32 2
  %254 = load i64, ptr %253, align 8, !tbaa !14
  store i64 %254, ptr %47, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #3
  %255 = load i64, ptr %47, align 8, !tbaa !12
  %256 = urem i64 %255, 64
  %257 = icmp eq i64 %256, 0
  br i1 %257, label %258, label %262

258:                                              ; preds = %227
  %259 = load i64, ptr %47, align 8, !tbaa !12
  %260 = icmp ugt i64 %259, 0
  br i1 %260, label %261, label %262

261:                                              ; preds = %258
  store i32 64, ptr %48, align 4, !tbaa !9
  br label %266

262:                                              ; preds = %258, %227
  %263 = load i64, ptr %47, align 8, !tbaa !12
  %264 = urem i64 %263, 64
  %265 = trunc i64 %264 to i32
  store i32 %265, ptr %48, align 4, !tbaa !9
  br label %266

266:                                              ; preds = %262, %261
  %267 = load i32, ptr %48, align 4, !tbaa !9
  %268 = icmp eq i32 %267, 0
  br i1 %268, label %272, label %269

269:                                              ; preds = %266
  %270 = load ptr, ptr %45, align 8, !tbaa !5
  %271 = load ptr, ptr %46, align 8, !tbaa !5
  call void @Hacl_Hash_MD5_update_multi(ptr noundef %270, ptr noundef %271, i32 noundef 1)
  br label %272

272:                                              ; preds = %269, %266
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #3
  %273 = load i32, ptr %7, align 4, !tbaa !9
  %274 = load i32, ptr %33, align 4, !tbaa !9
  %275 = sub i32 %273, %274
  %276 = zext i32 %275 to i64
  %277 = urem i64 %276, 64
  %278 = icmp eq i64 %277, 0
  br i1 %278, label %279, label %286

279:                                              ; preds = %272
  %280 = load i32, ptr %7, align 4, !tbaa !9
  %281 = load i32, ptr %33, align 4, !tbaa !9
  %282 = sub i32 %280, %281
  %283 = zext i32 %282 to i64
  %284 = icmp ugt i64 %283, 0
  br i1 %284, label %285, label %286

285:                                              ; preds = %279
  store i32 64, ptr %49, align 4, !tbaa !9
  br label %293

286:                                              ; preds = %279, %272
  %287 = load i32, ptr %7, align 4, !tbaa !9
  %288 = load i32, ptr %33, align 4, !tbaa !9
  %289 = sub i32 %287, %288
  %290 = zext i32 %289 to i64
  %291 = urem i64 %290, 64
  %292 = trunc i64 %291 to i32
  store i32 %292, ptr %49, align 4, !tbaa !9
  br label %293

293:                                              ; preds = %286, %285
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #3
  %294 = load i32, ptr %7, align 4, !tbaa !9
  %295 = load i32, ptr %33, align 4, !tbaa !9
  %296 = sub i32 %294, %295
  %297 = load i32, ptr %49, align 4, !tbaa !9
  %298 = sub i32 %296, %297
  %299 = udiv i32 %298, 64
  store i32 %299, ptr %50, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #3
  %300 = load i32, ptr %50, align 4, !tbaa !9
  %301 = mul i32 %300, 64
  store i32 %301, ptr %51, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #3
  %302 = load i32, ptr %7, align 4, !tbaa !9
  %303 = load i32, ptr %33, align 4, !tbaa !9
  %304 = sub i32 %302, %303
  %305 = load i32, ptr %51, align 4, !tbaa !9
  %306 = sub i32 %304, %305
  store i32 %306, ptr %52, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #3
  %307 = load ptr, ptr %35, align 8, !tbaa !5
  store ptr %307, ptr %53, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #3
  %308 = load ptr, ptr %35, align 8, !tbaa !5
  %309 = load i32, ptr %51, align 4, !tbaa !9
  %310 = zext i32 %309 to i64
  %311 = getelementptr inbounds i8, ptr %308, i64 %310
  store ptr %311, ptr %54, align 8, !tbaa !5
  %312 = load ptr, ptr %45, align 8, !tbaa !5
  %313 = load ptr, ptr %53, align 8, !tbaa !5
  %314 = load i32, ptr %51, align 4, !tbaa !9
  %315 = udiv i32 %314, 64
  call void @Hacl_Hash_MD5_update_multi(ptr noundef %312, ptr noundef %313, i32 noundef %315)
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #3
  %316 = load ptr, ptr %46, align 8, !tbaa !5
  store ptr %316, ptr %55, align 8, !tbaa !5
  %317 = load ptr, ptr %55, align 8, !tbaa !5
  %318 = load ptr, ptr %54, align 8, !tbaa !5
  %319 = load i32, ptr %52, align 4, !tbaa !9
  %320 = zext i32 %319 to i64
  %321 = mul i64 %320, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %317, ptr align 1 %318, i64 %321, i1 false)
  %322 = load ptr, ptr %5, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.Hacl_Streaming_MD_state_32_s, ptr %56, i32 0, i32 0
  %324 = load ptr, ptr %45, align 8, !tbaa !5
  store ptr %324, ptr %323, align 8, !tbaa !16
  %325 = getelementptr inbounds %struct.Hacl_Streaming_MD_state_32_s, ptr %56, i32 0, i32 1
  %326 = load ptr, ptr %46, align 8, !tbaa !5
  store ptr %326, ptr %325, align 8, !tbaa !17
  %327 = getelementptr inbounds %struct.Hacl_Streaming_MD_state_32_s, ptr %56, i32 0, i32 2
  %328 = load i64, ptr %47, align 8, !tbaa !12
  %329 = load i32, ptr %7, align 4, !tbaa !9
  %330 = load i32, ptr %33, align 4, !tbaa !9
  %331 = sub i32 %329, %330
  %332 = zext i32 %331 to i64
  %333 = add i64 %328, %332
  store i64 %333, ptr %327, align 8, !tbaa !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %322, ptr align 8 %56, i64 24, i1 false), !tbaa.struct !11
  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 8, 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 4, ptr %50) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %44) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 24, 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.end.p0(i64 4, ptr %33) #3
  br label %334

334:                                              ; preds = %293, %166
  br label %335

335:                                              ; preds = %334, %102
  store i8 0, ptr %4, align 1
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %336

336:                                              ; preds = %335, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #3
  %337 = load i8, ptr %4, align 1
  ret i8 %337
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind }

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

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


; 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
declare dso_local void @Hacl_Hash_MD5_update_multi(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; 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) #1

; Function Attrs: nounwind uwtable
define dso_local zeroext range(i8 0, 4) i8 @Hacl_Hash_MD5_update(ptr nocapture noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %.sroa.3110.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 16
  %.sroa.3110.0.copyload = load i64, ptr %.sroa.3110.0..sroa_idx, align 8, !tbaa !5
  %4 = zext i32 %2 to i64
  %5 = sub i64 2305843009213693951, %.sroa.3110.0.copyload
  %6 = icmp ult i64 %5, %4
  br i1 %6, label %50, label %7

7:                                                ; preds = %3
  %8 = and i64 %.sroa.3110.0.copyload, 63
  %9 = icmp eq i64 %8, 0
  %10 = icmp ne i64 %.sroa.3110.0.copyload, 0
  %or.cond = and i1 %10, %9
  %11 = trunc nuw nsw i64 %8 to i32
  %.0142 = select i1 %or.cond, i32 64, i32 %11
  %12 = sub nuw nsw i32 64, %.0142
  %.not = icmp ult i32 %12, %2
  br i1 %.not, label %16, label %13

13:                                               ; preds = %7
  %.sroa.099.0.copyload = load ptr, ptr %0, align 8, !tbaa !9
  %.sroa.4100.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8
  %.sroa.4100.0.copyload = load ptr, ptr %.sroa.4100.0..sroa_idx, align 8, !tbaa !9
  %. = select i1 %or.cond, i64 64, i64 %8
  %14 = getelementptr inbounds i8, ptr %.sroa.4100.0.copyload, i64 %.
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %14, ptr align 1 %1, i64 %4, i1 false)
  %15 = add i64 %.sroa.3110.0.copyload, %4
  store ptr %.sroa.099.0.copyload, ptr %0, align 8, !tbaa !9
  store ptr %.sroa.4100.0.copyload, ptr %.sroa.4100.0..sroa_idx, align 8, !tbaa !9
  br label %.sink.split

16:                                               ; preds = %7
  %17 = icmp eq i32 %.0142, 0
  br i1 %17, label %18, label %31

18:                                               ; preds = %16
  %.sroa.083.0.copyload = load ptr, ptr %0, align 8, !tbaa !9
  %.sroa.484.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8
  %.sroa.484.0.copyload = load ptr, ptr %.sroa.484.0..sroa_idx, align 8, !tbaa !9
  %or.cond158 = xor i1 %9, %or.cond
  br i1 %or.cond158, label %19, label %.critedge

.critedge:                                        ; preds = %18
  tail call void @Hacl_Hash_MD5_update_multi(ptr noundef %.sroa.083.0.copyload, ptr noundef %.sroa.484.0.copyload, i32 noundef 1)
  br label %19

19:                                               ; preds = %18, %.critedge
  %20 = and i64 %4, 63
  %21 = icmp eq i64 %20, 0
  %22 = trunc nuw nsw i64 %20 to i32
  %.0145 = select i1 %21, i32 64, i32 %22
  %23 = sub i32 %2, %.0145
  %24 = lshr i32 %23, 6
  %25 = and i32 %23, -64
  %26 = sub i32 %2, %25
  %27 = zext i32 %25 to i64
  %28 = getelementptr inbounds i8, ptr %1, i64 %27
  tail call void @Hacl_Hash_MD5_update_multi(ptr noundef %.sroa.083.0.copyload, ptr noundef %1, i32 noundef %24)
  %29 = zext i32 %26 to i64
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %.sroa.484.0.copyload, ptr align 1 %28, i64 %29, i1 false)
  %30 = add i64 %.sroa.3110.0.copyload, %4
  store ptr %.sroa.083.0.copyload, ptr %0, align 8, !tbaa !9
  store ptr %.sroa.484.0.copyload, ptr %.sroa.484.0..sroa_idx, align 8, !tbaa !9
  br label %.sink.split

31:                                               ; preds = %16
  %32 = zext nneg i32 %12 to i64
  %33 = getelementptr inbounds i8, ptr %1, i64 %32
  %.sroa.045.0.copyload = load ptr, ptr %0, align 8, !tbaa !9
  %.sroa.446.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8
  %.sroa.446.0.copyload = load ptr, ptr %.sroa.446.0..sroa_idx, align 8, !tbaa !9
  %.154 = select i1 %or.cond, i64 64, i64 %8
  %34 = getelementptr inbounds i8, ptr %.sroa.446.0.copyload, i64 %.154
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %34, ptr align 1 %1, i64 %32, i1 false)
  %35 = add i64 %.sroa.3110.0.copyload, %32
  store ptr %.sroa.045.0.copyload, ptr %0, align 8, !tbaa !9
  store ptr %.sroa.446.0.copyload, ptr %.sroa.446.0..sroa_idx, align 8, !tbaa !9
  store i64 %35, ptr %.sroa.3110.0..sroa_idx, align 8, !tbaa !5
  %36 = icmp eq i64 %35, 0
  br i1 %36, label %37, label %.critedge156

.critedge156:                                     ; preds = %31
  tail call void @Hacl_Hash_MD5_update_multi(ptr noundef %.sroa.045.0.copyload, ptr noundef %.sroa.446.0.copyload, i32 noundef 1)
  br label %37

37:                                               ; preds = %31, %.critedge156
  %38 = sub i32 %2, %12
  %39 = zext i32 %38 to i64
  %40 = and i64 %39, 63
  %.not160 = icmp eq i64 %40, 0
  %41 = trunc nuw nsw i64 %40 to i32
  %.0148 = select i1 %.not160, i32 64, i32 %41
  %42 = sub i32 %38, %.0148
  %43 = lshr i32 %42, 6
  %44 = and i32 %42, -64
  %45 = sub i32 %38, %44
  %46 = zext i32 %44 to i64
  %47 = getelementptr inbounds i8, ptr %33, i64 %46
  tail call void @Hacl_Hash_MD5_update_multi(ptr noundef %.sroa.045.0.copyload, ptr noundef %33, i32 noundef %43)
  %48 = zext i32 %45 to i64
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %.sroa.446.0.copyload, ptr align 1 %47, i64 %48, i1 false)
  %49 = add i64 %35, %39
  store ptr %.sroa.045.0.copyload, ptr %0, align 8, !tbaa !9
  store ptr %.sroa.446.0.copyload, ptr %.sroa.446.0..sroa_idx, align 8, !tbaa !9
  br label %.sink.split

.sink.split:                                      ; preds = %19, %37, %13
  %.sink = phi i64 [ %15, %13 ], [ %49, %37 ], [ %30, %19 ]
  store i64 %.sink, ptr %.sroa.3110.0..sroa_idx, align 8, !tbaa !5
  br label %50

50:                                               ; preds = %.sink.split, %3
  %.0 = phi i8 [ 3, %3 ], [ 0, %.sink.split ]
  ret i8 %.0
}

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 nounwind willreturn memory(argmem: readwrite) }

!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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}


; Effective O3 passes: ConstraintEliminationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass