; LLVM IR from rweather/lightweight-crypto :: src/combined (subterranean)

; 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.subterranean_state_t = type { [9 x i32] }

; Function Attrs: nounwind uwtable
define dso_local i32 @subterranean_aead_encrypt(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, i64 noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #0 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %struct.subterranean_state_t, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store i64 %3, ptr %13, align 8, !tbaa !9
  store ptr %4, ptr %14, align 8, !tbaa !5
  store i64 %5, ptr %15, align 8, !tbaa !9
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 36, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %23 = load ptr, ptr %16, align 8, !tbaa !5
  %24 = load i64, ptr %13, align 8, !tbaa !9
  %25 = add i64 %24, 16
  %26 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 %25, ptr %26, align 8, !tbaa !9
  call void @llvm.memset.p0.i64(ptr align 4 %19, i8 0, i64 36, i1 false)
  %27 = load ptr, ptr %18, align 8, !tbaa !5
  call void @subterranean_absorb(ptr noundef %19, ptr noundef %27, i64 noundef 16)
  %28 = load ptr, ptr %17, align 8, !tbaa !5
  call void @subterranean_absorb(ptr noundef %19, ptr noundef %28, i64 noundef 16)
  call void @subterranean_blank(ptr noundef %19)
  %29 = load ptr, ptr %14, align 8, !tbaa !5
  %30 = load i64, ptr %15, align 8, !tbaa !9
  call void @subterranean_absorb(ptr noundef %19, ptr noundef %29, i64 noundef %30)
  br label %31

31:                                               ; preds = %93, %9
  %32 = load i64, ptr %13, align 8, !tbaa !9
  %33 = icmp uge i64 %32, 4
  br i1 %33, label %34, label %100

34:                                               ; preds = %31
  %35 = load ptr, ptr %12, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %35, i64 3
  %37 = load i8, ptr %36, align 1, !tbaa !11
  %38 = zext i8 %37 to i32
  %39 = shl i32 %38, 24
  %40 = load ptr, ptr %12, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %40, i64 2
  %42 = load i8, ptr %41, align 1, !tbaa !11
  %43 = zext i8 %42 to i32
  %44 = shl i32 %43, 16
  %45 = or i32 %39, %44
  %46 = load ptr, ptr %12, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %46, i64 1
  %48 = load i8, ptr %47, align 1, !tbaa !11
  %49 = zext i8 %48 to i32
  %50 = shl i32 %49, 8
  %51 = or i32 %45, %50
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %52, i64 0
  %54 = load i8, ptr %53, align 1, !tbaa !11
  %55 = zext i8 %54 to i32
  %56 = or i32 %51, %55
  store i32 %56, ptr %20, align 4, !tbaa !12
  %57 = call i32 @subterranean_extract(ptr noundef %19)
  %58 = load i32, ptr %20, align 4, !tbaa !12
  %59 = xor i32 %57, %58
  store i32 %59, ptr %21, align 4, !tbaa !12
  br label %60

60:                                               ; preds = %34
  br label %61

61:                                               ; preds = %60
  call void @subterranean_round(ptr noundef %19)
  %62 = load i32, ptr %20, align 4, !tbaa !12
  call void @subterranean_absorb_word(ptr noundef %19, i32 noundef %62)
  br label %63

63:                                               ; preds = %61
  br label %64

64:                                               ; preds = %63
  %65 = getelementptr inbounds %struct.subterranean_state_t, ptr %19, i32 0, i32 0
  %66 = getelementptr inbounds [9 x i32], ptr %65, i64 0, i64 8
  %67 = load i32, ptr %66, align 4, !tbaa !12
  %68 = xor i32 %67, 1
  store i32 %68, ptr %66, align 4, !tbaa !12
  br label %69

69:                                               ; preds = %64
  br label %70

70:                                               ; preds = %69
  br label %71

71:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %72 = load i32, ptr %21, align 4, !tbaa !12
  store i32 %72, ptr %22, align 4, !tbaa !12
  %73 = load i32, ptr %22, align 4, !tbaa !12
  %74 = trunc i32 %73 to i8
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = getelementptr inbounds i8, ptr %75, i64 0
  store i8 %74, ptr %76, align 1, !tbaa !11
  %77 = load i32, ptr %22, align 4, !tbaa !12
  %78 = lshr i32 %77, 8
  %79 = trunc i32 %78 to i8
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %81 = getelementptr inbounds i8, ptr %80, i64 1
  store i8 %79, ptr %81, align 1, !tbaa !11
  %82 = load i32, ptr %22, align 4, !tbaa !12
  %83 = lshr i32 %82, 16
  %84 = trunc i32 %83 to i8
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = getelementptr inbounds i8, ptr %85, i64 2
  store i8 %84, ptr %86, align 1, !tbaa !11
  %87 = load i32, ptr %22, align 4, !tbaa !12
  %88 = lshr i32 %87, 24
  %89 = trunc i32 %88 to i8
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = getelementptr inbounds i8, ptr %90, i64 3
  store i8 %89, ptr %91, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %92

92:                                               ; preds = %71
  br label %93

93:                                               ; preds = %92
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = getelementptr inbounds i8, ptr %94, i64 4
  store ptr %95, ptr %10, align 8, !tbaa !5
  %96 = load ptr, ptr %12, align 8, !tbaa !5
  %97 = getelementptr inbounds i8, ptr %96, i64 4
  store ptr %97, ptr %12, align 8, !tbaa !5
  %98 = load i64, ptr %13, align 8, !tbaa !9
  %99 = sub i64 %98, 4
  store i64 %99, ptr %13, align 8, !tbaa !9
  br label %31, !llvm.loop !14

100:                                              ; preds = %31
  %101 = load i64, ptr %13, align 8, !tbaa !9
  %102 = trunc i64 %101 to i8
  %103 = zext i8 %102 to i32
  switch i32 %103, label %104 [
    i32 1, label %112
    i32 2, label %124
    i32 3, label %147
  ]

104:                                              ; preds = %100
  br label %105

105:                                              ; preds = %104
  call void @subterranean_round(ptr noundef %19)
  %106 = getelementptr inbounds %struct.subterranean_state_t, ptr %19, i32 0, i32 0
  %107 = getelementptr inbounds [9 x i32], ptr %106, i64 0, i64 0
  %108 = load i32, ptr %107, align 4, !tbaa !12
  %109 = xor i32 %108, 2
  store i32 %109, ptr %107, align 4, !tbaa !12
  br label %110

110:                                              ; preds = %105
  br label %111

111:                                              ; preds = %110
  br label %181

112:                                              ; preds = %100
  %113 = call i32 @subterranean_extract(ptr noundef %19)
  %114 = load ptr, ptr %12, align 8, !tbaa !5
  %115 = getelementptr inbounds i8, ptr %114, i64 0
  %116 = load i8, ptr %115, align 1, !tbaa !11
  %117 = zext i8 %116 to i32
  %118 = xor i32 %113, %117
  store i32 %118, ptr %21, align 4, !tbaa !12
  %119 = load ptr, ptr %12, align 8, !tbaa !5
  call void @subterranean_duplex_n(ptr noundef %19, ptr noundef %119, i32 noundef 1)
  %120 = load i32, ptr %21, align 4, !tbaa !12
  %121 = trunc i32 %120 to i8
  %122 = load ptr, ptr %10, align 8, !tbaa !5
  %123 = getelementptr inbounds i8, ptr %122, i64 0
  store i8 %121, ptr %123, align 1, !tbaa !11
  br label %181

124:                                              ; preds = %100
  %125 = call i32 @subterranean_extract(ptr noundef %19)
  %126 = load ptr, ptr %12, align 8, !tbaa !5
  %127 = getelementptr inbounds i8, ptr %126, i64 0
  %128 = load i8, ptr %127, align 1, !tbaa !11
  %129 = zext i8 %128 to i32
  %130 = xor i32 %125, %129
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = getelementptr inbounds i8, ptr %131, i64 1
  %133 = load i8, ptr %132, align 1, !tbaa !11
  %134 = zext i8 %133 to i32
  %135 = shl i32 %134, 8
  %136 = xor i32 %130, %135
  store i32 %136, ptr %21, align 4, !tbaa !12
  %137 = load ptr, ptr %12, align 8, !tbaa !5
  call void @subterranean_duplex_n(ptr noundef %19, ptr noundef %137, i32 noundef 2)
  %138 = load i32, ptr %21, align 4, !tbaa !12
  %139 = trunc i32 %138 to i8
  %140 = load ptr, ptr %10, align 8, !tbaa !5
  %141 = getelementptr inbounds i8, ptr %140, i64 0
  store i8 %139, ptr %141, align 1, !tbaa !11
  %142 = load i32, ptr %21, align 4, !tbaa !12
  %143 = lshr i32 %142, 8
  %144 = trunc i32 %143 to i8
  %145 = load ptr, ptr %10, align 8, !tbaa !5
  %146 = getelementptr inbounds i8, ptr %145, i64 1
  store i8 %144, ptr %146, align 1, !tbaa !11
  br label %181

147:                                              ; preds = %100
  %148 = call i32 @subterranean_extract(ptr noundef %19)
  %149 = load ptr, ptr %12, align 8, !tbaa !5
  %150 = getelementptr inbounds i8, ptr %149, i64 0
  %151 = load i8, ptr %150, align 1, !tbaa !11
  %152 = zext i8 %151 to i32
  %153 = xor i32 %148, %152
  %154 = load ptr, ptr %12, align 8, !tbaa !5
  %155 = getelementptr inbounds i8, ptr %154, i64 1
  %156 = load i8, ptr %155, align 1, !tbaa !11
  %157 = zext i8 %156 to i32
  %158 = shl i32 %157, 8
  %159 = xor i32 %153, %158
  %160 = load ptr, ptr %12, align 8, !tbaa !5
  %161 = getelementptr inbounds i8, ptr %160, i64 2
  %162 = load i8, ptr %161, align 1, !tbaa !11
  %163 = zext i8 %162 to i32
  %164 = shl i32 %163, 16
  %165 = xor i32 %159, %164
  store i32 %165, ptr %21, align 4, !tbaa !12
  %166 = load ptr, ptr %12, align 8, !tbaa !5
  call void @subterranean_duplex_n(ptr noundef %19, ptr noundef %166, i32 noundef 3)
  %167 = load i32, ptr %21, align 4, !tbaa !12
  %168 = trunc i32 %167 to i8
  %169 = load ptr, ptr %10, align 8, !tbaa !5
  %170 = getelementptr inbounds i8, ptr %169, i64 0
  store i8 %168, ptr %170, align 1, !tbaa !11
  %171 = load i32, ptr %21, align 4, !tbaa !12
  %172 = lshr i32 %171, 8
  %173 = trunc i32 %172 to i8
  %174 = load ptr, ptr %10, align 8, !tbaa !5
  %175 = getelementptr inbounds i8, ptr %174, i64 1
  store i8 %173, ptr %175, align 1, !tbaa !11
  %176 = load i32, ptr %21, align 4, !tbaa !12
  %177 = lshr i32 %176, 16
  %178 = trunc i32 %177 to i8
  %179 = load ptr, ptr %10, align 8, !tbaa !5
  %180 = getelementptr inbounds i8, ptr %179, i64 2
  store i8 %178, ptr %180, align 1, !tbaa !11
  br label %181

181:                                              ; preds = %147, %124, %112, %111
  call void @subterranean_blank(ptr noundef %19)
  %182 = load ptr, ptr %10, align 8, !tbaa !5
  %183 = load i64, ptr %13, align 8, !tbaa !9
  %184 = getelementptr inbounds i8, ptr %182, i64 %183
  call void @subterranean_squeeze(ptr noundef %19, ptr noundef %184, i32 noundef 16)
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr %19) #4
  ret i32 0
}

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

declare void @subterranean_blank(ptr noundef) #3

declare i32 @subterranean_extract(ptr noundef) #3

declare void @subterranean_round(ptr noundef) #3

declare void @subterranean_absorb_word(ptr noundef, i32 noundef) #3

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

declare void @subterranean_duplex_n(ptr noundef, ptr noundef, i32 noundef) #3

declare void @subterranean_squeeze(ptr noundef, ptr noundef, i32 noundef) #3

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: write) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"long long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


; 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.subterranean_state_t = type { [9 x i32] }

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @subterranean_aead_encrypt(ptr noundef %0, ptr nocapture noundef writeonly %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, i64 noundef %5, ptr nocapture noundef readnone %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #0 {
  %10 = alloca %struct.subterranean_state_t, align 4
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %10) #4
  %11 = add i64 %3, 16
  store i64 %11, ptr %1, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(36) %10, i8 0, i64 36, i1 false)
  call void @subterranean_absorb(ptr noundef nonnull %10, ptr noundef %8, i64 noundef 16) #4
  call void @subterranean_absorb(ptr noundef nonnull %10, ptr noundef %7, i64 noundef 16) #4
  call void @subterranean_blank(ptr noundef nonnull %10) #4
  call void @subterranean_absorb(ptr noundef nonnull %10, ptr noundef %4, i64 noundef %5) #4
  %12 = icmp ugt i64 %3, 3
  br i1 %12, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %9
  %13 = getelementptr inbounds i8, ptr %10, i64 32
  br label %14

14:                                               ; preds = %.lr.ph, %14
  %.053 = phi ptr [ %0, %.lr.ph ], [ %41, %14 ]
  %.04952 = phi ptr [ %2, %.lr.ph ], [ %42, %14 ]
  %.05051 = phi i64 [ %3, %.lr.ph ], [ %43, %14 ]
  %15 = getelementptr i8, ptr %.04952, i64 2
  %16 = load i16, ptr %15, align 1
  %17 = zext i16 %16 to i32
  %18 = shl nuw i32 %17, 16
  %19 = getelementptr inbounds i8, ptr %.04952, i64 1
  %20 = load i8, ptr %19, align 1, !tbaa !9
  %21 = zext i8 %20 to i32
  %22 = shl nuw nsw i32 %21, 8
  %23 = or disjoint i32 %22, %18
  %24 = load i8, ptr %.04952, align 1, !tbaa !9
  %25 = zext i8 %24 to i32
  %26 = or disjoint i32 %23, %25
  %27 = call i32 @subterranean_extract(ptr noundef nonnull %10) #4
  %28 = xor i32 %26, %27
  call void @subterranean_round(ptr noundef nonnull %10) #4
  call void @subterranean_absorb_word(ptr noundef nonnull %10, i32 noundef %26) #4
  %29 = load i32, ptr %13, align 4, !tbaa !10
  %30 = xor i32 %29, 1
  store i32 %30, ptr %13, align 4, !tbaa !10
  %31 = trunc i32 %28 to i8
  store i8 %31, ptr %.053, align 1, !tbaa !9
  %32 = lshr i32 %28, 8
  %33 = trunc i32 %32 to i8
  %34 = getelementptr inbounds i8, ptr %.053, i64 1
  store i8 %33, ptr %34, align 1, !tbaa !9
  %35 = lshr i32 %28, 16
  %36 = trunc i32 %35 to i8
  %37 = getelementptr inbounds i8, ptr %.053, i64 2
  store i8 %36, ptr %37, align 1, !tbaa !9
  %38 = lshr i32 %28, 24
  %39 = trunc nuw i32 %38 to i8
  %40 = getelementptr inbounds i8, ptr %.053, i64 3
  store i8 %39, ptr %40, align 1, !tbaa !9
  %41 = getelementptr inbounds i8, ptr %.053, i64 4
  %42 = getelementptr inbounds i8, ptr %.04952, i64 4
  %43 = add i64 %.05051, -4
  %44 = icmp ugt i64 %43, 3
  br i1 %44, label %14, label %._crit_edge, !llvm.loop !12

._crit_edge:                                      ; preds = %14, %9
  %.050.lcssa = phi i64 [ %3, %9 ], [ %43, %14 ]
  %.049.lcssa = phi ptr [ %2, %9 ], [ %42, %14 ]
  %.0.lcssa = phi ptr [ %0, %9 ], [ %41, %14 ]
  %45 = trunc nuw i64 %.050.lcssa to i32
  switch i32 %45, label %._crit_edge.unreachabledefault [
    i32 1, label %49
    i32 2, label %54
    i32 3, label %65
    i32 0, label %46
  ]

._crit_edge.unreachabledefault:                   ; preds = %._crit_edge
  unreachable

46:                                               ; preds = %._crit_edge
  call void @subterranean_round(ptr noundef nonnull %10) #4
  %47 = load i32, ptr %10, align 4, !tbaa !10
  %48 = xor i32 %47, 2
  store i32 %48, ptr %10, align 4, !tbaa !10
  br label %82

49:                                               ; preds = %._crit_edge
  %50 = call i32 @subterranean_extract(ptr noundef nonnull %10) #4
  %51 = load i8, ptr %.049.lcssa, align 1, !tbaa !9
  call void @subterranean_duplex_n(ptr noundef nonnull %10, ptr noundef nonnull %.049.lcssa, i32 noundef 1) #4
  %52 = trunc i32 %50 to i8
  %53 = xor i8 %51, %52
  store i8 %53, ptr %.0.lcssa, align 1, !tbaa !9
  br label %82

54:                                               ; preds = %._crit_edge
  %55 = call i32 @subterranean_extract(ptr noundef nonnull %10) #4
  %56 = load i8, ptr %.049.lcssa, align 1, !tbaa !9
  %57 = getelementptr inbounds i8, ptr %.049.lcssa, i64 1
  %58 = load i8, ptr %57, align 1, !tbaa !9
  call void @subterranean_duplex_n(ptr noundef nonnull %10, ptr noundef nonnull %.049.lcssa, i32 noundef 2) #4
  %59 = trunc i32 %55 to i8
  %60 = xor i8 %56, %59
  store i8 %60, ptr %.0.lcssa, align 1, !tbaa !9
  %61 = lshr i32 %55, 8
  %62 = trunc i32 %61 to i8
  %63 = xor i8 %58, %62
  %64 = getelementptr inbounds i8, ptr %.0.lcssa, i64 1
  store i8 %63, ptr %64, align 1, !tbaa !9
  br label %82

65:                                               ; preds = %._crit_edge
  %66 = call i32 @subterranean_extract(ptr noundef nonnull %10) #4
  %67 = load i8, ptr %.049.lcssa, align 1, !tbaa !9
  %68 = zext i8 %67 to i32
  %69 = xor i32 %66, %68
  %70 = getelementptr inbounds i8, ptr %.049.lcssa, i64 1
  %71 = load i16, ptr %70, align 1
  %72 = zext i16 %71 to i32
  %73 = shl nuw nsw i32 %72, 8
  %74 = xor i32 %73, %69
  call void @subterranean_duplex_n(ptr noundef nonnull %10, ptr noundef nonnull %.049.lcssa, i32 noundef 3) #4
  %75 = trunc i32 %69 to i8
  store i8 %75, ptr %.0.lcssa, align 1, !tbaa !9
  %76 = lshr i32 %74, 8
  %77 = trunc i32 %76 to i8
  %78 = getelementptr inbounds i8, ptr %.0.lcssa, i64 1
  store i8 %77, ptr %78, align 1, !tbaa !9
  %79 = lshr i32 %74, 16
  %80 = trunc i32 %79 to i8
  %81 = getelementptr inbounds i8, ptr %.0.lcssa, i64 2
  store i8 %80, ptr %81, align 1, !tbaa !9
  br label %82

82:                                               ; preds = %65, %54, %49, %46
  call void @subterranean_blank(ptr noundef nonnull %10) #4
  %83 = getelementptr inbounds i8, ptr %.0.lcssa, i64 %.050.lcssa
  call void @subterranean_squeeze(ptr noundef nonnull %10, ptr noundef %83, i32 noundef 16) #4
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %10) #4
  ret i32 0
}

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

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

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

declare void @subterranean_blank(ptr noundef) local_unnamed_addr #3

declare i32 @subterranean_extract(ptr noundef) local_unnamed_addr #3

declare void @subterranean_round(ptr noundef) local_unnamed_addr #3

declare void @subterranean_absorb_word(ptr noundef, i32 noundef) local_unnamed_addr #3

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

declare void @subterranean_duplex_n(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @subterranean_squeeze(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass