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

; 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_Hash_SHA3_state_t_s = type { %struct.Hacl_Hash_SHA3_hash_buf_s, ptr, i64 }
%struct.Hacl_Hash_SHA3_hash_buf_s = type { i8, ptr }

; Function Attrs: nounwind uwtable
declare dso_local void @Hacl_Hash_SHA3_update_multi_sha3(i8 noundef zeroext, ptr noundef, ptr noundef, i32 noundef) #0

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

; Function Attrs: nounwind uwtable
declare hidden i32 @block_len(i8 noundef zeroext) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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_SHA3_update(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
  %4 = alloca i8, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %struct.Hacl_Hash_SHA3_state_t_s, align 8
  %9 = alloca %struct.Hacl_Hash_SHA3_hash_buf_s, align 8
  %10 = alloca i64, align 8
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca %struct.Hacl_Hash_SHA3_state_t_s, align 8
  %15 = alloca %struct.Hacl_Hash_SHA3_hash_buf_s, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i64, align 8
  %21 = alloca %struct.Hacl_Hash_SHA3_state_t_s, align 8
  %22 = alloca %struct.Hacl_Hash_SHA3_state_t_s, align 8
  %23 = alloca %struct.Hacl_Hash_SHA3_hash_buf_s, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i64, align 8
  %26 = alloca i32, align 4
  %27 = alloca i8, align 1
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca i8, align 1
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca %struct.Hacl_Hash_SHA3_state_t_s, align 8
  %39 = alloca i32, align 4
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca %struct.Hacl_Hash_SHA3_state_t_s, align 8
  %43 = alloca %struct.Hacl_Hash_SHA3_hash_buf_s, align 8
  %44 = alloca ptr, align 8
  %45 = alloca i64, align 8
  %46 = alloca i32, align 4
  %47 = alloca ptr, align 8
  %48 = alloca i64, align 8
  %49 = alloca %struct.Hacl_Hash_SHA3_state_t_s, align 8
  %50 = alloca %struct.Hacl_Hash_SHA3_state_t_s, align 8
  %51 = alloca %struct.Hacl_Hash_SHA3_hash_buf_s, align 8
  %52 = alloca ptr, align 8
  %53 = alloca i64, align 8
  %54 = alloca i32, align 4
  %55 = alloca i8, align 1
  %56 = alloca ptr, align 8
  %57 = alloca i32, align 4
  %58 = alloca i32, align 4
  %59 = alloca i32, align 4
  %60 = alloca i32, align 4
  %61 = alloca ptr, align 8
  %62 = alloca ptr, align 8
  %63 = alloca i8, align 1
  %64 = alloca ptr, align 8
  %65 = alloca ptr, align 8
  %66 = alloca %struct.Hacl_Hash_SHA3_state_t_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 32, ptr %8) #3
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %67, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #3
  %68 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %8, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %68, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %69 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %8, i32 0, i32 2
  %70 = load i64, ptr %69, align 8, !tbaa !16
  store i64 %70, ptr %10, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #3
  %71 = getelementptr inbounds %struct.Hacl_Hash_SHA3_hash_buf_s, ptr %9, i32 0, i32 0
  %72 = load i8, ptr %71, align 8, !tbaa !19
  store i8 %72, ptr %11, align 1, !tbaa !12
  %73 = load i32, ptr %7, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = load i64, ptr %10, align 8, !tbaa !13
  %76 = sub i64 -1, %75
  %77 = icmp ugt i64 %74, %76
  br i1 %77, label %78, label %79

78:                                               ; preds = %3
  store i8 3, ptr %4, align 1
  store i32 1, ptr %12, align 4
  br label %443

79:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %80 = load i64, ptr %10, align 8, !tbaa !13
  %81 = load i8, ptr %11, align 1, !tbaa !12
  %82 = call i32 @block_len(i8 noundef zeroext %81)
  %83 = zext i32 %82 to i64
  %84 = urem i64 %80, %83
  %85 = icmp eq i64 %84, 0
  br i1 %85, label %86, label %92

86:                                               ; preds = %79
  %87 = load i64, ptr %10, align 8, !tbaa !13
  %88 = icmp ugt i64 %87, 0
  br i1 %88, label %89, label %92

89:                                               ; preds = %86
  %90 = load i8, ptr %11, align 1, !tbaa !12
  %91 = call i32 @block_len(i8 noundef zeroext %90)
  store i32 %91, ptr %13, align 4, !tbaa !9
  br label %99

92:                                               ; preds = %86, %79
  %93 = load i64, ptr %10, align 8, !tbaa !13
  %94 = load i8, ptr %11, align 1, !tbaa !12
  %95 = call i32 @block_len(i8 noundef zeroext %94)
  %96 = zext i32 %95 to i64
  %97 = urem i64 %93, %96
  %98 = trunc i64 %97 to i32
  store i32 %98, ptr %13, align 4, !tbaa !9
  br label %99

99:                                               ; preds = %92, %89
  %100 = load i32, ptr %7, align 4, !tbaa !9
  %101 = load i8, ptr %11, align 1, !tbaa !12
  %102 = call i32 @block_len(i8 noundef zeroext %101)
  %103 = load i32, ptr %13, align 4, !tbaa !9
  %104 = sub i32 %102, %103
  %105 = icmp ule i32 %100, %104
  br i1 %105, label %106, label %152

106:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #3
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %107, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #3
  %108 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %14, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %108, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %109 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %14, i32 0, i32 1
  %110 = load ptr, ptr %109, align 8, !tbaa !20
  store ptr %110, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  %111 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %14, i32 0, i32 2
  %112 = load i64, ptr %111, align 8, !tbaa !16
  store i64 %112, ptr %17, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  %113 = load i64, ptr %17, align 8, !tbaa !13
  %114 = load i8, ptr %11, align 1, !tbaa !12
  %115 = call i32 @block_len(i8 noundef zeroext %114)
  %116 = zext i32 %115 to i64
  %117 = urem i64 %113, %116
  %118 = icmp eq i64 %117, 0
  br i1 %118, label %119, label %125

119:                                              ; preds = %106
  %120 = load i64, ptr %17, align 8, !tbaa !13
  %121 = icmp ugt i64 %120, 0
  br i1 %121, label %122, label %125

122:                                              ; preds = %119
  %123 = load i8, ptr %11, align 1, !tbaa !12
  %124 = call i32 @block_len(i8 noundef zeroext %123)
  store i32 %124, ptr %18, align 4, !tbaa !9
  br label %132

125:                                              ; preds = %119, %106
  %126 = load i64, ptr %17, align 8, !tbaa !13
  %127 = load i8, ptr %11, align 1, !tbaa !12
  %128 = call i32 @block_len(i8 noundef zeroext %127)
  %129 = zext i32 %128 to i64
  %130 = urem i64 %126, %129
  %131 = trunc i64 %130 to i32
  store i32 %131, ptr %18, align 4, !tbaa !9
  br label %132

132:                                              ; preds = %125, %122
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %133 = load ptr, ptr %16, align 8, !tbaa !5
  %134 = load i32, ptr %18, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds i8, ptr %133, i64 %135
  store ptr %136, ptr %19, align 8, !tbaa !5
  %137 = load ptr, ptr %19, align 8, !tbaa !5
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = load i32, ptr %7, align 4, !tbaa !9
  %140 = zext i32 %139 to i64
  %141 = mul i64 %140, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %137, ptr align 1 %138, i64 %141, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  %142 = load i64, ptr %17, align 8, !tbaa !13
  %143 = load i32, ptr %7, align 4, !tbaa !9
  %144 = zext i32 %143 to i64
  %145 = add i64 %142, %144
  store i64 %145, ptr %20, align 8, !tbaa !13
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %21, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %147, ptr align 8 %15, i64 16, i1 false), !tbaa.struct !15
  %148 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %21, i32 0, i32 1
  %149 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %149, ptr %148, align 8, !tbaa !20
  %150 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %21, i32 0, i32 2
  %151 = load i64, ptr %20, align 8, !tbaa !13
  store i64 %151, ptr %150, align 8, !tbaa !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %146, ptr align 8 %21, i64 32, i1 false), !tbaa.struct !11
  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.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #3
  br label %442

152:                                              ; preds = %99
  %153 = load i32, ptr %13, align 4, !tbaa !9
  %154 = icmp eq i32 %153, 0
  br i1 %154, label %155, label %265

155:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #3
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %156, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #3
  %157 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %22, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %157, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  %158 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %22, i32 0, i32 1
  %159 = load ptr, ptr %158, align 8, !tbaa !20
  store ptr %159, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  %160 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %22, i32 0, i32 2
  %161 = load i64, ptr %160, align 8, !tbaa !16
  store i64 %161, ptr %25, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  %162 = load i64, ptr %25, align 8, !tbaa !13
  %163 = load i8, ptr %11, align 1, !tbaa !12
  %164 = call i32 @block_len(i8 noundef zeroext %163)
  %165 = zext i32 %164 to i64
  %166 = urem i64 %162, %165
  %167 = icmp eq i64 %166, 0
  br i1 %167, label %168, label %174

168:                                              ; preds = %155
  %169 = load i64, ptr %25, align 8, !tbaa !13
  %170 = icmp ugt i64 %169, 0
  br i1 %170, label %171, label %174

171:                                              ; preds = %168
  %172 = load i8, ptr %11, align 1, !tbaa !12
  %173 = call i32 @block_len(i8 noundef zeroext %172)
  store i32 %173, ptr %26, align 4, !tbaa !9
  br label %181

174:                                              ; preds = %168, %155
  %175 = load i64, ptr %25, align 8, !tbaa !13
  %176 = load i8, ptr %11, align 1, !tbaa !12
  %177 = call i32 @block_len(i8 noundef zeroext %176)
  %178 = zext i32 %177 to i64
  %179 = urem i64 %175, %178
  %180 = trunc i64 %179 to i32
  store i32 %180, ptr %26, align 4, !tbaa !9
  br label %181

181:                                              ; preds = %174, %171
  %182 = load i32, ptr %26, align 4, !tbaa !9
  %183 = icmp eq i32 %182, 0
  br i1 %183, label %197, label %184

184:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #3
  %185 = getelementptr inbounds %struct.Hacl_Hash_SHA3_hash_buf_s, ptr %23, i32 0, i32 0
  %186 = load i8, ptr %185, align 8, !tbaa !19
  store i8 %186, ptr %27, align 1, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  %187 = getelementptr inbounds %struct.Hacl_Hash_SHA3_hash_buf_s, ptr %23, i32 0, i32 1
  %188 = load ptr, ptr %187, align 8, !tbaa !21
  store ptr %188, ptr %28, align 8, !tbaa !5
  %189 = load i8, ptr %27, align 1, !tbaa !12
  %190 = load ptr, ptr %28, align 8, !tbaa !5
  %191 = load ptr, ptr %24, align 8, !tbaa !5
  %192 = load i8, ptr %11, align 1, !tbaa !12
  %193 = call i32 @block_len(i8 noundef zeroext %192)
  %194 = load i8, ptr %27, align 1, !tbaa !12
  %195 = call i32 @block_len(i8 noundef zeroext %194)
  %196 = udiv i32 %193, %195
  call void @Hacl_Hash_SHA3_update_multi_sha3(i8 noundef zeroext %189, ptr noundef %190, ptr noundef %191, i32 noundef %196)
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #3
  br label %197

197:                                              ; preds = %184, %181
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #3
  %198 = load i32, ptr %7, align 4, !tbaa !9
  %199 = zext i32 %198 to i64
  %200 = load i8, ptr %11, align 1, !tbaa !12
  %201 = call i32 @block_len(i8 noundef zeroext %200)
  %202 = zext i32 %201 to i64
  %203 = urem i64 %199, %202
  %204 = icmp eq i64 %203, 0
  br i1 %204, label %205, label %212

205:                                              ; preds = %197
  %206 = load i32, ptr %7, align 4, !tbaa !9
  %207 = zext i32 %206 to i64
  %208 = icmp ugt i64 %207, 0
  br i1 %208, label %209, label %212

209:                                              ; preds = %205
  %210 = load i8, ptr %11, align 1, !tbaa !12
  %211 = call i32 @block_len(i8 noundef zeroext %210)
  store i32 %211, ptr %29, align 4, !tbaa !9
  br label %220

212:                                              ; preds = %205, %197
  %213 = load i32, ptr %7, align 4, !tbaa !9
  %214 = zext i32 %213 to i64
  %215 = load i8, ptr %11, align 1, !tbaa !12
  %216 = call i32 @block_len(i8 noundef zeroext %215)
  %217 = zext i32 %216 to i64
  %218 = urem i64 %214, %217
  %219 = trunc i64 %218 to i32
  store i32 %219, ptr %29, align 4, !tbaa !9
  br label %220

220:                                              ; preds = %212, %209
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #3
  %221 = load i32, ptr %7, align 4, !tbaa !9
  %222 = load i32, ptr %29, align 4, !tbaa !9
  %223 = sub i32 %221, %222
  %224 = load i8, ptr %11, align 1, !tbaa !12
  %225 = call i32 @block_len(i8 noundef zeroext %224)
  %226 = udiv i32 %223, %225
  store i32 %226, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
  %227 = load i32, ptr %30, align 4, !tbaa !9
  %228 = load i8, ptr %11, align 1, !tbaa !12
  %229 = call i32 @block_len(i8 noundef zeroext %228)
  %230 = mul i32 %227, %229
  store i32 %230, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #3
  %231 = load i32, ptr %7, align 4, !tbaa !9
  %232 = load i32, ptr %31, align 4, !tbaa !9
  %233 = sub i32 %231, %232
  store i32 %233, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #3
  %234 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %234, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #3
  %235 = load ptr, ptr %6, align 8, !tbaa !5
  %236 = load i32, ptr %31, align 4, !tbaa !9
  %237 = zext i32 %236 to i64
  %238 = getelementptr inbounds i8, ptr %235, i64 %237
  store ptr %238, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %35) #3
  %239 = getelementptr inbounds %struct.Hacl_Hash_SHA3_hash_buf_s, ptr %23, i32 0, i32 0
  %240 = load i8, ptr %239, align 8, !tbaa !19
  store i8 %240, ptr %35, align 1, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #3
  %241 = getelementptr inbounds %struct.Hacl_Hash_SHA3_hash_buf_s, ptr %23, i32 0, i32 1
  %242 = load ptr, ptr %241, align 8, !tbaa !21
  store ptr %242, ptr %36, align 8, !tbaa !5
  %243 = load i8, ptr %35, align 1, !tbaa !12
  %244 = load ptr, ptr %36, align 8, !tbaa !5
  %245 = load ptr, ptr %33, align 8, !tbaa !5
  %246 = load i32, ptr %31, align 4, !tbaa !9
  %247 = load i8, ptr %35, align 1, !tbaa !12
  %248 = call i32 @block_len(i8 noundef zeroext %247)
  %249 = udiv i32 %246, %248
  call void @Hacl_Hash_SHA3_update_multi_sha3(i8 noundef zeroext %243, ptr noundef %244, ptr noundef %245, i32 noundef %249)
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #3
  %250 = load ptr, ptr %24, align 8, !tbaa !5
  store ptr %250, ptr %37, align 8, !tbaa !5
  %251 = load ptr, ptr %37, align 8, !tbaa !5
  %252 = load ptr, ptr %34, align 8, !tbaa !5
  %253 = load i32, ptr %32, align 4, !tbaa !9
  %254 = zext i32 %253 to i64
  %255 = mul i64 %254, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %251, ptr align 1 %252, i64 %255, i1 false)
  %256 = load ptr, ptr %5, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %38, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %257, ptr align 8 %23, i64 16, i1 false), !tbaa.struct !15
  %258 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %38, i32 0, i32 1
  %259 = load ptr, ptr %24, align 8, !tbaa !5
  store ptr %259, ptr %258, align 8, !tbaa !20
  %260 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %38, i32 0, i32 2
  %261 = load i64, ptr %25, align 8, !tbaa !13
  %262 = load i32, ptr %7, align 4, !tbaa !9
  %263 = zext i32 %262 to i64
  %264 = add i64 %261, %263
  store i64 %264, ptr %260, align 8, !tbaa !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %256, ptr align 8 %38, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #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.end.p0(i64 16, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #3
  br label %441

265:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #3
  %266 = load i8, ptr %11, align 1, !tbaa !12
  %267 = call i32 @block_len(i8 noundef zeroext %266)
  %268 = load i32, ptr %13, align 4, !tbaa !9
  %269 = sub i32 %267, %268
  store i32 %269, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #3
  %270 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %270, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #3
  %271 = load ptr, ptr %6, align 8, !tbaa !5
  %272 = load i32, ptr %39, align 4, !tbaa !9
  %273 = zext i32 %272 to i64
  %274 = getelementptr inbounds i8, ptr %271, i64 %273
  store ptr %274, ptr %41, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %42) #3
  %275 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %42, ptr align 8 %275, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #3
  %276 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %42, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %43, ptr align 8 %276, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #3
  %277 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %42, i32 0, i32 1
  %278 = load ptr, ptr %277, align 8, !tbaa !20
  store ptr %278, ptr %44, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #3
  %279 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %42, i32 0, i32 2
  %280 = load i64, ptr %279, align 8, !tbaa !16
  store i64 %280, ptr %45, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #3
  %281 = load i64, ptr %45, align 8, !tbaa !13
  %282 = load i8, ptr %11, align 1, !tbaa !12
  %283 = call i32 @block_len(i8 noundef zeroext %282)
  %284 = zext i32 %283 to i64
  %285 = urem i64 %281, %284
  %286 = icmp eq i64 %285, 0
  br i1 %286, label %287, label %293

287:                                              ; preds = %265
  %288 = load i64, ptr %45, align 8, !tbaa !13
  %289 = icmp ugt i64 %288, 0
  br i1 %289, label %290, label %293

290:                                              ; preds = %287
  %291 = load i8, ptr %11, align 1, !tbaa !12
  %292 = call i32 @block_len(i8 noundef zeroext %291)
  store i32 %292, ptr %46, align 4, !tbaa !9
  br label %300

293:                                              ; preds = %287, %265
  %294 = load i64, ptr %45, align 8, !tbaa !13
  %295 = load i8, ptr %11, align 1, !tbaa !12
  %296 = call i32 @block_len(i8 noundef zeroext %295)
  %297 = zext i32 %296 to i64
  %298 = urem i64 %294, %297
  %299 = trunc i64 %298 to i32
  store i32 %299, ptr %46, align 4, !tbaa !9
  br label %300

300:                                              ; preds = %293, %290
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #3
  %301 = load ptr, ptr %44, align 8, !tbaa !5
  %302 = load i32, ptr %46, align 4, !tbaa !9
  %303 = zext i32 %302 to i64
  %304 = getelementptr inbounds i8, ptr %301, i64 %303
  store ptr %304, ptr %47, align 8, !tbaa !5
  %305 = load ptr, ptr %47, align 8, !tbaa !5
  %306 = load ptr, ptr %40, align 8, !tbaa !5
  %307 = load i32, ptr %39, align 4, !tbaa !9
  %308 = zext i32 %307 to i64
  %309 = mul i64 %308, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %305, ptr align 1 %306, i64 %309, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #3
  %310 = load i64, ptr %45, align 8, !tbaa !13
  %311 = load i32, ptr %39, align 4, !tbaa !9
  %312 = zext i32 %311 to i64
  %313 = add i64 %310, %312
  store i64 %313, ptr %48, align 8, !tbaa !13
  %314 = load ptr, ptr %5, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %49, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %315, ptr align 8 %43, i64 16, i1 false), !tbaa.struct !15
  %316 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %49, i32 0, i32 1
  %317 = load ptr, ptr %44, align 8, !tbaa !5
  store ptr %317, ptr %316, align 8, !tbaa !20
  %318 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %49, i32 0, i32 2
  %319 = load i64, ptr %48, align 8, !tbaa !13
  store i64 %319, ptr %318, align 8, !tbaa !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %314, ptr align 8 %49, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 32, ptr %50) #3
  %320 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %50, ptr align 8 %320, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %51) #3
  %321 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %50, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %51, ptr align 8 %321, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #3
  %322 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %50, i32 0, i32 1
  %323 = load ptr, ptr %322, align 8, !tbaa !20
  store ptr %323, ptr %52, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #3
  %324 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %50, i32 0, i32 2
  %325 = load i64, ptr %324, align 8, !tbaa !16
  store i64 %325, ptr %53, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #3
  %326 = load i64, ptr %53, align 8, !tbaa !13
  %327 = load i8, ptr %11, align 1, !tbaa !12
  %328 = call i32 @block_len(i8 noundef zeroext %327)
  %329 = zext i32 %328 to i64
  %330 = urem i64 %326, %329
  %331 = icmp eq i64 %330, 0
  br i1 %331, label %332, label %338

332:                                              ; preds = %300
  %333 = load i64, ptr %53, align 8, !tbaa !13
  %334 = icmp ugt i64 %333, 0
  br i1 %334, label %335, label %338

335:                                              ; preds = %332
  %336 = load i8, ptr %11, align 1, !tbaa !12
  %337 = call i32 @block_len(i8 noundef zeroext %336)
  store i32 %337, ptr %54, align 4, !tbaa !9
  br label %345

338:                                              ; preds = %332, %300
  %339 = load i64, ptr %53, align 8, !tbaa !13
  %340 = load i8, ptr %11, align 1, !tbaa !12
  %341 = call i32 @block_len(i8 noundef zeroext %340)
  %342 = zext i32 %341 to i64
  %343 = urem i64 %339, %342
  %344 = trunc i64 %343 to i32
  store i32 %344, ptr %54, align 4, !tbaa !9
  br label %345

345:                                              ; preds = %338, %335
  %346 = load i32, ptr %54, align 4, !tbaa !9
  %347 = icmp eq i32 %346, 0
  br i1 %347, label %361, label %348

348:                                              ; preds = %345
  call void @llvm.lifetime.start.p0(i64 1, ptr %55) #3
  %349 = getelementptr inbounds %struct.Hacl_Hash_SHA3_hash_buf_s, ptr %51, i32 0, i32 0
  %350 = load i8, ptr %349, align 8, !tbaa !19
  store i8 %350, ptr %55, align 1, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #3
  %351 = getelementptr inbounds %struct.Hacl_Hash_SHA3_hash_buf_s, ptr %51, i32 0, i32 1
  %352 = load ptr, ptr %351, align 8, !tbaa !21
  store ptr %352, ptr %56, align 8, !tbaa !5
  %353 = load i8, ptr %55, align 1, !tbaa !12
  %354 = load ptr, ptr %56, align 8, !tbaa !5
  %355 = load ptr, ptr %52, align 8, !tbaa !5
  %356 = load i8, ptr %11, align 1, !tbaa !12
  %357 = call i32 @block_len(i8 noundef zeroext %356)
  %358 = load i8, ptr %55, align 1, !tbaa !12
  %359 = call i32 @block_len(i8 noundef zeroext %358)
  %360 = udiv i32 %357, %359
  call void @Hacl_Hash_SHA3_update_multi_sha3(i8 noundef zeroext %353, ptr noundef %354, ptr noundef %355, i32 noundef %360)
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %55) #3
  br label %361

361:                                              ; preds = %348, %345
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #3
  %362 = load i32, ptr %7, align 4, !tbaa !9
  %363 = load i32, ptr %39, align 4, !tbaa !9
  %364 = sub i32 %362, %363
  %365 = zext i32 %364 to i64
  %366 = load i8, ptr %11, align 1, !tbaa !12
  %367 = call i32 @block_len(i8 noundef zeroext %366)
  %368 = zext i32 %367 to i64
  %369 = urem i64 %365, %368
  %370 = icmp eq i64 %369, 0
  br i1 %370, label %371, label %380

371:                                              ; preds = %361
  %372 = load i32, ptr %7, align 4, !tbaa !9
  %373 = load i32, ptr %39, align 4, !tbaa !9
  %374 = sub i32 %372, %373
  %375 = zext i32 %374 to i64
  %376 = icmp ugt i64 %375, 0
  br i1 %376, label %377, label %380

377:                                              ; preds = %371
  %378 = load i8, ptr %11, align 1, !tbaa !12
  %379 = call i32 @block_len(i8 noundef zeroext %378)
  store i32 %379, ptr %57, align 4, !tbaa !9
  br label %390

380:                                              ; preds = %371, %361
  %381 = load i32, ptr %7, align 4, !tbaa !9
  %382 = load i32, ptr %39, align 4, !tbaa !9
  %383 = sub i32 %381, %382
  %384 = zext i32 %383 to i64
  %385 = load i8, ptr %11, align 1, !tbaa !12
  %386 = call i32 @block_len(i8 noundef zeroext %385)
  %387 = zext i32 %386 to i64
  %388 = urem i64 %384, %387
  %389 = trunc i64 %388 to i32
  store i32 %389, ptr %57, align 4, !tbaa !9
  br label %390

390:                                              ; preds = %380, %377
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #3
  %391 = load i32, ptr %7, align 4, !tbaa !9
  %392 = load i32, ptr %39, align 4, !tbaa !9
  %393 = sub i32 %391, %392
  %394 = load i32, ptr %57, align 4, !tbaa !9
  %395 = sub i32 %393, %394
  %396 = load i8, ptr %11, align 1, !tbaa !12
  %397 = call i32 @block_len(i8 noundef zeroext %396)
  %398 = udiv i32 %395, %397
  store i32 %398, ptr %58, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #3
  %399 = load i32, ptr %58, align 4, !tbaa !9
  %400 = load i8, ptr %11, align 1, !tbaa !12
  %401 = call i32 @block_len(i8 noundef zeroext %400)
  %402 = mul i32 %399, %401
  store i32 %402, ptr %59, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #3
  %403 = load i32, ptr %7, align 4, !tbaa !9
  %404 = load i32, ptr %39, align 4, !tbaa !9
  %405 = sub i32 %403, %404
  %406 = load i32, ptr %59, align 4, !tbaa !9
  %407 = sub i32 %405, %406
  store i32 %407, ptr %60, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %61) #3
  %408 = load ptr, ptr %41, align 8, !tbaa !5
  store ptr %408, ptr %61, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %62) #3
  %409 = load ptr, ptr %41, align 8, !tbaa !5
  %410 = load i32, ptr %59, align 4, !tbaa !9
  %411 = zext i32 %410 to i64
  %412 = getelementptr inbounds i8, ptr %409, i64 %411
  store ptr %412, ptr %62, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %63) #3
  %413 = getelementptr inbounds %struct.Hacl_Hash_SHA3_hash_buf_s, ptr %51, i32 0, i32 0
  %414 = load i8, ptr %413, align 8, !tbaa !19
  store i8 %414, ptr %63, align 1, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %64) #3
  %415 = getelementptr inbounds %struct.Hacl_Hash_SHA3_hash_buf_s, ptr %51, i32 0, i32 1
  %416 = load ptr, ptr %415, align 8, !tbaa !21
  store ptr %416, ptr %64, align 8, !tbaa !5
  %417 = load i8, ptr %63, align 1, !tbaa !12
  %418 = load ptr, ptr %64, align 8, !tbaa !5
  %419 = load ptr, ptr %61, align 8, !tbaa !5
  %420 = load i32, ptr %59, align 4, !tbaa !9
  %421 = load i8, ptr %63, align 1, !tbaa !12
  %422 = call i32 @block_len(i8 noundef zeroext %421)
  %423 = udiv i32 %420, %422
  call void @Hacl_Hash_SHA3_update_multi_sha3(i8 noundef zeroext %417, ptr noundef %418, ptr noundef %419, i32 noundef %423)
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #3
  %424 = load ptr, ptr %52, align 8, !tbaa !5
  store ptr %424, ptr %65, align 8, !tbaa !5
  %425 = load ptr, ptr %65, align 8, !tbaa !5
  %426 = load ptr, ptr %62, align 8, !tbaa !5
  %427 = load i32, ptr %60, align 4, !tbaa !9
  %428 = zext i32 %427 to i64
  %429 = mul i64 %428, 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %425, ptr align 1 %426, i64 %429, i1 false)
  %430 = load ptr, ptr %5, align 8, !tbaa !5
  %431 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %66, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %431, ptr align 8 %51, i64 16, i1 false), !tbaa.struct !15
  %432 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %66, i32 0, i32 1
  %433 = load ptr, ptr %52, align 8, !tbaa !5
  store ptr %433, ptr %432, align 8, !tbaa !20
  %434 = getelementptr inbounds %struct.Hacl_Hash_SHA3_state_t_s, ptr %66, i32 0, i32 2
  %435 = load i64, ptr %53, align 8, !tbaa !13
  %436 = load i32, ptr %7, align 4, !tbaa !9
  %437 = load i32, ptr %39, align 4, !tbaa !9
  %438 = sub i32 %436, %437
  %439 = zext i32 %438 to i64
  %440 = add i64 %435, %439
  store i64 %440, ptr %434, align 8, !tbaa !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %430, ptr align 8 %66, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %64) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %63) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %62) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %61) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #3
  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 %54) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %51) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %50) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #3
  call void @llvm.lifetime.end.p0(i64 8, 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.end.p0(i64 16, ptr %43) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %42) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #3
  br label %441

441:                                              ; preds = %390, %220
  br label %442

442:                                              ; preds = %441, %132
  store i8 0, ptr %4, align 1
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %443

443:                                              ; preds = %442, %78
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #3
  %444 = load i8, ptr %4, align 1
  ret i8 %444
}

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 = { 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 1, !12, i64 8, i64 8, !5, i64 16, i64 8, !5, i64 24, i64 8, !13}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{i64 0, i64 1, !12, i64 8, i64 8, !5}
!16 = !{!17, !14, i64 24}
!17 = !{!"Hacl_Hash_SHA3_state_t_s", !18, i64 0, !6, i64 16, !14, i64 24}
!18 = !{!"Hacl_Hash_SHA3_hash_buf_s", !7, i64 0, !6, i64 8}
!19 = !{!18, !7, i64 0}
!20 = !{!17, !6, i64 16}
!21 = !{!18, !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"

%struct.Hacl_Hash_SHA3_hash_buf_s = type { i8, ptr }

; Function Attrs: nounwind uwtable
declare dso_local void @Hacl_Hash_SHA3_update_multi_sha3(i8 noundef zeroext, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @block_len(i8 noundef zeroext) 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_SHA3_update(ptr nocapture noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = alloca %struct.Hacl_Hash_SHA3_hash_buf_s, align 8
  %.sroa.697 = alloca [7 x i8], align 1
  %5 = alloca %struct.Hacl_Hash_SHA3_hash_buf_s, align 8
  %.sroa.0159.0.copyload = load i8, ptr %0, align 8, !tbaa !5
  %.sroa.4160.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 1
  %.sroa.5161.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 16
  %.sroa.5162.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 24
  %.sroa.5162.0.copyload = load i64, ptr %.sroa.5162.0..sroa_idx, align 8, !tbaa !8
  %6 = zext i32 %2 to i64
  %7 = xor i64 %.sroa.5162.0.copyload, -1
  %8 = icmp ugt i64 %6, %7
  br i1 %8, label %135, label %9

9:                                                ; preds = %3
  %10 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0159.0.copyload)
  %11 = zext i32 %10 to i64
  %12 = urem i64 %.sroa.5162.0.copyload, %11
  %13 = icmp eq i64 %12, 0
  %14 = icmp ne i64 %.sroa.5162.0.copyload, 0
  %or.cond = and i1 %14, %13
  %15 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0159.0.copyload)
  br i1 %or.cond, label %20, label %16

16:                                               ; preds = %9
  %17 = zext i32 %15 to i64
  %18 = urem i64 %.sroa.5162.0.copyload, %17
  %19 = trunc nuw i64 %18 to i32
  br label %20

20:                                               ; preds = %9, %16
  %.0194 = phi i32 [ %19, %16 ], [ %15, %9 ]
  %21 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0159.0.copyload)
  %22 = sub i32 %21, %.0194
  %.not = icmp ult i32 %22, %2
  br i1 %.not, label %38, label %23

23:                                               ; preds = %20
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %0, i64 16, i1 false)
  %.sroa.4119.0.copyload = load ptr, ptr %.sroa.5161.0..sroa_idx, align 8, !tbaa !10
  %.sroa.5120.0.copyload = load i64, ptr %.sroa.5162.0..sroa_idx, align 8, !tbaa !8
  %24 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0159.0.copyload)
  %25 = zext i32 %24 to i64
  %26 = urem i64 %.sroa.5120.0.copyload, %25
  %27 = icmp eq i64 %26, 0
  %28 = icmp ne i64 %.sroa.5120.0.copyload, 0
  %or.cond3 = and i1 %28, %27
  %29 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0159.0.copyload)
  br i1 %or.cond3, label %34, label %30

30:                                               ; preds = %23
  %31 = zext i32 %29 to i64
  %32 = urem i64 %.sroa.5120.0.copyload, %31
  %33 = trunc nuw i64 %32 to i32
  br label %34

34:                                               ; preds = %23, %30
  %.0195 = phi i32 [ %33, %30 ], [ %29, %23 ]
  %35 = zext i32 %.0195 to i64
  %36 = getelementptr inbounds i8, ptr %.sroa.4119.0.copyload, i64 %35
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %36, ptr align 1 %1, i64 %6, i1 false)
  %37 = add i64 %.sroa.5120.0.copyload, %6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %4, i64 16, i1 false), !tbaa.struct !12
  br label %.sink.split

38:                                               ; preds = %20
  %39 = icmp eq i32 %.0194, 0
  br i1 %39, label %40, label %77

40:                                               ; preds = %38
  %.sroa.0101.0.copyload = load i8, ptr %0, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(7) %.sroa.697, ptr noundef nonnull align 1 dereferenceable(7) %.sroa.4160.0..sroa_idx, i64 7, i1 false)
  %.sroa.5103.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8
  %.sroa.5103.0.copyload = load ptr, ptr %.sroa.5103.0..sroa_idx, align 8, !tbaa !10
  %.sroa.6104.0.copyload = load ptr, ptr %.sroa.5161.0..sroa_idx, align 8, !tbaa !10
  %.sroa.7105.0.copyload = load i64, ptr %.sroa.5162.0..sroa_idx, align 8, !tbaa !8
  %41 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0159.0.copyload)
  %42 = zext i32 %41 to i64
  %43 = urem i64 %.sroa.7105.0.copyload, %42
  %44 = icmp eq i64 %43, 0
  %45 = icmp ne i64 %.sroa.7105.0.copyload, 0
  %or.cond5 = and i1 %45, %44
  %46 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0159.0.copyload)
  br i1 %or.cond5, label %51, label %47

47:                                               ; preds = %40
  %48 = zext i32 %46 to i64
  %49 = urem i64 %.sroa.7105.0.copyload, %48
  %50 = trunc nuw i64 %49 to i32
  br label %51

51:                                               ; preds = %40, %47
  %.0196 = phi i32 [ %50, %47 ], [ %46, %40 ]
  %52 = icmp eq i32 %.0196, 0
  br i1 %52, label %57, label %53

53:                                               ; preds = %51
  %54 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0159.0.copyload)
  %55 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0101.0.copyload)
  %56 = udiv i32 %54, %55
  tail call void @Hacl_Hash_SHA3_update_multi_sha3(i8 noundef zeroext %.sroa.0101.0.copyload, ptr noundef %.sroa.5103.0.copyload, ptr noundef %.sroa.6104.0.copyload, i32 noundef %56)
  br label %57

57:                                               ; preds = %53, %51
  %58 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0159.0.copyload)
  %59 = urem i32 %2, %58
  %60 = icmp eq i32 %59, 0
  %61 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0159.0.copyload)
  br i1 %60, label %64, label %62

62:                                               ; preds = %57
  %63 = urem i32 %2, %61
  br label %64

64:                                               ; preds = %57, %62
  %.0197 = phi i32 [ %63, %62 ], [ %61, %57 ]
  %65 = sub i32 %2, %.0197
  %66 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0159.0.copyload)
  %67 = udiv i32 %65, %66
  %68 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0159.0.copyload)
  %69 = mul i32 %68, %67
  %70 = sub i32 %2, %69
  %71 = zext i32 %69 to i64
  %72 = getelementptr inbounds i8, ptr %1, i64 %71
  %73 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0101.0.copyload)
  %74 = udiv i32 %69, %73
  tail call void @Hacl_Hash_SHA3_update_multi_sha3(i8 noundef zeroext %.sroa.0101.0.copyload, ptr noundef %.sroa.5103.0.copyload, ptr noundef %1, i32 noundef %74)
  %75 = zext i32 %70 to i64
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %.sroa.6104.0.copyload, ptr align 1 %72, i64 %75, i1 false)
  %76 = add i64 %.sroa.7105.0.copyload, %6
  store i8 %.sroa.0101.0.copyload, ptr %0, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(7) %.sroa.4160.0..sroa_idx, ptr noundef nonnull align 1 dereferenceable(7) %.sroa.697, i64 7, i1 false), !tbaa.struct !13
  store ptr %.sroa.5103.0.copyload, ptr %.sroa.5103.0..sroa_idx, align 8, !tbaa !10
  br label %.sink.split

77:                                               ; preds = %38
  %78 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0159.0.copyload)
  %79 = sub i32 %78, %.0194
  %80 = zext i32 %79 to i64
  %81 = getelementptr inbounds i8, ptr %1, i64 %80
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %0, i64 16, i1 false)
  %.sroa.454.0.copyload = load ptr, ptr %.sroa.5161.0..sroa_idx, align 8, !tbaa !10
  %.sroa.555.0.copyload = load i64, ptr %.sroa.5162.0..sroa_idx, align 8, !tbaa !8
  %82 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0159.0.copyload)
  %83 = zext i32 %82 to i64
  %84 = urem i64 %.sroa.555.0.copyload, %83
  %85 = icmp eq i64 %84, 0
  %86 = icmp ne i64 %.sroa.555.0.copyload, 0
  %or.cond10 = and i1 %86, %85
  %87 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0159.0.copyload)
  br i1 %or.cond10, label %92, label %88

88:                                               ; preds = %77
  %89 = zext i32 %87 to i64
  %90 = urem i64 %.sroa.555.0.copyload, %89
  %91 = trunc nuw i64 %90 to i32
  br label %92

92:                                               ; preds = %77, %88
  %.0198 = phi i32 [ %91, %88 ], [ %87, %77 ]
  %93 = zext i32 %.0198 to i64
  %94 = getelementptr inbounds i8, ptr %.sroa.454.0.copyload, i64 %93
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %94, ptr align 1 %1, i64 %80, i1 false)
  %95 = add i64 %.sroa.555.0.copyload, %80
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %5, i64 16, i1 false), !tbaa.struct !12
  store ptr %.sroa.454.0.copyload, ptr %.sroa.5161.0..sroa_idx, align 8, !tbaa !10
  store i64 %95, ptr %.sroa.5162.0..sroa_idx, align 8, !tbaa !8
  %.sroa.0.0.copyload = load i8, ptr %0, align 8, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %5, i64 1
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 8
  %.sroa.5.0.copyload = load ptr, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !10
  %97 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0159.0.copyload)
  %98 = zext i32 %97 to i64
  %99 = urem i64 %95, %98
  %100 = icmp eq i64 %99, 0
  %101 = icmp ne i64 %95, 0
  %or.cond12 = and i1 %101, %100
  %102 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0159.0.copyload)
  br i1 %or.cond12, label %107, label %103

103:                                              ; preds = %92
  %104 = zext i32 %102 to i64
  %105 = urem i64 %95, %104
  %106 = trunc nuw i64 %105 to i32
  br label %107

107:                                              ; preds = %92, %103
  %.0199 = phi i32 [ %106, %103 ], [ %102, %92 ]
  %108 = icmp eq i32 %.0199, 0
  br i1 %108, label %113, label %109

109:                                              ; preds = %107
  %110 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0159.0.copyload)
  %111 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0.0.copyload)
  %112 = udiv i32 %110, %111
  tail call void @Hacl_Hash_SHA3_update_multi_sha3(i8 noundef zeroext %.sroa.0.0.copyload, ptr noundef %.sroa.5.0.copyload, ptr noundef %.sroa.454.0.copyload, i32 noundef %112)
  br label %113

113:                                              ; preds = %109, %107
  %114 = sub i32 %2, %79
  %115 = zext i32 %114 to i64
  %116 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0159.0.copyload)
  %117 = urem i32 %114, %116
  %118 = icmp ne i32 %117, 0
  %.not203 = icmp eq i32 %79, %2
  %or.cond204 = select i1 %118, i1 true, i1 %.not203
  %119 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0159.0.copyload)
  br i1 %or.cond204, label %120, label %122

120:                                              ; preds = %113
  %121 = urem i32 %114, %119
  br label %122

122:                                              ; preds = %113, %120
  %.0200 = phi i32 [ %121, %120 ], [ %119, %113 ]
  %123 = sub i32 %114, %.0200
  %124 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0159.0.copyload)
  %125 = udiv i32 %123, %124
  %126 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0159.0.copyload)
  %127 = mul i32 %126, %125
  %128 = sub i32 %114, %127
  %129 = zext i32 %127 to i64
  %130 = getelementptr inbounds i8, ptr %81, i64 %129
  %131 = tail call i32 @block_len(i8 noundef zeroext %.sroa.0.0.copyload)
  %132 = udiv i32 %127, %131
  tail call void @Hacl_Hash_SHA3_update_multi_sha3(i8 noundef zeroext %.sroa.0.0.copyload, ptr noundef %.sroa.5.0.copyload, ptr noundef %81, i32 noundef %132)
  %133 = zext i32 %128 to i64
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %.sroa.454.0.copyload, ptr align 1 %130, i64 %133, i1 false)
  %134 = add i64 %95, %115
  store i8 %.sroa.0.0.copyload, ptr %0, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(7) %.sroa.4160.0..sroa_idx, ptr noundef nonnull align 1 dereferenceable(7) %96, i64 7, i1 false)
  store ptr %.sroa.5.0.copyload, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !10
  br label %.sink.split

.sink.split:                                      ; preds = %64, %122, %34
  %.sroa.4119.0.copyload.sink = phi ptr [ %.sroa.4119.0.copyload, %34 ], [ %.sroa.454.0.copyload, %122 ], [ %.sroa.6104.0.copyload, %64 ]
  %.sink = phi i64 [ %37, %34 ], [ %134, %122 ], [ %76, %64 ]
  store ptr %.sroa.4119.0.copyload.sink, ptr %.sroa.5161.0..sroa_idx, align 8, !tbaa !10
  store i64 %.sink, ptr %.sroa.5162.0..sroa_idx, align 8, !tbaa !8
  br label %135

135:                                              ; 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !6, i64 0}
!12 = !{i64 0, i64 1, !5, i64 8, i64 8, !10, i64 16, i64 8, !10, i64 24, i64 8, !8}
!13 = !{i64 7, i64 8, !10, i64 15, i64 8, !10, i64 23, i64 8, !8}


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