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

; 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_HII_CONFIG_ROUTING_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr }
%struct.NIC_IP4_CONFIG_INFO = type { %struct.NIC_ADDR, i32, i8, %struct.EFI_IP4_IPCONFIG_DATA }
%struct.NIC_ADDR = type { i16, i8, %struct.EFI_MAC_ADDRESS }
%struct.EFI_MAC_ADDRESS = type { [32 x i8] }
%struct.EFI_IP4_IPCONFIG_DATA = type { %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, i32, ptr }
%struct.EFI_IPv4_ADDRESS = type { [4 x i8] }

@gBS = external global ptr, align 8
@gEfiNicIp4ConfigVariableGuid = external global %struct.GUID, align 4
@gEfiHiiConfigRoutingProtocolGuid = external global %struct.GUID, align 4
@.str.34 = external hidden unnamed_addr constant [24 x i32], align 4
@.str.35 = external hidden unnamed_addr constant [24 x i32], align 4

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

declare void @FreePool(ptr 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
declare dso_local i64 @NetGetChildHandle(ptr noundef, ptr noundef) #2

declare ptr @AllocateZeroPool(i64 noundef) #1

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

22:                                               ; preds = %1
  store i8 1, ptr %2, align 1
  store i32 1, ptr %15, align 4
  br label %112

23:                                               ; preds = %1
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = call i64 @NetGetChildHandle(ptr noundef %24, ptr noundef %14)
  store i64 %25, ptr %4, align 8, !tbaa !15
  %26 = load i64, ptr %4, align 8, !tbaa !15
  %27 = icmp slt i64 %26, 0
  br i1 %27, label %28, label %29

28:                                               ; preds = %23
  store i8 1, ptr %2, align 1
  store i32 1, ptr %15, align 4
  br label %112

29:                                               ; preds = %23
  %30 = load ptr, ptr %14, align 8, !tbaa !5
  %31 = call ptr @HiiConstructConfigHdr(ptr noundef @gEfiNicIp4ConfigVariableGuid, ptr noundef @.str.34, ptr noundef %30)
  store ptr %31, ptr %9, align 8, !tbaa !5
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = icmp eq ptr %32, null
  br i1 %33, label %34, label %35

34:                                               ; preds = %29
  store i8 1, ptr %2, align 1
  store i32 1, ptr %15, align 4
  br label %112

35:                                               ; preds = %29
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  %37 = call i64 @StrLen(ptr noundef %36)
  store i64 %37, ptr %6, align 8, !tbaa !15
  %38 = load i64, ptr %6, align 8, !tbaa !15
  %39 = add i64 %38, 72
  %40 = add i64 %39, 384
  %41 = add i64 %40, 100
  %42 = mul i64 %41, 2
  %43 = call ptr @AllocateZeroPool(i64 noundef %42)
  store ptr %43, ptr %10, align 8, !tbaa !5
  %44 = load ptr, ptr %10, align 8, !tbaa !5
  %45 = icmp eq ptr %44, null
  br i1 %45, label %46, label %47

46:                                               ; preds = %35
  br label %90

47:                                               ; preds = %35
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = call ptr @StrCpy(ptr noundef %48, ptr noundef %49)
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = load i64, ptr %6, align 8, !tbaa !15
  %53 = getelementptr inbounds i16, ptr %51, i64 %52
  store ptr %53, ptr %13, align 8, !tbaa !5
  %54 = load ptr, ptr %13, align 8, !tbaa !5
  %55 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef %54, i64 noundef 48, ptr noundef @.str.35, i64 noundef 36, i64 noundef 4)
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct._EFI_HII_CONFIG_ROUTING_PROTOCOL, ptr %56, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8, !tbaa !16
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = call i64 %58(ptr noundef %59, ptr noundef %60, ptr noundef %11, ptr noundef %12)
  store i64 %61, ptr %4, align 8, !tbaa !15
  %62 = load i64, ptr %4, align 8, !tbaa !15
  %63 = icmp slt i64 %62, 0
  br i1 %63, label %64, label %65

64:                                               ; preds = %47
  br label %90

65:                                               ; preds = %47
  %66 = call ptr @AllocateZeroPool(i64 noundef 264)
  store ptr %66, ptr %7, align 8, !tbaa !5
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = icmp eq ptr %67, null
  br i1 %68, label %69, label %70

69:                                               ; preds = %65
  br label %90

70:                                               ; preds = %65
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.NIC_IP4_CONFIG_INFO, ptr %71, i32 0, i32 1
  store i32 1, ptr %72, align 4, !tbaa !18
  store i64 264, ptr %6, align 8, !tbaa !15
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct._EFI_HII_CONFIG_ROUTING_PROTOCOL, ptr %73, i32 0, i32 4
  %75 = load ptr, ptr %74, align 8, !tbaa !24
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = load ptr, ptr %12, align 8, !tbaa !5
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = call i64 %75(ptr noundef %76, ptr noundef %77, ptr noundef %78, ptr noundef %6, ptr noundef %11)
  store i64 %79, ptr %4, align 8, !tbaa !15
  %80 = load i64, ptr %4, align 8, !tbaa !15
  %81 = icmp slt i64 %80, 0
  br i1 %81, label %82, label %83

82:                                               ; preds = %70
  br label %90

83:                                               ; preds = %70
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.NIC_IP4_CONFIG_INFO, ptr %84, i32 0, i32 1
  %86 = load i32, ptr %85, align 4, !tbaa !18
  %87 = icmp eq i32 %86, 1
  %88 = zext i1 %87 to i32
  %89 = trunc i32 %88 to i8
  store i8 %89, ptr %8, align 1, !tbaa !9
  br label %90

90:                                               ; preds = %83, %82, %69, %64, %46
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = icmp ne ptr %91, null
  br i1 %92, label %93, label %95

93:                                               ; preds = %90
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  call void @FreePool(ptr noundef %94)
  br label %95

95:                                               ; preds = %93, %90
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = icmp ne ptr %96, null
  br i1 %97, label %98, label %100

98:                                               ; preds = %95
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  call void @FreePool(ptr noundef %99)
  br label %100

100:                                              ; preds = %98, %95
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  %102 = icmp ne ptr %101, null
  br i1 %102, label %103, label %105

103:                                              ; preds = %100
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  call void @FreePool(ptr noundef %104)
  br label %105

105:                                              ; preds = %103, %100
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  %107 = icmp ne ptr %106, null
  br i1 %107, label %108, label %110

108:                                              ; preds = %105
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  call void @FreePool(ptr noundef %109)
  br label %110

110:                                              ; preds = %108, %105
  %111 = load i8, ptr %8, align 1, !tbaa !9
  store i8 %111, ptr %2, align 1
  store i32 1, ptr %15, align 4
  br label %112

112:                                              ; preds = %110, %34, %28, %22
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 1, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  %113 = load i8, ptr %2, align 1
  ret i8 %113
}

declare ptr @HiiConstructConfigHdr(ptr noundef, ptr noundef, ptr noundef) #1

declare i64 @StrLen(ptr noundef) #1

declare ptr @StrCpy(ptr noundef, ptr noundef) #1

declare i64 @UnicodeSPrint(ptr noundef, i64 noundef, ptr noundef, ...) #1

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 = !{!7, !7, i64 0}
!10 = !{!11, !6, i64 320}
!11 = !{!"", !12, 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}
!12 = !{!"", !13, i64 0, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20}
!13 = !{!"long long", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!13, !13, i64 0}
!16 = !{!17, !6, i64 0}
!17 = !{!"_EFI_HII_CONFIG_ROUTING_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!18 = !{!19, !14, i64 36}
!19 = !{!"", !20, i64 0, !14, i64 36, !7, i64 40, !23, i64 48}
!20 = !{!"", !21, i64 0, !7, i64 2, !22, i64 3}
!21 = !{!"short", !7, i64 0}
!22 = !{!"", !7, i64 0}
!23 = !{!"", !22, i64 0, !22, i64 4, !14, i64 8, !6, i64 16}
!24 = !{!17, !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"

%struct.GUID = type { i32, i16, i16, [8 x i8] }

@gBS = external local_unnamed_addr global ptr, align 8
@gEfiNicIp4ConfigVariableGuid = external global %struct.GUID, align 4
@gEfiHiiConfigRoutingProtocolGuid = external global %struct.GUID, align 4
@.str.34 = external hidden unnamed_addr constant [24 x i32], align 4
@.str.35 = external hidden unnamed_addr constant [24 x i32], align 4

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

declare void @FreePool(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @NetGetChildHandle(ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @AllocateZeroPool(i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local zeroext range(i8 0, 2) i8 @NetLibDefaultAddressIsStatic(ptr noundef %0) local_unnamed_addr #2 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  store ptr null, ptr %4, align 8, !tbaa !5
  store ptr null, ptr %5, align 8, !tbaa !5
  %7 = load ptr, ptr @gBS, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 320
  %9 = load ptr, ptr %8, align 8, !tbaa !9
  %10 = call i64 %9(ptr noundef nonnull @gEfiHiiConfigRoutingProtocolGuid, ptr noundef null, ptr noundef nonnull %2) #3
  %11 = icmp slt i64 %10, 0
  br i1 %11, label %56, label %12

12:                                               ; preds = %1
  %13 = call i64 @NetGetChildHandle(ptr noundef %0, ptr noundef nonnull %6)
  %14 = icmp slt i64 %13, 0
  br i1 %14, label %56, label %15

15:                                               ; preds = %12
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = call ptr @HiiConstructConfigHdr(ptr noundef nonnull @gEfiNicIp4ConfigVariableGuid, ptr noundef nonnull @.str.34, ptr noundef %16) #3
  %18 = icmp eq ptr %17, null
  br i1 %18, label %56, label %19

19:                                               ; preds = %15
  %20 = call i64 @StrLen(ptr noundef nonnull %17) #3
  store i64 %20, ptr %3, align 8, !tbaa !14
  %21 = shl i64 %20, 1
  %22 = add i64 %21, 1112
  %23 = call ptr @AllocateZeroPool(i64 noundef %22) #3
  %24 = icmp eq ptr %23, null
  br i1 %24, label %48, label %25

25:                                               ; preds = %19
  %26 = call ptr @StrCpy(ptr noundef nonnull %23, ptr noundef nonnull %17) #3
  %27 = getelementptr inbounds i16, ptr %23, i64 %20
  %28 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %27, i64 noundef 48, ptr noundef nonnull @.str.35, i64 noundef 36, i64 noundef 4) #3
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = load ptr, ptr %29, align 8, !tbaa !15
  %31 = call i64 %30(ptr noundef nonnull %29, ptr noundef nonnull %23, ptr noundef nonnull %4, ptr noundef nonnull %5) #3
  %32 = icmp slt i64 %31, 0
  br i1 %32, label %48, label %33

33:                                               ; preds = %25
  %34 = call ptr @AllocateZeroPool(i64 noundef 264) #3
  %35 = icmp eq ptr %34, null
  br i1 %35, label %48, label %36

36:                                               ; preds = %33
  %37 = getelementptr inbounds i8, ptr %34, i64 36
  store i32 1, ptr %37, align 4, !tbaa !17
  store i64 264, ptr %3, align 8, !tbaa !14
  %38 = load ptr, ptr %2, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i64 32
  %40 = load ptr, ptr %39, align 8, !tbaa !23
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = call i64 %40(ptr noundef %38, ptr noundef %41, ptr noundef nonnull %34, ptr noundef nonnull %3, ptr noundef nonnull %4) #3
  %43 = icmp slt i64 %42, 0
  br i1 %43, label %48, label %44

44:                                               ; preds = %36
  %45 = load i32, ptr %37, align 4, !tbaa !17
  %46 = icmp eq i32 %45, 1
  %47 = zext i1 %46 to i8
  br label %48

48:                                               ; preds = %36, %33, %25, %19, %44
  %.025 = phi ptr [ null, %19 ], [ null, %25 ], [ null, %33 ], [ %34, %36 ], [ %34, %44 ]
  %.024 = phi i8 [ 1, %19 ], [ 1, %25 ], [ 1, %33 ], [ 1, %36 ], [ %47, %44 ]
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %.not = icmp eq ptr %49, null
  br i1 %.not, label %51, label %50

50:                                               ; preds = %48
  call void @FreePool(ptr noundef nonnull %49) #3
  br label %51

51:                                               ; preds = %50, %48
  %.not31 = icmp eq ptr %.025, null
  br i1 %.not31, label %53, label %52

52:                                               ; preds = %51
  call void @FreePool(ptr noundef nonnull %.025) #3
  br label %53

53:                                               ; preds = %52, %51
  br i1 %24, label %55, label %54

54:                                               ; preds = %53
  call void @FreePool(ptr noundef nonnull %23) #3
  br label %55

55:                                               ; preds = %53, %54
  call void @FreePool(ptr noundef nonnull %17) #3
  br label %56

56:                                               ; preds = %15, %12, %1, %55
  %.0 = phi i8 [ %.024, %55 ], [ 1, %1 ], [ 1, %12 ], [ 1, %15 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
  ret i8 %.0
}

declare ptr @HiiConstructConfigHdr(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i64 @StrLen(ptr noundef) local_unnamed_addr #1

declare ptr @StrCpy(ptr noundef, ptr noundef) local_unnamed_addr #1

declare i64 @UnicodeSPrint(ptr noundef, i64 noundef, ptr noundef, ...) local_unnamed_addr #1

attributes #0 = { mustprogress 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, !6, i64 320}
!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 = !{!12, !12, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"_EFI_HII_CONFIG_ROUTING_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!17 = !{!18, !13, i64 36}
!18 = !{!"", !19, i64 0, !13, i64 36, !7, i64 40, !22, i64 48}
!19 = !{!"", !20, i64 0, !7, i64 2, !21, i64 3}
!20 = !{!"short", !7, i64 0}
!21 = !{!"", !7, i64 0}
!22 = !{!"", !21, i64 0, !21, i64 4, !13, i64 8, !6, i64 16}
!23 = !{!16, !6, i64 32}


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