; LLVM IR from Water-Melon/Melon :: src (mln_rsa)

; 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.mln_string_t = type { ptr, i64, i32 }
%struct.mln_bignum_t = type { i32, i32, [257 x i64] }
%struct.mln_rsa_key_t = type { %struct.mln_bignum_t, %struct.mln_bignum_t, %struct.mln_bignum_t, %struct.mln_bignum_t, %struct.mln_bignum_t, %struct.mln_bignum_t, %struct.mln_bignum_t, i8 }

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #0

; Function Attrs: nounwind
declare void @free(ptr noundef) #1

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

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

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

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

declare i32 @mln_bignum_os2ip(ptr noundef, ptr noundef, i64 noundef) #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @mln_rsa_rsaep_rsadp(ptr noundef, ptr noundef, ptr noundef) #6

declare i32 @mln_bignum_i2osp(ptr noundef, ptr noundef, i64 noundef) #5

declare ptr @mln_string_dup(ptr noundef) #5

; Function Attrs: nounwind uwtable
define dso_local ptr @mln_RSAESPKCS1V15_public_decrypt(ptr noundef nonnull %0, ptr noundef nonnull %1) #7 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %struct.mln_string_t, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca %struct.mln_bignum_t, align 8
  %17 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.mln_rsa_key_t, ptr %18, i32 0, i32 0
  %20 = getelementptr inbounds %struct.mln_bignum_t, ptr %19, i32 0, i32 1
  %21 = load i32, ptr %20, align 4, !tbaa !9
  %22 = shl i32 %21, 2
  %23 = zext i32 %22 to i64
  store i64 %23, ptr %6, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.mln_string_t, ptr %24, i32 0, i32 0
  %26 = load ptr, ptr %25, align 8, !tbaa !15
  store ptr %26, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  store ptr null, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.mln_string_t, ptr %27, i32 0, i32 1
  %29 = load i64, ptr %28, align 8, !tbaa !17
  store i64 %29, ptr %13, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  store i64 0, ptr %14, align 8, !tbaa !13
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.mln_string_t, ptr %30, i32 0, i32 1
  %32 = load i64, ptr %31, align 8, !tbaa !17
  %33 = icmp ult i64 %32, 11
  br i1 %33, label %41, label %34

34:                                               ; preds = %2
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.mln_string_t, ptr %35, i32 0, i32 1
  %37 = load i64, ptr %36, align 8, !tbaa !17
  %38 = load i64, ptr %6, align 8, !tbaa !13
  %39 = urem i64 %37, %38
  %40 = icmp ne i64 %39, 0
  br i1 %40, label %41, label %42

41:                                               ; preds = %34, %2
  store ptr null, ptr %3, align 8
  store i32 1, ptr %15, align 4
  br label %140

42:                                               ; preds = %34
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.mln_string_t, ptr %43, i32 0, i32 1
  %45 = load i64, ptr %44, align 8, !tbaa !17
  %46 = call noalias ptr @malloc(i64 noundef %45) #9
  store ptr %46, ptr %7, align 8, !tbaa !5
  %47 = icmp eq ptr %46, null
  br i1 %47, label %48, label %49

48:                                               ; preds = %42
  store ptr null, ptr %3, align 8
  store i32 1, ptr %15, align 4
  br label %140

49:                                               ; preds = %42
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %50, ptr %8, align 8, !tbaa !5
  br label %51

51:                                               ; preds = %118, %49
  %52 = load i64, ptr %13, align 8, !tbaa !13
  %53 = icmp ugt i64 %52, 0
  br i1 %53, label %54, label %119

54:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 2064, ptr %16) #8
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 2064, i1 false)
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = load i64, ptr %6, align 8, !tbaa !13
  %57 = call i32 @mln_bignum_os2ip(ptr noundef %16, ptr noundef %55, i64 noundef %56)
  %58 = icmp slt i32 %57, 0
  br i1 %58, label %59, label %61

59:                                               ; preds = %54
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %60) #8
  store ptr null, ptr %3, align 8
  store i32 1, ptr %15, align 4
  br label %116

61:                                               ; preds = %54
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = call i32 @mln_rsa_rsaep_rsadp(ptr noundef %62, ptr noundef %16, ptr noundef %16)
  %64 = icmp slt i32 %63, 0
  br i1 %64, label %65, label %67

65:                                               ; preds = %61
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %66) #8
  store ptr null, ptr %3, align 8
  store i32 1, ptr %15, align 4
  br label %116

67:                                               ; preds = %61
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  %69 = load i64, ptr %6, align 8, !tbaa !13
  %70 = call i32 @mln_bignum_i2osp(ptr noundef %16, ptr noundef %68, i64 noundef %69)
  %71 = icmp slt i32 %70, 0
  br i1 %71, label %72, label %74

72:                                               ; preds = %67
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %73) #8
  store ptr null, ptr %3, align 8
  store i32 1, ptr %15, align 4
  br label %116

74:                                               ; preds = %67
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = load i64, ptr %6, align 8, !tbaa !13
  %77 = call ptr @mln_rsa_anti_padding_private(ptr noundef %75, i64 noundef %76)
  store ptr %77, ptr %9, align 8, !tbaa !5
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = icmp eq ptr %78, null
  br i1 %79, label %80, label %82

80:                                               ; preds = %74
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %81) #8
  store ptr null, ptr %3, align 8
  store i32 1, ptr %15, align 4
  br label %116

82:                                               ; preds = %74
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = load i64, ptr %6, align 8, !tbaa !13
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = ptrtoint ptr %86 to i64
  %89 = ptrtoint ptr %87 to i64
  %90 = sub i64 %88, %89
  %91 = sub i64 %85, %90
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %83, ptr align 1 %84, i64 %91, i1 false)
  %92 = load i64, ptr %6, align 8, !tbaa !13
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = ptrtoint ptr %93 to i64
  %96 = ptrtoint ptr %94 to i64
  %97 = sub i64 %95, %96
  %98 = sub i64 %92, %97
  %99 = load i64, ptr %14, align 8, !tbaa !13
  %100 = add i64 %99, %98
  store i64 %100, ptr %14, align 8, !tbaa !13
  %101 = load i64, ptr %6, align 8, !tbaa !13
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = ptrtoint ptr %102 to i64
  %105 = ptrtoint ptr %103 to i64
  %106 = sub i64 %104, %105
  %107 = sub i64 %101, %106
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = getelementptr inbounds i8, ptr %108, i64 %107
  store ptr %109, ptr %8, align 8, !tbaa !5
  %110 = load i64, ptr %6, align 8, !tbaa !13
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  %112 = getelementptr inbounds i8, ptr %111, i64 %110
  store ptr %112, ptr %10, align 8, !tbaa !5
  %113 = load i64, ptr %6, align 8, !tbaa !13
  %114 = load i64, ptr %13, align 8, !tbaa !13
  %115 = sub i64 %114, %113
  store i64 %115, ptr %13, align 8, !tbaa !13
  store i32 0, ptr %15, align 4
  br label %116

116:                                              ; preds = %82, %80, %72, %65, %59
  call void @llvm.lifetime.end.p0(i64 2064, ptr %16) #8
  %117 = load i32, ptr %15, align 4
  switch i32 %117, label %140 [
    i32 0, label %118
  ]

118:                                              ; preds = %116
  br label %51, !llvm.loop !18

119:                                              ; preds = %51
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.mln_string_t, ptr %12, i32 0, i32 0
  store ptr %120, ptr %121, align 8, !tbaa !15
  %122 = load i64, ptr %14, align 8, !tbaa !13
  %123 = getelementptr inbounds %struct.mln_string_t, ptr %12, i32 0, i32 1
  store i64 %122, ptr %123, align 8, !tbaa !17
  %124 = getelementptr inbounds %struct.mln_string_t, ptr %12, i32 0, i32 2
  %125 = load i32, ptr %124, align 8
  %126 = and i32 %125, -2
  %127 = or i32 %126, 1
  store i32 %127, ptr %124, align 8
  %128 = getelementptr inbounds %struct.mln_string_t, ptr %12, i32 0, i32 2
  %129 = load i32, ptr %128, align 8
  %130 = and i32 %129, -3
  %131 = or i32 %130, 0
  store i32 %131, ptr %128, align 8
  %132 = getelementptr inbounds %struct.mln_string_t, ptr %12, i32 0, i32 2
  %133 = load i32, ptr %132, align 8
  %134 = and i32 %133, 3
  %135 = or i32 %134, 4
  store i32 %135, ptr %132, align 8
  store ptr %12, ptr %17, align 8, !tbaa !5
  %136 = load ptr, ptr %17, align 8, !tbaa !5
  %137 = call ptr @mln_string_dup(ptr noundef %12)
  store ptr %137, ptr %11, align 8, !tbaa !5
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  call void @free(ptr noundef %138) #8
  %139 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %139, ptr %3, align 8
  store i32 1, ptr %15, align 4
  br label %140

140:                                              ; preds = %119, %116, %48, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  %141 = load ptr, ptr %3, align 8
  ret ptr %141
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @mln_rsa_anti_padding_private(ptr noundef, i64 noundef) #6

attributes #0 = { nounwind allocsize(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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { "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 #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { nounwind allocsize(0) }

!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, !12, i64 4}
!10 = !{!"", !11, i64 0, !11, i64 2064, !11, i64 4128, !11, i64 6192, !11, i64 8256, !11, i64 10320, !11, i64 12384, !12, i64 14448}
!11 = !{!"", !12, i64 0, !12, i64 4, !7, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"", !6, i64 0, !14, i64 8, !14, i64 16, !14, i64 16, !14, i64 16}
!17 = !{!16, !14, i64 8}
!18 = distinct !{!18, !19}
!19 = !{!"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.mln_string_t = type { ptr, i64, i32 }
%struct.mln_bignum_t = type { i32, i32, [257 x i64] }

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #1

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

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

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

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

declare i32 @mln_bignum_os2ip(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @mln_rsa_rsaep_rsadp(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #6

declare i32 @mln_bignum_i2osp(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #5

declare ptr @mln_string_dup(ptr noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
define dso_local ptr @mln_RSAESPKCS1V15_public_decrypt(ptr noundef nonnull %0, ptr nocapture noundef nonnull readonly %1) local_unnamed_addr #7 {
  %3 = alloca %struct.mln_string_t, align 8
  %4 = alloca %struct.mln_bignum_t, align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 4
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = shl i32 %6, 2
  %8 = zext i32 %7 to i64
  %9 = load ptr, ptr %1, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  %11 = load i64, ptr %10, align 8, !tbaa !15
  %12 = icmp ult i64 %11, 11
  br i1 %12, label %41, label %13

13:                                               ; preds = %2
  %14 = urem i64 %11, %8
  %.not = icmp eq i64 %14, 0
  br i1 %.not, label %15, label %41

15:                                               ; preds = %13
  %16 = tail call noalias ptr @malloc(i64 noundef %11) #9
  %17 = icmp eq ptr %16, null
  br i1 %17, label %41, label %.preheader

.preheader:                                       ; preds = %15, %29
  %.04569 = phi i64 [ %33, %29 ], [ 0, %15 ]
  %.04768 = phi i64 [ %36, %29 ], [ %11, %15 ]
  %.04967 = phi ptr [ %35, %29 ], [ %9, %15 ]
  %.05166 = phi ptr [ %34, %29 ], [ %16, %15 ]
  call void @llvm.lifetime.start.p0(i64 2064, ptr nonnull %4) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(2064) %4, i8 0, i64 2064, i1 false)
  %18 = call i32 @mln_bignum_os2ip(ptr noundef nonnull %4, ptr noundef %.04967, i64 noundef %8) #8
  %19 = icmp slt i32 %18, 0
  br i1 %19, label %.thread, label %20

20:                                               ; preds = %.preheader
  %21 = call i32 @mln_rsa_rsaep_rsadp(ptr noundef nonnull %0, ptr noundef nonnull %4, ptr noundef nonnull %4)
  %22 = icmp slt i32 %21, 0
  br i1 %22, label %.thread, label %23

23:                                               ; preds = %20
  %24 = call i32 @mln_bignum_i2osp(ptr noundef nonnull %4, ptr noundef %.04967, i64 noundef %8) #8
  %25 = icmp slt i32 %24, 0
  br i1 %25, label %.thread, label %26

26:                                               ; preds = %23
  %27 = call ptr @mln_rsa_anti_padding_private(ptr noundef %.04967, i64 noundef %8)
  %28 = icmp eq ptr %27, null
  br i1 %28, label %.thread, label %29

.thread:                                          ; preds = %26, %23, %20, %.preheader
  call void @free(ptr noundef %16) #8
  call void @llvm.lifetime.end.p0(i64 2064, ptr nonnull %4) #8
  br label %41

29:                                               ; preds = %26
  %30 = ptrtoint ptr %27 to i64
  %31 = ptrtoint ptr %.04967 to i64
  %.neg = sub i64 %31, %30
  %32 = add i64 %.neg, %8
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %.05166, ptr nonnull align 1 %27, i64 %32, i1 false)
  %33 = add i64 %32, %.04569
  %34 = getelementptr inbounds i8, ptr %.05166, i64 %32
  %35 = getelementptr inbounds i8, ptr %.04967, i64 %8
  %36 = sub i64 %.04768, %8
  call void @llvm.lifetime.end.p0(i64 2064, ptr nonnull %4) #8
  %.not56 = icmp eq i64 %36, 0
  br i1 %.not56, label %37, label %.preheader, !llvm.loop !16

37:                                               ; preds = %29
  store ptr %16, ptr %3, align 8, !tbaa !11
  %38 = getelementptr inbounds i8, ptr %3, i64 8
  store i64 %33, ptr %38, align 8, !tbaa !15
  %39 = getelementptr inbounds i8, ptr %3, i64 16
  store i32 5, ptr %39, align 8
  %40 = call ptr @mln_string_dup(ptr noundef nonnull %3) #8
  call void @free(ptr noundef %16) #8
  br label %41

41:                                               ; preds = %.thread, %15, %2, %13, %37
  %.2 = phi ptr [ %40, %37 ], [ null, %13 ], [ null, %2 ], [ null, %15 ], [ null, %.thread ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  ret ptr %.2
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @mln_rsa_anti_padding_private(ptr noundef, i64 noundef) local_unnamed_addr #6

attributes #0 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { "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 #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { nounwind allocsize(0) }

!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, !8, i64 4}
!6 = !{!"", !7, i64 0, !7, i64 2064, !7, i64 4128, !7, i64 6192, !7, i64 8256, !7, i64 10320, !7, i64 12384, !8, i64 14448}
!7 = !{!"", !8, i64 0, !8, i64 4, !9, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 0}
!12 = !{!"", !13, i64 0, !14, i64 8, !14, i64 16, !14, i64 16, !14, i64 16}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!"long", !9, i64 0}
!15 = !{!12, !14, i64 8}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


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