; LLVM IR from ARMmbed/mbed-crypto :: library (xtea)

; 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.mbedtls_xtea_context = type { [4 x i32] }

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@xtea_test_pt = external hidden constant [6 x [8 x i8]], align 16
@xtea_test_key = external hidden constant [6 x [16 x i8]], align 16
@xtea_test_ct = external hidden constant [6 x [8 x i8]], align 16
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @mbedtls_xtea_setup(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 i32 @mbedtls_xtea_crypt_ecb(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #0

; 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: nounwind uwtable
define dso_local i32 @mbedtls_xtea_self_test(i32 noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca [8 x i8], align 1
  %6 = alloca %struct.mbedtls_xtea_context, align 4
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #5
  call void @mbedtls_xtea_init(ptr noundef %6)
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %7

7:                                                ; preds = %49, %1
  %8 = load i32, ptr %3, align 4, !tbaa !5
  %9 = icmp slt i32 %8, 6
  br i1 %9, label %10, label %52

10:                                               ; preds = %7
  %11 = load i32, ptr %2, align 4, !tbaa !5
  %12 = icmp ne i32 %11, 0
  br i1 %12, label %13, label %17

13:                                               ; preds = %10
  %14 = load i32, ptr %3, align 4, !tbaa !5
  %15 = add nsw i32 %14, 1
  %16 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %15)
  br label %17

17:                                               ; preds = %13, %10
  %18 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 0
  %19 = load i32, ptr %3, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [6 x [8 x i8]], ptr @xtea_test_pt, i64 0, i64 %20
  %22 = getelementptr inbounds [8 x i8], ptr %21, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %18, ptr align 8 %22, i64 8, i1 false)
  %23 = load i32, ptr %3, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [6 x [16 x i8]], ptr @xtea_test_key, i64 0, i64 %24
  %26 = getelementptr inbounds [16 x i8], ptr %25, i64 0, i64 0
  call void @mbedtls_xtea_setup(ptr noundef %6, ptr noundef %26)
  %27 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 0
  %28 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 0
  %29 = call i32 @mbedtls_xtea_crypt_ecb(ptr noundef %6, i32 noundef 1, ptr noundef %27, ptr noundef %28)
  %30 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 0
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [6 x [8 x i8]], ptr @xtea_test_ct, i64 0, i64 %32
  %34 = getelementptr inbounds [8 x i8], ptr %33, i64 0, i64 0
  %35 = call i32 @memcmp(ptr noundef %30, ptr noundef %34, i64 noundef 8) #6
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %43

37:                                               ; preds = %17
  %38 = load i32, ptr %2, align 4, !tbaa !5
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %42

40:                                               ; preds = %37
  %41 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  br label %42

42:                                               ; preds = %40, %37
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %58

43:                                               ; preds = %17
  %44 = load i32, ptr %2, align 4, !tbaa !5
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %46, label %48

46:                                               ; preds = %43
  %47 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  br label %48

48:                                               ; preds = %46, %43
  br label %49

49:                                               ; preds = %48
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %3, align 4, !tbaa !5
  br label %7, !llvm.loop !9

52:                                               ; preds = %7
  %53 = load i32, ptr %2, align 4, !tbaa !5
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %57

55:                                               ; preds = %52
  %56 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  br label %57

57:                                               ; preds = %55, %52
  br label %58

58:                                               ; preds = %57, %42
  call void @mbedtls_xtea_free(ptr noundef %6)
  %59 = load i32, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret i32 %59
}

declare i32 @printf(ptr noundef, ...) #3

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #4

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 willreturn memory(read) "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 }
attributes #6 = { nounwind willreturn memory(read) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"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.mbedtls_xtea_context = type { [4 x i32] }

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@xtea_test_pt = external hidden local_unnamed_addr constant [6 x [8 x i8]], align 16
@xtea_test_key = external hidden constant [6 x [16 x i8]], align 16
@xtea_test_ct = external hidden constant [6 x [8 x i8]], align 16
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @mbedtls_xtea_setup(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 i32 @mbedtls_xtea_crypt_ecb(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @mbedtls_xtea_self_test(i32 noundef %0) local_unnamed_addr #0 {
  %2 = alloca [8 x i8], align 8
  %3 = alloca %struct.mbedtls_xtea_context, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
  call void @mbedtls_xtea_init(ptr noundef nonnull %3)
  %.not12 = icmp eq i32 %0, 0
  br i1 %.not12, label %.split.us.preheader, label %.split.preheader

.split.preheader:                                 ; preds = %1
  %4 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef 1)
  %5 = load i64, ptr @xtea_test_pt, align 16
  store i64 %5, ptr %2, align 8
  call void @mbedtls_xtea_setup(ptr noundef nonnull %3, ptr noundef nonnull @xtea_test_key)
  %6 = call i32 @mbedtls_xtea_crypt_ecb(ptr noundef nonnull %3, i32 noundef 1, ptr noundef nonnull %2, ptr noundef nonnull %2)
  %lhsv = load i64, ptr %2, align 8
  %rhsv = load i64, ptr @xtea_test_ct, align 16
  %.not = icmp eq i64 %lhsv, %rhsv
  br i1 %.not, label %.split.1, label %.critedge.sink.split

.split.us.preheader:                              ; preds = %1
  %7 = load i64, ptr @xtea_test_pt, align 16
  store i64 %7, ptr %2, align 8
  call void @mbedtls_xtea_setup(ptr noundef nonnull %3, ptr noundef nonnull @xtea_test_key)
  %8 = call i32 @mbedtls_xtea_crypt_ecb(ptr noundef nonnull %3, i32 noundef 1, ptr noundef nonnull %2, ptr noundef nonnull %2)
  %lhsv37 = load i64, ptr %2, align 8
  %rhsv38 = load i64, ptr @xtea_test_ct, align 16
  %.not39 = icmp eq i64 %lhsv37, %rhsv38
  br i1 %.not39, label %.split.us.1, label %.critedge

.split.us.1:                                      ; preds = %.split.us.preheader
  %9 = load i64, ptr getelementptr inbounds (i8, ptr @xtea_test_pt, i64 8), align 8
  store i64 %9, ptr %2, align 8
  call void @mbedtls_xtea_setup(ptr noundef nonnull %3, ptr noundef nonnull getelementptr inbounds (i8, ptr @xtea_test_key, i64 16))
  %10 = call i32 @mbedtls_xtea_crypt_ecb(ptr noundef nonnull %3, i32 noundef 1, ptr noundef nonnull %2, ptr noundef nonnull %2)
  %lhsv40 = load i64, ptr %2, align 8
  %rhsv41 = load i64, ptr getelementptr inbounds (i8, ptr @xtea_test_ct, i64 8), align 8
  %.not42 = icmp eq i64 %lhsv40, %rhsv41
  br i1 %.not42, label %.split.us.2, label %.critedge

.split.us.2:                                      ; preds = %.split.us.1
  %11 = load i64, ptr getelementptr inbounds (i8, ptr @xtea_test_pt, i64 16), align 16
  store i64 %11, ptr %2, align 8
  call void @mbedtls_xtea_setup(ptr noundef nonnull %3, ptr noundef nonnull getelementptr inbounds (i8, ptr @xtea_test_key, i64 32))
  %12 = call i32 @mbedtls_xtea_crypt_ecb(ptr noundef nonnull %3, i32 noundef 1, ptr noundef nonnull %2, ptr noundef nonnull %2)
  %lhsv43 = load i64, ptr %2, align 8
  %rhsv44 = load i64, ptr getelementptr inbounds (i8, ptr @xtea_test_ct, i64 16), align 16
  %.not45 = icmp eq i64 %lhsv43, %rhsv44
  br i1 %.not45, label %.split.us.3, label %.critedge

.split.us.3:                                      ; preds = %.split.us.2
  %13 = load i64, ptr getelementptr inbounds (i8, ptr @xtea_test_pt, i64 24), align 8
  store i64 %13, ptr %2, align 8
  call void @mbedtls_xtea_setup(ptr noundef nonnull %3, ptr noundef nonnull getelementptr inbounds (i8, ptr @xtea_test_key, i64 48))
  %14 = call i32 @mbedtls_xtea_crypt_ecb(ptr noundef nonnull %3, i32 noundef 1, ptr noundef nonnull %2, ptr noundef nonnull %2)
  %lhsv46 = load i64, ptr %2, align 8
  %rhsv47 = load i64, ptr getelementptr inbounds (i8, ptr @xtea_test_ct, i64 24), align 8
  %.not48 = icmp eq i64 %lhsv46, %rhsv47
  br i1 %.not48, label %.split.us.4, label %.critedge

.split.us.4:                                      ; preds = %.split.us.3
  %15 = load i64, ptr getelementptr inbounds (i8, ptr @xtea_test_pt, i64 32), align 16
  store i64 %15, ptr %2, align 8
  call void @mbedtls_xtea_setup(ptr noundef nonnull %3, ptr noundef nonnull getelementptr inbounds (i8, ptr @xtea_test_key, i64 64))
  %16 = call i32 @mbedtls_xtea_crypt_ecb(ptr noundef nonnull %3, i32 noundef 1, ptr noundef nonnull %2, ptr noundef nonnull %2)
  %lhsv49 = load i64, ptr %2, align 8
  %rhsv50 = load i64, ptr getelementptr inbounds (i8, ptr @xtea_test_ct, i64 32), align 16
  %.not51 = icmp eq i64 %lhsv49, %rhsv50
  br i1 %.not51, label %.split.us.5, label %.critedge

.split.us.5:                                      ; preds = %.split.us.4
  %17 = load i64, ptr getelementptr inbounds (i8, ptr @xtea_test_pt, i64 40), align 8
  store i64 %17, ptr %2, align 8
  call void @mbedtls_xtea_setup(ptr noundef nonnull %3, ptr noundef nonnull getelementptr inbounds (i8, ptr @xtea_test_key, i64 80))
  %18 = call i32 @mbedtls_xtea_crypt_ecb(ptr noundef nonnull %3, i32 noundef 1, ptr noundef nonnull %2, ptr noundef nonnull %2)
  %lhsv52 = load i64, ptr %2, align 8
  %rhsv53 = load i64, ptr getelementptr inbounds (i8, ptr @xtea_test_ct, i64 40), align 8
  %19 = icmp ne i64 %lhsv52, %rhsv53
  %spec.select = zext i1 %19 to i32
  br label %.critedge

.split.1:                                         ; preds = %.split.preheader
  %20 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %21 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef 2)
  %22 = load i64, ptr getelementptr inbounds (i8, ptr @xtea_test_pt, i64 8), align 8
  store i64 %22, ptr %2, align 8
  call void @mbedtls_xtea_setup(ptr noundef nonnull %3, ptr noundef nonnull getelementptr inbounds (i8, ptr @xtea_test_key, i64 16))
  %23 = call i32 @mbedtls_xtea_crypt_ecb(ptr noundef nonnull %3, i32 noundef 1, ptr noundef nonnull %2, ptr noundef nonnull %2)
  %lhsv22 = load i64, ptr %2, align 8
  %rhsv23 = load i64, ptr getelementptr inbounds (i8, ptr @xtea_test_ct, i64 8), align 8
  %.not24 = icmp eq i64 %lhsv22, %rhsv23
  br i1 %.not24, label %.split.2, label %.critedge.sink.split

.split.2:                                         ; preds = %.split.1
  %24 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %25 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef 3)
  %26 = load i64, ptr getelementptr inbounds (i8, ptr @xtea_test_pt, i64 16), align 16
  store i64 %26, ptr %2, align 8
  call void @mbedtls_xtea_setup(ptr noundef nonnull %3, ptr noundef nonnull getelementptr inbounds (i8, ptr @xtea_test_key, i64 32))
  %27 = call i32 @mbedtls_xtea_crypt_ecb(ptr noundef nonnull %3, i32 noundef 1, ptr noundef nonnull %2, ptr noundef nonnull %2)
  %lhsv25 = load i64, ptr %2, align 8
  %rhsv26 = load i64, ptr getelementptr inbounds (i8, ptr @xtea_test_ct, i64 16), align 16
  %.not27 = icmp eq i64 %lhsv25, %rhsv26
  br i1 %.not27, label %.split.3, label %.critedge.sink.split

.split.3:                                         ; preds = %.split.2
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %29 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef 4)
  %30 = load i64, ptr getelementptr inbounds (i8, ptr @xtea_test_pt, i64 24), align 8
  store i64 %30, ptr %2, align 8
  call void @mbedtls_xtea_setup(ptr noundef nonnull %3, ptr noundef nonnull getelementptr inbounds (i8, ptr @xtea_test_key, i64 48))
  %31 = call i32 @mbedtls_xtea_crypt_ecb(ptr noundef nonnull %3, i32 noundef 1, ptr noundef nonnull %2, ptr noundef nonnull %2)
  %lhsv28 = load i64, ptr %2, align 8
  %rhsv29 = load i64, ptr getelementptr inbounds (i8, ptr @xtea_test_ct, i64 24), align 8
  %.not30 = icmp eq i64 %lhsv28, %rhsv29
  br i1 %.not30, label %.split.4, label %.critedge.sink.split

.split.4:                                         ; preds = %.split.3
  %32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef 5)
  %34 = load i64, ptr getelementptr inbounds (i8, ptr @xtea_test_pt, i64 32), align 16
  store i64 %34, ptr %2, align 8
  call void @mbedtls_xtea_setup(ptr noundef nonnull %3, ptr noundef nonnull getelementptr inbounds (i8, ptr @xtea_test_key, i64 64))
  %35 = call i32 @mbedtls_xtea_crypt_ecb(ptr noundef nonnull %3, i32 noundef 1, ptr noundef nonnull %2, ptr noundef nonnull %2)
  %lhsv31 = load i64, ptr %2, align 8
  %rhsv32 = load i64, ptr getelementptr inbounds (i8, ptr @xtea_test_ct, i64 32), align 16
  %.not33 = icmp eq i64 %lhsv31, %rhsv32
  br i1 %.not33, label %.split.5, label %.critedge.sink.split

.split.5:                                         ; preds = %.split.4
  %36 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %37 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef 6)
  %38 = load i64, ptr getelementptr inbounds (i8, ptr @xtea_test_pt, i64 40), align 8
  store i64 %38, ptr %2, align 8
  call void @mbedtls_xtea_setup(ptr noundef nonnull %3, ptr noundef nonnull getelementptr inbounds (i8, ptr @xtea_test_key, i64 80))
  %39 = call i32 @mbedtls_xtea_crypt_ecb(ptr noundef nonnull %3, i32 noundef 1, ptr noundef nonnull %2, ptr noundef nonnull %2)
  %lhsv34 = load i64, ptr %2, align 8
  %rhsv35 = load i64, ptr getelementptr inbounds (i8, ptr @xtea_test_ct, i64 40), align 8
  %.not36 = icmp eq i64 %lhsv34, %rhsv35
  br i1 %.not36, label %40, label %.critedge.sink.split

40:                                               ; preds = %.split.5
  %41 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %.critedge.sink.split

.critedge.sink.split:                             ; preds = %.split.preheader, %.split.1, %.split.2, %.split.3, %.split.4, %.split.5, %40
  %.str.1.sink = phi ptr [ @.str.3, %40 ], [ @.str.1, %.split.5 ], [ @.str.1, %.split.4 ], [ @.str.1, %.split.3 ], [ @.str.1, %.split.2 ], [ @.str.1, %.split.1 ], [ @.str.1, %.split.preheader ]
  %.0.ph = phi i32 [ 0, %40 ], [ 1, %.split.5 ], [ 1, %.split.4 ], [ 1, %.split.3 ], [ 1, %.split.2 ], [ 1, %.split.1 ], [ 1, %.split.preheader ]
  %42 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) %.str.1.sink)
  br label %.critedge

.critedge:                                        ; preds = %.split.us.5, %.critedge.sink.split, %.split.us.preheader, %.split.us.1, %.split.us.2, %.split.us.3, %.split.us.4
  %.0 = phi i32 [ 1, %.split.us.4 ], [ 1, %.split.us.3 ], [ 1, %.split.us.2 ], [ 1, %.split.us.1 ], [ 1, %.split.us.preheader ], [ %spec.select, %.split.us.5 ], [ %.0.ph, %.critedge.sink.split ]
  call void @mbedtls_xtea_free(ptr noundef nonnull %3)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
  ret i32 %.0
}

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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 = { 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 #3 = { 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)"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,SROAPass,SimplifyCFGPass