; LLVM IR from gost-engine/engine :: gost_gost2015 (gost_mgm128_finish)

; 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.mgm128_context = type { %union.anon.0, %union.anon.0, %union.anon.0, %union.anon.0, %union.anon.0, %union.anon.0, %union.anon.0, %union.anon.0, %union.anon.0, %union.anon.0, i32, i32, ptr, ptr, i32, ptr }
%union.anon.0 = type { [2 x i64] }

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

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

declare i32 @CRYPTO_memcmp(ptr noundef, ptr noundef, i64 noundef) #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @grasshopper_plus128(ptr noundef, ptr noundef, ptr noundef) #3

declare void @inc_counter(ptr noundef, i64 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @gost_mgm128_finish(ptr noundef %0, ptr noundef %1, i64 noundef %2) #4 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.mgm128_context, ptr %15, i32 0, i32 5
  %17 = getelementptr inbounds [2 x i64], ptr %16, i64 0, i64 0
  %18 = load i64, ptr %17, align 8, !tbaa !11
  %19 = shl i64 %18, 3
  store i64 %19, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.mgm128_context, ptr %20, i32 0, i32 5
  %22 = getelementptr inbounds [2 x i64], ptr %21, i64 0, i64 1
  %23 = load i64, ptr %22, align 8, !tbaa !11
  %24 = shl i64 %23, 3
  store i64 %24, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.mgm128_context, ptr %25, i32 0, i32 12
  %27 = load ptr, ptr %26, align 8, !tbaa !12
  store ptr %27, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.mgm128_context, ptr %28, i32 0, i32 13
  %30 = load ptr, ptr %29, align 8, !tbaa !15
  store ptr %30, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.mgm128_context, ptr %31, i32 0, i32 15
  %33 = load ptr, ptr %32, align 8, !tbaa !16
  store ptr %33, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.mgm128_context, ptr %34, i32 0, i32 14
  %36 = load i32, ptr %35, align 8, !tbaa !17
  store i32 %36, ptr %13, align 4, !tbaa !18
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.mgm128_context, ptr %37, i32 0, i32 10
  %39 = load i32, ptr %38, align 8, !tbaa !19
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %46, label %41

41:                                               ; preds = %3
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.mgm128_context, ptr %42, i32 0, i32 11
  %44 = load i32, ptr %43, align 4, !tbaa !20
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %46, label %103

46:                                               ; preds = %41, %3
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.mgm128_context, ptr %47, i32 0, i32 6
  %49 = getelementptr inbounds [16 x i8], ptr %48, i64 0, i64 0
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.mgm128_context, ptr %50, i32 0, i32 11
  %52 = load i32, ptr %51, align 4, !tbaa !20
  %53 = zext i32 %52 to i64
  %54 = getelementptr inbounds i8, ptr %49, i64 %53
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.mgm128_context, ptr %55, i32 0, i32 10
  %57 = load i32, ptr %56, align 8, !tbaa !19
  %58 = zext i32 %57 to i64
  %59 = getelementptr inbounds i8, ptr %54, i64 %58
  %60 = load i32, ptr %13, align 4, !tbaa !18
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.mgm128_context, ptr %61, i32 0, i32 11
  %63 = load i32, ptr %62, align 4, !tbaa !20
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.mgm128_context, ptr %64, i32 0, i32 10
  %66 = load i32, ptr %65, align 8, !tbaa !19
  %67 = add i32 %63, %66
  %68 = sub i32 %60, %67
  %69 = zext i32 %68 to i64
  call void @llvm.memset.p0.i64(ptr align 1 %59, i8 0, i64 %69, i1 false)
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.mgm128_context, ptr %71, i32 0, i32 2
  %73 = getelementptr inbounds [16 x i8], ptr %72, i64 0, i64 0
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.mgm128_context, ptr %74, i32 0, i32 4
  %76 = getelementptr inbounds [16 x i8], ptr %75, i64 0, i64 0
  %77 = load ptr, ptr %12, align 8, !tbaa !5
  call void %70(ptr noundef %73, ptr noundef %76, ptr noundef %77)
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.mgm128_context, ptr %79, i32 0, i32 7
  %81 = getelementptr inbounds [2 x i64], ptr %80, i64 0, i64 0
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.mgm128_context, ptr %82, i32 0, i32 4
  %84 = getelementptr inbounds [2 x i64], ptr %83, i64 0, i64 0
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.mgm128_context, ptr %85, i32 0, i32 6
  %87 = getelementptr inbounds [2 x i64], ptr %86, i64 0, i64 0
  call void %78(ptr noundef %81, ptr noundef %84, ptr noundef %87)
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.mgm128_context, ptr %88, i32 0, i32 8
  %90 = getelementptr inbounds [2 x i64], ptr %89, i64 0, i64 0
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.mgm128_context, ptr %91, i32 0, i32 8
  %93 = getelementptr inbounds [2 x i64], ptr %92, i64 0, i64 0
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.mgm128_context, ptr %94, i32 0, i32 7
  %96 = getelementptr inbounds [2 x i64], ptr %95, i64 0, i64 0
  call void @grasshopper_plus128(ptr noundef %90, ptr noundef %93, ptr noundef %96)
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.mgm128_context, ptr %97, i32 0, i32 2
  %99 = getelementptr inbounds [16 x i8], ptr %98, i64 0, i64 0
  %100 = load i32, ptr %13, align 4, !tbaa !18
  %101 = sdiv i32 %100, 2
  %102 = sext i32 %101 to i64
  call void @inc_counter(ptr noundef %99, i64 noundef %102)
  br label %103

103:                                              ; preds = %46, %41
  %104 = load i32, ptr %13, align 4, !tbaa !18
  %105 = icmp eq i32 %104, 16
  br i1 %105, label %106, label %115

106:                                              ; preds = %103
  %107 = load i64, ptr %8, align 8, !tbaa !9
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.mgm128_context, ptr %108, i32 0, i32 5
  %110 = getelementptr inbounds [2 x i64], ptr %109, i64 0, i64 0
  store i64 %107, ptr %110, align 8, !tbaa !11
  %111 = load i64, ptr %9, align 8, !tbaa !9
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.mgm128_context, ptr %112, i32 0, i32 5
  %114 = getelementptr inbounds [2 x i64], ptr %113, i64 0, i64 1
  store i64 %111, ptr %114, align 8, !tbaa !11
  br label %126

115:                                              ; preds = %103
  %116 = load i64, ptr %8, align 8, !tbaa !9
  %117 = shl i64 %116, 32
  %118 = load i64, ptr %9, align 8, !tbaa !9
  %119 = or i64 %117, %118
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.mgm128_context, ptr %120, i32 0, i32 5
  %122 = getelementptr inbounds [2 x i64], ptr %121, i64 0, i64 0
  store i64 %119, ptr %122, align 8, !tbaa !11
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.mgm128_context, ptr %123, i32 0, i32 5
  %125 = getelementptr inbounds [2 x i64], ptr %124, i64 0, i64 1
  store i64 0, ptr %125, align 8, !tbaa !11
  br label %126

126:                                              ; preds = %115, %106
  %127 = load ptr, ptr %10, align 8, !tbaa !5
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.mgm128_context, ptr %128, i32 0, i32 2
  %130 = getelementptr inbounds [16 x i8], ptr %129, i64 0, i64 0
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.mgm128_context, ptr %131, i32 0, i32 4
  %133 = getelementptr inbounds [16 x i8], ptr %132, i64 0, i64 0
  %134 = load ptr, ptr %12, align 8, !tbaa !5
  call void %127(ptr noundef %130, ptr noundef %133, ptr noundef %134)
  %135 = load ptr, ptr %11, align 8, !tbaa !5
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.mgm128_context, ptr %136, i32 0, i32 7
  %138 = getelementptr inbounds [2 x i64], ptr %137, i64 0, i64 0
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.mgm128_context, ptr %139, i32 0, i32 4
  %141 = getelementptr inbounds [2 x i64], ptr %140, i64 0, i64 0
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.mgm128_context, ptr %142, i32 0, i32 5
  %144 = getelementptr inbounds [2 x i64], ptr %143, i64 0, i64 0
  call void %135(ptr noundef %138, ptr noundef %141, ptr noundef %144)
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.mgm128_context, ptr %145, i32 0, i32 8
  %147 = getelementptr inbounds [2 x i64], ptr %146, i64 0, i64 0
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.mgm128_context, ptr %148, i32 0, i32 8
  %150 = getelementptr inbounds [2 x i64], ptr %149, i64 0, i64 0
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.mgm128_context, ptr %151, i32 0, i32 7
  %153 = getelementptr inbounds [2 x i64], ptr %152, i64 0, i64 0
  call void @grasshopper_plus128(ptr noundef %147, ptr noundef %150, ptr noundef %153)
  %154 = load ptr, ptr %10, align 8, !tbaa !5
  %155 = load ptr, ptr %5, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.mgm128_context, ptr %155, i32 0, i32 8
  %157 = getelementptr inbounds [16 x i8], ptr %156, i64 0, i64 0
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.mgm128_context, ptr %158, i32 0, i32 9
  %160 = getelementptr inbounds [16 x i8], ptr %159, i64 0, i64 0
  %161 = load ptr, ptr %12, align 8, !tbaa !5
  call void %154(ptr noundef %157, ptr noundef %160, ptr noundef %161)
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = icmp ne ptr %162, null
  br i1 %163, label %164, label %174

164:                                              ; preds = %126
  %165 = load i64, ptr %7, align 8, !tbaa !9
  %166 = icmp ule i64 %165, 16
  br i1 %166, label %167, label %174

167:                                              ; preds = %164
  %168 = load ptr, ptr %5, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.mgm128_context, ptr %168, i32 0, i32 9
  %170 = getelementptr inbounds [16 x i8], ptr %169, i64 0, i64 0
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  %172 = load i64, ptr %7, align 8, !tbaa !9
  %173 = call i32 @CRYPTO_memcmp(ptr noundef %170, ptr noundef %171, i64 noundef %172)
  store i32 %173, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %175

174:                                              ; preds = %164, %126
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %14, align 4
  br label %175

175:                                              ; preds = %174, %167
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %176 = load i32, ptr %4, align 4
  ret i32 %176
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !6, i64 168}
!13 = !{!"", !7, i64 0, !7, i64 16, !7, i64 32, !7, i64 48, !7, i64 64, !7, i64 80, !7, i64 96, !7, i64 112, !7, i64 128, !7, i64 144, !14, i64 160, !14, i64 164, !6, i64 168, !6, i64 176, !14, i64 184, !6, i64 192}
!14 = !{!"int", !7, i64 0}
!15 = !{!13, !6, i64 176}
!16 = !{!13, !6, i64 192}
!17 = !{!13, !14, i64 184}
!18 = !{!14, !14, i64 0}
!19 = !{!13, !14, i64 160}
!20 = !{!13, !14, i64 164}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

declare i32 @CRYPTO_memcmp(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @grasshopper_plus128(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @inc_counter(ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i32 @gost_mgm128_finish(ptr noundef %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #3 {
  %4 = getelementptr inbounds i8, ptr %0, i64 80
  %5 = load i64, ptr %4, align 8, !tbaa !5
  %6 = shl i64 %5, 3
  %7 = getelementptr inbounds i8, ptr %0, i64 88
  %8 = load i64, ptr %7, align 8, !tbaa !5
  %9 = shl i64 %8, 3
  %10 = getelementptr inbounds i8, ptr %0, i64 168
  %11 = load ptr, ptr %10, align 8, !tbaa !8
  %12 = getelementptr inbounds i8, ptr %0, i64 176
  %13 = load ptr, ptr %12, align 8, !tbaa !12
  %14 = getelementptr inbounds i8, ptr %0, i64 192
  %15 = load ptr, ptr %14, align 8, !tbaa !13
  %16 = getelementptr inbounds i8, ptr %0, i64 184
  %17 = load i32, ptr %16, align 8, !tbaa !14
  %18 = getelementptr inbounds i8, ptr %0, i64 160
  %19 = load i32, ptr %18, align 8, !tbaa !15
  %.not = icmp eq i32 %19, 0
  %20 = getelementptr inbounds i8, ptr %0, i64 164
  %21 = load i32, ptr %20, align 4, !tbaa !16
  %.not59 = icmp eq i32 %21, 0
  %or.cond63 = select i1 %.not, i1 %.not59, i1 false
  br i1 %or.cond63, label %36, label %._crit_edge

._crit_edge:                                      ; preds = %3
  %22 = getelementptr inbounds i8, ptr %0, i64 96
  %23 = zext i32 %21 to i64
  %24 = getelementptr inbounds i8, ptr %22, i64 %23
  %25 = zext i32 %19 to i64
  %26 = getelementptr inbounds i8, ptr %24, i64 %25
  %27 = add i32 %19, %21
  %28 = sub i32 %17, %27
  %29 = zext i32 %28 to i64
  tail call void @llvm.memset.p0.i64(ptr nonnull align 1 %26, i8 0, i64 %29, i1 false)
  %30 = getelementptr inbounds i8, ptr %0, i64 32
  %31 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void %11(ptr noundef nonnull %30, ptr noundef nonnull %31, ptr noundef %15) #4
  %32 = getelementptr inbounds i8, ptr %0, i64 112
  tail call void %13(ptr noundef nonnull %32, ptr noundef nonnull %31, ptr noundef nonnull %22) #4
  %33 = getelementptr inbounds i8, ptr %0, i64 128
  tail call void @grasshopper_plus128(ptr noundef nonnull %33, ptr noundef nonnull %33, ptr noundef nonnull %32)
  %34 = sdiv i32 %17, 2
  %35 = sext i32 %34 to i64
  tail call void @inc_counter(ptr noundef nonnull %30, i64 noundef %35) #4
  br label %36

36:                                               ; preds = %3, %._crit_edge
  %37 = icmp eq i32 %17, 16
  %38 = shl i64 %5, 35
  %39 = or i64 %9, %38
  %storemerge60 = select i1 %37, i64 %6, i64 %39
  %storemerge = select i1 %37, i64 %9, i64 0
  store i64 %storemerge60, ptr %4, align 8, !tbaa !5
  store i64 %storemerge, ptr %7, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %0, i64 32
  %41 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void %11(ptr noundef nonnull %40, ptr noundef nonnull %41, ptr noundef %15) #4
  %42 = getelementptr inbounds i8, ptr %0, i64 112
  tail call void %13(ptr noundef nonnull %42, ptr noundef nonnull %41, ptr noundef nonnull %4) #4
  %43 = getelementptr inbounds i8, ptr %0, i64 128
  tail call void @grasshopper_plus128(ptr noundef nonnull %43, ptr noundef nonnull %43, ptr noundef nonnull %42)
  %44 = getelementptr inbounds i8, ptr %0, i64 144
  tail call void %11(ptr noundef nonnull %43, ptr noundef nonnull %44, ptr noundef %15) #4
  %45 = icmp ne ptr %1, null
  %46 = icmp ult i64 %2, 17
  %or.cond = and i1 %45, %46
  br i1 %or.cond, label %47, label %49

47:                                               ; preds = %36
  %48 = tail call i32 @CRYPTO_memcmp(ptr noundef nonnull %44, ptr noundef nonnull %1, i64 noundef %2) #4
  br label %49

49:                                               ; preds = %36, %47
  %.0 = phi i32 [ %48, %47 ], [ -1, %36 ]
  ret i32 %.0
}

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind 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 #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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !11, i64 168}
!9 = !{!"", !6, i64 0, !6, i64 16, !6, i64 32, !6, i64 48, !6, i64 64, !6, i64 80, !6, i64 96, !6, i64 112, !6, i64 128, !6, i64 144, !10, i64 160, !10, i64 164, !11, i64 168, !11, i64 176, !10, i64 184, !11, i64 192}
!10 = !{!"int", !6, i64 0}
!11 = !{!"any pointer", !6, i64 0}
!12 = !{!9, !11, i64 176}
!13 = !{!9, !11, i64 192}
!14 = !{!9, !10, i64 184}
!15 = !{!9, !10, i64 160}
!16 = !{!9, !10, i64 164}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass