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

; 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.MTFTP4_DESTROY_CHILD_IN_HANDLE_BUF_CONTEXT = type { ptr, i64, ptr }
%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._MTFTP4_SERVICE = type { i32, %struct._EFI_SERVICE_BINDING_PROTOCOL, i16, %struct._LIST_ENTRY, ptr, ptr, ptr, ptr, ptr }
%struct._EFI_SERVICE_BINDING_PROTOCOL = type { ptr, ptr }
%struct._LIST_ENTRY = type { ptr, ptr }

@gBS = external global ptr, align 8
@gEfiMtftp4ServiceBindingProtocolGuid = external global %struct.GUID, align 4
@.str = external hidden unnamed_addr constant [157 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@gEfiUdp4ProtocolGuid = external global %struct.GUID, align 4
@gMtftp4ControllerNameTable = external global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local i64 @Mtftp4DriverBindingStop(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #0 {
  %5 = alloca i64, 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 ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %struct.MTFTP4_DESTROY_CHILD_IN_HANDLE_BUF_CONTEXT, align 8
  %16 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i64 %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #3
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = call ptr @NetLibGetNicHandle(ptr noundef %17, ptr noundef @gEfiUdp4ProtocolGuid)
  store ptr %18, ptr %12, align 8, !tbaa !5
  %19 = load ptr, ptr %12, align 8, !tbaa !5
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %22

21:                                               ; preds = %4
  store i64 0, ptr %5, align 8
  store i32 1, ptr %16, align 4
  br label %97

22:                                               ; preds = %4
  %23 = load ptr, ptr @gBS, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %23, i32 0, i32 33
  %25 = load ptr, ptr %24, align 8, !tbaa !11
  %26 = load ptr, ptr %12, align 8, !tbaa !5
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %27, i32 0, i32 5
  %29 = load ptr, ptr %28, align 8, !tbaa !15
  %30 = load ptr, ptr %12, align 8, !tbaa !5
  %31 = call i64 %25(ptr noundef %26, ptr noundef @gEfiMtftp4ServiceBindingProtocolGuid, ptr noundef %10, ptr noundef %29, ptr noundef %30, i32 noundef 2)
  store i64 %31, ptr %13, align 8, !tbaa !9
  %32 = load i64, ptr %13, align 8, !tbaa !9
  %33 = icmp slt i64 %32, 0
  br i1 %33, label %34, label %35

34:                                               ; preds = %22
  store i64 -9223372036854775801, ptr %5, align 8
  store i32 1, ptr %16, align 4
  br label %97

35:                                               ; preds = %22
  %36 = call zeroext i8 @DebugAssertEnabled()
  %37 = zext i8 %36 to i32
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %49

39:                                               ; preds = %35
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = ptrtoint ptr %40 to i64
  %42 = sub i64 %41, ptrtoint (ptr getelementptr inbounds (%struct._MTFTP4_SERVICE, ptr null, i32 0, i32 1) to i64)
  %43 = inttoptr i64 %42 to ptr
  %44 = getelementptr inbounds %struct._MTFTP4_SERVICE, ptr %43, i32 0, i32 0
  %45 = load i32, ptr %44, align 8, !tbaa !17
  %46 = icmp ne i32 %45, 1347700308
  br i1 %46, label %47, label %49

47:                                               ; preds = %39
  call void @DebugAssert(ptr noundef @.str, i64 noundef 411, ptr noundef @.str.2)
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  br label %54

49:                                               ; preds = %39, %35
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = ptrtoint ptr %50 to i64
  %52 = sub i64 %51, ptrtoint (ptr getelementptr inbounds (%struct._MTFTP4_SERVICE, ptr null, i32 0, i32 1) to i64)
  %53 = inttoptr i64 %52 to ptr
  br label %54

54:                                               ; preds = %49, %47
  %55 = phi ptr [ %48, %47 ], [ %53, %49 ]
  store ptr %55, ptr %11, align 8, !tbaa !5
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct._MTFTP4_SERVICE, ptr %56, i32 0, i32 3
  %58 = call zeroext i8 @IsListEmpty(ptr noundef %57)
  %59 = icmp ne i8 %58, 0
  br i1 %59, label %71, label %60

60:                                               ; preds = %54
  %61 = load ptr, ptr %11, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct._MTFTP4_SERVICE, ptr %61, i32 0, i32 3
  store ptr %62, ptr %14, align 8, !tbaa !5
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.MTFTP4_DESTROY_CHILD_IN_HANDLE_BUF_CONTEXT, ptr %15, i32 0, i32 0
  store ptr %63, ptr %64, align 8, !tbaa !22
  %65 = load i64, ptr %8, align 8, !tbaa !9
  %66 = getelementptr inbounds %struct.MTFTP4_DESTROY_CHILD_IN_HANDLE_BUF_CONTEXT, ptr %15, i32 0, i32 1
  store i64 %65, ptr %66, align 8, !tbaa !24
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.MTFTP4_DESTROY_CHILD_IN_HANDLE_BUF_CONTEXT, ptr %15, i32 0, i32 2
  store ptr %67, ptr %68, align 8, !tbaa !25
  %69 = load ptr, ptr %14, align 8, !tbaa !5
  %70 = call i64 @NetDestroyLinkList(ptr noundef %69, ptr noundef @Mtftp4DestroyChildEntryInHandleBuffer, ptr noundef %15, ptr noundef null)
  store i64 %70, ptr %13, align 8, !tbaa !9
  br label %71

71:                                               ; preds = %60, %54
  %72 = load i64, ptr %8, align 8, !tbaa !9
  %73 = icmp eq i64 %72, 0
  br i1 %73, label %74, label %95

74:                                               ; preds = %71
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct._MTFTP4_SERVICE, ptr %75, i32 0, i32 3
  %77 = call zeroext i8 @IsListEmpty(ptr noundef %76)
  %78 = zext i8 %77 to i32
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %95

80:                                               ; preds = %74
  %81 = load ptr, ptr @gBS, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %81, i32 0, i32 16
  %83 = load ptr, ptr %82, align 8, !tbaa !26
  %84 = load ptr, ptr %12, align 8, !tbaa !5
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = call i64 %83(ptr noundef %84, ptr noundef @gEfiMtftp4ServiceBindingProtocolGuid, ptr noundef %85)
  %87 = load ptr, ptr %11, align 8, !tbaa !5
  call void @Mtftp4CleanService(ptr noundef %87)
  %88 = load ptr, ptr @gMtftp4ControllerNameTable, align 8, !tbaa !5
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %93

90:                                               ; preds = %80
  %91 = load ptr, ptr @gMtftp4ControllerNameTable, align 8, !tbaa !5
  %92 = call i64 @FreeUnicodeStringTable(ptr noundef %91)
  store ptr null, ptr @gMtftp4ControllerNameTable, align 8, !tbaa !5
  br label %93

93:                                               ; preds = %90, %80
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  call void @FreePool(ptr noundef %94)
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %93, %74, %71
  %96 = load i64, ptr %13, align 8, !tbaa !9
  store i64 %96, ptr %5, align 8
  store i32 1, ptr %16, align 4
  br label %97

97:                                               ; preds = %95, %34, %21
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  %98 = load i64, ptr %5, 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

declare void @FreePool(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @Mtftp4CleanService(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 @Mtftp4DestroyChildEntryInHandleBuffer(ptr noundef, ptr noundef) #0

declare ptr @NetLibGetNicHandle(ptr noundef, ptr noundef) #2

declare zeroext i8 @IsListEmpty(ptr noundef) #2

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

declare i64 @FreeUnicodeStringTable(ptr 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, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{!12, !6, i64 280}
!12 = !{!"", !13, 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}
!13 = !{!"", !10, i64 0, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20}
!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 = !{!18, !14, i64 0}
!18 = !{!"_MTFTP4_SERVICE", !14, i64 0, !19, i64 8, !20, i64 24, !21, i64 32, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80}
!19 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !6, i64 0, !6, i64 8}
!20 = !{!"short", !7, i64 0}
!21 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!22 = !{!23, !6, i64 0}
!23 = !{!"", !6, i64 0, !10, i64 8, !6, i64 16}
!24 = !{!23, !10, i64 8}
!25 = !{!23, !6, i64 16}
!26 = !{!12, !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] }
%struct.MTFTP4_DESTROY_CHILD_IN_HANDLE_BUF_CONTEXT = type { ptr, i64, ptr }

@gBS = external local_unnamed_addr global ptr, align 8
@gEfiMtftp4ServiceBindingProtocolGuid = external global %struct.GUID, align 4
@.str = external hidden unnamed_addr constant [157 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@gEfiUdp4ProtocolGuid = external global %struct.GUID, align 4
@gMtftp4ControllerNameTable = external local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local i64 @Mtftp4DriverBindingStop(ptr nocapture noundef readonly %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) local_unnamed_addr #0 {
  %5 = alloca ptr, align 8
  %6 = alloca %struct.MTFTP4_DESTROY_CHILD_IN_HANDLE_BUF_CONTEXT, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #3
  %7 = tail call ptr @NetLibGetNicHandle(ptr noundef %1, ptr noundef nonnull @gEfiUdp4ProtocolGuid) #3
  %8 = icmp eq ptr %7, null
  br i1 %8, label %45, label %9

9:                                                ; preds = %4
  %10 = load ptr, ptr @gBS, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %10, i64 280
  %12 = load ptr, ptr %11, align 8, !tbaa !9
  %13 = getelementptr inbounds i8, ptr %0, i64 40
  %14 = load ptr, ptr %13, align 8, !tbaa !14
  %15 = call i64 %12(ptr noundef nonnull %7, ptr noundef nonnull @gEfiMtftp4ServiceBindingProtocolGuid, ptr noundef nonnull %5, ptr noundef %14, ptr noundef nonnull %7, i32 noundef 2) #3
  %16 = icmp slt i64 %15, 0
  br i1 %16, label %45, label %17

17:                                               ; preds = %9
  %18 = call zeroext i8 @DebugAssertEnabled() #3
  %.not = icmp eq i8 %18, 0
  %.pre = load ptr, ptr %5, align 8, !tbaa !5
  %.pre25 = ptrtoint ptr %.pre to i64
  %.pre26 = add i64 %.pre25, -8
  %.pre28 = inttoptr i64 %.pre26 to ptr
  br i1 %.not, label %._crit_edge, label %19

19:                                               ; preds = %17
  %20 = load i32, ptr %.pre28, align 8, !tbaa !16
  %.not21 = icmp eq i32 %20, 1347700308
  br i1 %.not21, label %._crit_edge, label %21

21:                                               ; preds = %19
  call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 411, ptr noundef nonnull @.str.2) #3
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %17, %19, %21
  %23 = phi ptr [ %22, %21 ], [ %.pre28, %19 ], [ %.pre28, %17 ]
  %24 = getelementptr inbounds i8, ptr %23, i64 32
  %25 = call zeroext i8 @IsListEmpty(ptr noundef nonnull %24) #3
  %.not22 = icmp eq i8 %25, 0
  br i1 %.not22, label %26, label %31

26:                                               ; preds = %._crit_edge
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %27, ptr %6, align 8, !tbaa !21
  %28 = getelementptr inbounds i8, ptr %6, i64 8
  store i64 %2, ptr %28, align 8, !tbaa !23
  %29 = getelementptr inbounds i8, ptr %6, i64 16
  store ptr %3, ptr %29, align 8, !tbaa !24
  %30 = call i64 @NetDestroyLinkList(ptr noundef nonnull %24, ptr noundef nonnull @Mtftp4DestroyChildEntryInHandleBuffer, ptr noundef nonnull %6, ptr noundef null) #3
  br label %31

31:                                               ; preds = %26, %._crit_edge
  %.017 = phi i64 [ %15, %._crit_edge ], [ %30, %26 ]
  %32 = icmp eq i64 %2, 0
  br i1 %32, label %33, label %45

33:                                               ; preds = %31
  %34 = call zeroext i8 @IsListEmpty(ptr noundef nonnull %24) #3
  %.not23 = icmp eq i8 %34, 0
  br i1 %.not23, label %45, label %35

35:                                               ; preds = %33
  %36 = load ptr, ptr @gBS, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %36, i64 144
  %38 = load ptr, ptr %37, align 8, !tbaa !25
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = call i64 %38(ptr noundef nonnull %7, ptr noundef nonnull @gEfiMtftp4ServiceBindingProtocolGuid, ptr noundef %39) #3
  call void @Mtftp4CleanService(ptr noundef %23)
  %41 = load ptr, ptr @gMtftp4ControllerNameTable, align 8, !tbaa !5
  %.not24 = icmp eq ptr %41, null
  br i1 %.not24, label %44, label %42

42:                                               ; preds = %35
  %43 = call i64 @FreeUnicodeStringTable(ptr noundef nonnull %41) #3
  store ptr null, ptr @gMtftp4ControllerNameTable, align 8, !tbaa !5
  br label %44

44:                                               ; preds = %42, %35
  call void @FreePool(ptr noundef %23) #3
  br label %45

45:                                               ; preds = %31, %33, %44, %9, %4
  %.0 = phi i64 [ 0, %4 ], [ -9223372036854775801, %9 ], [ 0, %44 ], [ %.017, %33 ], [ %.017, %31 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  ret i64 %.0
}

; 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

declare void @FreePool(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @Mtftp4CleanService(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 @Mtftp4DestroyChildEntryInHandleBuffer(ptr noundef, ptr noundef) #0

declare ptr @NetLibGetNicHandle(ptr noundef, ptr noundef) local_unnamed_addr #2

declare zeroext i8 @IsListEmpty(ptr noundef) local_unnamed_addr #2

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

declare i64 @FreeUnicodeStringTable(ptr noundef) 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 = !{!17, !13, i64 0}
!17 = !{!"_MTFTP4_SERVICE", !13, i64 0, !18, i64 8, !19, i64 24, !20, i64 32, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80}
!18 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !6, i64 0, !6, i64 8}
!19 = !{!"short", !7, i64 0}
!20 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!21 = !{!22, !6, i64 0}
!22 = !{!"", !6, i64 0, !12, i64 8, !6, i64 16}
!23 = !{!22, !12, i64 8}
!24 = !{!22, !6, i64 16}
!25 = !{!10, !6, i64 144}


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