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

; 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._DHCP_PROTOCOL = type { i32, %struct._EFI_DHCP4_PROTOCOL, %struct._LIST_ENTRY, ptr, ptr, i8, ptr, ptr, ptr, ptr, i32, i16, %struct.NET_BUF_QUEUE }
%struct._EFI_DHCP4_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct._LIST_ENTRY = type { ptr, ptr }
%struct.NET_BUF_QUEUE = type { i32, i64, %struct._LIST_ENTRY, %struct._LIST_ENTRY, 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._DHCP_SERVICE = type { i32, %struct._EFI_SERVICE_BINDING_PROTOCOL, i64, ptr, ptr, %struct._LIST_ENTRY, i64, i64, i64, i32, i32, i32, i32, ptr, ptr, ptr, i32, i32, i32, i64, ptr, ptr, ptr, %struct.EFI_MAC_ADDRESS, i8, i8, [16 x i8], ptr, %struct.EFI_DHCP4_CONFIG_DATA, i32, ptr, i32, i32, i64, i64, i32 }
%struct._EFI_SERVICE_BINDING_PROTOCOL = type { ptr, ptr }
%struct.EFI_MAC_ADDRESS = type { [32 x i8] }
%struct.EFI_DHCP4_CONFIG_DATA = type { i32, ptr, i32, ptr, %struct.EFI_IPv4_ADDRESS, ptr, ptr, i32, ptr }
%struct.EFI_IPv4_ADDRESS = type { [4 x i8] }
%struct.EFI_DHCP4_MODE_DATA = type { i32, %struct.EFI_DHCP4_CONFIG_DATA, %struct.EFI_IPv4_ADDRESS, %struct.EFI_MAC_ADDRESS, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, i32, ptr }
%struct.DHCP_PARAMETER = type { i32, i32, i8, i8, i32, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [153 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@gBS = external global ptr, align 8

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

14:                                               ; preds = %2
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = icmp eq ptr %15, null
  br i1 %16, label %17, label %18

17:                                               ; preds = %14, %2
  store i64 -9223372036854775806, ptr %3, align 8
  store i32 1, ptr %11, align 4
  br label %117

18:                                               ; preds = %14
  %19 = call zeroext i8 @DebugAssertEnabled()
  %20 = zext i8 %19 to i32
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %22, label %32

22:                                               ; preds = %18
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = ptrtoint ptr %23 to i64
  %25 = sub i64 %24, ptrtoint (ptr getelementptr inbounds (%struct._DHCP_PROTOCOL, ptr null, i32 0, i32 1) to i64)
  %26 = inttoptr i64 %25 to ptr
  %27 = getelementptr inbounds %struct._DHCP_PROTOCOL, ptr %26, i32 0, i32 0
  %28 = load i32, ptr %27, align 8, !tbaa !9
  %29 = icmp ne i32 %28, 1885562980
  br i1 %29, label %30, label %32

30:                                               ; preds = %22
  call void @DebugAssert(ptr noundef @.str, i64 noundef 374, ptr noundef @.str.1)
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  br label %37

32:                                               ; preds = %22, %18
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = ptrtoint ptr %33 to i64
  %35 = sub i64 %34, ptrtoint (ptr getelementptr inbounds (%struct._DHCP_PROTOCOL, ptr null, i32 0, i32 1) to i64)
  %36 = inttoptr i64 %35 to ptr
  br label %37

37:                                               ; preds = %32, %30
  %38 = phi ptr [ %31, %30 ], [ %36, %32 ]
  store ptr %38, ptr %6, align 8, !tbaa !5
  %39 = load ptr, ptr @gBS, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %39, i32 0, i32 1
  %41 = load ptr, ptr %40, align 8, !tbaa !17
  %42 = call i64 %41(i64 noundef 8)
  store i64 %42, ptr %9, align 8, !tbaa !20
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct._DHCP_PROTOCOL, ptr %43, i32 0, i32 4
  %45 = load ptr, ptr %44, align 8, !tbaa !21
  store ptr %45, ptr %7, align 8, !tbaa !5
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %46, i32 0, i32 7
  %48 = load i64, ptr %47, align 8, !tbaa !22
  %49 = trunc i64 %48 to i32
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.EFI_DHCP4_MODE_DATA, ptr %50, i32 0, i32 0
  store i32 %49, ptr %51, align 8, !tbaa !27
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.EFI_DHCP4_MODE_DATA, ptr %52, i32 0, i32 1
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %54, i32 0, i32 28
  %56 = call ptr @CopyMem(ptr noundef %53, ptr noundef %55, i64 noundef 72)
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.EFI_DHCP4_MODE_DATA, ptr %57, i32 0, i32 3
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %59, i32 0, i32 23
  %61 = call ptr @CopyMem(ptr noundef %58, ptr noundef %60, i64 noundef 32)
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %62, i32 0, i32 10
  %64 = load i32, ptr %63, align 4, !tbaa !29
  %65 = call i32 @SwapBytes32(i32 noundef %64)
  store i32 %65, ptr %10, align 4, !tbaa !30
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.EFI_DHCP4_MODE_DATA, ptr %66, i32 0, i32 2
  %68 = call ptr @CopyMem(ptr noundef %67, ptr noundef %10, i64 noundef 4)
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %69, i32 0, i32 11
  %71 = load i32, ptr %70, align 8, !tbaa !31
  %72 = call i32 @SwapBytes32(i32 noundef %71)
  store i32 %72, ptr %10, align 4, !tbaa !30
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.EFI_DHCP4_MODE_DATA, ptr %73, i32 0, i32 6
  %75 = call ptr @CopyMem(ptr noundef %74, ptr noundef %10, i64 noundef 4)
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %76, i32 0, i32 12
  %78 = load i32, ptr %77, align 4, !tbaa !32
  %79 = call i32 @SwapBytes32(i32 noundef %78)
  store i32 %79, ptr %10, align 4, !tbaa !30
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.EFI_DHCP4_MODE_DATA, ptr %80, i32 0, i32 4
  %82 = call ptr @CopyMem(ptr noundef %81, ptr noundef %10, i64 noundef 4)
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %83, i32 0, i32 15
  %85 = load ptr, ptr %84, align 8, !tbaa !33
  store ptr %85, ptr %8, align 8, !tbaa !5
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = icmp ne ptr %86, null
  br i1 %87, label %88, label %101

88:                                               ; preds = %37
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.DHCP_PARAMETER, ptr %89, i32 0, i32 1
  %91 = load i32, ptr %90, align 4, !tbaa !34
  %92 = call i32 @SwapBytes32(i32 noundef %91)
  store i32 %92, ptr %10, align 4, !tbaa !30
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.EFI_DHCP4_MODE_DATA, ptr %93, i32 0, i32 5
  %95 = call ptr @CopyMem(ptr noundef %94, ptr noundef %10, i64 noundef 4)
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.DHCP_PARAMETER, ptr %96, i32 0, i32 5
  %98 = load i32, ptr %97, align 4, !tbaa !36
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.EFI_DHCP4_MODE_DATA, ptr %99, i32 0, i32 7
  store i32 %98, ptr %100, align 8, !tbaa !37
  br label %107

101:                                              ; preds = %37
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.EFI_DHCP4_MODE_DATA, ptr %102, i32 0, i32 5
  %104 = call ptr @ZeroMem(ptr noundef %103, i64 noundef 4)
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.EFI_DHCP4_MODE_DATA, ptr %105, i32 0, i32 7
  store i32 -1, ptr %106, align 8, !tbaa !37
  br label %107

107:                                              ; preds = %101, %88
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %108, i32 0, i32 14
  %110 = load ptr, ptr %109, align 8, !tbaa !38
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.EFI_DHCP4_MODE_DATA, ptr %111, i32 0, i32 8
  store ptr %110, ptr %112, align 8, !tbaa !39
  %113 = load ptr, ptr @gBS, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %113, i32 0, i32 2
  %115 = load ptr, ptr %114, align 8, !tbaa !40
  %116 = load i64, ptr %9, align 8, !tbaa !20
  call void %115(i64 noundef %116)
  store i64 0, ptr %3, align 8
  store i32 1, ptr %11, align 4
  br label %117

117:                                              ; preds = %107, %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  %118 = load i64, ptr %3, align 8
  ret i64 %118
}

; 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

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

declare i32 @SwapBytes32(i32 noundef) #2

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { 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, !11, i64 0}
!10 = !{!"_DHCP_PROTOCOL", !11, i64 0, !12, i64 8, !13, i64 80, !6, i64 96, !6, i64 104, !7, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !11, i64 152, !14, i64 156, !15, i64 160}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_EFI_DHCP4_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64}
!13 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!14 = !{!"short", !7, i64 0}
!15 = !{!"", !11, i64 0, !16, i64 8, !13, i64 16, !13, i64 32, !11, i64 48, !11, i64 52}
!16 = !{!"long long", !7, i64 0}
!17 = !{!18, !6, i64 24}
!18 = !{!"", !19, 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}
!19 = !{!"", !16, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!20 = !{!16, !16, i64 0}
!21 = !{!10, !6, i64 104}
!22 = !{!23, !16, i64 72}
!23 = !{!"_DHCP_SERVICE", !11, i64 0, !24, i64 8, !16, i64 24, !6, i64 32, !6, i64 40, !13, i64 48, !16, i64 64, !16, i64 72, !16, i64 80, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !6, i64 104, !6, i64 112, !6, i64 120, !11, i64 128, !11, i64 132, !11, i64 136, !16, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !25, i64 176, !7, i64 208, !7, i64 209, !7, i64 210, !6, i64 232, !26, i64 240, !11, i64 312, !6, i64 320, !11, i64 328, !11, i64 332, !16, i64 336, !16, i64 344, !11, i64 352}
!24 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !6, i64 0, !6, i64 8}
!25 = !{!"", !7, i64 0}
!26 = !{!"", !11, i64 0, !6, i64 8, !11, i64 16, !6, i64 24, !25, i64 32, !6, i64 40, !6, i64 48, !11, i64 56, !6, i64 64}
!27 = !{!28, !11, i64 0}
!28 = !{!"", !11, i64 0, !26, i64 8, !25, i64 80, !25, i64 84, !25, i64 116, !25, i64 120, !25, i64 124, !11, i64 128, !6, i64 136}
!29 = !{!23, !11, i64 92}
!30 = !{!11, !11, i64 0}
!31 = !{!23, !11, i64 96}
!32 = !{!23, !11, i64 100}
!33 = !{!23, !6, i64 120}
!34 = !{!35, !11, i64 4}
!35 = !{!"", !11, i64 0, !11, i64 4, !7, i64 8, !7, i64 9, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24}
!36 = !{!35, !11, i64 16}
!37 = !{!28, !11, i64 128}
!38 = !{!23, !6, i64 112}
!39 = !{!28, !6, i64 136}
!40 = !{!18, !6, i64 32}


; 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"

@.str = external hidden unnamed_addr constant [153 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

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775806, 1) i64 @EfiDhcp4GetModeData(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %4 = icmp eq ptr %0, null
  %5 = icmp eq ptr %1, null
  %or.cond = or i1 %4, %5
  br i1 %or.cond, label %63, label %6

6:                                                ; preds = %2
  %7 = tail call zeroext i8 @DebugAssertEnabled() #3
  %.not = icmp eq i8 %7, 0
  %.pre = ptrtoint ptr %0 to i64
  %.pre35 = add i64 %.pre, -8
  %.pre37 = inttoptr i64 %.pre35 to ptr
  br i1 %.not, label %._crit_edge, label %8

8:                                                ; preds = %6
  %9 = load i32, ptr %.pre37, align 8, !tbaa !5
  %.not33 = icmp eq i32 %9, 1885562980
  br i1 %.not33, label %._crit_edge, label %10

10:                                               ; preds = %8
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 374, ptr noundef nonnull @.str.1) #3
  br label %._crit_edge

._crit_edge:                                      ; preds = %6, %8, %10
  %11 = phi ptr [ %0, %10 ], [ %.pre37, %8 ], [ %.pre37, %6 ]
  %12 = load ptr, ptr @gBS, align 8, !tbaa !16
  %13 = getelementptr inbounds i8, ptr %12, i64 24
  %14 = load ptr, ptr %13, align 8, !tbaa !17
  %15 = tail call i64 %14(i64 noundef 8) #3
  %16 = getelementptr inbounds i8, ptr %11, i64 104
  %17 = load ptr, ptr %16, align 8, !tbaa !20
  %18 = getelementptr inbounds i8, ptr %17, i64 72
  %19 = load i64, ptr %18, align 8, !tbaa !21
  %20 = trunc i64 %19 to i32
  store i32 %20, ptr %1, align 8, !tbaa !26
  %21 = getelementptr inbounds i8, ptr %1, i64 8
  %22 = getelementptr inbounds i8, ptr %17, i64 240
  %23 = tail call ptr @CopyMem(ptr noundef nonnull %21, ptr noundef nonnull %22, i64 noundef 72) #3
  %24 = getelementptr inbounds i8, ptr %1, i64 84
  %25 = getelementptr inbounds i8, ptr %17, i64 176
  %26 = tail call ptr @CopyMem(ptr noundef nonnull %24, ptr noundef nonnull %25, i64 noundef 32) #3
  %27 = getelementptr inbounds i8, ptr %17, i64 92
  %28 = load i32, ptr %27, align 4, !tbaa !28
  %29 = tail call i32 @SwapBytes32(i32 noundef %28) #3
  store i32 %29, ptr %3, align 4, !tbaa !29
  %30 = getelementptr inbounds i8, ptr %1, i64 80
  %31 = call ptr @CopyMem(ptr noundef nonnull %30, ptr noundef nonnull %3, i64 noundef 4) #3
  %32 = getelementptr inbounds i8, ptr %17, i64 96
  %33 = load i32, ptr %32, align 8, !tbaa !30
  %34 = call i32 @SwapBytes32(i32 noundef %33) #3
  store i32 %34, ptr %3, align 4, !tbaa !29
  %35 = getelementptr inbounds i8, ptr %1, i64 124
  %36 = call ptr @CopyMem(ptr noundef nonnull %35, ptr noundef nonnull %3, i64 noundef 4) #3
  %37 = getelementptr inbounds i8, ptr %17, i64 100
  %38 = load i32, ptr %37, align 4, !tbaa !31
  %39 = call i32 @SwapBytes32(i32 noundef %38) #3
  store i32 %39, ptr %3, align 4, !tbaa !29
  %40 = getelementptr inbounds i8, ptr %1, i64 116
  %41 = call ptr @CopyMem(ptr noundef nonnull %40, ptr noundef nonnull %3, i64 noundef 4) #3
  %42 = getelementptr inbounds i8, ptr %17, i64 120
  %43 = load ptr, ptr %42, align 8, !tbaa !32
  %.not34 = icmp eq ptr %43, null
  br i1 %.not34, label %52, label %44

44:                                               ; preds = %._crit_edge
  %45 = getelementptr inbounds i8, ptr %43, i64 4
  %46 = load i32, ptr %45, align 4, !tbaa !33
  %47 = call i32 @SwapBytes32(i32 noundef %46) #3
  store i32 %47, ptr %3, align 4, !tbaa !29
  %48 = getelementptr inbounds i8, ptr %1, i64 120
  %49 = call ptr @CopyMem(ptr noundef nonnull %48, ptr noundef nonnull %3, i64 noundef 4) #3
  %50 = getelementptr inbounds i8, ptr %43, i64 16
  %51 = load i32, ptr %50, align 4, !tbaa !35
  br label %55

52:                                               ; preds = %._crit_edge
  %53 = getelementptr inbounds i8, ptr %1, i64 120
  %54 = call ptr @ZeroMem(ptr noundef nonnull %53, i64 noundef 4) #3
  br label %55

55:                                               ; preds = %52, %44
  %.sink = phi i32 [ -1, %52 ], [ %51, %44 ]
  %56 = getelementptr inbounds i8, ptr %1, i64 128
  store i32 %.sink, ptr %56, align 8
  %57 = getelementptr inbounds i8, ptr %17, i64 112
  %58 = load ptr, ptr %57, align 8, !tbaa !36
  %59 = getelementptr inbounds i8, ptr %1, i64 136
  store ptr %58, ptr %59, align 8, !tbaa !37
  %60 = load ptr, ptr @gBS, align 8, !tbaa !16
  %61 = getelementptr inbounds i8, ptr %60, i64 32
  %62 = load ptr, ptr %61, align 8, !tbaa !38
  call void %62(i64 noundef %15) #3
  br label %63

63:                                               ; preds = %2, %55
  %.0 = phi i64 [ 0, %55 ], [ -9223372036854775806, %2 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #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

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #2

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

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

declare i32 @SwapBytes32(i32 noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { 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, !7, i64 0}
!6 = !{!"_DHCP_PROTOCOL", !7, i64 0, !10, i64 8, !12, i64 80, !11, i64 96, !11, i64 104, !8, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !7, i64 152, !13, i64 156, !14, i64 160}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"_EFI_DHCP4_PROTOCOL", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"_LIST_ENTRY", !11, i64 0, !11, i64 8}
!13 = !{!"short", !8, i64 0}
!14 = !{!"", !7, i64 0, !15, i64 8, !12, i64 16, !12, i64 32, !7, i64 48, !7, i64 52}
!15 = !{!"long long", !8, i64 0}
!16 = !{!11, !11, i64 0}
!17 = !{!18, !11, i64 24}
!18 = !{!"", !19, i64 0, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !11, i64 184, !11, i64 192, !11, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !11, i64 248, !11, i64 256, !11, i64 264, !11, i64 272, !11, i64 280, !11, i64 288, !11, i64 296, !11, i64 304, !11, i64 312, !11, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !11, i64 360, !11, i64 368}
!19 = !{!"", !15, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20}
!20 = !{!6, !11, i64 104}
!21 = !{!22, !15, i64 72}
!22 = !{!"_DHCP_SERVICE", !7, i64 0, !23, i64 8, !15, i64 24, !11, i64 32, !11, i64 40, !12, i64 48, !15, i64 64, !15, i64 72, !15, i64 80, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !11, i64 104, !11, i64 112, !11, i64 120, !7, i64 128, !7, i64 132, !7, i64 136, !15, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !24, i64 176, !8, i64 208, !8, i64 209, !8, i64 210, !11, i64 232, !25, i64 240, !7, i64 312, !11, i64 320, !7, i64 328, !7, i64 332, !15, i64 336, !15, i64 344, !7, i64 352}
!23 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !11, i64 0, !11, i64 8}
!24 = !{!"", !8, i64 0}
!25 = !{!"", !7, i64 0, !11, i64 8, !7, i64 16, !11, i64 24, !24, i64 32, !11, i64 40, !11, i64 48, !7, i64 56, !11, i64 64}
!26 = !{!27, !7, i64 0}
!27 = !{!"", !7, i64 0, !25, i64 8, !24, i64 80, !24, i64 84, !24, i64 116, !24, i64 120, !24, i64 124, !7, i64 128, !11, i64 136}
!28 = !{!22, !7, i64 92}
!29 = !{!7, !7, i64 0}
!30 = !{!22, !7, i64 96}
!31 = !{!22, !7, i64 100}
!32 = !{!22, !11, i64 120}
!33 = !{!34, !7, i64 4}
!34 = !{!"", !7, i64 0, !7, i64 4, !8, i64 8, !8, i64 9, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24}
!35 = !{!34, !7, i64 16}
!36 = !{!22, !11, i64 112}
!37 = !{!27, !11, i64 136}
!38 = !{!18, !11, i64 32}


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