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

; 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 }
%struct._IP4_SERVICE = type { i32, %struct._EFI_SERVICE_BINDING_PROTOCOL, i64, i64, %struct._LIST_ENTRY, %struct._LIST_ENTRY, ptr, ptr, %struct.IP4_ASSEMBLE_TABLE, %struct.IGMP_SERVICE_DATA, ptr, ptr, ptr, ptr, %struct.EFI_MANAGED_NETWORK_CONFIG_DATA, %struct.EFI_SIMPLE_NETWORK_MODE, ptr, ptr, ptr, ptr, ptr, i32, i32 }
%struct._EFI_SERVICE_BINDING_PROTOCOL = type { ptr, ptr }
%struct._LIST_ENTRY = type { ptr, ptr }
%struct.IP4_ASSEMBLE_TABLE = type { [31 x %struct._LIST_ENTRY] }
%struct.IGMP_SERVICE_DATA = type { i64, %struct._LIST_ENTRY }
%struct.EFI_MANAGED_NETWORK_CONFIG_DATA = type { i32, i32, i16, i8, i8, i8, i8, i8, i8, i8 }
%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] }

@gBS = external global ptr, align 8
@.str = external hidden unnamed_addr constant [151 x i8], align 1
@gEfiIp4ServiceBindingProtocolGuid = external global %struct.GUID, align 4
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@mIp4Id = external global i16, align 2

; Function Attrs: nounwind uwtable
define dso_local i64 @Ip4DriverBindingStart(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 ptr, align 8
  %9 = alloca i64, align 8
  %10 = 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) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %11 = load ptr, ptr @gBS, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %11, i32 0, i32 33
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %15, i32 0, i32 5
  %17 = load ptr, ptr %16, align 8, !tbaa !14
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = call i64 %13(ptr noundef %14, ptr noundef @gEfiIp4ServiceBindingProtocolGuid, ptr noundef null, ptr noundef %17, ptr noundef %18, i32 noundef 4)
  store i64 %19, ptr %9, align 8, !tbaa !16
  %20 = load i64, ptr %9, align 8, !tbaa !16
  %21 = icmp eq i64 %20, 0
  br i1 %21, label %22, label %23

22:                                               ; preds = %3
  store i64 -9223372036854775788, ptr %4, align 8
  store i32 1, ptr %10, align 4
  br label %97

23:                                               ; preds = %3
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %25, i32 0, i32 5
  %27 = load ptr, ptr %26, align 8, !tbaa !14
  %28 = call i64 @Ip4CreateService(ptr noundef %24, ptr noundef %27, ptr noundef %8)
  store i64 %28, ptr %9, align 8, !tbaa !16
  %29 = load i64, ptr %9, align 8, !tbaa !16
  %30 = icmp slt i64 %29, 0
  br i1 %30, label %31, label %33

31:                                               ; preds = %23
  %32 = load i64, ptr %9, align 8, !tbaa !16
  store i64 %32, ptr %4, align 8
  store i32 1, ptr %10, align 4
  br label %97

33:                                               ; preds = %23
  br label %34

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

37:                                               ; preds = %34
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = icmp ne ptr %38, null
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  call void @DebugAssert(ptr noundef @.str, i64 noundef 484, ptr noundef @.str.3)
  br label %41

41:                                               ; preds = %40, %37
  br label %42

42:                                               ; preds = %41, %34
  br label %43

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43
  %45 = load ptr, ptr @gBS, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %45, i32 0, i32 39
  %47 = load ptr, ptr %46, align 8, !tbaa !17
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct._IP4_SERVICE, ptr %48, i32 0, i32 1
  %50 = call i64 (ptr, ...) %47(ptr noundef %6, ptr noundef @gEfiIp4ServiceBindingProtocolGuid, ptr noundef %49, ptr noundef null)
  store i64 %50, ptr %9, align 8, !tbaa !16
  %51 = load i64, ptr %9, align 8, !tbaa !16
  %52 = icmp slt i64 %51, 0
  br i1 %52, label %53, label %54

53:                                               ; preds = %44
  br label %92

54:                                               ; preds = %44
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct._IP4_SERVICE, ptr %55, i32 0, i32 6
  %57 = load ptr, ptr %56, align 8, !tbaa !18
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = call i64 @Ip4ReceiveFrame(ptr noundef %57, ptr noundef null, ptr noundef @Ip4AccpetFrame, ptr noundef %58)
  store i64 %59, ptr %9, align 8, !tbaa !16
  %60 = load i64, ptr %9, align 8, !tbaa !16
  %61 = icmp slt i64 %60, 0
  br i1 %61, label %62, label %63

62:                                               ; preds = %54
  br label %84

63:                                               ; preds = %54
  %64 = load ptr, ptr @gBS, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %64, i32 0, i32 9
  %66 = load ptr, ptr %65, align 8, !tbaa !27
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct._IP4_SERVICE, ptr %67, i32 0, i32 16
  %69 = load ptr, ptr %68, align 8, !tbaa !28
  %70 = call i64 %66(ptr noundef %69, i32 noundef 1, i64 noundef 10000000)
  store i64 %70, ptr %9, align 8, !tbaa !16
  %71 = load i64, ptr %9, align 8, !tbaa !16
  %72 = icmp slt i64 %71, 0
  br i1 %72, label %73, label %74

73:                                               ; preds = %63
  br label %84

74:                                               ; preds = %63
  %75 = call i32 @NetRandomInitSeed()
  %76 = zext i32 %75 to i64
  %77 = mul i64 %76, 1103515245
  %78 = add i64 %77, 12345
  %79 = trunc i64 %78 to i32
  %80 = zext i32 %79 to i64
  %81 = urem i64 %80, 4294967295
  %82 = trunc i64 %81 to i16
  store i16 %82, ptr @mIp4Id, align 2, !tbaa !29
  %83 = load i64, ptr %9, align 8, !tbaa !16
  store i64 %83, ptr %4, align 8
  store i32 1, ptr %10, align 4
  br label %97

84:                                               ; preds = %73, %62
  %85 = load ptr, ptr @gBS, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %85, i32 0, i32 16
  %87 = load ptr, ptr %86, align 8, !tbaa !30
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct._IP4_SERVICE, ptr %89, i32 0, i32 1
  %91 = call i64 %87(ptr noundef %88, ptr noundef @gEfiIp4ServiceBindingProtocolGuid, ptr noundef %90)
  br label %92

92:                                               ; preds = %84, %53
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = call i64 @Ip4CleanService(ptr noundef %93)
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  call void @FreePool(ptr noundef %95)
  %96 = load i64, ptr %9, align 8, !tbaa !16
  store i64 %96, ptr %4, align 8
  store i32 1, ptr %10, align 4
  br label %97

97:                                               ; preds = %92, %74, %31, %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  %98 = load i64, ptr %4, align 8
  ret i64 %98
}

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

declare zeroext i8 @DebugAssertEnabled() #2

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

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

declare void @FreePool(ptr noundef) #2

declare i64 @Ip4ReceiveFrame(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @Ip4AccpetFrame(ptr noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef) #2

declare i32 @NetRandomInitSeed() #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 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 = !{!12, !12, i64 0}
!17 = !{!10, !6, i64 328}
!18 = !{!19, !6, i64 72}
!19 = !{!"_IP4_SERVICE", !13, i64 0, !20, i64 8, !12, i64 24, !12, i64 32, !21, i64 40, !21, i64 56, !6, i64 72, !6, i64 80, !22, i64 88, !23, i64 584, !6, i64 608, !6, i64 616, !6, i64 624, !6, i64 632, !24, i64 640, !26, i64 660, !6, i64 1320, !6, i64 1328, !6, i64 1336, !6, i64 1344, !6, i64 1352, !13, i64 1360, !13, i64 1364}
!20 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !6, i64 0, !6, i64 8}
!21 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!22 = !{!"", !7, i64 0}
!23 = !{!"", !12, i64 0, !21, i64 8}
!24 = !{!"", !13, i64 0, !13, i64 4, !25, i64 8, !7, i64 10, !7, i64 11, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16}
!25 = !{!"short", !7, i64 0}
!26 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !7, i64 40, !22, i64 552, !22, i64 584, !22, i64 616, !7, i64 648, !7, i64 649, !7, i64 650, !7, i64 651, !7, i64 652}
!27 = !{!10, !6, i64 88}
!28 = !{!19, !6, i64 1320}
!29 = !{!25, !25, i64 0}
!30 = !{!10, !6, i64 144}


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

@gBS = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [151 x i8], align 1
@gEfiIp4ServiceBindingProtocolGuid = external global %struct.GUID, align 4
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@mIp4Id = external local_unnamed_addr global i16, align 2

; Function Attrs: nounwind uwtable
define dso_local i64 @Ip4DriverBindingStart(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
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %6 = load ptr, ptr @gBS, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 280
  %8 = load ptr, ptr %7, align 8, !tbaa !9
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = load ptr, ptr %9, align 8, !tbaa !14
  %11 = tail call i64 %8(ptr noundef %1, ptr noundef nonnull @gEfiIp4ServiceBindingProtocolGuid, ptr noundef null, ptr noundef %10, ptr noundef %1, i32 noundef 4) #3
  %12 = icmp eq i64 %11, 0
  br i1 %12, label %65, label %13

13:                                               ; preds = %3
  %14 = load ptr, ptr %9, align 8, !tbaa !14
  %15 = call i64 @Ip4CreateService(ptr noundef %1, ptr noundef %14, ptr noundef nonnull %5)
  %16 = icmp slt i64 %15, 0
  br i1 %16, label %65, label %17

17:                                               ; preds = %13
  %18 = call zeroext i8 @DebugAssertEnabled() #3
  %19 = icmp eq i8 %18, 0
  %20 = load ptr, ptr %5, align 8
  %21 = icmp ne ptr %20, null
  %or.cond = select i1 %19, i1 true, i1 %21
  br i1 %or.cond, label %23, label %22

22:                                               ; preds = %17
  call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 484, ptr noundef nonnull @.str.3) #3
  %.pre = load ptr, ptr %5, align 8, !tbaa !5
  br label %23

23:                                               ; preds = %22, %17
  %24 = phi ptr [ %.pre, %22 ], [ %20, %17 ]
  %25 = load ptr, ptr @gBS, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %25, i64 328
  %27 = load ptr, ptr %26, align 8, !tbaa !16
  %28 = getelementptr inbounds i8, ptr %24, i64 8
  %29 = call i64 (ptr, ...) %27(ptr noundef nonnull %4, ptr noundef nonnull @gEfiIp4ServiceBindingProtocolGuid, ptr noundef nonnull %28, ptr noundef null) #3
  %30 = icmp slt i64 %29, 0
  br i1 %30, label %61, label %31

31:                                               ; preds = %23
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %32, i64 72
  %34 = load ptr, ptr %33, align 8, !tbaa !17
  %35 = call i64 @Ip4ReceiveFrame(ptr noundef %34, ptr noundef null, ptr noundef nonnull @Ip4AccpetFrame, ptr noundef %32) #3
  %36 = icmp slt i64 %35, 0
  br i1 %36, label %53, label %37

37:                                               ; preds = %31
  %38 = load ptr, ptr @gBS, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i64 88
  %40 = load ptr, ptr %39, align 8, !tbaa !26
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i64 1320
  %43 = load ptr, ptr %42, align 8, !tbaa !27
  %44 = call i64 %40(ptr noundef %43, i32 noundef 1, i64 noundef 10000000) #3
  %45 = icmp slt i64 %44, 0
  br i1 %45, label %53, label %46

46:                                               ; preds = %37
  %47 = call i32 @NetRandomInitSeed() #3
  %.fr = freeze i32 %47
  %48 = mul i32 %.fr, 1103515245
  %49 = add i32 %48, 12345
  %.not = icmp eq i32 %49, -1
  %50 = add nsw i32 %48, 12346
  %51 = select i1 %.not, i32 %50, i32 %49
  %52 = trunc i32 %51 to i16
  store i16 %52, ptr @mIp4Id, align 2, !tbaa !28
  br label %65

53:                                               ; preds = %37, %31
  %.0 = phi i64 [ %35, %31 ], [ %44, %37 ]
  %54 = load ptr, ptr @gBS, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 144
  %56 = load ptr, ptr %55, align 8, !tbaa !29
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %58, i64 8
  %60 = call i64 %56(ptr noundef %57, ptr noundef nonnull @gEfiIp4ServiceBindingProtocolGuid, ptr noundef nonnull %59) #3
  br label %61

61:                                               ; preds = %23, %53
  %.1 = phi i64 [ %29, %23 ], [ %.0, %53 ]
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = call i64 @Ip4CleanService(ptr noundef %62)
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  call void @FreePool(ptr noundef %64) #3
  br label %65

65:                                               ; preds = %13, %3, %61, %46
  %.011 = phi i64 [ %.1, %61 ], [ %44, %46 ], [ -9223372036854775788, %3 ], [ %15, %13 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  ret i64 %.011
}

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

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @Ip4CleanService(ptr noundef) local_unnamed_addr #0

declare void @FreePool(ptr noundef) local_unnamed_addr #2

declare i64 @Ip4ReceiveFrame(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @Ip4AccpetFrame(ptr noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef) #2

declare i32 @NetRandomInitSeed() 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 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 = !{!18, !6, i64 72}
!18 = !{!"_IP4_SERVICE", !13, i64 0, !19, i64 8, !12, i64 24, !12, i64 32, !20, i64 40, !20, i64 56, !6, i64 72, !6, i64 80, !21, i64 88, !22, i64 584, !6, i64 608, !6, i64 616, !6, i64 624, !6, i64 632, !23, i64 640, !25, i64 660, !6, i64 1320, !6, i64 1328, !6, i64 1336, !6, i64 1344, !6, i64 1352, !13, i64 1360, !13, i64 1364}
!19 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !6, i64 0, !6, i64 8}
!20 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!21 = !{!"", !7, i64 0}
!22 = !{!"", !12, i64 0, !20, i64 8}
!23 = !{!"", !13, i64 0, !13, i64 4, !24, i64 8, !7, i64 10, !7, i64 11, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16}
!24 = !{!"short", !7, i64 0}
!25 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !7, i64 40, !21, i64 552, !21, i64 584, !21, i64 616, !7, i64 648, !7, i64 649, !7, i64 650, !7, i64 651, !7, i64 652}
!26 = !{!10, !6, i64 88}
!27 = !{!18, !6, i64 1320}
!28 = !{!24, !24, i64 0}
!29 = !{!10, !6, i64 144}


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