; LLVM IR from thalium/icebox :: third_party/virtualbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal (MonotonicCounterDriverInitialize)

; 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.GUID = type { i32, i16, i16, [8 x i8] }
%struct.EFI_BOOT_SERVICES = type { %struct.EFI_TABLE_HEADER, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.EFI_TABLE_HEADER = type { i64, i32, i32, i32, i32 }
%struct.EFI_RUNTIME_SERVICES = type { %struct.EFI_TABLE_HEADER, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@mMonotonicCounterHandle = external dso_local global ptr, align 8
@gBS = external global ptr, align 8
@mEfiMtc = external dso_local global i64, align 8
@mEfiMtcEvent = external dso_local global ptr, align 8
@.str = external hidden unnamed_addr constant [4 x i32], align 4
@gMtcVendorGuid = external global %struct.GUID, align 4
@gEfiMonotonicCounterArchProtocolGuid = external global %struct.GUID, align 4
@.str.1 = external hidden unnamed_addr constant [170 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@gRT = external global ptr, align 8

; Function Attrs: nounwind uwtable
declare dso_local i64 @MonotonicCounterDriverGetNextMonotonicCount(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 i64 @MonotonicCounterDriverGetNextHighMonotonicCount(ptr noundef) #0

declare i64 @LShiftU64(i64 noundef, i64 noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local i64 @MonotonicCounterDriverInitialize(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  br label %9

9:                                                ; preds = %2
  %10 = call zeroext i8 @DebugAssertEnabled()
  %11 = icmp ne i8 %10, 0
  br i1 %11, label %12, label %27

12:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  br label %13

13:                                               ; preds = %12
  %14 = call zeroext i8 @DebugAssertEnabled()
  %15 = icmp ne i8 %14, 0
  br i1 %15, label %16, label %17

16:                                               ; preds = %13
  br label %17

17:                                               ; preds = %16, %13
  br label %18

18:                                               ; preds = %17
  br label %19

19:                                               ; preds = %18
  %20 = load ptr, ptr @gBS, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %20, i32 0, i32 38
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = call i64 %22(ptr noundef @gEfiMonotonicCounterArchProtocolGuid, ptr noundef null, ptr noundef %8)
  %24 = icmp slt i64 %23, 0
  br i1 %24, label %26, label %25

25:                                               ; preds = %19
  call void @DebugAssert(ptr noundef @.str.1, i64 noundef 216, ptr noundef @.str.2)
  br label %26

26:                                               ; preds = %25, %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  br label %27

27:                                               ; preds = %26, %9
  br label %28

28:                                               ; preds = %27
  br label %29

29:                                               ; preds = %28
  %30 = load ptr, ptr @gBS, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %30, i32 0, i32 8
  %32 = load ptr, ptr %31, align 8, !tbaa !14
  %33 = call i64 %32(i32 noundef 512, i64 noundef 8, ptr noundef @EfiMtcEventHandler, ptr noundef null, ptr noundef @mEfiMtcEvent)
  store i64 %33, ptr %5, align 8, !tbaa !15
  br label %34

34:                                               ; preds = %29
  %35 = call zeroext i8 @DebugAssertEnabled()
  %36 = icmp ne i8 %35, 0
  br i1 %36, label %37, label %57

37:                                               ; preds = %34
  %38 = load i64, ptr %5, align 8, !tbaa !15
  %39 = icmp slt i64 %38, 0
  br i1 %39, label %40, label %56

40:                                               ; preds = %37
  br label %41

41:                                               ; preds = %40
  %42 = call zeroext i8 @DebugPrintEnabled()
  %43 = icmp ne i8 %42, 0
  br i1 %43, label %44, label %53

44:                                               ; preds = %41
  br label %45

45:                                               ; preds = %44
  %46 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 2147483648)
  %47 = icmp ne i8 %46, 0
  br i1 %47, label %48, label %50

48:                                               ; preds = %45
  %49 = load i64, ptr %5, align 8, !tbaa !15
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 2147483648, ptr noundef @.str.3, i64 noundef %49)
  br label %50

50:                                               ; preds = %48, %45
  br label %51

51:                                               ; preds = %50
  br label %52

52:                                               ; preds = %51
  br label %53

53:                                               ; preds = %52, %41
  br label %54

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54
  call void @DebugAssert(ptr noundef @.str.1, i64 noundef 228, ptr noundef @.str.4)
  br label %56

56:                                               ; preds = %55, %37
  br label %57

57:                                               ; preds = %56, %34
  br label %58

58:                                               ; preds = %57
  br label %59

59:                                               ; preds = %58
  store i64 4, ptr %7, align 8, !tbaa !15
  %60 = call i64 @EfiGetVariable(ptr noundef @.str, ptr noundef @gMtcVendorGuid, ptr noundef null, ptr noundef %7, ptr noundef %6)
  store i64 %60, ptr %5, align 8, !tbaa !15
  %61 = load i64, ptr %5, align 8, !tbaa !15
  %62 = icmp slt i64 %61, 0
  br i1 %62, label %63, label %64

63:                                               ; preds = %59
  store i32 0, ptr %6, align 4, !tbaa !16
  br label %64

64:                                               ; preds = %63, %59
  %65 = load i32, ptr %6, align 4, !tbaa !16
  %66 = zext i32 %65 to i64
  %67 = call i64 @LShiftU64(i64 noundef %66, i64 noundef 32)
  store i64 %67, ptr @mEfiMtc, align 8, !tbaa !15
  %68 = call i64 @MonotonicCounterDriverGetNextHighMonotonicCount(ptr noundef %6)
  %69 = load ptr, ptr @gBS, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %69, i32 0, i32 28
  store ptr @MonotonicCounterDriverGetNextMonotonicCount, ptr %70, align 8, !tbaa !17
  %71 = load ptr, ptr @gRT, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.EFI_RUNTIME_SERVICES, ptr %71, i32 0, i32 10
  store ptr @MonotonicCounterDriverGetNextHighMonotonicCount, ptr %72, align 8, !tbaa !18
  %73 = load ptr, ptr @gBS, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %73, i32 0, i32 39
  %75 = load ptr, ptr %74, align 8, !tbaa !20
  %76 = call i64 (ptr, ...) %75(ptr noundef @mMonotonicCounterHandle, ptr noundef @gEfiMonotonicCounterArchProtocolGuid, ptr noundef null, ptr noundef null)
  store i64 %76, ptr %5, align 8, !tbaa !15
  br label %77

77:                                               ; preds = %64
  %78 = call zeroext i8 @DebugAssertEnabled()
  %79 = icmp ne i8 %78, 0
  br i1 %79, label %80, label %100

80:                                               ; preds = %77
  %81 = load i64, ptr %5, align 8, !tbaa !15
  %82 = icmp slt i64 %81, 0
  br i1 %82, label %83, label %99

83:                                               ; preds = %80
  br label %84

84:                                               ; preds = %83
  %85 = call zeroext i8 @DebugPrintEnabled()
  %86 = icmp ne i8 %85, 0
  br i1 %86, label %87, label %96

87:                                               ; preds = %84
  br label %88

88:                                               ; preds = %87
  %89 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 2147483648)
  %90 = icmp ne i8 %89, 0
  br i1 %90, label %91, label %93

91:                                               ; preds = %88
  %92 = load i64, ptr %5, align 8, !tbaa !15
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 2147483648, ptr noundef @.str.3, i64 noundef %92)
  br label %93

93:                                               ; preds = %91, %88
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95, %84
  br label %97

97:                                               ; preds = %96
  br label %98

98:                                               ; preds = %97
  call void @DebugAssert(ptr noundef @.str.1, i64 noundef 271, ptr noundef @.str.4)
  br label %99

99:                                               ; preds = %98, %80
  br label %100

100:                                              ; preds = %99, %77
  br label %101

101:                                              ; preds = %100
  br label %102

102:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  ret i64 0
}

declare zeroext i8 @DebugAssertEnabled() #2

declare void @DebugAssert(ptr noundef, i64 noundef, ptr noundef) #2

declare zeroext i8 @DebugPrintEnabled() #2

declare zeroext i8 @DebugPrintLevelEnabled(i64 noundef) #2

declare void @DebugPrint(i64 noundef, ptr noundef, ...) #2

declare i64 @EfiGetVariable(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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/C++ TBAA"}
!9 = !{!10, !6, i64 320}
!10 = !{!"", !11, i64 0, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368}
!11 = !{!"", !12, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20}
!12 = !{!"long long", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!10, !6, i64 80}
!15 = !{!12, !12, i64 0}
!16 = !{!13, !13, i64 0}
!17 = !{!10, !6, i64 240}
!18 = !{!19, !6, i64 96}
!19 = !{!"", !11, i64 0, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128}
!20 = !{!10, !6, i64 328}


; 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.GUID = type { i32, i16, i16, [8 x i8] }

@mMonotonicCounterHandle = external dso_local global ptr, align 8
@gBS = external local_unnamed_addr global ptr, align 8
@mEfiMtc = external dso_local local_unnamed_addr global i64, align 8
@mEfiMtcEvent = external dso_local global ptr, align 8
@.str = external hidden unnamed_addr constant [4 x i32], align 4
@gMtcVendorGuid = external global %struct.GUID, align 4
@gEfiMonotonicCounterArchProtocolGuid = external global %struct.GUID, align 4
@.str.1 = external hidden unnamed_addr constant [170 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [20 x i8], align 1
@gRT = external local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
declare dso_local i64 @MonotonicCounterDriverGetNextMonotonicCount(ptr noundef) #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 i64 @MonotonicCounterDriverGetNextHighMonotonicCount(ptr noundef) #0

declare i64 @LShiftU64(i64 noundef, i64 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local noundef i64 @MonotonicCounterDriverInitialize(ptr nocapture noundef readnone %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %6 = tail call zeroext i8 @DebugAssertEnabled() #3
  %.not = icmp eq i8 %6, 0
  br i1 %.not, label %16, label %7

7:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %8 = tail call zeroext i8 @DebugAssertEnabled() #3
  %9 = load ptr, ptr @gBS, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %9, i64 320
  %11 = load ptr, ptr %10, align 8, !tbaa !9
  %12 = call i64 %11(ptr noundef nonnull @gEfiMonotonicCounterArchProtocolGuid, ptr noundef null, ptr noundef nonnull %5) #3
  %13 = icmp slt i64 %12, 0
  br i1 %13, label %15, label %14

14:                                               ; preds = %7
  call void @DebugAssert(ptr noundef nonnull @.str.1, i64 noundef 216, ptr noundef nonnull @.str.2) #3
  br label %15

15:                                               ; preds = %14, %7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  br label %16

16:                                               ; preds = %15, %2
  %17 = load ptr, ptr @gBS, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 80
  %19 = load ptr, ptr %18, align 8, !tbaa !14
  %20 = call i64 %19(i32 noundef 512, i64 noundef 8, ptr noundef nonnull @EfiMtcEventHandler, ptr noundef null, ptr noundef nonnull @mEfiMtcEvent) #3
  %21 = call zeroext i8 @DebugAssertEnabled() #3
  %22 = icmp ne i8 %21, 0
  %23 = icmp slt i64 %20, 0
  %or.cond = select i1 %22, i1 %23, i1 false
  br i1 %or.cond, label %24, label %30

24:                                               ; preds = %16
  %25 = call zeroext i8 @DebugPrintEnabled() #3
  %.not9 = icmp eq i8 %25, 0
  br i1 %.not9, label %29, label %26

26:                                               ; preds = %24
  %27 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 2147483648) #3
  %.not10 = icmp eq i8 %27, 0
  br i1 %.not10, label %29, label %28

28:                                               ; preds = %26
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 2147483648, ptr noundef nonnull @.str.3, i64 noundef %20) #3
  br label %29

29:                                               ; preds = %26, %28, %24
  call void @DebugAssert(ptr noundef nonnull @.str.1, i64 noundef 228, ptr noundef nonnull @.str.4) #3
  br label %30

30:                                               ; preds = %29, %16
  store i64 4, ptr %4, align 8, !tbaa !15
  %31 = call i64 @EfiGetVariable(ptr noundef nonnull @.str, ptr noundef nonnull @gMtcVendorGuid, ptr noundef null, ptr noundef nonnull %4, ptr noundef nonnull %3) #3
  %32 = icmp slt i64 %31, 0
  br i1 %32, label %34, label %._crit_edge

._crit_edge:                                      ; preds = %30
  %.pre = load i32, ptr %3, align 4, !tbaa !16
  %33 = zext i32 %.pre to i64
  br label %35

34:                                               ; preds = %30
  store i32 0, ptr %3, align 4, !tbaa !16
  br label %35

35:                                               ; preds = %._crit_edge, %34
  %36 = phi i64 [ %33, %._crit_edge ], [ 0, %34 ]
  %37 = call i64 @LShiftU64(i64 noundef %36, i64 noundef 32) #3
  store i64 %37, ptr @mEfiMtc, align 8, !tbaa !15
  %38 = call i64 @MonotonicCounterDriverGetNextHighMonotonicCount(ptr noundef nonnull %3)
  %39 = load ptr, ptr @gBS, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %39, i64 240
  store ptr @MonotonicCounterDriverGetNextMonotonicCount, ptr %40, align 8, !tbaa !17
  %41 = load ptr, ptr @gRT, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i64 96
  store ptr @MonotonicCounterDriverGetNextHighMonotonicCount, ptr %42, align 8, !tbaa !18
  %43 = getelementptr inbounds i8, ptr %39, i64 328
  %44 = load ptr, ptr %43, align 8, !tbaa !20
  %45 = call i64 (ptr, ...) %44(ptr noundef nonnull @mMonotonicCounterHandle, ptr noundef nonnull @gEfiMonotonicCounterArchProtocolGuid, ptr noundef null, ptr noundef null) #3
  %46 = call zeroext i8 @DebugAssertEnabled() #3
  %47 = icmp ne i8 %46, 0
  %48 = icmp slt i64 %45, 0
  %or.cond3 = select i1 %47, i1 %48, i1 false
  br i1 %or.cond3, label %49, label %55

49:                                               ; preds = %35
  %50 = call zeroext i8 @DebugPrintEnabled() #3
  %.not11 = icmp eq i8 %50, 0
  br i1 %.not11, label %54, label %51

51:                                               ; preds = %49
  %52 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 2147483648) #3
  %.not12 = icmp eq i8 %52, 0
  br i1 %.not12, label %54, label %53

53:                                               ; preds = %51
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 2147483648, ptr noundef nonnull @.str.3, i64 noundef %45) #3
  br label %54

54:                                               ; preds = %51, %53, %49
  call void @DebugAssert(ptr noundef nonnull @.str.1, i64 noundef 271, ptr noundef nonnull @.str.4) #3
  br label %55

55:                                               ; preds = %54, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  ret i64 0
}

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #2

declare void @DebugAssert(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2

declare zeroext i8 @DebugPrintEnabled() local_unnamed_addr #2

declare zeroext i8 @DebugPrintLevelEnabled(i64 noundef) local_unnamed_addr #2

declare void @DebugPrint(i64 noundef, ptr noundef, ...) local_unnamed_addr #2

declare i64 @EfiGetVariable(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) 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 = { "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/C++ TBAA"}
!9 = !{!10, !6, i64 320}
!10 = !{!"", !11, i64 0, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368}
!11 = !{!"", !12, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20}
!12 = !{!"long long", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!10, !6, i64 80}
!15 = !{!12, !12, i64 0}
!16 = !{!13, !13, i64 0}
!17 = !{!10, !6, i64 240}
!18 = !{!19, !6, i64 96}
!19 = !{!"", !11, i64 0, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128}
!20 = !{!10, !6, i64 328}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass