; LLVM IR from specinfo-ua/UAPKI :: library/cm-pkcs12/src/storage/file-storage.ll (ZN11FileStorage12checkHashOidEPKcS1_)

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

@_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES = external hidden global [22 x ptr], align 16
@_ZGVZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES = external hidden global i64, align 8
@OID_GOST34311 = external global ptr, align 8
@OID_HMAC_GOST34311 = external global ptr, align 8
@OID_DSTU7564_256 = external global ptr, align 8
@OID_DSTU7564_384 = external global ptr, align 8
@OID_DSTU7564_512 = external global ptr, align 8
@OID_DSTU7564_256_MAC = external global ptr, align 8
@OID_DSTU7564_384_MAC = external global ptr, align 8
@OID_DSTU7564_512_MAC = external global ptr, align 8
@OID_SHA1 = external global ptr, align 8
@OID_SHA256 = external global ptr, align 8
@OID_SHA384 = external global ptr, align 8
@OID_SHA512 = external global ptr, align 8
@OID_HMAC_SHA1 = external global ptr, align 8
@OID_HMAC_SHA256 = external global ptr, align 8
@OID_HMAC_SHA384 = external global ptr, align 8
@OID_HMAC_SHA512 = external global ptr, align 8
@OID_SHA3_256 = external global ptr, align 8
@OID_SHA3_384 = external global ptr, align 8
@OID_SHA3_512 = external global ptr, align 8
@OID_HMAC_SHA3_256 = external global ptr, align 8
@OID_HMAC_SHA3_384 = external global ptr, align 8
@OID_HMAC_SHA3_512 = external global ptr, align 8

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

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

declare zeroext i1 @oid_is_equal(ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN11FileStorage12checkHashOidEPKcS1_(ptr noundef %0, ptr noundef %1) #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %8 = load atomic i8, ptr @_ZGVZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES acquire, align 8
  %9 = icmp eq i8 %8, 0
  br i1 %9, label %10, label %36, !prof !9

10:                                               ; preds = %2
  %11 = call i32 @__cxa_guard_acquire(ptr @_ZGVZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES) #3
  %12 = icmp ne i32 %11, 0
  br i1 %12, label %13, label %36

13:                                               ; preds = %10
  %14 = load ptr, ptr @OID_GOST34311, align 8, !tbaa !5
  store ptr %14, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, align 8, !tbaa !5
  %15 = load ptr, ptr @OID_HMAC_GOST34311, align 8, !tbaa !5
  store ptr %15, ptr getelementptr inbounds (ptr, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 1), align 8, !tbaa !5
  %16 = load ptr, ptr @OID_DSTU7564_256, align 8, !tbaa !5
  store ptr %16, ptr getelementptr inbounds (ptr, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 2), align 8, !tbaa !5
  %17 = load ptr, ptr @OID_DSTU7564_384, align 8, !tbaa !5
  store ptr %17, ptr getelementptr inbounds (ptr, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 3), align 8, !tbaa !5
  %18 = load ptr, ptr @OID_DSTU7564_512, align 8, !tbaa !5
  store ptr %18, ptr getelementptr inbounds (ptr, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 4), align 8, !tbaa !5
  %19 = load ptr, ptr @OID_DSTU7564_256_MAC, align 8, !tbaa !5
  store ptr %19, ptr getelementptr inbounds (ptr, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 5), align 8, !tbaa !5
  %20 = load ptr, ptr @OID_DSTU7564_384_MAC, align 8, !tbaa !5
  store ptr %20, ptr getelementptr inbounds (ptr, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 6), align 8, !tbaa !5
  %21 = load ptr, ptr @OID_DSTU7564_512_MAC, align 8, !tbaa !5
  store ptr %21, ptr getelementptr inbounds (ptr, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 7), align 8, !tbaa !5
  %22 = load ptr, ptr @OID_SHA1, align 8, !tbaa !5
  store ptr %22, ptr getelementptr inbounds (ptr, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 8), align 8, !tbaa !5
  %23 = load ptr, ptr @OID_SHA256, align 8, !tbaa !5
  store ptr %23, ptr getelementptr inbounds (ptr, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 9), align 8, !tbaa !5
  %24 = load ptr, ptr @OID_SHA384, align 8, !tbaa !5
  store ptr %24, ptr getelementptr inbounds (ptr, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 10), align 8, !tbaa !5
  %25 = load ptr, ptr @OID_SHA512, align 8, !tbaa !5
  store ptr %25, ptr getelementptr inbounds (ptr, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 11), align 8, !tbaa !5
  %26 = load ptr, ptr @OID_HMAC_SHA1, align 8, !tbaa !5
  store ptr %26, ptr getelementptr inbounds (ptr, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 12), align 8, !tbaa !5
  %27 = load ptr, ptr @OID_HMAC_SHA256, align 8, !tbaa !5
  store ptr %27, ptr getelementptr inbounds (ptr, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 13), align 8, !tbaa !5
  %28 = load ptr, ptr @OID_HMAC_SHA384, align 8, !tbaa !5
  store ptr %28, ptr getelementptr inbounds (ptr, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 14), align 8, !tbaa !5
  %29 = load ptr, ptr @OID_HMAC_SHA512, align 8, !tbaa !5
  store ptr %29, ptr getelementptr inbounds (ptr, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 15), align 8, !tbaa !5
  %30 = load ptr, ptr @OID_SHA3_256, align 8, !tbaa !5
  store ptr %30, ptr getelementptr inbounds (ptr, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 16), align 8, !tbaa !5
  %31 = load ptr, ptr @OID_SHA3_384, align 8, !tbaa !5
  store ptr %31, ptr getelementptr inbounds (ptr, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 17), align 8, !tbaa !5
  %32 = load ptr, ptr @OID_SHA3_512, align 8, !tbaa !5
  store ptr %32, ptr getelementptr inbounds (ptr, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 18), align 8, !tbaa !5
  %33 = load ptr, ptr @OID_HMAC_SHA3_256, align 8, !tbaa !5
  store ptr %33, ptr getelementptr inbounds (ptr, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 19), align 8, !tbaa !5
  %34 = load ptr, ptr @OID_HMAC_SHA3_384, align 8, !tbaa !5
  store ptr %34, ptr getelementptr inbounds (ptr, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 20), align 8, !tbaa !5
  %35 = load ptr, ptr @OID_HMAC_SHA3_512, align 8, !tbaa !5
  store ptr %35, ptr getelementptr inbounds (ptr, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 21), align 8, !tbaa !5
  call void @__cxa_guard_release(ptr @_ZGVZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES) #3
  br label %36

36:                                               ; preds = %13, %10, %2
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = icmp ne ptr %37, null
  br i1 %38, label %39, label %61

39:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  store i64 0, ptr %6, align 8, !tbaa !10
  br label %40

40:                                               ; preds = %55, %39
  %41 = load i64, ptr %6, align 8, !tbaa !10
  %42 = icmp ult i64 %41, 22
  br i1 %42, label %44, label %43

43:                                               ; preds = %40
  store i32 2, ptr %7, align 4
  br label %58

44:                                               ; preds = %40
  %45 = load i64, ptr %6, align 8, !tbaa !10
  %46 = getelementptr inbounds [22 x ptr], ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 0, i64 %45
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = call zeroext i1 @oid_is_equal(ptr noundef %47, ptr noundef %48)
  br i1 %49, label %50, label %54

50:                                               ; preds = %44
  %51 = load i64, ptr %6, align 8, !tbaa !10
  %52 = getelementptr inbounds [22 x ptr], ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 0, i64 %51
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  store ptr %53, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %58

54:                                               ; preds = %44
  br label %55

55:                                               ; preds = %54
  %56 = load i64, ptr %6, align 8, !tbaa !10
  %57 = add i64 %56, 1
  store i64 %57, ptr %6, align 8, !tbaa !10
  br label %40, !llvm.loop !12

58:                                               ; preds = %50, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  %59 = load i32, ptr %7, align 4
  switch i32 %59, label %65 [
    i32 2, label %60
    i32 1, label %63
  ]

60:                                               ; preds = %58
  br label %61

61:                                               ; preds = %60, %36
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %62, ptr %3, align 8
  br label %63

63:                                               ; preds = %61, %58
  %64 = load ptr, ptr %3, align 8
  ret ptr %64

65:                                               ; preds = %58
  unreachable
}

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #3

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 = { 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 = !{!"branch_weights", i32 1, i32 1048575}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"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"

@_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES = external hidden local_unnamed_addr global [22 x ptr], align 16
@_ZGVZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES = external hidden global i64, align 8
@OID_GOST34311 = external local_unnamed_addr global ptr, align 8
@OID_HMAC_GOST34311 = external local_unnamed_addr global ptr, align 8
@OID_DSTU7564_256 = external local_unnamed_addr global ptr, align 8
@OID_DSTU7564_384 = external local_unnamed_addr global ptr, align 8
@OID_DSTU7564_512 = external local_unnamed_addr global ptr, align 8
@OID_DSTU7564_256_MAC = external local_unnamed_addr global ptr, align 8
@OID_DSTU7564_384_MAC = external local_unnamed_addr global ptr, align 8
@OID_DSTU7564_512_MAC = external local_unnamed_addr global ptr, align 8
@OID_SHA1 = external local_unnamed_addr global ptr, align 8
@OID_SHA256 = external local_unnamed_addr global ptr, align 8
@OID_SHA384 = external local_unnamed_addr global ptr, align 8
@OID_SHA512 = external local_unnamed_addr global ptr, align 8
@OID_HMAC_SHA1 = external local_unnamed_addr global ptr, align 8
@OID_HMAC_SHA256 = external local_unnamed_addr global ptr, align 8
@OID_HMAC_SHA384 = external local_unnamed_addr global ptr, align 8
@OID_HMAC_SHA512 = external local_unnamed_addr global ptr, align 8
@OID_SHA3_256 = external local_unnamed_addr global ptr, align 8
@OID_SHA3_384 = external local_unnamed_addr global ptr, align 8
@OID_SHA3_512 = external local_unnamed_addr global ptr, align 8
@OID_HMAC_SHA3_256 = external local_unnamed_addr global ptr, align 8
@OID_HMAC_SHA3_384 = external local_unnamed_addr global ptr, align 8
@OID_HMAC_SHA3_512 = external local_unnamed_addr global ptr, align 8

declare zeroext i1 @oid_is_equal(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN11FileStorage12checkHashOidEPKcS1_(ptr noundef %0, ptr noundef readnone %1) local_unnamed_addr #1 align 2 {
  %3 = load atomic i8, ptr @_ZGVZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES acquire, align 8
  %4 = icmp eq i8 %3, 0
  br i1 %4, label %5, label %30, !prof !5

5:                                                ; preds = %2
  %6 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES) #3
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %30, label %7

7:                                                ; preds = %5
  %8 = load ptr, ptr @OID_GOST34311, align 8, !tbaa !6
  store ptr %8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, align 16, !tbaa !6
  %9 = load ptr, ptr @OID_HMAC_GOST34311, align 8, !tbaa !6
  store ptr %9, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 8), align 8, !tbaa !6
  %10 = load ptr, ptr @OID_DSTU7564_256, align 8, !tbaa !6
  store ptr %10, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 16), align 16, !tbaa !6
  %11 = load ptr, ptr @OID_DSTU7564_384, align 8, !tbaa !6
  store ptr %11, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 24), align 8, !tbaa !6
  %12 = load ptr, ptr @OID_DSTU7564_512, align 8, !tbaa !6
  store ptr %12, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 32), align 16, !tbaa !6
  %13 = load ptr, ptr @OID_DSTU7564_256_MAC, align 8, !tbaa !6
  store ptr %13, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 40), align 8, !tbaa !6
  %14 = load ptr, ptr @OID_DSTU7564_384_MAC, align 8, !tbaa !6
  store ptr %14, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 48), align 16, !tbaa !6
  %15 = load ptr, ptr @OID_DSTU7564_512_MAC, align 8, !tbaa !6
  store ptr %15, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 56), align 8, !tbaa !6
  %16 = load ptr, ptr @OID_SHA1, align 8, !tbaa !6
  store ptr %16, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 64), align 16, !tbaa !6
  %17 = load ptr, ptr @OID_SHA256, align 8, !tbaa !6
  store ptr %17, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 72), align 8, !tbaa !6
  %18 = load ptr, ptr @OID_SHA384, align 8, !tbaa !6
  store ptr %18, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 80), align 16, !tbaa !6
  %19 = load ptr, ptr @OID_SHA512, align 8, !tbaa !6
  store ptr %19, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 88), align 8, !tbaa !6
  %20 = load ptr, ptr @OID_HMAC_SHA1, align 8, !tbaa !6
  store ptr %20, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 96), align 16, !tbaa !6
  %21 = load ptr, ptr @OID_HMAC_SHA256, align 8, !tbaa !6
  store ptr %21, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 104), align 8, !tbaa !6
  %22 = load ptr, ptr @OID_HMAC_SHA384, align 8, !tbaa !6
  store ptr %22, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 112), align 16, !tbaa !6
  %23 = load ptr, ptr @OID_HMAC_SHA512, align 8, !tbaa !6
  store ptr %23, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 120), align 8, !tbaa !6
  %24 = load ptr, ptr @OID_SHA3_256, align 8, !tbaa !6
  store ptr %24, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 128), align 16, !tbaa !6
  %25 = load ptr, ptr @OID_SHA3_384, align 8, !tbaa !6
  store ptr %25, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 136), align 8, !tbaa !6
  %26 = load ptr, ptr @OID_SHA3_512, align 8, !tbaa !6
  store ptr %26, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 144), align 16, !tbaa !6
  %27 = load ptr, ptr @OID_HMAC_SHA3_256, align 8, !tbaa !6
  store ptr %27, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 152), align 8, !tbaa !6
  %28 = load ptr, ptr @OID_HMAC_SHA3_384, align 8, !tbaa !6
  store ptr %28, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 160), align 16, !tbaa !6
  %29 = load ptr, ptr @OID_HMAC_SHA3_512, align 8, !tbaa !6
  store ptr %29, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 168), align 8, !tbaa !6
  tail call void @__cxa_guard_release(ptr nonnull @_ZGVZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES) #3
  br label %30

30:                                               ; preds = %7, %5, %2
  %.not11 = icmp eq ptr %0, null
  br i1 %.not11, label %.thread, label %.preheader.preheader

.preheader.preheader:                             ; preds = %30
  %31 = load ptr, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, align 16, !tbaa !6
  %32 = tail call zeroext i1 @oid_is_equal(ptr noundef %31, ptr noundef nonnull %0)
  br i1 %32, label %75, label %.preheader.1

.preheader.1:                                     ; preds = %.preheader.preheader
  %33 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 8), align 8, !tbaa !6
  %34 = tail call zeroext i1 @oid_is_equal(ptr noundef %33, ptr noundef nonnull %0)
  br i1 %34, label %75, label %.preheader.2

.preheader.2:                                     ; preds = %.preheader.1
  %35 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 16), align 16, !tbaa !6
  %36 = tail call zeroext i1 @oid_is_equal(ptr noundef %35, ptr noundef nonnull %0)
  br i1 %36, label %75, label %.preheader.3

.preheader.3:                                     ; preds = %.preheader.2
  %37 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 24), align 8, !tbaa !6
  %38 = tail call zeroext i1 @oid_is_equal(ptr noundef %37, ptr noundef nonnull %0)
  br i1 %38, label %75, label %.preheader.4

.preheader.4:                                     ; preds = %.preheader.3
  %39 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 32), align 16, !tbaa !6
  %40 = tail call zeroext i1 @oid_is_equal(ptr noundef %39, ptr noundef nonnull %0)
  br i1 %40, label %75, label %.preheader.5

.preheader.5:                                     ; preds = %.preheader.4
  %41 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 40), align 8, !tbaa !6
  %42 = tail call zeroext i1 @oid_is_equal(ptr noundef %41, ptr noundef nonnull %0)
  br i1 %42, label %75, label %.preheader.6

.preheader.6:                                     ; preds = %.preheader.5
  %43 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 48), align 16, !tbaa !6
  %44 = tail call zeroext i1 @oid_is_equal(ptr noundef %43, ptr noundef nonnull %0)
  br i1 %44, label %75, label %.preheader.7

.preheader.7:                                     ; preds = %.preheader.6
  %45 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 56), align 8, !tbaa !6
  %46 = tail call zeroext i1 @oid_is_equal(ptr noundef %45, ptr noundef nonnull %0)
  br i1 %46, label %75, label %.preheader.8

.preheader.8:                                     ; preds = %.preheader.7
  %47 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 64), align 16, !tbaa !6
  %48 = tail call zeroext i1 @oid_is_equal(ptr noundef %47, ptr noundef nonnull %0)
  br i1 %48, label %75, label %.preheader.9

.preheader.9:                                     ; preds = %.preheader.8
  %49 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 72), align 8, !tbaa !6
  %50 = tail call zeroext i1 @oid_is_equal(ptr noundef %49, ptr noundef nonnull %0)
  br i1 %50, label %75, label %.preheader.10

.preheader.10:                                    ; preds = %.preheader.9
  %51 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 80), align 16, !tbaa !6
  %52 = tail call zeroext i1 @oid_is_equal(ptr noundef %51, ptr noundef nonnull %0)
  br i1 %52, label %75, label %.preheader.11

.preheader.11:                                    ; preds = %.preheader.10
  %53 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 88), align 8, !tbaa !6
  %54 = tail call zeroext i1 @oid_is_equal(ptr noundef %53, ptr noundef nonnull %0)
  br i1 %54, label %75, label %.preheader.12

.preheader.12:                                    ; preds = %.preheader.11
  %55 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 96), align 16, !tbaa !6
  %56 = tail call zeroext i1 @oid_is_equal(ptr noundef %55, ptr noundef nonnull %0)
  br i1 %56, label %75, label %.preheader.13

.preheader.13:                                    ; preds = %.preheader.12
  %57 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 104), align 8, !tbaa !6
  %58 = tail call zeroext i1 @oid_is_equal(ptr noundef %57, ptr noundef nonnull %0)
  br i1 %58, label %75, label %.preheader.14

.preheader.14:                                    ; preds = %.preheader.13
  %59 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 112), align 16, !tbaa !6
  %60 = tail call zeroext i1 @oid_is_equal(ptr noundef %59, ptr noundef nonnull %0)
  br i1 %60, label %75, label %.preheader.15

.preheader.15:                                    ; preds = %.preheader.14
  %61 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 120), align 8, !tbaa !6
  %62 = tail call zeroext i1 @oid_is_equal(ptr noundef %61, ptr noundef nonnull %0)
  br i1 %62, label %75, label %.preheader.16

.preheader.16:                                    ; preds = %.preheader.15
  %63 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 128), align 16, !tbaa !6
  %64 = tail call zeroext i1 @oid_is_equal(ptr noundef %63, ptr noundef nonnull %0)
  br i1 %64, label %75, label %.preheader.17

.preheader.17:                                    ; preds = %.preheader.16
  %65 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 136), align 8, !tbaa !6
  %66 = tail call zeroext i1 @oid_is_equal(ptr noundef %65, ptr noundef nonnull %0)
  br i1 %66, label %75, label %.preheader.18

.preheader.18:                                    ; preds = %.preheader.17
  %67 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 144), align 16, !tbaa !6
  %68 = tail call zeroext i1 @oid_is_equal(ptr noundef %67, ptr noundef nonnull %0)
  br i1 %68, label %75, label %.preheader.19

.preheader.19:                                    ; preds = %.preheader.18
  %69 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 152), align 8, !tbaa !6
  %70 = tail call zeroext i1 @oid_is_equal(ptr noundef %69, ptr noundef nonnull %0)
  br i1 %70, label %75, label %.preheader.20

.preheader.20:                                    ; preds = %.preheader.19
  %71 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 160), align 16, !tbaa !6
  %72 = tail call zeroext i1 @oid_is_equal(ptr noundef %71, ptr noundef nonnull %0)
  br i1 %72, label %75, label %.preheader.21

.preheader.21:                                    ; preds = %.preheader.20
  %73 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 168), align 8, !tbaa !6
  %74 = tail call zeroext i1 @oid_is_equal(ptr noundef %73, ptr noundef nonnull %0)
  br i1 %74, label %75, label %.thread

75:                                               ; preds = %.preheader.21, %.preheader.20, %.preheader.19, %.preheader.18, %.preheader.17, %.preheader.16, %.preheader.15, %.preheader.14, %.preheader.13, %.preheader.12, %.preheader.11, %.preheader.10, %.preheader.9, %.preheader.8, %.preheader.7, %.preheader.6, %.preheader.5, %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %.preheader.preheader
  %.0816.lcssa = phi i64 [ 0, %.preheader.preheader ], [ 1, %.preheader.1 ], [ 2, %.preheader.2 ], [ 3, %.preheader.3 ], [ 4, %.preheader.4 ], [ 5, %.preheader.5 ], [ 6, %.preheader.6 ], [ 7, %.preheader.7 ], [ 8, %.preheader.8 ], [ 9, %.preheader.9 ], [ 10, %.preheader.10 ], [ 11, %.preheader.11 ], [ 12, %.preheader.12 ], [ 13, %.preheader.13 ], [ 14, %.preheader.14 ], [ 15, %.preheader.15 ], [ 16, %.preheader.16 ], [ 17, %.preheader.17 ], [ 18, %.preheader.18 ], [ 19, %.preheader.19 ], [ 20, %.preheader.20 ], [ 21, %.preheader.21 ]
  %76 = getelementptr inbounds [22 x ptr], ptr @_ZZN11FileStorage12checkHashOidEPKcS1_E16SUPPORTED_HASHES, i64 0, i64 %.0816.lcssa
  %77 = load ptr, ptr %76, align 8, !tbaa !6
  br label %.thread

.thread:                                          ; preds = %.preheader.21, %30, %75
  %.1 = phi ptr [ %77, %75 ], [ %1, %30 ], [ %1, %.preheader.21 ]
  ret ptr %.1
}

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #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 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 #2 = { nofree nounwind }
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)"}
!5 = !{!"branch_weights", i32 1, i32 1048575}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}


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