; LLVM IR from guanzhi/GmSSL :: src/sdf (sdf_lib)

; 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.sdf_method_st = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.sdf_vendor_st = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@sdf_method = external dso_local global ptr, align 8
@sdf_vendor = external dso_local global ptr, align 8
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [23 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [31 x i8], align 1
@__FUNCTION__.SDF_InternalEncrypt_ECC = external hidden unnamed_addr constant [24 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: nounwind
declare i32 @fprintf(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

declare ptr @SDF_GetErrorReason(i32 noundef) #2

; 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
define dso_local i32 @SDF_InternalEncrypt_ECC(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5) #3 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store i32 %2, ptr %10, align 4, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store i32 %4, ptr %12, align 4, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 16777217, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %17 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %17, ptr %15, align 8, !tbaa !5
  %18 = load ptr, ptr @sdf_method, align 8, !tbaa !5
  %19 = icmp ne ptr %18, null
  br i1 %19, label %20, label %25

20:                                               ; preds = %6
  %21 = load ptr, ptr @sdf_method, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.sdf_method_st, ptr %21, i32 0, i32 38
  %23 = load ptr, ptr %22, align 8, !tbaa !11
  %24 = icmp ne ptr %23, null
  br i1 %24, label %28, label %25

25:                                               ; preds = %20, %6
  %26 = load ptr, ptr @stderr, align 8, !tbaa !5
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1047, ptr noundef @__FUNCTION__.SDF_InternalEncrypt_ECC, ptr noundef @.str.3) #4
  store i32 16777218, ptr %7, align 4
  store i32 1, ptr %16, align 4
  br label %118

28:                                               ; preds = %20
  %29 = load ptr, ptr @sdf_vendor, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %45

31:                                               ; preds = %28
  %32 = load ptr, ptr @sdf_vendor, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.sdf_vendor_st, ptr %32, i32 0, i32 11
  %34 = load ptr, ptr %33, align 8, !tbaa !13
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %45

36:                                               ; preds = %31
  %37 = load i32, ptr %12, align 4, !tbaa !9
  %38 = zext i32 %37 to i64
  %39 = call i32 @SDF_NewECCCipher(ptr noundef %15, i64 noundef %38)
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %44

41:                                               ; preds = %36
  %42 = load ptr, ptr @stderr, align 8, !tbaa !5
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1053, ptr noundef @__FUNCTION__.SDF_InternalEncrypt_ECC, ptr noundef @.str.7) #4
  store i32 16777217, ptr %7, align 4
  store i32 1, ptr %16, align 4
  br label %118

44:                                               ; preds = %36
  br label %45

45:                                               ; preds = %44, %31, %28
  %46 = load ptr, ptr @sdf_vendor, align 8, !tbaa !5
  %47 = icmp ne ptr %46, null
  br i1 %47, label %48, label %64

48:                                               ; preds = %45
  %49 = load ptr, ptr @sdf_vendor, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.sdf_vendor_st, ptr %49, i32 0, i32 8
  %51 = load ptr, ptr %50, align 8, !tbaa !15
  %52 = icmp ne ptr %51, null
  br i1 %52, label %53, label %64

53:                                               ; preds = %48
  %54 = load ptr, ptr @sdf_vendor, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.sdf_vendor_st, ptr %54, i32 0, i32 8
  %56 = load ptr, ptr %55, align 8, !tbaa !15
  %57 = load i32, ptr %10, align 4, !tbaa !9
  %58 = call i32 %56(i32 noundef %57)
  store i32 %58, ptr %10, align 4, !tbaa !9
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %63, label %60

60:                                               ; preds = %53
  %61 = load ptr, ptr @stderr, align 8, !tbaa !5
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1060, ptr noundef @__FUNCTION__.SDF_InternalEncrypt_ECC, ptr noundef @.str.6) #4
  store i32 16777225, ptr %14, align 4, !tbaa !9
  br label %102

63:                                               ; preds = %53
  br label %64

64:                                               ; preds = %63, %48, %45
  %65 = load ptr, ptr @sdf_method, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.sdf_method_st, ptr %65, i32 0, i32 38
  %67 = load ptr, ptr %66, align 8, !tbaa !11
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = load i32, ptr %9, align 4, !tbaa !9
  %70 = load i32, ptr %10, align 4, !tbaa !9
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  %72 = load i32, ptr %12, align 4, !tbaa !9
  %73 = load ptr, ptr %15, align 8, !tbaa !5
  %74 = call i32 %67(ptr noundef %68, i32 noundef %69, i32 noundef %70, ptr noundef %71, i32 noundef %72, ptr noundef %73)
  store i32 %74, ptr %14, align 4, !tbaa !9
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %81

76:                                               ; preds = %64
  %77 = load ptr, ptr @stderr, align 8, !tbaa !5
  %78 = load i32, ptr %14, align 4, !tbaa !9
  %79 = call ptr @SDF_GetErrorReason(i32 noundef %78)
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1073, ptr noundef @__FUNCTION__.SDF_InternalEncrypt_ECC, ptr noundef %79) #4
  br label %102

81:                                               ; preds = %64
  %82 = load ptr, ptr @sdf_vendor, align 8, !tbaa !5
  %83 = icmp ne ptr %82, null
  br i1 %83, label %84, label %101

84:                                               ; preds = %81
  %85 = load ptr, ptr @sdf_vendor, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.sdf_vendor_st, ptr %85, i32 0, i32 11
  %87 = load ptr, ptr %86, align 8, !tbaa !13
  %88 = icmp ne ptr %87, null
  br i1 %88, label %89, label %101

89:                                               ; preds = %84
  %90 = load ptr, ptr @sdf_vendor, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.sdf_vendor_st, ptr %90, i32 0, i32 11
  %92 = load ptr, ptr %91, align 8, !tbaa !13
  %93 = load ptr, ptr %13, align 8, !tbaa !5
  %94 = load ptr, ptr %15, align 8, !tbaa !5
  %95 = call i32 %92(ptr noundef %93, ptr noundef %94)
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %100, label %97

97:                                               ; preds = %89
  %98 = load ptr, ptr @stderr, align 8, !tbaa !5
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1079, ptr noundef @__FUNCTION__.SDF_InternalEncrypt_ECC, ptr noundef @.str.7) #4
  store i32 16777217, ptr %14, align 4, !tbaa !9
  br label %102

100:                                              ; preds = %89
  br label %101

101:                                              ; preds = %100, %84, %81
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %101, %97, %76, %60
  %103 = load ptr, ptr @sdf_vendor, align 8, !tbaa !5
  %104 = icmp ne ptr %103, null
  br i1 %104, label %105, label %116

105:                                              ; preds = %102
  %106 = load ptr, ptr @sdf_vendor, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.sdf_vendor_st, ptr %106, i32 0, i32 11
  %108 = load ptr, ptr %107, align 8, !tbaa !13
  %109 = icmp ne ptr %108, null
  br i1 %109, label %110, label %116

110:                                              ; preds = %105
  %111 = load ptr, ptr %15, align 8, !tbaa !5
  %112 = icmp ne ptr %111, null
  br i1 %112, label %113, label %116

113:                                              ; preds = %110
  %114 = load ptr, ptr %15, align 8, !tbaa !5
  %115 = call i32 @SDF_FreeECCCipher(ptr noundef %114)
  br label %116

116:                                              ; preds = %113, %110, %105, %102
  %117 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %117, ptr %7, align 4
  store i32 1, ptr %16, align 4
  br label %118

118:                                              ; preds = %116, %41, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  %119 = load i32, ptr %7, align 4
  ret i32 %119
}

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

declare i32 @SDF_FreeECCCipher(ptr noundef) #2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = !{!"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 = !{!12, !6, i64 304}
!12 = !{!"sdf_method_st", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !6, i64 392}
!13 = !{!14, !6, i64 88}
!14 = !{!"sdf_vendor_st", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96}
!15 = !{!14, !6, i64 64}


; 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"

@sdf_method = external dso_local local_unnamed_addr global ptr, align 8
@sdf_vendor = external dso_local local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [23 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [31 x i8], align 1
@__FUNCTION__.SDF_InternalEncrypt_ECC = external hidden unnamed_addr constant [24 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) 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

declare ptr @SDF_GetErrorReason(i32 noundef) local_unnamed_addr #2

; 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
define dso_local i32 @SDF_InternalEncrypt_ECC(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5) local_unnamed_addr #3 {
  %7 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  store ptr %5, ptr %7, align 8, !tbaa !5
  %8 = load ptr, ptr @sdf_method, align 8, !tbaa !5
  %.not = icmp eq ptr %8, null
  br i1 %.not, label %12, label %9

9:                                                ; preds = %6
  %10 = getelementptr inbounds i8, ptr %8, i64 304
  %11 = load ptr, ptr %10, align 8, !tbaa !9
  %.not24 = icmp eq ptr %11, null
  br i1 %.not24, label %12, label %15

12:                                               ; preds = %9, %6
  %13 = load ptr, ptr @stderr, align 8, !tbaa !5
  %14 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 1047, ptr noundef nonnull @__FUNCTION__.SDF_InternalEncrypt_ECC, ptr noundef nonnull @.str.3) #5
  br label %.thread39

15:                                               ; preds = %9
  %16 = load ptr, ptr @sdf_vendor, align 8, !tbaa !5
  %.not25 = icmp eq ptr %16, null
  br i1 %.not25, label %.thread, label %17

17:                                               ; preds = %15
  %18 = getelementptr inbounds i8, ptr %16, i64 88
  %19 = load ptr, ptr %18, align 8, !tbaa !11
  %.not26 = icmp eq ptr %19, null
  br i1 %.not26, label %.thread43, label %20

20:                                               ; preds = %17
  %21 = zext i32 %4 to i64
  %22 = call i32 @SDF_NewECCCipher(ptr noundef nonnull %7, i64 noundef %21) #4
  %.not27 = icmp eq i32 %22, 0
  br i1 %.not27, label %26, label %23

23:                                               ; preds = %20
  %24 = load ptr, ptr @stderr, align 8, !tbaa !5
  %25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 1053, ptr noundef nonnull @__FUNCTION__.SDF_InternalEncrypt_ECC, ptr noundef nonnull @.str.7) #5
  br label %.thread39

26:                                               ; preds = %20
  %.pr.pre = load ptr, ptr @sdf_vendor, align 8, !tbaa !5
  %.not28 = icmp eq ptr %.pr.pre, null
  br i1 %.not28, label %.thread, label %.thread43

.thread43:                                        ; preds = %17, %26
  %.pr46 = phi ptr [ %.pr.pre, %26 ], [ %16, %17 ]
  %27 = getelementptr inbounds i8, ptr %.pr46, i64 64
  %28 = load ptr, ptr %27, align 8, !tbaa !13
  %.not29 = icmp eq ptr %28, null
  br i1 %.not29, label %.thread, label %29

29:                                               ; preds = %.thread43
  %30 = call i32 %28(i32 noundef %2) #4
  %.not30 = icmp eq i32 %30, 0
  br i1 %.not30, label %31, label %.thread

31:                                               ; preds = %29
  %32 = load ptr, ptr @stderr, align 8, !tbaa !5
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 1060, ptr noundef nonnull @__FUNCTION__.SDF_InternalEncrypt_ECC, ptr noundef nonnull @.str.6) #5
  br label %54

.thread:                                          ; preds = %15, %29, %.thread43, %26
  %.013 = phi i32 [ %30, %29 ], [ %2, %.thread43 ], [ %2, %26 ], [ %2, %15 ]
  %34 = load ptr, ptr @sdf_method, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 304
  %36 = load ptr, ptr %35, align 8, !tbaa !9
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = call i32 %36(ptr noundef %0, i32 noundef %1, i32 noundef %.013, ptr noundef %3, i32 noundef %4, ptr noundef %37) #4
  %.not31 = icmp eq i32 %38, 0
  br i1 %.not31, label %43, label %39

39:                                               ; preds = %.thread
  %40 = load ptr, ptr @stderr, align 8, !tbaa !5
  %41 = call ptr @SDF_GetErrorReason(i32 noundef %38) #4
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 1073, ptr noundef nonnull @__FUNCTION__.SDF_InternalEncrypt_ECC, ptr noundef %41) #5
  br label %54

43:                                               ; preds = %.thread
  %44 = load ptr, ptr @sdf_vendor, align 8, !tbaa !5
  %.not32 = icmp eq ptr %44, null
  br i1 %.not32, label %.thread39, label %45

45:                                               ; preds = %43
  %46 = getelementptr inbounds i8, ptr %44, i64 88
  %47 = load ptr, ptr %46, align 8, !tbaa !11
  %.not33 = icmp eq ptr %47, null
  br i1 %.not33, label %54, label %48

48:                                               ; preds = %45
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = call i32 %47(ptr noundef %5, ptr noundef %49) #4
  %.not34 = icmp eq i32 %50, 0
  br i1 %.not34, label %51, label %54

51:                                               ; preds = %48
  %52 = load ptr, ptr @stderr, align 8, !tbaa !5
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 1079, ptr noundef nonnull @__FUNCTION__.SDF_InternalEncrypt_ECC, ptr noundef nonnull @.str.7) #5
  br label %54

54:                                               ; preds = %45, %48, %51, %39, %31
  %.0.ph = phi i32 [ 0, %45 ], [ 0, %48 ], [ 16777225, %31 ], [ 16777217, %51 ], [ %38, %39 ]
  %.pr38 = load ptr, ptr @sdf_vendor, align 8, !tbaa !5
  %.not35 = icmp eq ptr %.pr38, null
  br i1 %.not35, label %.thread39, label %55

55:                                               ; preds = %54
  %56 = getelementptr inbounds i8, ptr %.pr38, i64 88
  %57 = load ptr, ptr %56, align 8, !tbaa !11
  %58 = icmp ne ptr %57, null
  %59 = load ptr, ptr %7, align 8
  %60 = icmp ne ptr %59, null
  %or.cond = select i1 %58, i1 %60, i1 false
  br i1 %or.cond, label %61, label %.thread39

61:                                               ; preds = %55
  %62 = call i32 @SDF_FreeECCCipher(ptr noundef nonnull %59) #4
  br label %.thread39

.thread39:                                        ; preds = %43, %54, %55, %61, %23, %12
  %.012 = phi i32 [ 16777217, %23 ], [ 16777218, %12 ], [ %.0.ph, %61 ], [ %.0.ph, %55 ], [ %.0.ph, %54 ], [ 0, %43 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  ret i32 %.012
}

declare i32 @SDF_NewECCCipher(ptr noundef, i64 noundef) local_unnamed_addr #2

declare i32 @SDF_FreeECCCipher(ptr noundef) local_unnamed_addr #2

attributes #0 = { nofree 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 }
attributes #5 = { cold 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, !6, i64 304}
!10 = !{!"sdf_method_st", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !6, i64 392}
!11 = !{!12, !6, i64 88}
!12 = !{!"sdf_vendor_st", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96}
!13 = !{!12, !6, i64 64}


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