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

; 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_DRIVER_BINDING_PROTOCOL = type { ptr, ptr, ptr, i32, ptr, ptr }

@gEfiSimpleTextOutProtocolGuid = external global %struct.GUID, align 4
@gBS = external global ptr, align 8
@gEfiDevicePathProtocolGuid = external global %struct.GUID, align 4
@.str.5 = external hidden unnamed_addr constant [7 x i32], align 4
@.str.6 = external hidden unnamed_addr constant [7 x i32], align 4
@gEfiConsoleOutDeviceGuid = external global %struct.GUID, align 4
@.str.7 = external hidden unnamed_addr constant [10 x i32], align 4
@.str.8 = external hidden unnamed_addr constant [10 x i32], align 4
@gEfiStandardErrorDeviceGuid = external global %struct.GUID, align 4

; Function Attrs: nounwind uwtable
define dso_local i64 @ConPlatformTextOutDriverBindingStart(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #2
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #2
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #2
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #2
  store i8 1, ptr %11, align 1, !tbaa !9
  %15 = load ptr, ptr @gBS, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %15, i32 0, i32 33
  %17 = load ptr, ptr %16, align 8, !tbaa !10
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %19, i32 0, i32 5
  %21 = load ptr, ptr %20, align 8, !tbaa !15
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = call i64 %17(ptr noundef %18, ptr noundef @gEfiDevicePathProtocolGuid, ptr noundef %9, ptr noundef %21, ptr noundef %22, i32 noundef 2)
  store i64 %23, ptr %8, align 8, !tbaa !17
  %24 = load i64, ptr %8, align 8, !tbaa !17
  %25 = icmp slt i64 %24, 0
  br i1 %25, label %26, label %28

26:                                               ; preds = %3
  %27 = load i64, ptr %8, align 8, !tbaa !17
  store i64 %27, ptr %4, align 8
  store i32 1, ptr %14, align 4
  br label %115

28:                                               ; preds = %3
  %29 = load ptr, ptr @gBS, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %29, i32 0, i32 33
  %31 = load ptr, ptr %30, align 8, !tbaa !10
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %33, i32 0, i32 5
  %35 = load ptr, ptr %34, align 8, !tbaa !15
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = call i64 %31(ptr noundef %32, ptr noundef @gEfiSimpleTextOutProtocolGuid, ptr noundef %10, ptr noundef %35, ptr noundef %36, i32 noundef 16)
  store i64 %37, ptr %8, align 8, !tbaa !17
  %38 = load i64, ptr %8, align 8, !tbaa !17
  %39 = icmp slt i64 %38, 0
  br i1 %39, label %40, label %42

40:                                               ; preds = %28
  %41 = load i64, ptr %8, align 8, !tbaa !17
  store i64 %41, ptr %4, align 8
  store i32 1, ptr %14, align 4
  br label %115

42:                                               ; preds = %28
  store i8 0, ptr %12, align 1, !tbaa !9
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  %44 = call i64 @ConPlatformUpdateDeviceVariable(ptr noundef @.str.5, ptr noundef %43, i32 noundef 0)
  store i64 %44, ptr %8, align 8, !tbaa !17
  %45 = load i64, ptr %8, align 8, !tbaa !17
  %46 = icmp slt i64 %45, 0
  br i1 %46, label %48, label %47

47:                                               ; preds = %42
  store i8 1, ptr %12, align 1, !tbaa !9
  br label %48

48:                                               ; preds = %47, %42
  store i8 0, ptr %13, align 1, !tbaa !9
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = call i64 @ConPlatformUpdateDeviceVariable(ptr noundef @.str.6, ptr noundef %49, i32 noundef 0)
  store i64 %50, ptr %8, align 8, !tbaa !17
  %51 = load i64, ptr %8, align 8, !tbaa !17
  %52 = icmp slt i64 %51, 0
  br i1 %52, label %54, label %53

53:                                               ; preds = %48
  store i8 1, ptr %13, align 1, !tbaa !9
  br label %54

54:                                               ; preds = %53, %48
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = call zeroext i8 @IsHotPlugDevice(ptr noundef %55)
  %57 = icmp ne i8 %56, 0
  br i1 %57, label %58, label %75

58:                                               ; preds = %54
  %59 = load ptr, ptr @gBS, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %59, i32 0, i32 39
  %61 = load ptr, ptr %60, align 8, !tbaa !18
  %62 = call i64 (ptr, ...) %61(ptr noundef %6, ptr noundef @gEfiConsoleOutDeviceGuid, ptr noundef null, ptr noundef null)
  %63 = load i8, ptr %12, align 1, !tbaa !9
  %64 = icmp ne i8 %63, 0
  br i1 %64, label %65, label %68

65:                                               ; preds = %58
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = call i64 @ConPlatformUpdateDeviceVariable(ptr noundef @.str.7, ptr noundef %66, i32 noundef 1)
  br label %68

68:                                               ; preds = %65, %58
  %69 = load i8, ptr %13, align 1, !tbaa !9
  %70 = icmp ne i8 %69, 0
  br i1 %70, label %71, label %74

71:                                               ; preds = %68
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = call i64 @ConPlatformUpdateDeviceVariable(ptr noundef @.str.8, ptr noundef %72, i32 noundef 1)
  br label %74

74:                                               ; preds = %71, %68
  br label %114

75:                                               ; preds = %54
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = call zeroext i8 @ConPlatformUpdateGopCandidate(ptr noundef %76)
  %78 = icmp ne i8 %77, 0
  br i1 %78, label %84, label %79

79:                                               ; preds = %75
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = call i64 @ConPlatformUpdateDeviceVariable(ptr noundef @.str.7, ptr noundef %80, i32 noundef 1)
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = call i64 @ConPlatformUpdateDeviceVariable(ptr noundef @.str.8, ptr noundef %82, i32 noundef 1)
  br label %84

84:                                               ; preds = %79, %75
  %85 = load i8, ptr %12, align 1, !tbaa !9
  %86 = icmp ne i8 %85, 0
  br i1 %86, label %87, label %92

87:                                               ; preds = %84
  store i8 0, ptr %11, align 1, !tbaa !9
  %88 = load ptr, ptr @gBS, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %88, i32 0, i32 39
  %90 = load ptr, ptr %89, align 8, !tbaa !18
  %91 = call i64 (ptr, ...) %90(ptr noundef %6, ptr noundef @gEfiConsoleOutDeviceGuid, ptr noundef null, ptr noundef null)
  store i64 %91, ptr %8, align 8, !tbaa !17
  br label %92

92:                                               ; preds = %87, %84
  %93 = load i8, ptr %13, align 1, !tbaa !9
  %94 = icmp ne i8 %93, 0
  br i1 %94, label %95, label %100

95:                                               ; preds = %92
  store i8 0, ptr %11, align 1, !tbaa !9
  %96 = load ptr, ptr @gBS, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %96, i32 0, i32 39
  %98 = load ptr, ptr %97, align 8, !tbaa !18
  %99 = call i64 (ptr, ...) %98(ptr noundef %6, ptr noundef @gEfiStandardErrorDeviceGuid, ptr noundef null, ptr noundef null)
  br label %100

100:                                              ; preds = %95, %92
  %101 = load i8, ptr %11, align 1, !tbaa !9
  %102 = icmp ne i8 %101, 0
  br i1 %102, label %103, label %113

103:                                              ; preds = %100
  %104 = load ptr, ptr @gBS, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %104, i32 0, i32 34
  %106 = load ptr, ptr %105, align 8, !tbaa !19
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %108, i32 0, i32 5
  %110 = load ptr, ptr %109, align 8, !tbaa !15
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = call i64 %106(ptr noundef %107, ptr noundef @gEfiSimpleTextOutProtocolGuid, ptr noundef %110, ptr noundef %111)
  br label %113

113:                                              ; preds = %103, %100
  br label %114

114:                                              ; preds = %113, %74
  store i64 0, ptr %4, align 8
  store i32 1, ptr %14, align 4
  br label %115

115:                                              ; preds = %114, %40, %26
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #2
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #2
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #2
  %116 = load i64, ptr %4, align 8
  ret i64 %116
}

; 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 @ConPlatformUpdateDeviceVariable(ptr noundef, ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @IsHotPlugDevice(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @ConPlatformUpdateGopCandidate(ptr noundef) #0

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 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !6, i64 280}
!11 = !{!"", !12, 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}
!12 = !{!"", !13, i64 0, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20}
!13 = !{!"long long", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !6, i64 40}
!16 = !{!"_EFI_DRIVER_BINDING_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !14, i64 24, !6, i64 32, !6, i64 40}
!17 = !{!13, !13, i64 0}
!18 = !{!11, !6, i64 328}
!19 = !{!11, !6, i64 288}


; 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] }

@gEfiSimpleTextOutProtocolGuid = external global %struct.GUID, align 4
@gBS = external local_unnamed_addr global ptr, align 8
@gEfiDevicePathProtocolGuid = external global %struct.GUID, align 4
@.str.5 = external hidden unnamed_addr constant [7 x i32], align 4
@.str.6 = external hidden unnamed_addr constant [7 x i32], align 4
@gEfiConsoleOutDeviceGuid = external global %struct.GUID, align 4
@.str.7 = external hidden unnamed_addr constant [10 x i32], align 4
@.str.8 = external hidden unnamed_addr constant [10 x i32], align 4
@gEfiStandardErrorDeviceGuid = external global %struct.GUID, align 4

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775808, 1) i64 @ConPlatformTextOutDriverBindingStart(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef readnone %2) local_unnamed_addr #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #2
  %7 = load ptr, ptr @gBS, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 280
  %9 = load ptr, ptr %8, align 8, !tbaa !9
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = load ptr, ptr %10, align 8, !tbaa !14
  %12 = call i64 %9(ptr noundef %1, ptr noundef nonnull @gEfiDevicePathProtocolGuid, ptr noundef nonnull %5, ptr noundef %11, ptr noundef %1, i32 noundef 2) #2
  %13 = icmp slt i64 %12, 0
  br i1 %13, label %66, label %14

14:                                               ; preds = %3
  %15 = load ptr, ptr @gBS, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %15, i64 280
  %17 = load ptr, ptr %16, align 8, !tbaa !9
  %18 = load ptr, ptr %10, align 8, !tbaa !14
  %19 = call i64 %17(ptr noundef %1, ptr noundef nonnull @gEfiSimpleTextOutProtocolGuid, ptr noundef nonnull %6, ptr noundef %18, ptr noundef %1, i32 noundef 16) #2
  %20 = icmp slt i64 %19, 0
  br i1 %20, label %66, label %21

21:                                               ; preds = %14
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = call i64 @ConPlatformUpdateDeviceVariable(ptr noundef nonnull @.str.5, ptr noundef %22, i32 noundef 0)
  %24 = icmp sgt i64 %23, -1
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = call i64 @ConPlatformUpdateDeviceVariable(ptr noundef nonnull @.str.6, ptr noundef %25, i32 noundef 0)
  %27 = icmp slt i64 %26, 0
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = call zeroext i8 @IsHotPlugDevice(ptr noundef %28)
  %.not = icmp eq i8 %29, 0
  br i1 %.not, label %42, label %30

30:                                               ; preds = %21
  %31 = load ptr, ptr @gBS, align 8, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %31, i64 328
  %33 = load ptr, ptr %32, align 8, !tbaa !16
  %34 = call i64 (ptr, ...) %33(ptr noundef nonnull %4, ptr noundef nonnull @gEfiConsoleOutDeviceGuid, ptr noundef null, ptr noundef null) #2
  br i1 %24, label %35, label %38

35:                                               ; preds = %30
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = call i64 @ConPlatformUpdateDeviceVariable(ptr noundef nonnull @.str.7, ptr noundef %36, i32 noundef 1)
  br label %38

38:                                               ; preds = %35, %30
  br i1 %27, label %66, label %39

39:                                               ; preds = %38
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = call i64 @ConPlatformUpdateDeviceVariable(ptr noundef nonnull @.str.8, ptr noundef %40, i32 noundef 1)
  br label %66

42:                                               ; preds = %21
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = call zeroext i8 @ConPlatformUpdateGopCandidate(ptr noundef %43)
  %.not19 = icmp eq i8 %44, 0
  br i1 %.not19, label %45, label %50

45:                                               ; preds = %42
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = call i64 @ConPlatformUpdateDeviceVariable(ptr noundef nonnull @.str.7, ptr noundef %46, i32 noundef 1)
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = call i64 @ConPlatformUpdateDeviceVariable(ptr noundef nonnull @.str.8, ptr noundef %48, i32 noundef 1)
  br label %50

50:                                               ; preds = %45, %42
  br i1 %24, label %51, label %.thread27

51:                                               ; preds = %50
  %52 = load ptr, ptr @gBS, align 8, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %52, i64 328
  %54 = load ptr, ptr %53, align 8, !tbaa !16
  %55 = call i64 (ptr, ...) %54(ptr noundef nonnull %4, ptr noundef nonnull @gEfiConsoleOutDeviceGuid, ptr noundef null, ptr noundef null) #2
  br i1 %27, label %66, label %.thread

.thread27:                                        ; preds = %50
  br i1 %27, label %.thread28, label %.thread

.thread:                                          ; preds = %.thread27, %51
  %56 = load ptr, ptr @gBS, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %56, i64 328
  %58 = load ptr, ptr %57, align 8, !tbaa !16
  %59 = call i64 (ptr, ...) %58(ptr noundef nonnull %4, ptr noundef nonnull @gEfiStandardErrorDeviceGuid, ptr noundef null, ptr noundef null) #2
  br label %66

.thread28:                                        ; preds = %.thread27
  %60 = load ptr, ptr @gBS, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i64 288
  %62 = load ptr, ptr %61, align 8, !tbaa !17
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = load ptr, ptr %10, align 8, !tbaa !14
  %65 = call i64 %62(ptr noundef %63, ptr noundef nonnull @gEfiSimpleTextOutProtocolGuid, ptr noundef %64, ptr noundef %63) #2
  br label %66

66:                                               ; preds = %51, %.thread, %39, %38, %.thread28, %14, %3
  %.016 = phi i64 [ %12, %3 ], [ %19, %14 ], [ 0, %.thread28 ], [ 0, %38 ], [ 0, %39 ], [ 0, %.thread ], [ 0, %51 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #2
  ret i64 %.016
}

; 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 @ConPlatformUpdateDeviceVariable(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @IsHotPlugDevice(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @ConPlatformUpdateGopCandidate(ptr noundef) local_unnamed_addr #0

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 = { 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 280}
!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 = !{!15, !6, i64 40}
!15 = !{!"_EFI_DRIVER_BINDING_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !6, i64 32, !6, i64 40}
!16 = !{!10, !6, i64 328}
!17 = !{!10, !6, i64 288}


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