; LLVM IR from beagleboard/librobotcontrol :: library/src/io (pwm)

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

@stderr = external global ptr, align 8
@mode = external hidden global i32, align 4
@ssindex = external hidden global [3 x i32], align 4
@dutyA_fd = external hidden global [3 x i32], align 4
@dutyB_fd = external hidden global [3 x i32], align 4
@.str.9 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [61 x i8], align 1
@init_flag = external hidden global [3 x i32], align 4
@.str.39 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [56 x i8], align 1

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
declare hidden i32 @__unexport_channels(i32 noundef) #2

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #1

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #4

declare void @perror(ptr noundef) #3

declare i64 @write(i32 noundef, ptr noundef, i64 noundef) #3

declare i32 @close(i32 noundef) #3

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

; Function Attrs: nounwind uwtable
define dso_local i32 @rc_pwm_cleanup(i32 noundef %0) #2 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca [128 x i8], align 16
  %7 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 128, ptr %6) #5
  %8 = load i32, ptr %3, align 4, !tbaa !5
  %9 = icmp slt i32 %8, 0
  br i1 %9, label %13, label %10

10:                                               ; preds = %1
  %11 = load i32, ptr %3, align 4, !tbaa !5
  %12 = icmp sgt i32 %11, 2
  br label %13

13:                                               ; preds = %10, %1
  %14 = phi i1 [ true, %1 ], [ %12, %10 ]
  %15 = xor i1 %14, true
  %16 = xor i1 %15, true
  %17 = zext i1 %16 to i32
  %18 = sext i32 %17 to i64
  %19 = call i64 @llvm.expect.i64(i64 %18, i64 0)
  %20 = icmp ne i64 %19, 0
  br i1 %20, label %21, label %24

21:                                               ; preds = %13
  %22 = load ptr, ptr @stderr, align 8, !tbaa !9
  %23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef @.str.39) #5
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %155

24:                                               ; preds = %13
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [3 x i32], ptr @init_flag, i64 0, i64 %26
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %30, label %31

30:                                               ; preds = %24
  store i32 0, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %155

31:                                               ; preds = %24
  %32 = load i32, ptr @mode, align 4, !tbaa !5
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %39

34:                                               ; preds = %31
  %35 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = mul nsw i32 %36, 2
  %38 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %35, i64 noundef 128, ptr noundef @.str.9, i32 noundef %37) #5
  br label %46

39:                                               ; preds = %31
  %40 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
  %41 = load i32, ptr %3, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [3 x i32], ptr @ssindex, i64 0, i64 %42
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %40, i64 noundef 128, ptr noundef @.str.10, i32 noundef %44) #5
  br label %46

46:                                               ; preds = %39, %34
  %47 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
  %48 = call i32 (ptr, i32, ...) @open(ptr noundef %47, i32 noundef 1)
  store i32 %48, ptr %4, align 4, !tbaa !5
  %49 = load i32, ptr %4, align 4, !tbaa !5
  %50 = icmp eq i32 %49, -1
  %51 = xor i1 %50, true
  %52 = xor i1 %51, true
  %53 = zext i1 %52 to i32
  %54 = sext i32 %53 to i64
  %55 = call i64 @llvm.expect.i64(i64 %54, i64 0)
  %56 = icmp ne i64 %55, 0
  br i1 %56, label %57, label %58

57:                                               ; preds = %46
  call void @perror(ptr noundef @.str.40)
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %155

58:                                               ; preds = %46
  %59 = load i32, ptr @mode, align 4, !tbaa !5
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %61, label %66

61:                                               ; preds = %58
  %62 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
  %63 = load i32, ptr %3, align 4, !tbaa !5
  %64 = mul nsw i32 %63, 2
  %65 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %62, i64 noundef 128, ptr noundef @.str.12, i32 noundef %64) #5
  br label %73

66:                                               ; preds = %58
  %67 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
  %68 = load i32, ptr %3, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [3 x i32], ptr @ssindex, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %67, i64 noundef 128, ptr noundef @.str.13, i32 noundef %71) #5
  br label %73

73:                                               ; preds = %66, %61
  %74 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
  %75 = call i32 (ptr, i32, ...) @open(ptr noundef %74, i32 noundef 1)
  store i32 %75, ptr %5, align 4, !tbaa !5
  %76 = load i32, ptr %5, align 4, !tbaa !5
  %77 = icmp eq i32 %76, -1
  %78 = xor i1 %77, true
  %79 = xor i1 %78, true
  %80 = zext i1 %79 to i32
  %81 = sext i32 %80 to i64
  %82 = call i64 @llvm.expect.i64(i64 %81, i64 0)
  %83 = icmp ne i64 %82, 0
  br i1 %83, label %84, label %85

84:                                               ; preds = %73
  call void @perror(ptr noundef @.str.41)
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %155

85:                                               ; preds = %73
  %86 = load i32, ptr %3, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [3 x i32], ptr @dutyA_fd, i64 0, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = call i64 @write(i32 noundef %89, ptr noundef @.str.33, i64 noundef 2)
  %91 = icmp eq i64 %90, -1
  %92 = xor i1 %91, true
  %93 = xor i1 %92, true
  %94 = zext i1 %93 to i32
  %95 = sext i32 %94 to i64
  %96 = call i64 @llvm.expect.i64(i64 %95, i64 0)
  %97 = icmp ne i64 %96, 0
  br i1 %97, label %98, label %99

98:                                               ; preds = %85
  call void @perror(ptr noundef @.str.34)
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %155

99:                                               ; preds = %85
  %100 = load i32, ptr %3, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [3 x i32], ptr @dutyB_fd, i64 0, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = call i64 @write(i32 noundef %103, ptr noundef @.str.33, i64 noundef 2)
  %105 = icmp eq i64 %104, -1
  %106 = xor i1 %105, true
  %107 = xor i1 %106, true
  %108 = zext i1 %107 to i32
  %109 = sext i32 %108 to i64
  %110 = call i64 @llvm.expect.i64(i64 %109, i64 0)
  %111 = icmp ne i64 %110, 0
  br i1 %111, label %112, label %113

112:                                              ; preds = %99
  call void @perror(ptr noundef @.str.35)
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %155

113:                                              ; preds = %99
  %114 = load i32, ptr %4, align 4, !tbaa !5
  %115 = call i64 @write(i32 noundef %114, ptr noundef @.str.33, i64 noundef 2)
  %116 = icmp eq i64 %115, -1
  %117 = xor i1 %116, true
  %118 = xor i1 %117, true
  %119 = zext i1 %118 to i32
  %120 = sext i32 %119 to i64
  %121 = call i64 @llvm.expect.i64(i64 %120, i64 0)
  %122 = icmp ne i64 %121, 0
  br i1 %122, label %123, label %124

123:                                              ; preds = %113
  call void @perror(ptr noundef @.str.37)
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %155

124:                                              ; preds = %113
  %125 = load i32, ptr %5, align 4, !tbaa !5
  %126 = call i64 @write(i32 noundef %125, ptr noundef @.str.33, i64 noundef 2)
  %127 = icmp eq i64 %126, -1
  %128 = xor i1 %127, true
  %129 = xor i1 %128, true
  %130 = zext i1 %129 to i32
  %131 = sext i32 %130 to i64
  %132 = call i64 @llvm.expect.i64(i64 %131, i64 0)
  %133 = icmp ne i64 %132, 0
  br i1 %133, label %134, label %135

134:                                              ; preds = %124
  call void @perror(ptr noundef @.str.37)
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %155

135:                                              ; preds = %124
  %136 = load i32, ptr %4, align 4, !tbaa !5
  %137 = call i32 @close(i32 noundef %136)
  %138 = load i32, ptr %5, align 4, !tbaa !5
  %139 = call i32 @close(i32 noundef %138)
  %140 = load i32, ptr %3, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [3 x i32], ptr @dutyA_fd, i64 0, i64 %141
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = call i32 @close(i32 noundef %143)
  %145 = load i32, ptr %3, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [3 x i32], ptr @dutyB_fd, i64 0, i64 %146
  %148 = load i32, ptr %147, align 4, !tbaa !5
  %149 = call i32 @close(i32 noundef %148)
  %150 = load i32, ptr %3, align 4, !tbaa !5
  %151 = call i32 @__unexport_channels(i32 noundef %150)
  %152 = load i32, ptr %3, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [3 x i32], ptr @init_flag, i64 0, i64 %153
  store i32 0, ptr %154, align 4, !tbaa !5
  store i32 0, ptr %2, align 4
  store i32 1, ptr %7, align 4
  br label %155

155:                                              ; preds = %135, %134, %123, %112, %98, %84, %57, %30, %21
  call void @llvm.lifetime.end.p0(i64 128, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  %156 = load i32, ptr %2, align 4
  ret i32 %156
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(none) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}


; 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
@mode = external hidden local_unnamed_addr global i32, align 4
@ssindex = external hidden local_unnamed_addr global [3 x i32], align 4
@dutyA_fd = external hidden local_unnamed_addr global [3 x i32], align 4
@dutyB_fd = external hidden local_unnamed_addr global [3 x i32], align 4
@.str.9 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [61 x i8], align 1
@init_flag = external hidden local_unnamed_addr global [3 x i32], align 4
@.str.39 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [56 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @__unexport_channels(i32 noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: nofree
declare noundef i32 @open(ptr nocapture noundef readonly, i32 noundef, ...) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare void @perror(ptr nocapture noundef readonly) local_unnamed_addr #1

; Function Attrs: nofree
declare noundef i64 @write(i32 noundef, ptr nocapture noundef readonly, i64 noundef) local_unnamed_addr #3

declare i32 @close(i32 noundef) local_unnamed_addr #4

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @rc_pwm_cleanup(i32 noundef %0) local_unnamed_addr #2 {
  %2 = alloca [128 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %2) #5
  %3 = icmp ugt i32 %0, 2
  br i1 %3, label %4, label %7, !prof !5

4:                                                ; preds = %1
  %5 = load ptr, ptr @stderr, align 8, !tbaa !6
  %6 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.39) #6
  br label %68

7:                                                ; preds = %1
  %8 = zext nneg i32 %0 to i64
  %9 = getelementptr inbounds [3 x i32], ptr @init_flag, i64 0, i64 %8
  %10 = load i32, ptr %9, align 4, !tbaa !10
  %11 = icmp eq i32 %10, 0
  br i1 %11, label %68, label %12

12:                                               ; preds = %7
  %13 = load i32, ptr @mode, align 4, !tbaa !10
  %14 = icmp eq i32 %13, 0
  br i1 %14, label %15, label %18

15:                                               ; preds = %12
  %16 = shl nuw nsw i32 %0, 1
  %17 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 128, ptr noundef nonnull @.str.9, i32 noundef %16) #5
  br label %22

18:                                               ; preds = %12
  %19 = getelementptr inbounds [3 x i32], ptr @ssindex, i64 0, i64 %8
  %20 = load i32, ptr %19, align 4, !tbaa !10
  %21 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 128, ptr noundef nonnull @.str.10, i32 noundef %20) #5
  br label %22

22:                                               ; preds = %18, %15
  %23 = call i32 (ptr, i32, ...) @open(ptr noundef nonnull %2, i32 noundef 1) #5
  %24 = icmp eq i32 %23, -1
  br i1 %24, label %25, label %26, !prof !5

25:                                               ; preds = %22
  tail call void @perror(ptr noundef nonnull @.str.40) #7
  br label %68

26:                                               ; preds = %22
  %27 = load i32, ptr @mode, align 4, !tbaa !10
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %32

29:                                               ; preds = %26
  %30 = shl nuw nsw i32 %0, 1
  %31 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 128, ptr noundef nonnull @.str.12, i32 noundef %30) #5
  br label %36

32:                                               ; preds = %26
  %33 = getelementptr inbounds [3 x i32], ptr @ssindex, i64 0, i64 %8
  %34 = load i32, ptr %33, align 4, !tbaa !10
  %35 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %2, i64 noundef 128, ptr noundef nonnull @.str.13, i32 noundef %34) #5
  br label %36

36:                                               ; preds = %32, %29
  %37 = call i32 (ptr, i32, ...) @open(ptr noundef nonnull %2, i32 noundef 1) #5
  %38 = icmp eq i32 %37, -1
  br i1 %38, label %39, label %40, !prof !5

39:                                               ; preds = %36
  tail call void @perror(ptr noundef nonnull @.str.41) #7
  br label %68

40:                                               ; preds = %36
  %41 = getelementptr inbounds [3 x i32], ptr @dutyA_fd, i64 0, i64 %8
  %42 = load i32, ptr %41, align 4, !tbaa !10
  %43 = tail call i64 @write(i32 noundef %42, ptr noundef nonnull @.str.33, i64 noundef 2) #5
  %44 = icmp eq i64 %43, -1
  br i1 %44, label %45, label %46, !prof !5

45:                                               ; preds = %40
  tail call void @perror(ptr noundef nonnull @.str.34) #7
  br label %68

46:                                               ; preds = %40
  %47 = getelementptr inbounds [3 x i32], ptr @dutyB_fd, i64 0, i64 %8
  %48 = load i32, ptr %47, align 4, !tbaa !10
  %49 = tail call i64 @write(i32 noundef %48, ptr noundef nonnull @.str.33, i64 noundef 2) #5
  %50 = icmp eq i64 %49, -1
  br i1 %50, label %51, label %52, !prof !5

51:                                               ; preds = %46
  tail call void @perror(ptr noundef nonnull @.str.35) #7
  br label %68

52:                                               ; preds = %46
  %53 = tail call i64 @write(i32 noundef %23, ptr noundef nonnull @.str.33, i64 noundef 2) #5
  %54 = icmp eq i64 %53, -1
  br i1 %54, label %55, label %56, !prof !5

55:                                               ; preds = %52
  tail call void @perror(ptr noundef nonnull @.str.37) #7
  br label %68

56:                                               ; preds = %52
  %57 = tail call i64 @write(i32 noundef %37, ptr noundef nonnull @.str.33, i64 noundef 2) #5
  %58 = icmp eq i64 %57, -1
  br i1 %58, label %59, label %60, !prof !5

59:                                               ; preds = %56
  tail call void @perror(ptr noundef nonnull @.str.37) #7
  br label %68

60:                                               ; preds = %56
  %61 = tail call i32 @close(i32 noundef %23) #5
  %62 = tail call i32 @close(i32 noundef %37) #5
  %63 = load i32, ptr %41, align 4, !tbaa !10
  %64 = tail call i32 @close(i32 noundef %63) #5
  %65 = load i32, ptr %47, align 4, !tbaa !10
  %66 = tail call i32 @close(i32 noundef %65) #5
  %67 = tail call i32 @__unexport_channels(i32 noundef %0)
  store i32 0, ptr %9, align 4, !tbaa !10
  br label %68

68:                                               ; preds = %7, %60, %59, %55, %51, %45, %39, %25, %4
  %.0 = phi i32 [ -1, %4 ], [ -1, %25 ], [ -1, %39 ], [ -1, %45 ], [ -1, %51 ], [ -1, %55 ], [ -1, %59 ], [ 0, %60 ], [ 0, %7 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %2) #5
  ret i32 %.0
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nofree "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 = { "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 = { cold nounwind }
attributes #7 = { cold }

!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 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}


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