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

; 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.CIRRUS_LOGIC_5430_VIDEO_MODES = type { i32, i32, i32, i32, ptr, ptr, i8 }
%struct.CIRRUS_LOGIC_5430_PRIVATE_DATA = type { i64, ptr, ptr, i64, %struct._EFI_UGA_DRAW_PROTOCOL, %struct._EFI_GRAPHICS_OUTPUT_PROTOCOL, %struct.EFI_EDID_DISCOVERED_PROTOCOL, %struct.EFI_EDID_ACTIVE_PROTOCOL, ptr, ptr, i64, i64, [3 x %struct.CIRRUS_LOGIC_5430_MODE_DATA], ptr, i8 }
%struct._EFI_UGA_DRAW_PROTOCOL = type { ptr, ptr, ptr }
%struct._EFI_GRAPHICS_OUTPUT_PROTOCOL = type { ptr, ptr, ptr, ptr }
%struct.EFI_EDID_DISCOVERED_PROTOCOL = type { i32, ptr }
%struct.EFI_EDID_ACTIVE_PROTOCOL = type { i32, ptr }
%struct.CIRRUS_LOGIC_5430_MODE_DATA = type { i32, i32, i32, i32, i32 }
%struct.EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE = type { i32, i32, ptr, i64, i64, i64 }
%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_GRAPHICS_OUTPUT_MODE_INFORMATION = type { i32, i32, i32, i32, %struct.EFI_PIXEL_BITMASK, i32 }
%struct.EFI_PIXEL_BITMASK = type { i32, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [165 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@gBS = external global ptr, align 8
@CirrusLogic5430VideoModes = external global [0 x %struct.CIRRUS_LOGIC_5430_VIDEO_MODES], align 8

; 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

declare ptr @AllocatePool(i64 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 @CirrusLogic5430GraphicsOutputSetMode(ptr noundef %0, i32 noundef %1) #2 {
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %9 = call zeroext i8 @DebugAssertEnabled()
  %10 = zext i8 %9 to i32
  %11 = icmp ne i32 %10, 0
  br i1 %11, label %12, label %22

12:                                               ; preds = %2
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = ptrtoint ptr %13 to i64
  %15 = sub i64 %14, ptrtoint (ptr getelementptr inbounds (%struct.CIRRUS_LOGIC_5430_PRIVATE_DATA, ptr null, i32 0, i32 5) to i64)
  %16 = inttoptr i64 %15 to ptr
  %17 = getelementptr inbounds %struct.CIRRUS_LOGIC_5430_PRIVATE_DATA, ptr %16, i32 0, i32 0
  %18 = load i64, ptr %17, align 8, !tbaa !11
  %19 = icmp ne i64 %18, 875908163
  br i1 %19, label %20, label %22

20:                                               ; preds = %12
  call void @DebugAssert(ptr noundef @.str, i64 noundef 153, ptr noundef @.str.1)
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  br label %27

22:                                               ; preds = %12, %2
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = ptrtoint ptr %23 to i64
  %25 = sub i64 %24, ptrtoint (ptr getelementptr inbounds (%struct.CIRRUS_LOGIC_5430_PRIVATE_DATA, ptr null, i32 0, i32 5) to i64)
  %26 = inttoptr i64 %25 to ptr
  br label %27

27:                                               ; preds = %22, %20
  %28 = phi ptr [ %21, %20 ], [ %26, %22 ]
  store ptr %28, ptr %6, align 8, !tbaa !5
  %29 = load i32, ptr %5, align 4, !tbaa !9
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct._EFI_GRAPHICS_OUTPUT_PROTOCOL, ptr %30, i32 0, i32 3
  %32 = load ptr, ptr %31, align 8, !tbaa !17
  %33 = getelementptr inbounds %struct.EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE, ptr %32, i32 0, i32 0
  %34 = load i32, ptr %33, align 8, !tbaa !18
  %35 = icmp uge i32 %29, %34
  br i1 %35, label %36, label %37

36:                                               ; preds = %27
  store i64 -9223372036854775805, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %111

37:                                               ; preds = %27
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.CIRRUS_LOGIC_5430_PRIVATE_DATA, ptr %38, i32 0, i32 12
  %40 = load i32, ptr %5, align 4, !tbaa !9
  %41 = zext i32 %40 to i64
  %42 = getelementptr inbounds [3 x %struct.CIRRUS_LOGIC_5430_MODE_DATA], ptr %39, i64 0, i64 %41
  store ptr %42, ptr %7, align 8, !tbaa !5
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.CIRRUS_LOGIC_5430_PRIVATE_DATA, ptr %43, i32 0, i32 13
  %45 = load ptr, ptr %44, align 8, !tbaa !20
  %46 = icmp ne ptr %45, null
  br i1 %46, label %47, label %55

47:                                               ; preds = %37
  %48 = load ptr, ptr @gBS, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %48, i32 0, i32 7
  %50 = load ptr, ptr %49, align 8, !tbaa !21
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.CIRRUS_LOGIC_5430_PRIVATE_DATA, ptr %51, i32 0, i32 13
  %53 = load ptr, ptr %52, align 8, !tbaa !20
  %54 = call i64 %50(ptr noundef %53)
  br label %55

55:                                               ; preds = %47, %37
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.CIRRUS_LOGIC_5430_PRIVATE_DATA, ptr %56, i32 0, i32 13
  store ptr null, ptr %57, align 8, !tbaa !20
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.CIRRUS_LOGIC_5430_MODE_DATA, ptr %58, i32 0, i32 1
  %60 = load i32, ptr %59, align 4, !tbaa !24
  %61 = zext i32 %60 to i64
  %62 = call ptr @AllocatePool(i64 noundef %61)
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.CIRRUS_LOGIC_5430_PRIVATE_DATA, ptr %63, i32 0, i32 13
  store ptr %62, ptr %64, align 8, !tbaa !20
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.CIRRUS_LOGIC_5430_PRIVATE_DATA, ptr %65, i32 0, i32 13
  %67 = load ptr, ptr %66, align 8, !tbaa !20
  %68 = icmp eq ptr %67, null
  br i1 %68, label %69, label %70

69:                                               ; preds = %55
  store i64 -9223372036854775799, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %111

70:                                               ; preds = %55
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.CIRRUS_LOGIC_5430_MODE_DATA, ptr %72, i32 0, i32 0
  %74 = load i32, ptr %73, align 4, !tbaa !26
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds [0 x %struct.CIRRUS_LOGIC_5430_VIDEO_MODES], ptr @CirrusLogic5430VideoModes, i64 0, i64 %75
  call void @InitializeGraphicsMode(ptr noundef %71, ptr noundef %76)
  %77 = load i32, ptr %5, align 4, !tbaa !9
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct._EFI_GRAPHICS_OUTPUT_PROTOCOL, ptr %78, i32 0, i32 3
  %80 = load ptr, ptr %79, align 8, !tbaa !17
  %81 = getelementptr inbounds %struct.EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE, ptr %80, i32 0, i32 1
  store i32 %77, ptr %81, align 4, !tbaa !27
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.CIRRUS_LOGIC_5430_MODE_DATA, ptr %82, i32 0, i32 1
  %84 = load i32, ptr %83, align 4, !tbaa !24
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct._EFI_GRAPHICS_OUTPUT_PROTOCOL, ptr %85, i32 0, i32 3
  %87 = load ptr, ptr %86, align 8, !tbaa !17
  %88 = getelementptr inbounds %struct.EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE, ptr %87, i32 0, i32 2
  %89 = load ptr, ptr %88, align 8, !tbaa !28
  %90 = getelementptr inbounds %struct.EFI_GRAPHICS_OUTPUT_MODE_INFORMATION, ptr %89, i32 0, i32 1
  store i32 %84, ptr %90, align 4, !tbaa !29
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.CIRRUS_LOGIC_5430_MODE_DATA, ptr %91, i32 0, i32 2
  %93 = load i32, ptr %92, align 4, !tbaa !32
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct._EFI_GRAPHICS_OUTPUT_PROTOCOL, ptr %94, i32 0, i32 3
  %96 = load ptr, ptr %95, align 8, !tbaa !17
  %97 = getelementptr inbounds %struct.EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE, ptr %96, i32 0, i32 2
  %98 = load ptr, ptr %97, align 8, !tbaa !28
  %99 = getelementptr inbounds %struct.EFI_GRAPHICS_OUTPUT_MODE_INFORMATION, ptr %98, i32 0, i32 2
  store i32 %93, ptr %99, align 4, !tbaa !33
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct._EFI_GRAPHICS_OUTPUT_PROTOCOL, ptr %100, i32 0, i32 3
  %102 = load ptr, ptr %101, align 8, !tbaa !17
  %103 = getelementptr inbounds %struct.EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE, ptr %102, i32 0, i32 3
  store i64 36, ptr %103, align 8, !tbaa !34
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct._EFI_GRAPHICS_OUTPUT_PROTOCOL, ptr %105, i32 0, i32 3
  %107 = load ptr, ptr %106, align 8, !tbaa !17
  %108 = call i64 @CirrusLogic5430CompleteModeData(ptr noundef %104, ptr noundef %107)
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.CIRRUS_LOGIC_5430_PRIVATE_DATA, ptr %109, i32 0, i32 14
  store i8 0, ptr %110, align 8, !tbaa !35
  store i64 0, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %111

111:                                              ; preds = %70, %69, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  %112 = load i64, ptr %3, align 8
  ret i64 %112
}

declare void @InitializeGraphicsMode(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden i64 @CirrusLogic5430CompleteModeData(ptr noundef, ptr noundef) #2

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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"", !13, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !14, i64 32, !15, i64 56, !16, i64 88, !16, i64 104, !6, i64 120, !6, i64 128, !13, i64 136, !13, i64 144, !7, i64 152, !6, i64 216, !7, i64 224}
!13 = !{!"long long", !7, i64 0}
!14 = !{!"_EFI_UGA_DRAW_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16}
!15 = !{!"_EFI_GRAPHICS_OUTPUT_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!16 = !{!"", !10, i64 0, !6, i64 8}
!17 = !{!15, !6, i64 24}
!18 = !{!19, !10, i64 0}
!19 = !{!"", !10, i64 0, !10, i64 4, !6, i64 8, !13, i64 16, !13, i64 24, !13, i64 32}
!20 = !{!12, !6, i64 216}
!21 = !{!22, !6, i64 72}
!22 = !{!"", !23, 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}
!23 = !{!"", !13, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!24 = !{!25, !10, i64 4}
!25 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!26 = !{!25, !10, i64 0}
!27 = !{!19, !10, i64 4}
!28 = !{!19, !6, i64 8}
!29 = !{!30, !10, i64 4}
!30 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !31, i64 16, !10, i64 32}
!31 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!32 = !{!25, !10, i64 8}
!33 = !{!30, !10, i64 8}
!34 = !{!19, !13, i64 16}
!35 = !{!12, !7, i64 224}


; 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.CIRRUS_LOGIC_5430_VIDEO_MODES = type { i32, i32, i32, i32, ptr, ptr, i8 }
%struct.CIRRUS_LOGIC_5430_MODE_DATA = type { i32, i32, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [165 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
@CirrusLogic5430VideoModes = external global [0 x %struct.CIRRUS_LOGIC_5430_VIDEO_MODES], align 8

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #0

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

declare ptr @AllocatePool(i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775805, 1) i64 @CirrusLogic5430GraphicsOutputSetMode(ptr noundef %0, i32 noundef %1) local_unnamed_addr #1 {
  %3 = tail call zeroext i8 @DebugAssertEnabled() #2
  %.not = icmp eq i8 %3, 0
  %.pre = ptrtoint ptr %0 to i64
  %.pre30 = add i64 %.pre, -56
  %.pre32 = inttoptr i64 %.pre30 to ptr
  br i1 %.not, label %._crit_edge, label %4

4:                                                ; preds = %2
  %5 = load i64, ptr %.pre32, align 8, !tbaa !5
  %.not27 = icmp eq i64 %5, 875908163
  br i1 %.not27, label %._crit_edge, label %6

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

._crit_edge:                                      ; preds = %2, %4, %6
  %7 = phi ptr [ %0, %6 ], [ %.pre32, %4 ], [ %.pre32, %2 ]
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  %9 = load ptr, ptr %8, align 8, !tbaa !15
  %10 = load i32, ptr %9, align 8, !tbaa !16
  %.not28 = icmp ugt i32 %10, %1
  br i1 %.not28, label %11, label %41

11:                                               ; preds = %._crit_edge
  %12 = getelementptr inbounds i8, ptr %7, i64 152
  %13 = zext i32 %1 to i64
  %14 = getelementptr inbounds [3 x %struct.CIRRUS_LOGIC_5430_MODE_DATA], ptr %12, i64 0, i64 %13
  %15 = getelementptr inbounds i8, ptr %7, i64 216
  %16 = load ptr, ptr %15, align 8, !tbaa !18
  %.not29 = icmp eq ptr %16, null
  br i1 %.not29, label %22, label %17

17:                                               ; preds = %11
  %18 = load ptr, ptr @gBS, align 8, !tbaa !19
  %19 = getelementptr inbounds i8, ptr %18, i64 72
  %20 = load ptr, ptr %19, align 8, !tbaa !20
  %21 = tail call i64 %20(ptr noundef nonnull %16) #2
  br label %22

22:                                               ; preds = %17, %11
  store ptr null, ptr %15, align 8, !tbaa !18
  %23 = getelementptr inbounds i8, ptr %14, i64 4
  %24 = load i32, ptr %23, align 4, !tbaa !23
  %25 = zext i32 %24 to i64
  %26 = tail call ptr @AllocatePool(i64 noundef %25) #2
  store ptr %26, ptr %15, align 8, !tbaa !18
  %27 = icmp eq ptr %26, null
  br i1 %27, label %41, label %28

28:                                               ; preds = %22
  %29 = load i32, ptr %14, align 4, !tbaa !25
  %30 = zext i32 %29 to i64
  %31 = getelementptr inbounds [0 x %struct.CIRRUS_LOGIC_5430_VIDEO_MODES], ptr @CirrusLogic5430VideoModes, i64 0, i64 %30
  tail call void @InitializeGraphicsMode(ptr noundef nonnull %7, ptr noundef nonnull %31) #2
  %32 = load ptr, ptr %8, align 8, !tbaa !15
  %33 = getelementptr inbounds i8, ptr %32, i64 4
  store i32 %1, ptr %33, align 4, !tbaa !26
  %34 = getelementptr inbounds i8, ptr %32, i64 8
  %35 = load ptr, ptr %34, align 8, !tbaa !27
  %36 = getelementptr inbounds i8, ptr %35, i64 4
  %37 = load <2 x i32>, ptr %23, align 4, !tbaa !28
  store <2 x i32> %37, ptr %36, align 4, !tbaa !28
  %38 = getelementptr inbounds i8, ptr %32, i64 16
  store i64 36, ptr %38, align 8, !tbaa !29
  %39 = tail call i64 @CirrusLogic5430CompleteModeData(ptr noundef nonnull %7, ptr noundef %32)
  %40 = getelementptr inbounds i8, ptr %7, i64 224
  store i8 0, ptr %40, align 8, !tbaa !30
  br label %41

41:                                               ; preds = %22, %._crit_edge, %28
  %.0 = phi i64 [ 0, %28 ], [ -9223372036854775805, %._crit_edge ], [ -9223372036854775799, %22 ]
  ret i64 %.0
}

declare void @InitializeGraphicsMode(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i64 @CirrusLogic5430CompleteModeData(ptr noundef, ptr noundef) local_unnamed_addr #1

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, !7, i64 0}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !11, i64 32, !12, i64 56, !13, i64 88, !13, i64 104, !10, i64 120, !10, i64 128, !7, i64 136, !7, i64 144, !8, i64 152, !10, i64 216, !8, i64 224}
!7 = !{!"long long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_EFI_UGA_DRAW_PROTOCOL", !10, i64 0, !10, i64 8, !10, i64 16}
!12 = !{!"_EFI_GRAPHICS_OUTPUT_PROTOCOL", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!13 = !{!"", !14, i64 0, !10, i64 8}
!14 = !{!"int", !8, i64 0}
!15 = !{!12, !10, i64 24}
!16 = !{!17, !14, i64 0}
!17 = !{!"", !14, i64 0, !14, i64 4, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!18 = !{!6, !10, i64 216}
!19 = !{!10, !10, i64 0}
!20 = !{!21, !10, i64 72}
!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 = !{!24, !14, i64 4}
!24 = !{!"", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16}
!25 = !{!24, !14, i64 0}
!26 = !{!17, !14, i64 4}
!27 = !{!17, !10, i64 8}
!28 = !{!14, !14, i64 0}
!29 = !{!17, !7, i64 16}
!30 = !{!6, !8, i64 224}


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