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

; 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_CBC_CTX = type { %struct.SDF_KEY, [16 x i8], [16 x i8], i64 }
%struct.SDF_KEY = type { ptr, ptr }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [61 x i8], align 1
@__FUNCTION__.sdf_cbc_encrypt_update = external hidden unnamed_addr constant [23 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

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

18:                                               ; preds = %5
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  %20 = icmp ne ptr %19, null
  br i1 %20, label %21, label %27

21:                                               ; preds = %18
  %22 = load ptr, ptr %10, align 8, !tbaa !5
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %27

24:                                               ; preds = %21
  %25 = load ptr, ptr %11, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %33, label %27

27:                                               ; preds = %24, %21, %18, %5
  br label %28

28:                                               ; preds = %27
  %29 = load ptr, ptr @stderr, align 8, !tbaa !5
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 546, ptr noundef @__FUNCTION__.sdf_cbc_encrypt_update) #4
  br label %31

31:                                               ; preds = %28
  br label %32

32:                                               ; preds = %31
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %163

33:                                               ; preds = %24
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.SDF_CBC_CTX, ptr %34, i32 0, i32 3
  %36 = load i64, ptr %35, align 8, !tbaa !11
  %37 = icmp uge i64 %36, 16
  br i1 %37, label %38, label %44

38:                                               ; preds = %33
  br label %39

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

42:                                               ; preds = %39
  br label %43

43:                                               ; preds = %42
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %163

44:                                               ; preds = %33
  %45 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 0, ptr %45, align 8, !tbaa !9
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.SDF_CBC_CTX, ptr %46, i32 0, i32 3
  %48 = load i64, ptr %47, align 8, !tbaa !11
  %49 = icmp ne i64 %48, 0
  br i1 %49, label %50, label %112

50:                                               ; preds = %44
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.SDF_CBC_CTX, ptr %51, i32 0, i32 3
  %53 = load i64, ptr %52, align 8, !tbaa !11
  %54 = sub i64 16, %53
  store i64 %54, ptr %12, align 8, !tbaa !9
  %55 = load i64, ptr %9, align 8, !tbaa !9
  %56 = load i64, ptr %12, align 8, !tbaa !9
  %57 = icmp ult i64 %55, %56
  br i1 %57, label %58, label %73

58:                                               ; preds = %50
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.SDF_CBC_CTX, ptr %59, i32 0, i32 2
  %61 = getelementptr inbounds [16 x i8], ptr %60, i64 0, i64 0
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.SDF_CBC_CTX, ptr %62, i32 0, i32 3
  %64 = load i64, ptr %63, align 8, !tbaa !11
  %65 = getelementptr inbounds i8, ptr %61, i64 %64
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = load i64, ptr %9, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %65, ptr align 1 %66, i64 %67, i1 false)
  %68 = load i64, ptr %9, align 8, !tbaa !9
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.SDF_CBC_CTX, ptr %69, i32 0, i32 3
  %71 = load i64, ptr %70, align 8, !tbaa !11
  %72 = add i64 %71, %68
  store i64 %72, ptr %70, align 8, !tbaa !11
  store i32 1, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %163

73:                                               ; preds = %50
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.SDF_CBC_CTX, ptr %74, i32 0, i32 2
  %76 = getelementptr inbounds [16 x i8], ptr %75, i64 0, i64 0
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.SDF_CBC_CTX, ptr %77, i32 0, i32 3
  %79 = load i64, ptr %78, align 8, !tbaa !11
  %80 = getelementptr inbounds i8, ptr %76, i64 %79
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = load i64, ptr %12, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %80, ptr align 1 %81, i64 %82, i1 false)
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.SDF_CBC_CTX, ptr %83, i32 0, i32 0
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.SDF_CBC_CTX, ptr %85, i32 0, i32 1
  %87 = getelementptr inbounds [16 x i8], ptr %86, i64 0, i64 0
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.SDF_CBC_CTX, ptr %88, i32 0, i32 2
  %90 = getelementptr inbounds [16 x i8], ptr %89, i64 0, i64 0
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = call i32 @sdf_cbc_encrypt_blocks(ptr noundef %84, ptr noundef %87, ptr noundef %90, i64 noundef 1, ptr noundef %91)
  %93 = icmp ne i32 %92, 1
  br i1 %93, label %94, label %100

94:                                               ; preds = %73
  br label %95

95:                                               ; preds = %94
  %96 = load ptr, ptr @stderr, align 8, !tbaa !5
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 563, ptr noundef @__FUNCTION__.sdf_cbc_encrypt_update) #4
  br label %98

98:                                               ; preds = %95
  br label %99

99:                                               ; preds = %98
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %163

100:                                              ; preds = %73
  %101 = load i64, ptr %12, align 8, !tbaa !9
  %102 = load ptr, ptr %8, align 8, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %102, i64 %101
  store ptr %103, ptr %8, align 8, !tbaa !5
  %104 = load i64, ptr %12, align 8, !tbaa !9
  %105 = load i64, ptr %9, align 8, !tbaa !9
  %106 = sub i64 %105, %104
  store i64 %106, ptr %9, align 8, !tbaa !9
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  %108 = getelementptr inbounds i8, ptr %107, i64 16
  store ptr %108, ptr %10, align 8, !tbaa !5
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = load i64, ptr %109, align 8, !tbaa !9
  %111 = add i64 %110, 16
  store i64 %111, ptr %109, align 8, !tbaa !9
  br label %112

112:                                              ; preds = %100, %44
  %113 = load i64, ptr %9, align 8, !tbaa !9
  %114 = icmp uge i64 %113, 16
  br i1 %114, label %115, label %150

115:                                              ; preds = %112
  %116 = load i64, ptr %9, align 8, !tbaa !9
  %117 = udiv i64 %116, 16
  store i64 %117, ptr %13, align 8, !tbaa !9
  %118 = load i64, ptr %13, align 8, !tbaa !9
  %119 = mul i64 %118, 16
  store i64 %119, ptr %14, align 8, !tbaa !9
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.SDF_CBC_CTX, ptr %120, i32 0, i32 0
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.SDF_CBC_CTX, ptr %122, i32 0, i32 1
  %124 = getelementptr inbounds [16 x i8], ptr %123, i64 0, i64 0
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = load i64, ptr %13, align 8, !tbaa !9
  %127 = load ptr, ptr %10, align 8, !tbaa !5
  %128 = call i32 @sdf_cbc_encrypt_blocks(ptr noundef %121, ptr noundef %124, ptr noundef %125, i64 noundef %126, ptr noundef %127)
  %129 = icmp ne i32 %128, 1
  br i1 %129, label %130, label %136

130:                                              ; preds = %115
  br label %131

131:                                              ; preds = %130
  %132 = load ptr, ptr @stderr, align 8, !tbaa !5
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %132, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 575, ptr noundef @__FUNCTION__.sdf_cbc_encrypt_update) #4
  br label %134

134:                                              ; preds = %131
  br label %135

135:                                              ; preds = %134
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %163

136:                                              ; preds = %115
  %137 = load i64, ptr %14, align 8, !tbaa !9
  %138 = load ptr, ptr %8, align 8, !tbaa !5
  %139 = getelementptr inbounds i8, ptr %138, i64 %137
  store ptr %139, ptr %8, align 8, !tbaa !5
  %140 = load i64, ptr %14, align 8, !tbaa !9
  %141 = load i64, ptr %9, align 8, !tbaa !9
  %142 = sub i64 %141, %140
  store i64 %142, ptr %9, align 8, !tbaa !9
  %143 = load i64, ptr %14, align 8, !tbaa !9
  %144 = load ptr, ptr %10, align 8, !tbaa !5
  %145 = getelementptr inbounds i8, ptr %144, i64 %143
  store ptr %145, ptr %10, align 8, !tbaa !5
  %146 = load i64, ptr %14, align 8, !tbaa !9
  %147 = load ptr, ptr %11, align 8, !tbaa !5
  %148 = load i64, ptr %147, align 8, !tbaa !9
  %149 = add i64 %148, %146
  store i64 %149, ptr %147, align 8, !tbaa !9
  br label %150

150:                                              ; preds = %136, %112
  %151 = load i64, ptr %9, align 8, !tbaa !9
  %152 = icmp ne i64 %151, 0
  br i1 %152, label %153, label %159

153:                                              ; preds = %150
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.SDF_CBC_CTX, ptr %154, i32 0, i32 2
  %156 = getelementptr inbounds [16 x i8], ptr %155, i64 0, i64 0
  %157 = load ptr, ptr %8, align 8, !tbaa !5
  %158 = load i64, ptr %9, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %156, ptr align 1 %157, i64 %158, i1 false)
  br label %159

159:                                              ; preds = %153, %150
  %160 = load i64, ptr %9, align 8, !tbaa !9
  %161 = load ptr, ptr %7, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.SDF_CBC_CTX, ptr %161, i32 0, i32 3
  store i64 %160, ptr %162, align 8, !tbaa !11
  store i32 1, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %163

163:                                              ; preds = %159, %135, %99, %58, %43, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  %164 = load i32, ptr %6, align 4
  ret i32 %164
}

; Function Attrs: nounwind uwtable
declare hidden i32 @sdf_cbc_encrypt_blocks(ptr noundef, ptr noundef, ptr noundef, i64 noundef, ptr noundef) #3

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 48}
!12 = !{!"", !13, i64 0, !7, i64 16, !7, i64 32, !10, i64 48}
!13 = !{!"", !6, i64 0, !6, i64 8}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [61 x i8], align 1
@__FUNCTION__.sdf_cbc_encrypt_update = external hidden unnamed_addr constant [23 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 2) i32 @sdf_cbc_encrypt_update(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #2 {
  %6 = insertelement <4 x ptr> poison, ptr %0, i64 0
  %7 = insertelement <4 x ptr> %6, ptr %1, i64 1
  %8 = insertelement <4 x ptr> %7, ptr %3, i64 2
  %9 = insertelement <4 x ptr> %8, ptr %4, i64 3
  %10 = icmp eq <4 x ptr> %9, zeroinitializer
  %11 = bitcast <4 x i1> %10 to i4
  %12 = icmp eq i4 %11, 0
  br i1 %12, label %16, label %13

13:                                               ; preds = %5
  %14 = load ptr, ptr @stderr, align 8, !tbaa !5
  %15 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 546, ptr noundef nonnull @__FUNCTION__.sdf_cbc_encrypt_update) #3
  br label %64

16:                                               ; preds = %5
  %17 = getelementptr inbounds i8, ptr %0, i64 48
  %18 = load i64, ptr %17, align 8, !tbaa !9
  %19 = icmp ugt i64 %18, 15
  br i1 %19, label %20, label %23

20:                                               ; preds = %16
  %21 = load ptr, ptr @stderr, align 8, !tbaa !5
  %22 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 550, ptr noundef nonnull @__FUNCTION__.sdf_cbc_encrypt_update) #3
  br label %64

23:                                               ; preds = %16
  store i64 0, ptr %4, align 8, !tbaa !13
  %24 = load i64, ptr %17, align 8, !tbaa !9
  %.not = icmp eq i64 %24, 0
  br i1 %.not, label %45, label %25

25:                                               ; preds = %23
  %26 = sub i64 16, %24
  %27 = icmp ugt i64 %26, %2
  %28 = getelementptr inbounds i8, ptr %0, i64 32
  %29 = getelementptr inbounds i8, ptr %28, i64 %24
  br i1 %27, label %30, label %33

30:                                               ; preds = %25
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %29, ptr nonnull align 1 %1, i64 %2, i1 false)
  %31 = load i64, ptr %17, align 8, !tbaa !9
  %32 = add i64 %31, %2
  store i64 %32, ptr %17, align 8, !tbaa !9
  br label %64

33:                                               ; preds = %25
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %29, ptr nonnull align 1 %1, i64 %26, i1 false)
  %34 = getelementptr inbounds i8, ptr %0, i64 16
  %35 = tail call i32 @sdf_cbc_encrypt_blocks(ptr noundef nonnull %0, ptr noundef nonnull %34, ptr noundef nonnull %28, i64 noundef 1, ptr noundef nonnull %3)
  %.not69 = icmp eq i32 %35, 1
  br i1 %.not69, label %39, label %36

36:                                               ; preds = %33
  %37 = load ptr, ptr @stderr, align 8, !tbaa !5
  %38 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 563, ptr noundef nonnull @__FUNCTION__.sdf_cbc_encrypt_update) #3
  br label %64

39:                                               ; preds = %33
  %40 = getelementptr inbounds i8, ptr %1, i64 %26
  %41 = sub i64 %2, %26
  %42 = getelementptr inbounds i8, ptr %3, i64 16
  %43 = load i64, ptr %4, align 8, !tbaa !13
  %44 = add i64 %43, 16
  store i64 %44, ptr %4, align 8, !tbaa !13
  br label %45

45:                                               ; preds = %39, %23
  %.060 = phi ptr [ %42, %39 ], [ %3, %23 ]
  %.058 = phi i64 [ %41, %39 ], [ %2, %23 ]
  %.057 = phi ptr [ %40, %39 ], [ %1, %23 ]
  %46 = icmp ugt i64 %.058, 15
  br i1 %46, label %47, label %60

47:                                               ; preds = %45
  %48 = lshr i64 %.058, 4
  %49 = getelementptr inbounds i8, ptr %0, i64 16
  %50 = tail call i32 @sdf_cbc_encrypt_blocks(ptr noundef nonnull %0, ptr noundef nonnull %49, ptr noundef %.057, i64 noundef %48, ptr noundef nonnull %.060)
  %.not70 = icmp eq i32 %50, 1
  br i1 %.not70, label %54, label %51

51:                                               ; preds = %47
  %52 = load ptr, ptr @stderr, align 8, !tbaa !5
  %53 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 575, ptr noundef nonnull @__FUNCTION__.sdf_cbc_encrypt_update) #3
  br label %64

54:                                               ; preds = %47
  %55 = and i64 %.058, -16
  %56 = getelementptr inbounds i8, ptr %.057, i64 %55
  %57 = and i64 %.058, 15
  %58 = load i64, ptr %4, align 8, !tbaa !13
  %59 = add i64 %58, %55
  store i64 %59, ptr %4, align 8, !tbaa !13
  br label %60

60:                                               ; preds = %54, %45
  %.159 = phi i64 [ %57, %54 ], [ %.058, %45 ]
  %.1 = phi ptr [ %56, %54 ], [ %.057, %45 ]
  %.not71 = icmp eq i64 %.159, 0
  br i1 %.not71, label %63, label %61

61:                                               ; preds = %60
  %62 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %62, ptr align 1 %.1, i64 %.159, i1 false)
  br label %63

63:                                               ; preds = %61, %60
  store i64 %.159, ptr %17, align 8, !tbaa !9
  br label %64

64:                                               ; preds = %63, %51, %36, %30, %20, %13
  %.0 = phi i32 [ -1, %20 ], [ 1, %30 ], [ -1, %36 ], [ -1, %51 ], [ 1, %63 ], [ -1, %13 ]
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare hidden i32 @sdf_cbc_encrypt_blocks(ptr noundef, ptr noundef, ptr noundef, i64 noundef, 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 nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { 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, !12, i64 48}
!10 = !{!"", !11, i64 0, !7, i64 16, !7, i64 32, !12, i64 48}
!11 = !{!"", !6, i64 0, !6, i64 8}
!12 = !{!"long", !7, i64 0}
!13 = !{!12, !12, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass