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

; 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.SNP_DRIVER = type <{ i32, [4 x i8], %struct.EFI_LOCK, %struct._EFI_SIMPLE_NETWORK_PROTOCOL, %struct.EFI_SIMPLE_NETWORK_MODE, ptr, ptr, ptr, i8, i8, i16, i32, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, %struct.s_pxe_cdb, [6 x i8], ptr, ptr, ptr, %struct.s_pxe_db_get_init_info, i8, ptr, [100 x %struct.MAP_LIST], ptr, i8, [7 x i8] }>
%struct.EFI_LOCK = type { i64, i64, i32 }
%struct._EFI_SIMPLE_NETWORK_PROTOCOL = type { i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%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] }
%struct.s_pxe_cdb = type { i16, i16, i16, i16, i64, i64, i16, i16, i16, i16 }
%struct.s_pxe_db_get_init_info = type <{ i32, i32, [4 x i32], i32, i16, i16, i16, i16, i16, i16, i16, i16, i8, i8, i8 }>
%struct.MAP_LIST = type { i64, ptr }

@.str = external hidden unnamed_addr constant [31 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [39 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i64 @PxeRecvFilterEnable(ptr noundef %0, i32 noundef %1, i64 noundef %2, ptr noundef %3) #0 {
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i64 %2, ptr %8, align 8, !tbaa !11
  store ptr %3, ptr %9, align 8, !tbaa !5
  %10 = load ptr, ptr %6, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.SNP_DRIVER, ptr %10, i32 0, i32 20
  %12 = getelementptr inbounds %struct.s_pxe_cdb, ptr %11, i32 0, i32 0
  store i16 9, ptr %12, align 2, !tbaa !13
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.SNP_DRIVER, ptr %13, i32 0, i32 20
  %15 = getelementptr inbounds %struct.s_pxe_cdb, ptr %14, i32 0, i32 1
  store i16 -32768, ptr %15, align 2, !tbaa !22
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.SNP_DRIVER, ptr %16, i32 0, i32 20
  %18 = getelementptr inbounds %struct.s_pxe_cdb, ptr %17, i32 0, i32 2
  store i16 0, ptr %18, align 2, !tbaa !23
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.SNP_DRIVER, ptr %19, i32 0, i32 20
  %21 = getelementptr inbounds %struct.s_pxe_cdb, ptr %20, i32 0, i32 3
  store i16 0, ptr %21, align 2, !tbaa !24
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.SNP_DRIVER, ptr %22, i32 0, i32 20
  %24 = getelementptr inbounds %struct.s_pxe_cdb, ptr %23, i32 0, i32 4
  store i64 0, ptr %24, align 2, !tbaa !25
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.SNP_DRIVER, ptr %25, i32 0, i32 20
  %27 = getelementptr inbounds %struct.s_pxe_cdb, ptr %26, i32 0, i32 5
  store i64 0, ptr %27, align 2, !tbaa !26
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.SNP_DRIVER, ptr %28, i32 0, i32 20
  %30 = getelementptr inbounds %struct.s_pxe_cdb, ptr %29, i32 0, i32 6
  store i16 0, ptr %30, align 2, !tbaa !27
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.SNP_DRIVER, ptr %31, i32 0, i32 20
  %33 = getelementptr inbounds %struct.s_pxe_cdb, ptr %32, i32 0, i32 7
  store i16 0, ptr %33, align 2, !tbaa !28
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.SNP_DRIVER, ptr %34, i32 0, i32 10
  %36 = load i16, ptr %35, align 2, !tbaa !29
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.SNP_DRIVER, ptr %37, i32 0, i32 20
  %39 = getelementptr inbounds %struct.s_pxe_cdb, ptr %38, i32 0, i32 8
  store i16 %36, ptr %39, align 2, !tbaa !30
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.SNP_DRIVER, ptr %40, i32 0, i32 20
  %42 = getelementptr inbounds %struct.s_pxe_cdb, ptr %41, i32 0, i32 9
  store i16 0, ptr %42, align 2, !tbaa !31
  %43 = load i32, ptr %7, align 4, !tbaa !9
  %44 = and i32 %43, 1
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %46, label %54

46:                                               ; preds = %4
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.SNP_DRIVER, ptr %47, i32 0, i32 20
  %49 = getelementptr inbounds %struct.s_pxe_cdb, ptr %48, i32 0, i32 1
  %50 = load i16, ptr %49, align 2, !tbaa !22
  %51 = zext i16 %50 to i32
  %52 = or i32 %51, 1
  %53 = trunc i32 %52 to i16
  store i16 %53, ptr %49, align 2, !tbaa !22
  br label %54

54:                                               ; preds = %46, %4
  %55 = load i32, ptr %7, align 4, !tbaa !9
  %56 = and i32 %55, 4
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %66

58:                                               ; preds = %54
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.SNP_DRIVER, ptr %59, i32 0, i32 20
  %61 = getelementptr inbounds %struct.s_pxe_cdb, ptr %60, i32 0, i32 1
  %62 = load i16, ptr %61, align 2, !tbaa !22
  %63 = zext i16 %62 to i32
  %64 = or i32 %63, 2
  %65 = trunc i32 %64 to i16
  store i16 %65, ptr %61, align 2, !tbaa !22
  br label %66

66:                                               ; preds = %58, %54
  %67 = load i32, ptr %7, align 4, !tbaa !9
  %68 = and i32 %67, 8
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %78

70:                                               ; preds = %66
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.SNP_DRIVER, ptr %71, i32 0, i32 20
  %73 = getelementptr inbounds %struct.s_pxe_cdb, ptr %72, i32 0, i32 1
  %74 = load i16, ptr %73, align 2, !tbaa !22
  %75 = zext i16 %74 to i32
  %76 = or i32 %75, 8
  %77 = trunc i32 %76 to i16
  store i16 %77, ptr %73, align 2, !tbaa !22
  br label %78

78:                                               ; preds = %70, %66
  %79 = load i32, ptr %7, align 4, !tbaa !9
  %80 = and i32 %79, 16
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %90

82:                                               ; preds = %78
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.SNP_DRIVER, ptr %83, i32 0, i32 20
  %85 = getelementptr inbounds %struct.s_pxe_cdb, ptr %84, i32 0, i32 1
  %86 = load i16, ptr %85, align 2, !tbaa !22
  %87 = zext i16 %86 to i32
  %88 = or i32 %87, 16
  %89 = trunc i32 %88 to i16
  store i16 %89, ptr %85, align 2, !tbaa !22
  br label %90

90:                                               ; preds = %82, %78
  %91 = load i32, ptr %7, align 4, !tbaa !9
  %92 = and i32 %91, 2
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %102

94:                                               ; preds = %90
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.SNP_DRIVER, ptr %95, i32 0, i32 20
  %97 = getelementptr inbounds %struct.s_pxe_cdb, ptr %96, i32 0, i32 1
  %98 = load i16, ptr %97, align 2, !tbaa !22
  %99 = zext i16 %98 to i32
  %100 = or i32 %99, 4
  %101 = trunc i32 %100 to i16
  store i16 %101, ptr %97, align 2, !tbaa !22
  br label %102

102:                                              ; preds = %94, %90
  %103 = load i64, ptr %8, align 8, !tbaa !11
  %104 = icmp ne i64 %103, 0
  br i1 %104, label %105, label %129

105:                                              ; preds = %102
  %106 = load i64, ptr %8, align 8, !tbaa !11
  %107 = mul i64 %106, 32
  %108 = trunc i64 %107 to i16
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.SNP_DRIVER, ptr %109, i32 0, i32 20
  %111 = getelementptr inbounds %struct.s_pxe_cdb, ptr %110, i32 0, i32 2
  store i16 %108, ptr %111, align 2, !tbaa !23
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.SNP_DRIVER, ptr %112, i32 0, i32 22
  %114 = load ptr, ptr %113, align 8, !tbaa !32
  %115 = ptrtoint ptr %114 to i64
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.SNP_DRIVER, ptr %116, i32 0, i32 20
  %118 = getelementptr inbounds %struct.s_pxe_cdb, ptr %117, i32 0, i32 4
  store i64 %115, ptr %118, align 2, !tbaa !25
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.SNP_DRIVER, ptr %119, i32 0, i32 22
  %121 = load ptr, ptr %120, align 8, !tbaa !32
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.SNP_DRIVER, ptr %123, i32 0, i32 20
  %125 = getelementptr inbounds %struct.s_pxe_cdb, ptr %124, i32 0, i32 2
  %126 = load i16, ptr %125, align 2, !tbaa !23
  %127 = zext i16 %126 to i64
  %128 = call ptr @CopyMem(ptr noundef %121, ptr noundef %122, i64 noundef %127)
  br label %129

129:                                              ; preds = %105, %102
  br label %130

130:                                              ; preds = %129
  %131 = call zeroext i8 @DebugPrintEnabled()
  %132 = icmp ne i8 %131, 0
  br i1 %132, label %133, label %140

133:                                              ; preds = %130
  br label %134

134:                                              ; preds = %133
  %135 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 16384)
  %136 = icmp ne i8 %135, 0
  br i1 %136, label %137, label %138

137:                                              ; preds = %134
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 16384, ptr noundef @.str)
  br label %138

138:                                              ; preds = %137, %134
  br label %139

139:                                              ; preds = %138
  br label %140

140:                                              ; preds = %139, %130
  br label %141

141:                                              ; preds = %140
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.SNP_DRIVER, ptr %142, i32 0, i32 7
  %144 = load ptr, ptr %143, align 8, !tbaa !33
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.SNP_DRIVER, ptr %145, i32 0, i32 20
  %147 = ptrtoint ptr %146 to i64
  %148 = call i64 %144(i64 noundef %147)
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.SNP_DRIVER, ptr %149, i32 0, i32 20
  %151 = getelementptr inbounds %struct.s_pxe_cdb, ptr %150, i32 0, i32 6
  %152 = load i16, ptr %151, align 2, !tbaa !27
  %153 = zext i16 %152 to i32
  %154 = icmp ne i32 %153, 0
  br i1 %154, label %155, label %186

155:                                              ; preds = %141
  br label %156

156:                                              ; preds = %155
  %157 = call zeroext i8 @DebugPrintEnabled()
  %158 = icmp ne i8 %157, 0
  br i1 %158, label %159, label %176

159:                                              ; preds = %156
  br label %160

160:                                              ; preds = %159
  %161 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 2147483648)
  %162 = icmp ne i8 %161, 0
  br i1 %162, label %163, label %174

163:                                              ; preds = %160
  %164 = load ptr, ptr %6, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.SNP_DRIVER, ptr %164, i32 0, i32 20
  %166 = getelementptr inbounds %struct.s_pxe_cdb, ptr %165, i32 0, i32 7
  %167 = load i16, ptr %166, align 2, !tbaa !28
  %168 = zext i16 %167 to i32
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.SNP_DRIVER, ptr %169, i32 0, i32 20
  %171 = getelementptr inbounds %struct.s_pxe_cdb, ptr %170, i32 0, i32 6
  %172 = load i16, ptr %171, align 2, !tbaa !27
  %173 = zext i16 %172 to i32
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 2147483648, ptr noundef @.str.1, i32 noundef %168, i32 noundef %173)
  br label %174

174:                                              ; preds = %163, %160
  br label %175

175:                                              ; preds = %174
  br label %176

176:                                              ; preds = %175, %156
  br label %177

177:                                              ; preds = %176
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.SNP_DRIVER, ptr %178, i32 0, i32 20
  %180 = getelementptr inbounds %struct.s_pxe_cdb, ptr %179, i32 0, i32 6
  %181 = load i16, ptr %180, align 2, !tbaa !27
  %182 = zext i16 %181 to i32
  switch i32 %182, label %185 [
    i32 1, label %183
    i32 2, label %183
    i32 14, label %183
    i32 12, label %184
  ]

183:                                              ; preds = %177, %177, %177
  store i64 -9223372036854775806, ptr %5, align 8
  br label %187

184:                                              ; preds = %177
  store i64 -9223372036854775805, ptr %5, align 8
  br label %187

185:                                              ; preds = %177
  store i64 -9223372036854775801, ptr %5, align 8
  br label %187

186:                                              ; preds = %141
  store i64 0, ptr %5, align 8
  br label %187

187:                                              ; preds = %186, %185, %184, %183
  %188 = load i64, ptr %5, align 8
  ret i64 %188
}

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

declare zeroext i8 @DebugPrintEnabled() #1

declare zeroext i8 @DebugPrintLevelEnabled(i64 noundef) #1

declare void @DebugPrint(i64 noundef, ptr noundef, ...) #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" }

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!14, !19, i64 898}
!14 = !{!"", !10, i64 0, !15, i64 8, !16, i64 32, !17, i64 160, !6, i64 816, !6, i64 824, !6, i64 832, !7, i64 840, !19, i64 842, !10, i64 844, !6, i64 848, !6, i64 856, !6, i64 864, !6, i64 872, !6, i64 880, !6, i64 888, !7, i64 896, !7, i64 897, !20, i64 898, !6, i64 936, !6, i64 944, !6, i64 952, !21, i64 960, !6, i64 1008, !7, i64 1016, !6, i64 2616, !7, i64 2624}
!15 = !{!"", !12, i64 0, !12, i64 8, !10, i64 16}
!16 = !{!"_EFI_SIMPLE_NETWORK_PROTOCOL", !12, 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, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120}
!17 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !7, i64 40, !18, i64 552, !18, i64 584, !18, i64 616, !7, i64 648, !7, i64 649, !7, i64 650, !7, i64 651, !7, i64 652}
!18 = !{!"", !7, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = !{!"s_pxe_cdb", !19, i64 0, !19, i64 2, !19, i64 4, !19, i64 6, !12, i64 8, !12, i64 16, !19, i64 24, !19, i64 26, !19, i64 28, !19, i64 30}
!21 = !{!"s_pxe_db_get_init_info", !10, i64 0, !10, i64 4, !7, i64 8, !10, i64 24, !19, i64 28, !19, i64 30, !19, i64 32, !19, i64 34, !19, i64 36, !19, i64 38, !19, i64 40, !19, i64 42, !7, i64 44, !7, i64 45, !7, i64 46}
!22 = !{!14, !19, i64 900}
!23 = !{!14, !19, i64 902}
!24 = !{!14, !19, i64 904}
!25 = !{!14, !12, i64 906}
!26 = !{!14, !12, i64 914}
!27 = !{!14, !19, i64 922}
!28 = !{!14, !19, i64 924}
!29 = !{!14, !19, i64 842}
!30 = !{!14, !19, i64 926}
!31 = !{!14, !19, i64 928}
!32 = !{!14, !6, i64 936}
!33 = !{!14, !6, i64 832}


; 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 [31 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [39 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775806, 1) i64 @PxeRecvFilterEnable(ptr noundef %0, i32 noundef %1, i64 noundef %2, ptr noundef %3) local_unnamed_addr #0 {
  %5 = getelementptr inbounds i8, ptr %0, i64 898
  store i16 9, ptr %5, align 2, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 900
  store i16 -32768, ptr %6, align 2, !tbaa !19
  %7 = getelementptr inbounds i8, ptr %0, i64 902
  %8 = getelementptr inbounds i8, ptr %0, i64 906
  %9 = getelementptr inbounds i8, ptr %0, i64 922
  %10 = getelementptr inbounds i8, ptr %0, i64 924
  %11 = getelementptr inbounds i8, ptr %0, i64 842
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 2 dereferenceable(24) %7, i8 0, i64 24, i1 false)
  %12 = load i16, ptr %11, align 2, !tbaa !20
  %13 = getelementptr inbounds i8, ptr %0, i64 926
  store i16 %12, ptr %13, align 2, !tbaa !21
  %14 = getelementptr inbounds i8, ptr %0, i64 928
  store i16 0, ptr %14, align 2, !tbaa !22
  %15 = and i32 %1, 31
  %.not = icmp eq i32 %15, 0
  br i1 %.not, label %30, label %16

16:                                               ; preds = %4
  %17 = and i32 %1, 1
  %.not.not = icmp eq i32 %17, 0
  %18 = select i1 %.not.not, i16 -32768, i16 -32767
  %19 = trunc i32 %1 to i16
  %20 = lshr i16 %19, 1
  %21 = and i16 %20, 2
  %22 = or disjoint i16 %18, %21
  %23 = trunc i32 %1 to i16
  %24 = and i16 %23, 8
  %spec.select = or disjoint i16 %22, %24
  %25 = trunc i32 %1 to i16
  %26 = and i16 %25, 16
  %spec.select46 = or disjoint i16 %spec.select, %26
  %27 = trunc i32 %1 to i16
  %28 = shl i16 %27, 1
  %29 = and i16 %28, 4
  %spec.select47 = or disjoint i16 %spec.select46, %29
  store i16 %spec.select47, ptr %6, align 2, !tbaa !19
  br label %30

30:                                               ; preds = %4, %16
  %.not40 = icmp eq i64 %2, 0
  br i1 %.not40, label %38, label %31

31:                                               ; preds = %30
  %.tr = trunc i64 %2 to i16
  %32 = shl i16 %.tr, 5
  store i16 %32, ptr %7, align 2, !tbaa !23
  %33 = getelementptr inbounds i8, ptr %0, i64 936
  %34 = load ptr, ptr %33, align 8, !tbaa !24
  %35 = ptrtoint ptr %34 to i64
  store i64 %35, ptr %8, align 2, !tbaa !25
  %36 = zext i16 %32 to i64
  %37 = tail call ptr @CopyMem(ptr noundef %34, ptr noundef %3, i64 noundef %36) #3
  br label %38

38:                                               ; preds = %30, %31
  %39 = tail call zeroext i8 @DebugPrintEnabled() #3
  %.not41 = icmp eq i8 %39, 0
  br i1 %.not41, label %43, label %40

40:                                               ; preds = %38
  %41 = tail call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 16384) #3
  %.not42 = icmp eq i8 %41, 0
  br i1 %.not42, label %43, label %42

42:                                               ; preds = %40
  tail call void (i64, ptr, ...) @DebugPrint(i64 noundef 16384, ptr noundef nonnull @.str) #3
  br label %43

43:                                               ; preds = %38, %40, %42
  %44 = getelementptr inbounds i8, ptr %0, i64 832
  %45 = load ptr, ptr %44, align 8, !tbaa !26
  %46 = ptrtoint ptr %5 to i64
  %47 = tail call i64 %45(i64 noundef %46) #3
  %48 = load i16, ptr %9, align 2, !tbaa !27
  %.not43 = icmp eq i16 %48, 0
  br i1 %.not43, label %62, label %49

49:                                               ; preds = %43
  %50 = tail call zeroext i8 @DebugPrintEnabled() #3
  %.not44 = icmp eq i8 %50, 0
  br i1 %.not44, label %58, label %51

51:                                               ; preds = %49
  %52 = tail call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 2147483648) #3
  %.not45 = icmp eq i8 %52, 0
  br i1 %.not45, label %58, label %53

53:                                               ; preds = %51
  %54 = load i16, ptr %10, align 2, !tbaa !28
  %55 = zext i16 %54 to i32
  %56 = load i16, ptr %9, align 2, !tbaa !27
  %57 = zext i16 %56 to i32
  tail call void (i64, ptr, ...) @DebugPrint(i64 noundef 2147483648, ptr noundef nonnull @.str.1, i32 noundef %55, i32 noundef %57) #3
  br label %58

58:                                               ; preds = %49, %51, %53
  %59 = load i16, ptr %9, align 2, !tbaa !27
  switch i16 %59, label %61 [
    i16 1, label %62
    i16 2, label %62
    i16 14, label %62
    i16 12, label %60
  ]

60:                                               ; preds = %58
  br label %62

61:                                               ; preds = %58
  br label %62

62:                                               ; preds = %43, %58, %58, %58, %61, %60
  %.0 = phi i64 [ -9223372036854775801, %61 ], [ -9223372036854775805, %60 ], [ -9223372036854775806, %58 ], [ -9223372036854775806, %58 ], [ -9223372036854775806, %58 ], [ 0, %43 ]
  ret i64 %.0
}

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

declare zeroext i8 @DebugPrintEnabled() local_unnamed_addr #1

declare zeroext i8 @DebugPrintLevelEnabled(i64 noundef) local_unnamed_addr #1

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !16, i64 898}
!6 = !{!"", !7, i64 0, !10, i64 8, !12, i64 32, !14, i64 160, !13, i64 816, !13, i64 824, !13, i64 832, !8, i64 840, !16, i64 842, !7, i64 844, !13, i64 848, !13, i64 856, !13, i64 864, !13, i64 872, !13, i64 880, !13, i64 888, !8, i64 896, !8, i64 897, !17, i64 898, !13, i64 936, !13, i64 944, !13, i64 952, !18, i64 960, !13, i64 1008, !8, i64 1016, !13, i64 2616, !8, i64 2624}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !11, i64 0, !11, i64 8, !7, i64 16}
!11 = !{!"long long", !8, i64 0}
!12 = !{!"_EFI_SIMPLE_NETWORK_PROTOCOL", !11, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !8, i64 40, !15, i64 552, !15, i64 584, !15, i64 616, !8, i64 648, !8, i64 649, !8, i64 650, !8, i64 651, !8, i64 652}
!15 = !{!"", !8, i64 0}
!16 = !{!"short", !8, i64 0}
!17 = !{!"s_pxe_cdb", !16, i64 0, !16, i64 2, !16, i64 4, !16, i64 6, !11, i64 8, !11, i64 16, !16, i64 24, !16, i64 26, !16, i64 28, !16, i64 30}
!18 = !{!"s_pxe_db_get_init_info", !7, i64 0, !7, i64 4, !8, i64 8, !7, i64 24, !16, i64 28, !16, i64 30, !16, i64 32, !16, i64 34, !16, i64 36, !16, i64 38, !16, i64 40, !16, i64 42, !8, i64 44, !8, i64 45, !8, i64 46}
!19 = !{!6, !16, i64 900}
!20 = !{!6, !16, i64 842}
!21 = !{!6, !16, i64 926}
!22 = !{!6, !16, i64 928}
!23 = !{!6, !16, i64 902}
!24 = !{!6, !13, i64 936}
!25 = !{!6, !11, i64 906}
!26 = !{!6, !13, i64 832}
!27 = !{!6, !16, i64 922}
!28 = !{!6, !16, i64 924}


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