; LLVM IR from dynexcoin/Dynex :: src/crypto (crypto-ops)

; 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.ge_cached = type { [10 x i32], [10 x i32], [10 x i32], [10 x i32] }
%struct.ge_p1p1 = type { [10 x i32], [10 x i32], [10 x i32], [10 x i32] }
%struct.ge_p3 = type { [10 x i32], [10 x i32], [10 x i32], [10 x i32] }

; Function Attrs: nounwind uwtable
declare dso_local void @ge_add(ptr noundef, ptr noundef, ptr 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare dso_local void @ge_p3_to_cached(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @ge_p1p1_to_p3(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @ge_p2_0(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @ge_p2_dbl(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @ge_p1p1_to_p2(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @fe_neg(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @fe_copy(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local void @ge_scalarmult(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [64 x i8], align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca [8 x %struct.ge_cached], align 16
  %12 = alloca %struct.ge_p1p1, align 4
  %13 = alloca %struct.ge_p3, align 4
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca %struct.ge_cached, align 4
  %18 = alloca %struct.ge_cached, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %7) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #2
  call void @llvm.lifetime.start.p0(i64 1280, ptr %11) #2
  call void @llvm.lifetime.start.p0(i64 160, ptr %12) #2
  call void @llvm.lifetime.start.p0(i64 160, ptr %13) #2
  store i32 0, ptr %8, align 4, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %19

19:                                               ; preds = %56, %3
  %20 = load i32, ptr %10, align 4, !tbaa !9
  %21 = icmp slt i32 %20, 31
  br i1 %21, label %22, label %59

22:                                               ; preds = %19
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = load i32, ptr %10, align 4, !tbaa !9
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds i8, ptr %23, i64 %25
  %27 = load i8, ptr %26, align 1, !tbaa !11
  %28 = zext i8 %27 to i32
  %29 = load i32, ptr %8, align 4, !tbaa !9
  %30 = add nsw i32 %29, %28
  store i32 %30, ptr %8, align 4, !tbaa !9
  %31 = load i32, ptr %8, align 4, !tbaa !9
  %32 = add nsw i32 %31, 8
  %33 = ashr i32 %32, 4
  store i32 %33, ptr %9, align 4, !tbaa !9
  %34 = load i32, ptr %8, align 4, !tbaa !9
  %35 = load i32, ptr %9, align 4, !tbaa !9
  %36 = shl i32 %35, 4
  %37 = sub nsw i32 %34, %36
  %38 = trunc i32 %37 to i8
  %39 = load i32, ptr %10, align 4, !tbaa !9
  %40 = mul nsw i32 2, %39
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 %41
  store i8 %38, ptr %42, align 1, !tbaa !11
  %43 = load i32, ptr %9, align 4, !tbaa !9
  %44 = add nsw i32 %43, 8
  %45 = ashr i32 %44, 4
  store i32 %45, ptr %8, align 4, !tbaa !9
  %46 = load i32, ptr %9, align 4, !tbaa !9
  %47 = load i32, ptr %8, align 4, !tbaa !9
  %48 = shl i32 %47, 4
  %49 = sub nsw i32 %46, %48
  %50 = trunc i32 %49 to i8
  %51 = load i32, ptr %10, align 4, !tbaa !9
  %52 = mul nsw i32 2, %51
  %53 = add nsw i32 %52, 1
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 %54
  store i8 %50, ptr %55, align 1, !tbaa !11
  br label %56

56:                                               ; preds = %22
  %57 = load i32, ptr %10, align 4, !tbaa !9
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %10, align 4, !tbaa !9
  br label %19, !llvm.loop !12

59:                                               ; preds = %19
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i64 31
  %62 = load i8, ptr %61, align 1, !tbaa !11
  %63 = zext i8 %62 to i32
  %64 = load i32, ptr %8, align 4, !tbaa !9
  %65 = add nsw i32 %64, %63
  store i32 %65, ptr %8, align 4, !tbaa !9
  %66 = load i32, ptr %8, align 4, !tbaa !9
  %67 = add nsw i32 %66, 8
  %68 = ashr i32 %67, 4
  store i32 %68, ptr %9, align 4, !tbaa !9
  %69 = load i32, ptr %8, align 4, !tbaa !9
  %70 = load i32, ptr %9, align 4, !tbaa !9
  %71 = shl i32 %70, 4
  %72 = sub nsw i32 %69, %71
  %73 = trunc i32 %72 to i8
  %74 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 62
  store i8 %73, ptr %74, align 2, !tbaa !11
  %75 = load i32, ptr %9, align 4, !tbaa !9
  %76 = trunc i32 %75 to i8
  %77 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 63
  store i8 %76, ptr %77, align 1, !tbaa !11
  %78 = getelementptr inbounds [8 x %struct.ge_cached], ptr %11, i64 0, i64 0
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  call void @ge_p3_to_cached(ptr noundef %78, ptr noundef %79)
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %80

80:                                               ; preds = %92, %59
  %81 = load i32, ptr %10, align 4, !tbaa !9
  %82 = icmp slt i32 %81, 7
  br i1 %82, label %83, label %95

83:                                               ; preds = %80
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = load i32, ptr %10, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [8 x %struct.ge_cached], ptr %11, i64 0, i64 %86
  call void @ge_add(ptr noundef %12, ptr noundef %84, ptr noundef %87)
  call void @ge_p1p1_to_p3(ptr noundef %13, ptr noundef %12)
  %88 = load i32, ptr %10, align 4, !tbaa !9
  %89 = add nsw i32 %88, 1
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [8 x %struct.ge_cached], ptr %11, i64 0, i64 %90
  call void @ge_p3_to_cached(ptr noundef %91, ptr noundef %13)
  br label %92

92:                                               ; preds = %83
  %93 = load i32, ptr %10, align 4, !tbaa !9
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %10, align 4, !tbaa !9
  br label %80, !llvm.loop !14

95:                                               ; preds = %80
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  call void @ge_p2_0(ptr noundef %96)
  store i32 63, ptr %10, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %167, %95
  %98 = load i32, ptr %10, align 4, !tbaa !9
  %99 = icmp sge i32 %98, 0
  br i1 %99, label %100, label %170

100:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #2
  %101 = load i32, ptr %10, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [64 x i8], ptr %7, i64 0, i64 %102
  %104 = load i8, ptr %103, align 1, !tbaa !11
  store i8 %104, ptr %14, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #2
  %105 = load i8, ptr %14, align 1, !tbaa !11
  %106 = call zeroext i8 @negative(i8 noundef signext %105)
  store i8 %106, ptr %15, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #2
  %107 = load i8, ptr %14, align 1, !tbaa !11
  %108 = sext i8 %107 to i32
  %109 = load i8, ptr %15, align 1, !tbaa !11
  %110 = zext i8 %109 to i32
  %111 = sub nsw i32 0, %110
  %112 = load i8, ptr %14, align 1, !tbaa !11
  %113 = sext i8 %112 to i32
  %114 = and i32 %111, %113
  %115 = shl i32 %114, 1
  %116 = sub nsw i32 %108, %115
  %117 = trunc i32 %116 to i8
  store i8 %117, ptr %16, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 160, ptr %17) #2
  call void @llvm.lifetime.start.p0(i64 160, ptr %18) #2
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  call void @ge_p2_dbl(ptr noundef %12, ptr noundef %118)
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  call void @ge_p1p1_to_p2(ptr noundef %119, ptr noundef %12)
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  call void @ge_p2_dbl(ptr noundef %12, ptr noundef %120)
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  call void @ge_p1p1_to_p2(ptr noundef %121, ptr noundef %12)
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  call void @ge_p2_dbl(ptr noundef %12, ptr noundef %122)
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  call void @ge_p1p1_to_p2(ptr noundef %123, ptr noundef %12)
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  call void @ge_p2_dbl(ptr noundef %12, ptr noundef %124)
  call void @ge_p1p1_to_p3(ptr noundef %13, ptr noundef %12)
  call void @ge_cached_0(ptr noundef %17)
  %125 = getelementptr inbounds [8 x %struct.ge_cached], ptr %11, i64 0, i64 0
  %126 = load i8, ptr %16, align 1, !tbaa !11
  %127 = call zeroext i8 @equal(i8 noundef signext %126, i8 noundef signext 1)
  call void @ge_cached_cmov(ptr noundef %17, ptr noundef %125, i8 noundef zeroext %127)
  %128 = getelementptr inbounds [8 x %struct.ge_cached], ptr %11, i64 0, i64 1
  %129 = load i8, ptr %16, align 1, !tbaa !11
  %130 = call zeroext i8 @equal(i8 noundef signext %129, i8 noundef signext 2)
  call void @ge_cached_cmov(ptr noundef %17, ptr noundef %128, i8 noundef zeroext %130)
  %131 = getelementptr inbounds [8 x %struct.ge_cached], ptr %11, i64 0, i64 2
  %132 = load i8, ptr %16, align 1, !tbaa !11
  %133 = call zeroext i8 @equal(i8 noundef signext %132, i8 noundef signext 3)
  call void @ge_cached_cmov(ptr noundef %17, ptr noundef %131, i8 noundef zeroext %133)
  %134 = getelementptr inbounds [8 x %struct.ge_cached], ptr %11, i64 0, i64 3
  %135 = load i8, ptr %16, align 1, !tbaa !11
  %136 = call zeroext i8 @equal(i8 noundef signext %135, i8 noundef signext 4)
  call void @ge_cached_cmov(ptr noundef %17, ptr noundef %134, i8 noundef zeroext %136)
  %137 = getelementptr inbounds [8 x %struct.ge_cached], ptr %11, i64 0, i64 4
  %138 = load i8, ptr %16, align 1, !tbaa !11
  %139 = call zeroext i8 @equal(i8 noundef signext %138, i8 noundef signext 5)
  call void @ge_cached_cmov(ptr noundef %17, ptr noundef %137, i8 noundef zeroext %139)
  %140 = getelementptr inbounds [8 x %struct.ge_cached], ptr %11, i64 0, i64 5
  %141 = load i8, ptr %16, align 1, !tbaa !11
  %142 = call zeroext i8 @equal(i8 noundef signext %141, i8 noundef signext 6)
  call void @ge_cached_cmov(ptr noundef %17, ptr noundef %140, i8 noundef zeroext %142)
  %143 = getelementptr inbounds [8 x %struct.ge_cached], ptr %11, i64 0, i64 6
  %144 = load i8, ptr %16, align 1, !tbaa !11
  %145 = call zeroext i8 @equal(i8 noundef signext %144, i8 noundef signext 7)
  call void @ge_cached_cmov(ptr noundef %17, ptr noundef %143, i8 noundef zeroext %145)
  %146 = getelementptr inbounds [8 x %struct.ge_cached], ptr %11, i64 0, i64 7
  %147 = load i8, ptr %16, align 1, !tbaa !11
  %148 = call zeroext i8 @equal(i8 noundef signext %147, i8 noundef signext 8)
  call void @ge_cached_cmov(ptr noundef %17, ptr noundef %146, i8 noundef zeroext %148)
  %149 = getelementptr inbounds %struct.ge_cached, ptr %18, i32 0, i32 0
  %150 = getelementptr inbounds [10 x i32], ptr %149, i64 0, i64 0
  %151 = getelementptr inbounds %struct.ge_cached, ptr %17, i32 0, i32 1
  %152 = getelementptr inbounds [10 x i32], ptr %151, i64 0, i64 0
  call void @fe_copy(ptr noundef %150, ptr noundef %152)
  %153 = getelementptr inbounds %struct.ge_cached, ptr %18, i32 0, i32 1
  %154 = getelementptr inbounds [10 x i32], ptr %153, i64 0, i64 0
  %155 = getelementptr inbounds %struct.ge_cached, ptr %17, i32 0, i32 0
  %156 = getelementptr inbounds [10 x i32], ptr %155, i64 0, i64 0
  call void @fe_copy(ptr noundef %154, ptr noundef %156)
  %157 = getelementptr inbounds %struct.ge_cached, ptr %18, i32 0, i32 2
  %158 = getelementptr inbounds [10 x i32], ptr %157, i64 0, i64 0
  %159 = getelementptr inbounds %struct.ge_cached, ptr %17, i32 0, i32 2
  %160 = getelementptr inbounds [10 x i32], ptr %159, i64 0, i64 0
  call void @fe_copy(ptr noundef %158, ptr noundef %160)
  %161 = getelementptr inbounds %struct.ge_cached, ptr %18, i32 0, i32 3
  %162 = getelementptr inbounds [10 x i32], ptr %161, i64 0, i64 0
  %163 = getelementptr inbounds %struct.ge_cached, ptr %17, i32 0, i32 3
  %164 = getelementptr inbounds [10 x i32], ptr %163, i64 0, i64 0
  call void @fe_neg(ptr noundef %162, ptr noundef %164)
  %165 = load i8, ptr %15, align 1, !tbaa !11
  call void @ge_cached_cmov(ptr noundef %17, ptr noundef %18, i8 noundef zeroext %165)
  call void @ge_add(ptr noundef %12, ptr noundef %13, ptr noundef %17)
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  call void @ge_p1p1_to_p2(ptr noundef %166, ptr noundef %12)
  call void @llvm.lifetime.end.p0(i64 160, ptr %18) #2
  call void @llvm.lifetime.end.p0(i64 160, ptr %17) #2
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #2
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #2
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #2
  br label %167

167:                                              ; preds = %100
  %168 = load i32, ptr %10, align 4, !tbaa !9
  %169 = add nsw i32 %168, -1
  store i32 %169, ptr %10, align 4, !tbaa !9
  br label %97, !llvm.loop !15

170:                                              ; preds = %97
  call void @llvm.lifetime.end.p0(i64 160, ptr %13) #2
  call void @llvm.lifetime.end.p0(i64 160, ptr %12) #2
  call void @llvm.lifetime.end.p0(i64 1280, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #2
  ret void
}

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

; Function Attrs: nounwind uwtable
declare hidden void @ge_cached_0(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @ge_cached_cmov(ptr noundef, ptr noundef, i8 noundef zeroext) #0

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @equal(i8 noundef signext, i8 noundef signext) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind }

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

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


; 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.ge_cached = type { [10 x i32], [10 x i32], [10 x i32], [10 x i32] }
%struct.ge_p1p1 = type { [10 x i32], [10 x i32], [10 x i32], [10 x i32] }
%struct.ge_p3 = type { [10 x i32], [10 x i32], [10 x i32], [10 x i32] }

; Function Attrs: nounwind uwtable
declare dso_local void @ge_add(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare dso_local void @ge_p3_to_cached(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @ge_p1p1_to_p3(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @ge_p2_0(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @ge_p2_dbl(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @ge_p1p1_to_p2(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @fe_neg(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @fe_copy(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @ge_scalarmult(ptr noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = alloca [64 x i8], align 16
  %5 = alloca [8 x %struct.ge_cached], align 16
  %6 = alloca %struct.ge_p1p1, align 4
  %7 = alloca %struct.ge_p3, align 4
  %8 = alloca %struct.ge_cached, align 4
  %9 = alloca %struct.ge_cached, align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #2
  call void @llvm.lifetime.start.p0(i64 1280, ptr nonnull %5) #2
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %6) #2
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %7) #2
  br label %10

10:                                               ; preds = %3, %10
  %indvars.iv = phi i64 [ 0, %3 ], [ %indvars.iv.next, %10 ]
  %.051 = phi i32 [ 0, %3 ], [ %23, %10 ]
  %11 = getelementptr inbounds i8, ptr %1, i64 %indvars.iv
  %12 = load i8, ptr %11, align 1, !tbaa !5
  %13 = zext i8 %12 to i32
  %14 = add nuw nsw i32 %.051, %13
  %15 = add nuw nsw i32 %14, 8
  %16 = lshr i32 %15, 4
  %17 = and i32 %15, 240
  %18 = sub nsw i32 %14, %17
  %19 = trunc i32 %18 to i8
  %20 = shl nuw nsw i64 %indvars.iv, 1
  %21 = getelementptr inbounds [64 x i8], ptr %4, i64 0, i64 %20
  store i8 %19, ptr %21, align 2, !tbaa !5
  %22 = add nuw nsw i32 %16, 8
  %23 = lshr i32 %22, 4
  %24 = and i32 %22, 240
  %25 = sub nsw i32 %16, %24
  %26 = trunc nsw i32 %25 to i8
  %27 = or disjoint i64 %20, 1
  %28 = getelementptr inbounds [64 x i8], ptr %4, i64 0, i64 %27
  store i8 %26, ptr %28, align 1, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 31
  br i1 %exitcond.not, label %29, label %10, !llvm.loop !8

29:                                               ; preds = %10
  %30 = getelementptr inbounds i8, ptr %1, i64 31
  %31 = load i8, ptr %30, align 1, !tbaa !5
  %32 = zext i8 %31 to i32
  %33 = add nuw nsw i32 %23, %32
  %34 = add nuw nsw i32 %33, 8
  %35 = lshr i32 %34, 4
  %36 = and i32 %34, 240
  %37 = sub nsw i32 %33, %36
  %38 = trunc i32 %37 to i8
  %39 = getelementptr inbounds i8, ptr %4, i64 62
  store i8 %38, ptr %39, align 2, !tbaa !5
  %40 = trunc nuw nsw i32 %35 to i8
  %41 = getelementptr inbounds i8, ptr %4, i64 63
  store i8 %40, ptr %41, align 1, !tbaa !5
  call void @ge_p3_to_cached(ptr noundef nonnull %5, ptr noundef %2)
  call void @ge_add(ptr noundef nonnull %6, ptr noundef %2, ptr noundef nonnull %5)
  call void @ge_p1p1_to_p3(ptr noundef nonnull %7, ptr noundef nonnull %6)
  %42 = getelementptr inbounds i8, ptr %5, i64 160
  call void @ge_p3_to_cached(ptr noundef nonnull %42, ptr noundef nonnull %7)
  call void @ge_add(ptr noundef nonnull %6, ptr noundef %2, ptr noundef nonnull %42)
  call void @ge_p1p1_to_p3(ptr noundef nonnull %7, ptr noundef nonnull %6)
  %43 = getelementptr inbounds i8, ptr %5, i64 320
  call void @ge_p3_to_cached(ptr noundef nonnull %43, ptr noundef nonnull %7)
  call void @ge_add(ptr noundef nonnull %6, ptr noundef %2, ptr noundef nonnull %43)
  call void @ge_p1p1_to_p3(ptr noundef nonnull %7, ptr noundef nonnull %6)
  %44 = getelementptr inbounds i8, ptr %5, i64 480
  call void @ge_p3_to_cached(ptr noundef nonnull %44, ptr noundef nonnull %7)
  call void @ge_add(ptr noundef nonnull %6, ptr noundef %2, ptr noundef nonnull %44)
  call void @ge_p1p1_to_p3(ptr noundef nonnull %7, ptr noundef nonnull %6)
  %45 = getelementptr inbounds i8, ptr %5, i64 640
  call void @ge_p3_to_cached(ptr noundef nonnull %45, ptr noundef nonnull %7)
  call void @ge_add(ptr noundef nonnull %6, ptr noundef %2, ptr noundef nonnull %45)
  call void @ge_p1p1_to_p3(ptr noundef nonnull %7, ptr noundef nonnull %6)
  %46 = getelementptr inbounds i8, ptr %5, i64 800
  call void @ge_p3_to_cached(ptr noundef nonnull %46, ptr noundef nonnull %7)
  call void @ge_add(ptr noundef nonnull %6, ptr noundef %2, ptr noundef nonnull %46)
  call void @ge_p1p1_to_p3(ptr noundef nonnull %7, ptr noundef nonnull %6)
  %47 = getelementptr inbounds i8, ptr %5, i64 960
  call void @ge_p3_to_cached(ptr noundef nonnull %47, ptr noundef nonnull %7)
  call void @ge_add(ptr noundef nonnull %6, ptr noundef %2, ptr noundef nonnull %47)
  call void @ge_p1p1_to_p3(ptr noundef nonnull %7, ptr noundef nonnull %6)
  %48 = getelementptr inbounds i8, ptr %5, i64 1120
  call void @ge_p3_to_cached(ptr noundef nonnull %48, ptr noundef nonnull %7)
  call void @ge_p2_0(ptr noundef %0)
  %49 = getelementptr inbounds i8, ptr %8, i64 40
  %50 = getelementptr inbounds i8, ptr %9, i64 40
  %51 = getelementptr inbounds i8, ptr %9, i64 80
  %52 = getelementptr inbounds i8, ptr %8, i64 80
  %53 = getelementptr inbounds i8, ptr %9, i64 120
  %54 = getelementptr inbounds i8, ptr %8, i64 120
  br label %55

55:                                               ; preds = %29, %55
  %indvars.iv59 = phi i64 [ 63, %29 ], [ %indvars.iv.next60, %55 ]
  %56 = getelementptr inbounds [64 x i8], ptr %4, i64 0, i64 %indvars.iv59
  %57 = load i8, ptr %56, align 1, !tbaa !5
  %58 = call zeroext i8 @negative(i8 noundef signext %57)
  %59 = sub i8 0, %58
  %60 = and i8 %57, %59
  %61 = shl i8 %60, 1
  %62 = sub i8 %57, %61
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %8) #2
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %9) #2
  call void @ge_p2_dbl(ptr noundef nonnull %6, ptr noundef %0)
  call void @ge_p1p1_to_p2(ptr noundef %0, ptr noundef nonnull %6)
  call void @ge_p2_dbl(ptr noundef nonnull %6, ptr noundef %0)
  call void @ge_p1p1_to_p2(ptr noundef %0, ptr noundef nonnull %6)
  call void @ge_p2_dbl(ptr noundef nonnull %6, ptr noundef %0)
  call void @ge_p1p1_to_p2(ptr noundef %0, ptr noundef nonnull %6)
  call void @ge_p2_dbl(ptr noundef nonnull %6, ptr noundef %0)
  call void @ge_p1p1_to_p3(ptr noundef nonnull %7, ptr noundef nonnull %6)
  call void @ge_cached_0(ptr noundef nonnull %8)
  %63 = call zeroext i8 @equal(i8 noundef signext %62, i8 noundef signext 1)
  call void @ge_cached_cmov(ptr noundef nonnull %8, ptr noundef nonnull %5, i8 noundef zeroext %63)
  %64 = call zeroext i8 @equal(i8 noundef signext %62, i8 noundef signext 2)
  call void @ge_cached_cmov(ptr noundef nonnull %8, ptr noundef nonnull %42, i8 noundef zeroext %64)
  %65 = call zeroext i8 @equal(i8 noundef signext %62, i8 noundef signext 3)
  call void @ge_cached_cmov(ptr noundef nonnull %8, ptr noundef nonnull %43, i8 noundef zeroext %65)
  %66 = call zeroext i8 @equal(i8 noundef signext %62, i8 noundef signext 4)
  call void @ge_cached_cmov(ptr noundef nonnull %8, ptr noundef nonnull %44, i8 noundef zeroext %66)
  %67 = call zeroext i8 @equal(i8 noundef signext %62, i8 noundef signext 5)
  call void @ge_cached_cmov(ptr noundef nonnull %8, ptr noundef nonnull %45, i8 noundef zeroext %67)
  %68 = call zeroext i8 @equal(i8 noundef signext %62, i8 noundef signext 6)
  call void @ge_cached_cmov(ptr noundef nonnull %8, ptr noundef nonnull %46, i8 noundef zeroext %68)
  %69 = call zeroext i8 @equal(i8 noundef signext %62, i8 noundef signext 7)
  call void @ge_cached_cmov(ptr noundef nonnull %8, ptr noundef nonnull %47, i8 noundef zeroext %69)
  %70 = call zeroext i8 @equal(i8 noundef signext %62, i8 noundef signext 8)
  call void @ge_cached_cmov(ptr noundef nonnull %8, ptr noundef nonnull %48, i8 noundef zeroext %70)
  call void @fe_copy(ptr noundef nonnull %9, ptr noundef nonnull %49)
  call void @fe_copy(ptr noundef nonnull %50, ptr noundef nonnull %8)
  call void @fe_copy(ptr noundef nonnull %51, ptr noundef nonnull %52)
  call void @fe_neg(ptr noundef nonnull %53, ptr noundef nonnull %54)
  call void @ge_cached_cmov(ptr noundef nonnull %8, ptr noundef nonnull %9, i8 noundef zeroext %58)
  call void @ge_add(ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8)
  call void @ge_p1p1_to_p2(ptr noundef %0, ptr noundef nonnull %6)
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %9) #2
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %8) #2
  %indvars.iv.next60 = add nsw i64 %indvars.iv59, -1
  %.not = icmp eq i64 %indvars.iv59, 0
  br i1 %.not, label %71, label %55, !llvm.loop !10

71:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %7) #2
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %6) #2
  call void @llvm.lifetime.end.p0(i64 1280, ptr nonnull %5) #2
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #2
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @negative(i8 noundef signext) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @ge_cached_0(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @ge_cached_cmov(ptr noundef, ptr noundef, i8 noundef zeroext) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @equal(i8 noundef signext, i8 noundef signext) local_unnamed_addr #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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass