; LLVM IR from thalium/icebox :: third_party/virtualbox/src/VBox/Devices/EFI/Firmware/OptionRomPkg/Bus/Usb (GetStatus)

; 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._EFI_SIMPLE_NETWORK_PROTOCOL = type { i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.NIC_DEVICE = type { i64, ptr, ptr, %struct._EFI_SIMPLE_NETWORK_PROTOCOL, %struct.EFI_SIMPLE_NETWORK_MODE, i8, ptr, i16, i8, i8, i8, i8, i8, ptr, i64, ptr, ptr, ptr, [2 x i32], ptr }
%struct.EFI_SIMPLE_NETWORK_MODE = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [16 x %struct.EFI_MAC_ADDRESS], %struct.EFI_MAC_ADDRESS, %struct.EFI_MAC_ADDRESS, %struct.EFI_MAC_ADDRESS, i8, i8, i8, i8, i8 }
%struct.EFI_MAC_ADDRESS = type { [32 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 }

@.str = external hidden unnamed_addr constant [160 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@gBS = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 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

declare zeroext i8 @DebugAssertEnabled() #1

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

; 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 i64 @SN_GetStatus(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = icmp ne ptr null, %13
  br i1 %14, label %15, label %129

15:                                               ; preds = %3
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct._EFI_SIMPLE_NETWORK_PROTOCOL, ptr %16, i32 0, i32 15
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = icmp ne ptr null, %18
  br i1 %19, label %20, label %129

20:                                               ; preds = %15
  %21 = call zeroext i8 @DebugAssertEnabled()
  %22 = zext i8 %21 to i32
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %24, label %34

24:                                               ; preds = %20
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = ptrtoint ptr %25 to i64
  %27 = sub i64 %26, ptrtoint (ptr getelementptr inbounds (%struct.NIC_DEVICE, ptr null, i32 0, i32 3) to i64)
  %28 = inttoptr i64 %27 to ptr
  %29 = getelementptr inbounds %struct.NIC_DEVICE, ptr %28, i32 0, i32 0
  %30 = load i64, ptr %29, align 8, !tbaa !12
  %31 = icmp ne i64 %30, 943216705
  br i1 %31, label %32, label %34

32:                                               ; preds = %24
  call void @DebugAssert(ptr noundef @.str, i64 noundef 153, ptr noundef @.str.1)
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  br label %39

34:                                               ; preds = %24, %20
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = ptrtoint ptr %35 to i64
  %37 = sub i64 %36, ptrtoint (ptr getelementptr inbounds (%struct.NIC_DEVICE, ptr null, i32 0, i32 3) to i64)
  %38 = inttoptr i64 %37 to ptr
  br label %39

39:                                               ; preds = %34, %32
  %40 = phi ptr [ %33, %32 ], [ %38, %34 ]
  store ptr %40, ptr %9, align 8, !tbaa !5
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = icmp ne ptr null, %41
  br i1 %42, label %43, label %55

43:                                               ; preds = %39
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.NIC_DEVICE, ptr %44, i32 0, i32 6
  %46 = load ptr, ptr %45, align 8, !tbaa !18
  %47 = icmp ne ptr null, %46
  br i1 %47, label %48, label %55

48:                                               ; preds = %43
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.NIC_DEVICE, ptr %49, i32 0, i32 6
  %51 = load ptr, ptr %50, align 8, !tbaa !18
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %51, ptr %52, align 8, !tbaa !5
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.NIC_DEVICE, ptr %53, i32 0, i32 6
  store ptr null, ptr %54, align 8, !tbaa !18
  br label %55

55:                                               ; preds = %48, %43, %39
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct._EFI_SIMPLE_NETWORK_PROTOCOL, ptr %56, i32 0, i32 15
  %58 = load ptr, ptr %57, align 8, !tbaa !9
  store ptr %58, ptr %8, align 8, !tbaa !5
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_MODE, ptr %59, i32 0, i32 0
  %61 = load i32, ptr %60, align 4, !tbaa !19
  %62 = icmp ne i32 0, %61
  br i1 %62, label %63, label %127

63:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %64 = load ptr, ptr @gBS, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %64, i32 0, i32 1
  %66 = load ptr, ptr %65, align 8, !tbaa !20
  %67 = call i64 %66(i64 noundef 31)
  store i64 %67, ptr %12, align 8, !tbaa !23
  %68 = load ptr, ptr @gBS, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %68, i32 0, i32 2
  %70 = load ptr, ptr %69, align 8, !tbaa !24
  %71 = load i64, ptr %12, align 8, !tbaa !23
  call void %70(i64 noundef %71)
  %72 = load i64, ptr %12, align 8, !tbaa !23
  %73 = icmp ugt i64 %72, 8
  br i1 %73, label %74, label %101

74:                                               ; preds = %63
  br label %75

75:                                               ; preds = %74
  %76 = call zeroext i8 @DebugPrintEnabled()
  %77 = icmp ne i8 %76, 0
  br i1 %77, label %78, label %87

78:                                               ; preds = %75
  br label %79

79:                                               ; preds = %78
  %80 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 2147483648)
  %81 = icmp ne i8 %80, 0
  br i1 %81, label %82, label %84

82:                                               ; preds = %79
  %83 = load i64, ptr %12, align 8, !tbaa !23
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 2147483648, ptr noundef @.str.2, i64 noundef %83, i32 noundef 8)
  br label %84

84:                                               ; preds = %82, %79
  br label %85

85:                                               ; preds = %84
  br label %86

86:                                               ; preds = %85
  br label %87

87:                                               ; preds = %86, %75
  br label %88

88:                                               ; preds = %87
  br label %89

89:                                               ; preds = %88
  br label %90

90:                                               ; preds = %89
  %91 = call zeroext i8 @DebugAssertEnabled()
  %92 = icmp ne i8 %91, 0
  br i1 %92, label %93, label %98

93:                                               ; preds = %90
  %94 = load i64, ptr %12, align 8, !tbaa !23
  %95 = icmp ule i64 %94, 8
  br i1 %95, label %97, label %96

96:                                               ; preds = %93
  call void @DebugAssert(ptr noundef @.str, i64 noundef 167, ptr noundef @.str.3)
  br label %97

97:                                               ; preds = %96, %93
  br label %98

98:                                               ; preds = %97, %90
  br label %99

99:                                               ; preds = %98
  br label %100

100:                                              ; preds = %99
  br label %101

101:                                              ; preds = %100, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  %102 = load ptr, ptr @gBS, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %102, i32 0, i32 1
  %104 = load ptr, ptr %103, align 8, !tbaa !20
  %105 = call i64 %104(i64 noundef 8)
  store i64 %105, ptr %11, align 8, !tbaa !23
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.NIC_DEVICE, ptr %106, i32 0, i32 12
  %108 = load i8, ptr %107, align 2, !tbaa !25
  store i8 %108, ptr %7, align 1, !tbaa !26
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.NIC_DEVICE, ptr %109, i32 0, i32 12
  store i8 1, ptr %110, align 2, !tbaa !25
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  %112 = load i8, ptr %7, align 1, !tbaa !26
  call void @Ax88772Rx(ptr noundef %111, i8 noundef zeroext %112)
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.NIC_DEVICE, ptr %113, i32 0, i32 11
  %115 = load i8, ptr %114, align 1, !tbaa !27
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_MODE, ptr %116, i32 0, i32 18
  store i8 %115, ptr %117, align 4, !tbaa !28
  %118 = load ptr, ptr @gBS, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %118, i32 0, i32 2
  %120 = load ptr, ptr %119, align 8, !tbaa !24
  %121 = load i64, ptr %11, align 8, !tbaa !23
  call void %120(i64 noundef %121)
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = icmp ne ptr null, %122
  br i1 %123, label %124, label %126

124:                                              ; preds = %101
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 0, ptr %125, align 4, !tbaa !29
  br label %126

126:                                              ; preds = %124, %101
  store i64 0, ptr %10, align 8, !tbaa !23
  br label %128

127:                                              ; preds = %55
  store i64 -9223372036854775789, ptr %10, align 8, !tbaa !23
  br label %128

128:                                              ; preds = %127, %126
  br label %130

129:                                              ; preds = %15, %3
  store i64 -9223372036854775806, ptr %10, align 8, !tbaa !23
  br label %130

130:                                              ; preds = %129, %128
  %131 = load i64, ptr %10, align 8, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #3
  ret i64 %131
}

declare zeroext i8 @DebugPrintEnabled() #1

declare zeroext i8 @DebugPrintLevelEnabled(i64 noundef) #1

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

declare void @Ax88772Rx(ptr noundef, i8 noundef zeroext) #1

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 = { 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 = { 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 120}
!10 = !{!"_EFI_SIMPLE_NETWORK_PROTOCOL", !11, i64 0, !6, i64 8, !6, i64 16, !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}
!11 = !{!"long long", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"", !11, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !14, i64 152, !7, i64 808, !6, i64 816, !17, i64 824, !7, i64 826, !7, i64 827, !7, i64 828, !7, i64 829, !7, i64 830, !6, i64 832, !11, i64 840, !6, i64 848, !6, i64 856, !6, i64 864, !7, i64 872, !6, i64 880}
!14 = !{!"", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !7, i64 40, !16, i64 552, !16, i64 584, !16, i64 616, !7, i64 648, !7, i64 649, !7, i64 650, !7, i64 651, !7, i64 652}
!15 = !{!"int", !7, i64 0}
!16 = !{!"", !7, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = !{!13, !6, i64 816}
!19 = !{!14, !15, i64 0}
!20 = !{!21, !6, i64 24}
!21 = !{!"", !22, 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}
!22 = !{!"", !11, i64 0, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20}
!23 = !{!11, !11, i64 0}
!24 = !{!21, !6, i64 32}
!25 = !{!13, !7, i64 830}
!26 = !{!7, !7, i64 0}
!27 = !{!13, !7, i64 829}
!28 = !{!14, !7, i64 652}
!29 = !{!15, !15, 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"

@.str = external hidden unnamed_addr constant [160 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@gBS = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775806, 1) i64 @SN_GetStatus(ptr noundef %0, ptr noundef writeonly %1, ptr noundef writeonly %2) local_unnamed_addr #1 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %52, label %4

4:                                                ; preds = %3
  %5 = getelementptr inbounds i8, ptr %0, i64 120
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %.not31 = icmp eq ptr %6, null
  br i1 %.not31, label %52, label %7

7:                                                ; preds = %4
  %8 = tail call zeroext i8 @DebugAssertEnabled() #2
  %.not32 = icmp eq i8 %8, 0
  %.pre = ptrtoint ptr %0 to i64
  %.pre40 = add i64 %.pre, -24
  %.pre42 = inttoptr i64 %.pre40 to ptr
  br i1 %.not32, label %._crit_edge, label %9

9:                                                ; preds = %7
  %10 = load i64, ptr %.pre42, align 8, !tbaa !11
  %.not33 = icmp eq i64 %10, 943216705
  br i1 %.not33, label %._crit_edge, label %11

11:                                               ; preds = %9
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 153, ptr noundef nonnull @.str.1) #2
  br label %._crit_edge

._crit_edge:                                      ; preds = %7, %9, %11
  %12 = phi ptr [ %0, %11 ], [ %.pre42, %9 ], [ %.pre42, %7 ]
  %.not34 = icmp eq ptr %2, null
  br i1 %.not34, label %17, label %13

13:                                               ; preds = %._crit_edge
  %14 = getelementptr inbounds i8, ptr %12, i64 816
  %15 = load ptr, ptr %14, align 8, !tbaa !17
  %.not35 = icmp eq ptr %15, null
  br i1 %.not35, label %17, label %16

16:                                               ; preds = %13
  store ptr %15, ptr %2, align 8, !tbaa !18
  store ptr null, ptr %14, align 8, !tbaa !17
  br label %17

17:                                               ; preds = %16, %13, %._crit_edge
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = load i32, ptr %18, align 4, !tbaa !19
  %.not36 = icmp eq i32 %19, 0
  br i1 %.not36, label %52, label %20

20:                                               ; preds = %17
  %21 = load ptr, ptr @gBS, align 8, !tbaa !18
  %22 = getelementptr inbounds i8, ptr %21, i64 24
  %23 = load ptr, ptr %22, align 8, !tbaa !20
  %24 = tail call i64 %23(i64 noundef 31) #2
  %25 = load ptr, ptr @gBS, align 8, !tbaa !18
  %26 = getelementptr inbounds i8, ptr %25, i64 32
  %27 = load ptr, ptr %26, align 8, !tbaa !23
  tail call void %27(i64 noundef %24) #2
  %28 = icmp ugt i64 %24, 8
  br i1 %28, label %29, label %38

29:                                               ; preds = %20
  %30 = tail call zeroext i8 @DebugPrintEnabled() #2
  %.not37 = icmp eq i8 %30, 0
  br i1 %.not37, label %34, label %31

31:                                               ; preds = %29
  %32 = tail call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 2147483648) #2
  %.not38 = icmp eq i8 %32, 0
  br i1 %.not38, label %34, label %33

33:                                               ; preds = %31
  tail call void (i64, ptr, ...) @DebugPrint(i64 noundef 2147483648, ptr noundef nonnull @.str.2, i64 noundef %24, i32 noundef 8) #2
  br label %34

34:                                               ; preds = %29, %33, %31
  %35 = tail call zeroext i8 @DebugAssertEnabled() #2
  %36 = icmp eq i8 %35, 0
  br i1 %36, label %38, label %37

37:                                               ; preds = %34
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 167, ptr noundef nonnull @.str.3) #2
  br label %38

38:                                               ; preds = %34, %37, %20
  %39 = load ptr, ptr @gBS, align 8, !tbaa !18
  %40 = getelementptr inbounds i8, ptr %39, i64 24
  %41 = load ptr, ptr %40, align 8, !tbaa !20
  %42 = tail call i64 %41(i64 noundef 8) #2
  %43 = getelementptr inbounds i8, ptr %12, i64 830
  %44 = load i8, ptr %43, align 2, !tbaa !24
  store i8 1, ptr %43, align 2, !tbaa !24
  tail call void @Ax88772Rx(ptr noundef %12, i8 noundef zeroext %44) #2
  %45 = getelementptr inbounds i8, ptr %12, i64 829
  %46 = load i8, ptr %45, align 1, !tbaa !25
  %47 = getelementptr inbounds i8, ptr %18, i64 652
  store i8 %46, ptr %47, align 4, !tbaa !26
  %48 = load ptr, ptr @gBS, align 8, !tbaa !18
  %49 = getelementptr inbounds i8, ptr %48, i64 32
  %50 = load ptr, ptr %49, align 8, !tbaa !23
  tail call void %50(i64 noundef %42) #2
  %.not39 = icmp eq ptr %1, null
  br i1 %.not39, label %52, label %51

51:                                               ; preds = %38
  store i32 0, ptr %1, align 4, !tbaa !27
  br label %52

52:                                               ; preds = %3, %4, %17, %38, %51
  %.0 = phi i64 [ 0, %51 ], [ 0, %38 ], [ -9223372036854775789, %17 ], [ -9223372036854775806, %4 ], [ -9223372036854775806, %3 ]
  ret i64 %.0
}

declare zeroext i8 @DebugPrintEnabled() local_unnamed_addr #0

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

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

declare void @Ax88772Rx(ptr noundef, i8 noundef zeroext) local_unnamed_addr #0

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 = { 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 #2 = { 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, !10, i64 120}
!6 = !{!"_EFI_SIMPLE_NETWORK_PROTOCOL", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120}
!7 = !{!"long long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !7, i64 0}
!12 = !{!"", !7, i64 0, !10, i64 8, !10, i64 16, !6, i64 24, !13, i64 152, !8, i64 808, !10, i64 816, !16, i64 824, !8, i64 826, !8, i64 827, !8, i64 828, !8, i64 829, !8, i64 830, !10, i64 832, !7, i64 840, !10, i64 848, !10, i64 856, !10, i64 864, !8, i64 872, !10, i64 880}
!13 = !{!"", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !8, i64 40, !15, i64 552, !15, i64 584, !15, i64 616, !8, i64 648, !8, i64 649, !8, i64 650, !8, i64 651, !8, i64 652}
!14 = !{!"int", !8, i64 0}
!15 = !{!"", !8, i64 0}
!16 = !{!"short", !8, i64 0}
!17 = !{!12, !10, i64 816}
!18 = !{!10, !10, i64 0}
!19 = !{!13, !14, i64 0}
!20 = !{!21, !10, i64 24}
!21 = !{!"", !22, i64 0, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360, !10, i64 368}
!22 = !{!"", !7, i64 0, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20}
!23 = !{!21, !10, i64 32}
!24 = !{!12, !8, i64 830}
!25 = !{!12, !8, i64 829}
!26 = !{!13, !8, i64 652}
!27 = !{!14, !14, i64 0}


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