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

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

@.str = external hidden unnamed_addr constant [165 x i8], align 1
@gBS = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [39 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i64 @CirrusLogic5430GraphicsOutputQueryMode(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #0

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

declare zeroext i8 @DebugAssertEnabled() #2

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

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @CirrusLogic5430GraphicsOutputBlt(ptr noundef, ptr noundef, i32 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) #0

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

24:                                               ; preds = %1
  %25 = load i64, ptr %4, align 8, !tbaa !18
  store i64 %25, ptr %2, align 8
  store i32 1, ptr %6, align 4
  br label %107

26:                                               ; preds = %1
  %27 = load ptr, ptr @gBS, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %27, i32 0, i32 6
  %29 = load ptr, ptr %28, align 8, !tbaa !13
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.CIRRUS_LOGIC_5430_PRIVATE_DATA, ptr %30, i32 0, i32 5
  %32 = getelementptr inbounds %struct._EFI_GRAPHICS_OUTPUT_PROTOCOL, ptr %31, i32 0, i32 3
  %33 = load ptr, ptr %32, align 8, !tbaa !19
  %34 = getelementptr inbounds %struct.EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE, ptr %33, i32 0, i32 2
  %35 = call i64 %29(i32 noundef 4, i64 noundef 36, ptr noundef %34)
  store i64 %35, ptr %4, align 8, !tbaa !18
  %36 = load i64, ptr %4, align 8, !tbaa !18
  %37 = icmp slt i64 %36, 0
  br i1 %37, label %38, label %40

38:                                               ; preds = %26
  %39 = load i64, ptr %4, align 8, !tbaa !18
  store i64 %39, ptr %2, align 8
  store i32 1, ptr %6, align 4
  br label %107

40:                                               ; preds = %26
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.CIRRUS_LOGIC_5430_PRIVATE_DATA, ptr %41, i32 0, i32 11
  %43 = load i64, ptr %42, align 8, !tbaa !23
  %44 = trunc i64 %43 to i32
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.CIRRUS_LOGIC_5430_PRIVATE_DATA, ptr %45, i32 0, i32 5
  %47 = getelementptr inbounds %struct._EFI_GRAPHICS_OUTPUT_PROTOCOL, ptr %46, i32 0, i32 3
  %48 = load ptr, ptr %47, align 8, !tbaa !19
  %49 = getelementptr inbounds %struct.EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE, ptr %48, i32 0, i32 0
  store i32 %44, ptr %49, align 8, !tbaa !24
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.CIRRUS_LOGIC_5430_PRIVATE_DATA, ptr %50, i32 0, i32 5
  %52 = getelementptr inbounds %struct._EFI_GRAPHICS_OUTPUT_PROTOCOL, ptr %51, i32 0, i32 3
  %53 = load ptr, ptr %52, align 8, !tbaa !19
  %54 = getelementptr inbounds %struct.EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE, ptr %53, i32 0, i32 1
  store i32 65535, ptr %54, align 4, !tbaa !26
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.CIRRUS_LOGIC_5430_PRIVATE_DATA, ptr %55, i32 0, i32 14
  store i8 1, ptr %56, align 8, !tbaa !27
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.CIRRUS_LOGIC_5430_PRIVATE_DATA, ptr %57, i32 0, i32 13
  store ptr null, ptr %58, align 8, !tbaa !28
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct._EFI_GRAPHICS_OUTPUT_PROTOCOL, ptr %59, i32 0, i32 1
  %61 = load ptr, ptr %60, align 8, !tbaa !11
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = call i64 %61(ptr noundef %62, i32 noundef 0)
  br label %64

64:                                               ; preds = %40
  %65 = call zeroext i8 @DebugAssertEnabled()
  %66 = icmp ne i8 %65, 0
  br i1 %66, label %67, label %77

67:                                               ; preds = %64
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.CIRRUS_LOGIC_5430_PRIVATE_DATA, ptr %68, i32 0, i32 5
  %70 = getelementptr inbounds %struct._EFI_GRAPHICS_OUTPUT_PROTOCOL, ptr %69, i32 0, i32 3
  %71 = load ptr, ptr %70, align 8, !tbaa !19
  %72 = getelementptr inbounds %struct.EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE, ptr %71, i32 0, i32 1
  %73 = load i32, ptr %72, align 4, !tbaa !26
  %74 = icmp ult i32 %73, 3
  br i1 %74, label %76, label %75

75:                                               ; preds = %67
  call void @DebugAssert(ptr noundef @.str, i64 noundef 526, ptr noundef @.str.3)
  br label %76

76:                                               ; preds = %75, %67
  br label %77

77:                                               ; preds = %76, %64
  br label %78

78:                                               ; preds = %77
  br label %79

79:                                               ; preds = %78
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.CIRRUS_LOGIC_5430_PRIVATE_DATA, ptr %81, i32 0, i32 12
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.CIRRUS_LOGIC_5430_PRIVATE_DATA, ptr %83, i32 0, i32 5
  %85 = getelementptr inbounds %struct._EFI_GRAPHICS_OUTPUT_PROTOCOL, ptr %84, i32 0, i32 3
  %86 = load ptr, ptr %85, align 8, !tbaa !19
  %87 = getelementptr inbounds %struct.EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE, ptr %86, i32 0, i32 1
  %88 = load i32, ptr %87, align 4, !tbaa !26
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds [3 x %struct.CIRRUS_LOGIC_5430_MODE_DATA], ptr %82, i64 0, i64 %89
  %91 = getelementptr inbounds %struct.CIRRUS_LOGIC_5430_MODE_DATA, ptr %90, i32 0, i32 1
  %92 = load i32, ptr %91, align 4, !tbaa !29
  %93 = zext i32 %92 to i64
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.CIRRUS_LOGIC_5430_PRIVATE_DATA, ptr %94, i32 0, i32 12
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.CIRRUS_LOGIC_5430_PRIVATE_DATA, ptr %96, i32 0, i32 5
  %98 = getelementptr inbounds %struct._EFI_GRAPHICS_OUTPUT_PROTOCOL, ptr %97, i32 0, i32 3
  %99 = load ptr, ptr %98, align 8, !tbaa !19
  %100 = getelementptr inbounds %struct.EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE, ptr %99, i32 0, i32 1
  %101 = load i32, ptr %100, align 4, !tbaa !26
  %102 = zext i32 %101 to i64
  %103 = getelementptr inbounds [3 x %struct.CIRRUS_LOGIC_5430_MODE_DATA], ptr %95, i64 0, i64 %102
  %104 = getelementptr inbounds %struct.CIRRUS_LOGIC_5430_MODE_DATA, ptr %103, i32 0, i32 2
  %105 = load i32, ptr %104, align 4, !tbaa !31
  %106 = zext i32 %105 to i64
  call void @DrawLogo(ptr noundef %80, i64 noundef %93, i64 noundef %106)
  store i64 0, ptr %2, align 8
  store i32 1, ptr %6, align 4
  br label %107

107:                                              ; preds = %79, %38, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  %108 = load i64, ptr %2, align 8
  ret i64 %108
}

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


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

@.str = external hidden unnamed_addr constant [165 x i8], align 1
@gBS = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [39 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i64 @CirrusLogic5430GraphicsOutputQueryMode(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #0

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @CirrusLogic5430GraphicsOutputSetMode(ptr noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i64 @CirrusLogic5430GraphicsOutputBlt(ptr noundef, ptr noundef, i32 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775808, 1) i64 @CirrusLogic5430GraphicsOutputConstructor(ptr noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr @CirrusLogic5430GraphicsOutputQueryMode, ptr %2, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 64
  store ptr @CirrusLogic5430GraphicsOutputSetMode, ptr %3, align 8, !tbaa !10
  %4 = getelementptr inbounds i8, ptr %0, i64 72
  store ptr @CirrusLogic5430GraphicsOutputBlt, ptr %4, align 8, !tbaa !11
  %5 = load ptr, ptr @gBS, align 8, !tbaa !12
  %6 = getelementptr inbounds i8, ptr %5, i64 64
  %7 = load ptr, ptr %6, align 8, !tbaa !13
  %8 = getelementptr inbounds i8, ptr %0, i64 80
  %9 = tail call i64 %7(i32 noundef 4, i64 noundef 40, ptr noundef nonnull %8) #2
  %10 = icmp slt i64 %9, 0
  br i1 %10, label %48, label %11

11:                                               ; preds = %1
  %12 = load ptr, ptr @gBS, align 8, !tbaa !12
  %13 = getelementptr inbounds i8, ptr %12, i64 64
  %14 = load ptr, ptr %13, align 8, !tbaa !13
  %15 = load ptr, ptr %8, align 8, !tbaa !18
  %16 = getelementptr inbounds i8, ptr %15, i64 8
  %17 = tail call i64 %14(i32 noundef 4, i64 noundef 36, ptr noundef nonnull %16) #2
  %18 = icmp slt i64 %17, 0
  br i1 %18, label %48, label %19

19:                                               ; preds = %11
  %20 = getelementptr inbounds i8, ptr %0, i64 144
  %21 = load i64, ptr %20, align 8, !tbaa !22
  %22 = trunc i64 %21 to i32
  %23 = load ptr, ptr %8, align 8, !tbaa !18
  store i32 %22, ptr %23, align 8, !tbaa !23
  %24 = getelementptr inbounds i8, ptr %23, i64 4
  store i32 65535, ptr %24, align 4, !tbaa !25
  %25 = getelementptr inbounds i8, ptr %0, i64 224
  store i8 1, ptr %25, align 8, !tbaa !26
  %26 = getelementptr inbounds i8, ptr %0, i64 216
  store ptr null, ptr %26, align 8, !tbaa !27
  %27 = load ptr, ptr %3, align 8, !tbaa !10
  %28 = tail call i64 %27(ptr noundef nonnull %2, i32 noundef 0) #2
  %29 = tail call zeroext i8 @DebugAssertEnabled() #2
  %.not = icmp eq i8 %29, 0
  %.pre25 = load ptr, ptr %8, align 8, !tbaa !18
  br i1 %.not, label %35, label %30

30:                                               ; preds = %19
  %31 = getelementptr inbounds i8, ptr %.pre25, i64 4
  %32 = load i32, ptr %31, align 4, !tbaa !25
  %33 = icmp ult i32 %32, 3
  br i1 %33, label %35, label %34

34:                                               ; preds = %30
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 526, ptr noundef nonnull @.str.3) #2
  %.pre = load ptr, ptr %8, align 8, !tbaa !18
  br label %35

35:                                               ; preds = %30, %34, %19
  %36 = phi ptr [ %.pre25, %30 ], [ %.pre, %34 ], [ %.pre25, %19 ]
  %37 = getelementptr inbounds i8, ptr %0, i64 152
  %38 = getelementptr inbounds i8, ptr %36, i64 4
  %39 = load i32, ptr %38, align 4, !tbaa !25
  %40 = zext i32 %39 to i64
  %41 = getelementptr inbounds [3 x %struct.CIRRUS_LOGIC_5430_MODE_DATA], ptr %37, i64 0, i64 %40
  %42 = getelementptr inbounds i8, ptr %41, i64 4
  %43 = load i32, ptr %42, align 4, !tbaa !28
  %44 = zext i32 %43 to i64
  %45 = getelementptr inbounds i8, ptr %41, i64 8
  %46 = load i32, ptr %45, align 4, !tbaa !30
  %47 = zext i32 %46 to i64
  tail call void @DrawLogo(ptr noundef nonnull %0, i64 noundef %44, i64 noundef %47) #2
  br label %48

48:                                               ; preds = %11, %1, %35
  %.0 = phi i64 [ 0, %35 ], [ %9, %1 ], [ %17, %11 ]
  ret i64 %.0
}

declare void @DrawLogo(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

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 = { "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 = !{!"_EFI_GRAPHICS_OUTPUT_PROTOCOL", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!6, !7, i64 16}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !7, i64 64}
!14 = !{!"", !15, i64 0, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !7, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !7, i64 216, !7, i64 224, !7, i64 232, !7, i64 240, !7, i64 248, !7, i64 256, !7, i64 264, !7, i64 272, !7, i64 280, !7, i64 288, !7, i64 296, !7, i64 304, !7, i64 312, !7, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !7, i64 360, !7, i64 368}
!15 = !{!"", !16, i64 0, !17, i64 8, !17, i64 12, !17, i64 16, !17, i64 20}
!16 = !{!"long long", !8, i64 0}
!17 = !{!"int", !8, i64 0}
!18 = !{!19, !7, i64 80}
!19 = !{!"", !16, i64 0, !7, i64 8, !7, i64 16, !16, i64 24, !20, i64 32, !6, i64 56, !21, i64 88, !21, i64 104, !7, i64 120, !7, i64 128, !16, i64 136, !16, i64 144, !8, i64 152, !7, i64 216, !8, i64 224}
!20 = !{!"_EFI_UGA_DRAW_PROTOCOL", !7, i64 0, !7, i64 8, !7, i64 16}
!21 = !{!"", !17, i64 0, !7, i64 8}
!22 = !{!19, !16, i64 144}
!23 = !{!24, !17, i64 0}
!24 = !{!"", !17, i64 0, !17, i64 4, !7, i64 8, !16, i64 16, !16, i64 24, !16, i64 32}
!25 = !{!24, !17, i64 4}
!26 = !{!19, !8, i64 224}
!27 = !{!19, !7, i64 216}
!28 = !{!29, !17, i64 4}
!29 = !{!"", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12, !17, i64 16}
!30 = !{!29, !17, i64 8}


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