; LLVM IR from specinfo-ua/UAPKI :: library/uapki/src (crl-item)

; 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.UapkiNS::Crl::RevokedCertOffset" = type { i64, i64 }

declare void @asn_free(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

declare noundef i32 @_ZN7UapkiNS4Util16decodeAsn1HeaderEPKhmRjRmS4_(ptr noundef, i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #0

declare ptr @asn_decode_with_alloc(ptr noundef, ptr noundef, i64 noundef) #0

declare ptr @get_RevokedCertificate_desc() #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS3Crl17parseRevokedCertsERSt6vectorINS0_17RevokedCertOffsetESaIS2_EEPKhi(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, i32 noundef %2) #2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca %"struct.UapkiNS::Crl::RevokedCertOffset", align 8
  %20 = alloca %"struct.UapkiNS::Crl::RevokedCertOffset", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNSt6vectorIN7UapkiNS3Crl17RevokedCertOffsetESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #4
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %27

24:                                               ; preds = %3
  %25 = load i32, ptr %7, align 4, !tbaa !9
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %27, label %28

27:                                               ; preds = %24, %3
  store i32 0, ptr %4, align 4
  br label %144

28:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = load i32, ptr %7, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = call noundef i32 @_ZN7UapkiNS4Util16decodeAsn1HeaderEPKhmRjRmS4_(ptr noundef %29, i64 noundef %31, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %33 = icmp ne i32 %32, 0
  %34 = zext i1 %33 to i8
  store i8 %34, ptr %12, align 1, !tbaa !11
  %35 = load i8, ptr %12, align 1, !tbaa !11, !range !13, !noundef !14
  %36 = trunc i8 %35 to i1
  br i1 %36, label %37, label %47

37:                                               ; preds = %28
  %38 = load i32, ptr %8, align 4, !tbaa !9
  %39 = icmp ne i32 %38, 48
  br i1 %39, label %47, label %40

40:                                               ; preds = %37
  %41 = load i64, ptr %9, align 8, !tbaa !15
  %42 = load i64, ptr %10, align 8, !tbaa !15
  %43 = add i64 %41, %42
  %44 = load i32, ptr %7, align 4, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = icmp ugt i64 %43, %45
  br i1 %46, label %47, label %48

47:                                               ; preds = %40, %37, %28
  store i32 4145, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %143

48:                                               ; preds = %40
  %49 = load i64, ptr %10, align 8, !tbaa !15
  %50 = icmp eq i64 %49, 0
  br i1 %50, label %51, label %52

51:                                               ; preds = %48
  store i32 0, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %143

52:                                               ; preds = %48
  %53 = load i64, ptr %9, align 8, !tbaa !15
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 %53
  store ptr %55, ptr %6, align 8, !tbaa !5
  %56 = load i64, ptr %9, align 8, !tbaa !15
  store i64 %56, ptr %11, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = load i64, ptr %10, align 8, !tbaa !15
  %59 = call noundef i32 @_ZN7UapkiNS4Util16decodeAsn1HeaderEPKhmRjRmS4_(ptr noundef %57, i64 noundef %58, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %60 = icmp ne i32 %59, 0
  %61 = zext i1 %60 to i8
  store i8 %61, ptr %12, align 1, !tbaa !11
  %62 = load i8, ptr %12, align 1, !tbaa !11, !range !13, !noundef !14
  %63 = trunc i8 %62 to i1
  br i1 %63, label %64, label %70

64:                                               ; preds = %52
  %65 = load i32, ptr %8, align 4, !tbaa !9
  %66 = icmp ne i32 %65, 48
  br i1 %66, label %70, label %67

67:                                               ; preds = %64
  %68 = load i64, ptr %15, align 8, !tbaa !15
  %69 = icmp ult i64 %68, 4
  br i1 %69, label %70, label %71

70:                                               ; preds = %67, %64, %52
  store i32 4145, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %142

71:                                               ; preds = %67
  %72 = load i64, ptr %14, align 8, !tbaa !15
  %73 = load i64, ptr %15, align 8, !tbaa !15
  %74 = add i64 %72, %73
  store i64 %74, ptr %16, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %75 = call ptr @get_RevokedCertificate_desc()
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = load i64, ptr %16, align 8, !tbaa !15
  %78 = call ptr @asn_decode_with_alloc(ptr noundef %75, ptr noundef %76, i64 noundef %77)
  store ptr %78, ptr %17, align 8, !tbaa !5
  %79 = load ptr, ptr %17, align 8, !tbaa !5
  %80 = icmp ne ptr %79, null
  br i1 %80, label %82, label %81

81:                                               ; preds = %71
  store i32 4145, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %141

82:                                               ; preds = %71
  %83 = call ptr @get_RevokedCertificate_desc()
  %84 = load ptr, ptr %17, align 8, !tbaa !5
  call void @asn_free(ptr noundef %83, ptr noundef %84)
  store ptr null, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %85 = load i32, ptr %7, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = load i64, ptr %16, align 8, !tbaa !15
  %88 = udiv i64 %86, %87
  %89 = add i64 %88, 1
  store i64 %89, ptr %18, align 8, !tbaa !15
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = load i64, ptr %18, align 8, !tbaa !15
  call void @_ZNSt6vectorIN7UapkiNS3Crl17RevokedCertOffsetESaIS2_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %91)
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #4
  %93 = load i64, ptr %11, align 8, !tbaa !15
  %94 = load i64, ptr %11, align 8, !tbaa !15
  %95 = load i64, ptr %14, align 8, !tbaa !15
  %96 = add i64 %94, %95
  call void @_ZN7UapkiNS3Crl17RevokedCertOffsetC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %19, i64 noundef %93, i64 noundef %96)
  call void @_ZNSt6vectorIN7UapkiNS3Crl17RevokedCertOffsetESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %92, ptr noundef nonnull align 8 dereferenceable(16) %19)
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  %97 = load i64, ptr %16, align 8, !tbaa !15
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = getelementptr inbounds i8, ptr %98, i64 %97
  store ptr %99, ptr %6, align 8, !tbaa !5
  %100 = load i64, ptr %16, align 8, !tbaa !15
  %101 = load i64, ptr %11, align 8, !tbaa !15
  %102 = add i64 %101, %100
  store i64 %102, ptr %11, align 8, !tbaa !15
  %103 = load i64, ptr %16, align 8, !tbaa !15
  %104 = load i64, ptr %10, align 8, !tbaa !15
  %105 = sub i64 %104, %103
  store i64 %105, ptr %10, align 8, !tbaa !15
  br label %106

106:                                              ; preds = %124, %82
  %107 = load i64, ptr %10, align 8, !tbaa !15
  %108 = icmp ugt i64 %107, 2
  br i1 %108, label %109, label %139

109:                                              ; preds = %106
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = load i64, ptr %10, align 8, !tbaa !15
  %112 = call noundef i32 @_ZN7UapkiNS4Util16decodeAsn1HeaderEPKhmRjRmS4_(ptr noundef %110, i64 noundef %111, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %113 = icmp ne i32 %112, 0
  %114 = zext i1 %113 to i8
  store i8 %114, ptr %12, align 1, !tbaa !11
  %115 = load i8, ptr %12, align 1, !tbaa !11, !range !13, !noundef !14
  %116 = trunc i8 %115 to i1
  br i1 %116, label %117, label %123

117:                                              ; preds = %109
  %118 = load i32, ptr %8, align 4, !tbaa !9
  %119 = icmp ne i32 %118, 48
  br i1 %119, label %123, label %120

120:                                              ; preds = %117
  %121 = load i64, ptr %15, align 8, !tbaa !15
  %122 = icmp ult i64 %121, 4
  br i1 %122, label %123, label %124

123:                                              ; preds = %120, %117, %109
  store i32 4145, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %140

124:                                              ; preds = %120
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #4
  %126 = load i64, ptr %11, align 8, !tbaa !15
  %127 = load i64, ptr %11, align 8, !tbaa !15
  %128 = load i64, ptr %14, align 8, !tbaa !15
  %129 = add i64 %127, %128
  call void @_ZN7UapkiNS3Crl17RevokedCertOffsetC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %20, i64 noundef %126, i64 noundef %129)
  call void @_ZNSt6vectorIN7UapkiNS3Crl17RevokedCertOffsetESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %125, ptr noundef nonnull align 8 dereferenceable(16) %20)
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  %130 = load i64, ptr %16, align 8, !tbaa !15
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = getelementptr inbounds i8, ptr %131, i64 %130
  store ptr %132, ptr %6, align 8, !tbaa !5
  %133 = load i64, ptr %16, align 8, !tbaa !15
  %134 = load i64, ptr %11, align 8, !tbaa !15
  %135 = add i64 %134, %133
  store i64 %135, ptr %11, align 8, !tbaa !15
  %136 = load i64, ptr %16, align 8, !tbaa !15
  %137 = load i64, ptr %10, align 8, !tbaa !15
  %138 = sub i64 %137, %136
  store i64 %138, ptr %10, align 8, !tbaa !15
  br label %106, !llvm.loop !17

139:                                              ; preds = %106
  store i32 0, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %140

140:                                              ; preds = %139, %123
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %141

141:                                              ; preds = %140, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %142

142:                                              ; preds = %141, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %143

143:                                              ; preds = %142, %51, %47
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %144

144:                                              ; preds = %143, %27
  %145 = load i32, ptr %4, align 4
  ret i32 %145
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN7UapkiNS3Crl17RevokedCertOffsetESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN7UapkiNS3Crl17RevokedCertOffsetESaIS2_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN7UapkiNS3Crl17RevokedCertOffsetESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7UapkiNS3Crl17RevokedCertOffsetC2Emm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) unnamed_addr #3 align 2

attributes #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 = { mustprogress 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 = { mustprogress 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"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.UapkiNS::Crl::RevokedCertOffset" = type { i64, i64 }

declare void @asn_free(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

declare noundef i32 @_ZN7UapkiNS4Util16decodeAsn1HeaderEPKhmRjRmS4_(ptr noundef, i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

declare ptr @asn_decode_with_alloc(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #0

declare ptr @get_RevokedCertificate_desc() local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 4146) i32 @_ZN7UapkiNS3Crl17parseRevokedCertsERSt6vectorINS0_17RevokedCertOffsetESaIS2_EEPKhi(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca %"struct.UapkiNS::Crl::RevokedCertOffset", align 8
  %10 = alloca %"struct.UapkiNS::Crl::RevokedCertOffset", align 8
  tail call void @_ZNSt6vectorIN7UapkiNS3Crl17RevokedCertOffsetESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #4
  %11 = icmp eq ptr %1, null
  %12 = icmp eq i32 %2, 0
  %or.cond = or i1 %11, %12
  br i1 %or.cond, label %54, label %13

13:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %14 = sext i32 %2 to i64
  %15 = call noundef i32 @_ZN7UapkiNS4Util16decodeAsn1HeaderEPKhmRjRmS4_(ptr noundef nonnull %1, i64 noundef %14, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %.not57 = icmp eq i32 %15, 0
  %16 = load i32, ptr %4, align 4
  %17 = icmp ne i32 %16, 48
  %or.cond3 = select i1 %.not57, i1 true, i1 %17
  br i1 %or.cond3, label %53, label %18

18:                                               ; preds = %13
  %19 = load i64, ptr %5, align 8, !tbaa !5
  %20 = load i64, ptr %6, align 8, !tbaa !5
  %21 = add i64 %20, %19
  %22 = icmp ugt i64 %21, %14
  br i1 %22, label %53, label %23

23:                                               ; preds = %18
  %24 = icmp eq i64 %20, 0
  br i1 %24, label %53, label %25

25:                                               ; preds = %23
  %26 = getelementptr inbounds i8, ptr %1, i64 %19
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %27 = call noundef i32 @_ZN7UapkiNS4Util16decodeAsn1HeaderEPKhmRjRmS4_(ptr noundef %26, i64 noundef %20, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %.not = icmp eq i32 %27, 0
  %28 = load i32, ptr %4, align 4
  %29 = icmp ne i32 %28, 48
  %or.cond6 = select i1 %.not, i1 true, i1 %29
  %30 = load i64, ptr %8, align 8
  %31 = icmp ult i64 %30, 4
  %or.cond8 = select i1 %or.cond6, i1 true, i1 %31
  br i1 %or.cond8, label %.loopexit, label %32

32:                                               ; preds = %25
  %33 = load i64, ptr %7, align 8, !tbaa !5
  %34 = add i64 %33, %30
  %35 = call ptr @get_RevokedCertificate_desc()
  %36 = call ptr @asn_decode_with_alloc(ptr noundef %35, ptr noundef %26, i64 noundef %34)
  %.not58 = icmp eq ptr %36, null
  br i1 %.not58, label %.loopexit, label %37

37:                                               ; preds = %32
  %38 = call ptr @get_RevokedCertificate_desc()
  call void @asn_free(ptr noundef %38, ptr noundef nonnull %36)
  %39 = udiv i64 %14, %34
  %40 = add i64 %39, 1
  call void @_ZNSt6vectorIN7UapkiNS3Crl17RevokedCertOffsetESaIS2_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %40)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #4
  %41 = load i64, ptr %7, align 8, !tbaa !5
  %42 = add i64 %41, %19
  call void @_ZN7UapkiNS3Crl17RevokedCertOffsetC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %9, i64 noundef %19, i64 noundef %42)
  call void @_ZNSt6vectorIN7UapkiNS3Crl17RevokedCertOffsetESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %9)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  %.pn64 = load i64, ptr %6, align 8, !tbaa !5
  %storemerge65 = sub i64 %.pn64, %34
  store i64 %storemerge65, ptr %6, align 8, !tbaa !5
  %43 = icmp ugt i64 %storemerge65, 2
  br i1 %43, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %37, %49
  %storemerge68 = phi i64 [ %storemerge, %49 ], [ %storemerge65, %37 ]
  %.05067.pn = phi i64 [ %.05067, %49 ], [ %19, %37 ]
  %.04966.pn = phi ptr [ %.04966, %49 ], [ %26, %37 ]
  %.04966 = getelementptr inbounds i8, ptr %.04966.pn, i64 %34
  %44 = call noundef i32 @_ZN7UapkiNS4Util16decodeAsn1HeaderEPKhmRjRmS4_(ptr noundef nonnull %.04966, i64 noundef %storemerge68, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %.not61 = icmp eq i32 %44, 0
  %45 = load i32, ptr %4, align 4
  %46 = icmp ne i32 %45, 48
  %or.cond11 = select i1 %.not61, i1 true, i1 %46
  %47 = load i64, ptr %8, align 8
  %48 = icmp ult i64 %47, 4
  %or.cond13 = select i1 %or.cond11, i1 true, i1 %48
  br i1 %or.cond13, label %.loopexit, label %49

49:                                               ; preds = %.lr.ph
  %.05067 = add i64 %.05067.pn, %34
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #4
  %50 = load i64, ptr %7, align 8, !tbaa !5
  %51 = add i64 %50, %.05067
  call void @_ZN7UapkiNS3Crl17RevokedCertOffsetC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %10, i64 noundef %.05067, i64 noundef %51)
  call void @_ZNSt6vectorIN7UapkiNS3Crl17RevokedCertOffsetESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %10)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  %.pn = load i64, ptr %6, align 8, !tbaa !5
  %storemerge = sub i64 %.pn, %34
  store i64 %storemerge, ptr %6, align 8, !tbaa !5
  %52 = icmp ugt i64 %storemerge, 2
  br i1 %52, label %.lr.ph, label %.loopexit, !llvm.loop !9

.loopexit:                                        ; preds = %.lr.ph, %49, %37, %32, %25
  %.2 = phi i32 [ 4145, %25 ], [ 4145, %32 ], [ 0, %37 ], [ 4145, %.lr.ph ], [ 0, %49 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br label %53

53:                                               ; preds = %23, %13, %18, %.loopexit
  %.3 = phi i32 [ %.2, %.loopexit ], [ 4145, %18 ], [ 4145, %13 ], [ 0, %23 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  br label %54

54:                                               ; preds = %3, %53
  %.4 = phi i32 [ %.3, %53 ], [ 0, %3 ]
  ret i32 %.4
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN7UapkiNS3Crl17RevokedCertOffsetESaIS2_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN7UapkiNS3Crl17RevokedCertOffsetESaIS2_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN7UapkiNS3Crl17RevokedCertOffsetESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7UapkiNS3Crl17RevokedCertOffsetC2Emm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) unnamed_addr #3 align 2

attributes #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 = { mustprogress 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 = { mustprogress 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass