; LLVM IR from thalium/icebox :: third_party/virtualbox/src/VBox/Devices/EFI/Firmware/OptionRomPkg (E100bInit)

; 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.s_data_instance = type { i16, i16, i8, i8, i16, i16, i16, i16, i16, [32 x i8], [32 x i8], [32 x i8], [64 x i32], [128 x i32], i32, i32, i16, i16, i8, i8, i8, i8, i16, i16, i16, i16, i32, i32, i16, i16, [2 x i16], i8, i8, i16, i32, ptr, ptr, ptr, ptr, ptr, ptr, i64, i64, i64, i64, i64, [64 x i64], i16, i16, i16, i16, i8, i8, i8, i8, i8, [3 x i8], %struct.mc, i64, ptr, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.mc = type { [3 x i16], i16, [8 x [32 x i8]] }
%struct.CONFIG_HEADER = type { i16, i16, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i8, i8, i16, i32, i8, i8, i8, i8 }

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

; 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 @MapIt(ptr noundef, i64 noundef, i32 noundef, i32 noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i64 @E100bInit(ptr noundef %0) #1 {
  %2 = alloca i64, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #2
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.s_data_instance, ptr %9, i32 0, i32 34
  %11 = load i32, ptr %10, align 4, !tbaa !9
  %12 = zext i32 %11 to i64
  %13 = icmp ult i64 %12, 57540
  br i1 %13, label %14, label %15

14:                                               ; preds = %1
  store i64 18, ptr %2, align 8
  store i32 1, ptr %8, align 4
  br label %144

15:                                               ; preds = %1
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.s_data_instance, ptr %17, i32 0, i32 44
  %19 = load i64, ptr %18, align 8, !tbaa !15
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.s_data_instance, ptr %20, i32 0, i32 34
  %22 = load i32, ptr %21, align 4, !tbaa !9
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.s_data_instance, ptr %23, i32 0, i32 45
  %25 = ptrtoint ptr %24 to i64
  %26 = call i64 @MapIt(ptr noundef %16, i64 noundef %19, i32 noundef %22, i32 noundef 0, i64 noundef %25)
  store i64 %26, ptr %5, align 8, !tbaa !16
  %27 = load i64, ptr %5, align 8, !tbaa !16
  %28 = icmp ne i64 %27, 0
  br i1 %28, label %29, label %31

29:                                               ; preds = %15
  %30 = load i64, ptr %5, align 8, !tbaa !16
  store i64 %30, ptr %2, align 8
  store i32 1, ptr %8, align 4
  br label %144

31:                                               ; preds = %15
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.s_data_instance, ptr %32, i32 0, i32 12
  %34 = getelementptr inbounds [64 x i32], ptr %33, i64 0, i64 0
  store ptr %34, ptr %4, align 8, !tbaa !5
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.CONFIG_HEADER, ptr %35, i32 0, i32 24
  %37 = load i8, ptr %36, align 1, !tbaa !17
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.s_data_instance, ptr %38, i32 0, i32 32
  store i8 %37, ptr %39, align 1, !tbaa !19
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.s_data_instance, ptr %40, i32 0, i32 14
  store i32 0, ptr %41, align 8, !tbaa !20
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.CONFIG_HEADER, ptr %42, i32 0, i32 0
  %44 = load i16, ptr %43, align 1, !tbaa !21
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.s_data_instance, ptr %45, i32 0, i32 4
  store i16 %44, ptr %46, align 2, !tbaa !22
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.CONFIG_HEADER, ptr %47, i32 0, i32 1
  %49 = load i16, ptr %48, align 1, !tbaa !23
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.s_data_instance, ptr %50, i32 0, i32 5
  store i16 %49, ptr %51, align 8, !tbaa !24
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.CONFIG_HEADER, ptr %52, i32 0, i32 4
  %54 = load i16, ptr %53, align 1, !tbaa !25
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.s_data_instance, ptr %55, i32 0, i32 6
  store i16 %54, ptr %56, align 2, !tbaa !26
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.CONFIG_HEADER, ptr %57, i32 0, i32 17
  %59 = load i16, ptr %58, align 1, !tbaa !27
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.s_data_instance, ptr %60, i32 0, i32 7
  store i16 %59, ptr %61, align 4, !tbaa !28
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.CONFIG_HEADER, ptr %62, i32 0, i32 18
  %64 = load i16, ptr %63, align 1, !tbaa !29
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.s_data_instance, ptr %65, i32 0, i32 8
  store i16 %64, ptr %66, align 2, !tbaa !30
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.s_data_instance, ptr %67, i32 0, i32 15
  store i32 0, ptr %68, align 4, !tbaa !31
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = call signext i16 @E100bReadEepromAndStationAddress(ptr noundef %69)
  %71 = sext i16 %70 to i32
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %73, label %74

73:                                               ; preds = %31
  store i64 10, ptr %2, align 8
  store i32 1, ptr %8, align 4
  br label %144

74:                                               ; preds = %31
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.s_data_instance, ptr %75, i32 0, i32 22
  store i16 32, ptr %76, align 8, !tbaa !32
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.s_data_instance, ptr %77, i32 0, i32 24
  store i16 32, ptr %78, align 4, !tbaa !33
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.s_data_instance, ptr %79, i32 0, i32 24
  %81 = load i16, ptr %80, align 4, !tbaa !33
  %82 = zext i16 %81 to i64
  %83 = mul i64 %82, 1556
  store i64 %83, ptr %6, align 8, !tbaa !16
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.s_data_instance, ptr %84, i32 0, i32 22
  %86 = load i16, ptr %85, align 8, !tbaa !32
  %87 = zext i16 %86 to i64
  %88 = mul i64 %87, 240
  store i64 %88, ptr %7, align 8, !tbaa !16
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.s_data_instance, ptr %89, i32 0, i32 44
  %91 = load i64, ptr %90, align 8, !tbaa !15
  %92 = inttoptr i64 %91 to ptr
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.s_data_instance, ptr %93, i32 0, i32 35
  store ptr %92, ptr %94, align 8, !tbaa !34
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.s_data_instance, ptr %95, i32 0, i32 44
  %97 = load i64, ptr %96, align 8, !tbaa !15
  %98 = load i64, ptr %6, align 8, !tbaa !16
  %99 = add i64 %97, %98
  %100 = inttoptr i64 %99 to ptr
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.s_data_instance, ptr %101, i32 0, i32 36
  store ptr %100, ptr %102, align 8, !tbaa !35
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.s_data_instance, ptr %103, i32 0, i32 44
  %105 = load i64, ptr %104, align 8, !tbaa !15
  %106 = load i64, ptr %6, align 8, !tbaa !16
  %107 = add i64 %105, %106
  %108 = load i64, ptr %7, align 8, !tbaa !16
  %109 = add i64 %107, %108
  %110 = inttoptr i64 %109 to ptr
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.s_data_instance, ptr %111, i32 0, i32 37
  store ptr %110, ptr %112, align 8, !tbaa !36
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.s_data_instance, ptr %113, i32 0, i32 45
  %115 = load i64, ptr %114, align 8, !tbaa !37
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.s_data_instance, ptr %116, i32 0, i32 41
  store i64 %115, ptr %117, align 8, !tbaa !38
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.s_data_instance, ptr %118, i32 0, i32 45
  %120 = load i64, ptr %119, align 8, !tbaa !37
  %121 = load i64, ptr %6, align 8, !tbaa !16
  %122 = add i64 %120, %121
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.s_data_instance, ptr %123, i32 0, i32 42
  store i64 %122, ptr %124, align 8, !tbaa !39
  %125 = load ptr, ptr %3, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.s_data_instance, ptr %125, i32 0, i32 42
  %127 = load i64, ptr %126, align 8, !tbaa !39
  %128 = load i64, ptr %7, align 8, !tbaa !16
  %129 = add i64 %127, %128
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.s_data_instance, ptr %130, i32 0, i32 43
  store i64 %129, ptr %131, align 8, !tbaa !40
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.s_data_instance, ptr %132, i32 0, i32 31
  store i8 -1, ptr %133, align 8, !tbaa !41
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.s_data_instance, ptr %134, i32 0, i32 54
  store i8 2, ptr %135, align 1, !tbaa !42
  %136 = load ptr, ptr %3, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.s_data_instance, ptr %136, i32 0, i32 53
  store i8 0, ptr %137, align 2, !tbaa !43
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.s_data_instance, ptr %138, i32 0, i32 57
  %140 = getelementptr inbounds %struct.mc, ptr %139, i32 0, i32 1
  store i16 0, ptr %140, align 2, !tbaa !44
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = call zeroext i16 @InitializeChip(ptr noundef %141)
  %143 = zext i16 %142 to i64
  store i64 %143, ptr %2, align 8
  store i32 1, ptr %8, align 4
  br label %144

144:                                              ; preds = %74, %73, %29, %14
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #2
  %145 = load i64, ptr %2, align 8
  ret i64 %145
}

; Function Attrs: nounwind uwtable
declare dso_local signext i16 @E100bReadEepromAndStationAddress(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local zeroext i16 @InitializeChip(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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, !12, i64 924}
!10 = !{!"s_data_instance", !11, i64 0, !11, i64 2, !7, i64 4, !7, i64 5, !11, i64 6, !11, i64 8, !11, i64 10, !11, i64 12, !11, i64 14, !7, i64 16, !7, i64 48, !7, i64 80, !7, i64 112, !7, i64 368, !12, i64 880, !12, i64 884, !11, i64 888, !11, i64 890, !7, i64 892, !7, i64 893, !7, i64 894, !7, i64 895, !11, i64 896, !11, i64 898, !11, i64 900, !11, i64 902, !12, i64 904, !12, i64 908, !11, i64 912, !11, i64 914, !7, i64 916, !7, i64 920, !7, i64 921, !11, i64 922, !12, i64 924, !6, i64 928, !6, i64 936, !6, i64 944, !6, i64 952, !6, i64 960, !6, i64 968, !13, i64 976, !13, i64 984, !13, i64 992, !13, i64 1000, !13, i64 1008, !7, i64 1016, !11, i64 1528, !11, i64 1530, !11, i64 1532, !11, i64 1534, !7, i64 1536, !7, i64 1537, !7, i64 1538, !7, i64 1539, !7, i64 1540, !7, i64 1541, !14, i64 1544, !13, i64 1808, !6, i64 1816, !13, i64 1824, !6, i64 1832, !6, i64 1840, !6, i64 1848, !6, i64 1856, !6, i64 1864, !6, i64 1872, !6, i64 1880, !6, i64 1888, !6, i64 1896, !6, i64 1904, !6, i64 1912}
!11 = !{!"short", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"long long", !7, i64 0}
!14 = !{!"mc", !7, i64 0, !11, i64 6, !7, i64 8}
!15 = !{!10, !13, i64 1000}
!16 = !{!13, !13, i64 0}
!17 = !{!18, !7, i64 60}
!18 = !{!"CONFIG_HEADER", !11, i64 0, !11, i64 2, !11, i64 4, !11, i64 6, !11, i64 8, !11, i64 10, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !11, i64 44, !11, i64 46, !12, i64 48, !7, i64 52, !7, i64 53, !11, i64 54, !12, i64 56, !7, i64 60, !7, i64 61, !7, i64 62, !7, i64 63}
!19 = !{!10, !7, i64 921}
!20 = !{!10, !12, i64 880}
!21 = !{!18, !11, i64 0}
!22 = !{!10, !11, i64 6}
!23 = !{!18, !11, i64 2}
!24 = !{!10, !11, i64 8}
!25 = !{!18, !11, i64 8}
!26 = !{!10, !11, i64 10}
!27 = !{!18, !11, i64 44}
!28 = !{!10, !11, i64 12}
!29 = !{!18, !11, i64 46}
!30 = !{!10, !11, i64 14}
!31 = !{!10, !12, i64 884}
!32 = !{!10, !11, i64 896}
!33 = !{!10, !11, i64 900}
!34 = !{!10, !6, i64 928}
!35 = !{!10, !6, i64 936}
!36 = !{!10, !6, i64 944}
!37 = !{!10, !13, i64 1008}
!38 = !{!10, !13, i64 976}
!39 = !{!10, !13, i64 984}
!40 = !{!10, !13, i64 992}
!41 = !{!10, !7, i64 920}
!42 = !{!10, !7, i64 1539}
!43 = !{!10, !7, i64 1538}
!44 = !{!10, !11, i64 1550}


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

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

; Function Attrs: nounwind uwtable
define dso_local i64 @E100bInit(ptr noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 924
  %3 = load i32, ptr %2, align 4, !tbaa !5
  %4 = icmp ult i32 %3, 57540
  br i1 %4, label %50, label %5

5:                                                ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 1000
  %7 = load i64, ptr %6, align 8, !tbaa !14
  %8 = getelementptr inbounds i8, ptr %0, i64 1008
  %9 = ptrtoint ptr %8 to i64
  %10 = tail call i64 @MapIt(ptr noundef nonnull %0, i64 noundef %7, i32 noundef %3, i32 noundef 0, i64 noundef %9)
  %.not = icmp eq i64 %10, 0
  br i1 %.not, label %11, label %50

11:                                               ; preds = %5
  %12 = getelementptr inbounds i8, ptr %0, i64 112
  %13 = getelementptr inbounds i8, ptr %0, i64 172
  %14 = load i8, ptr %13, align 1, !tbaa !15
  %15 = getelementptr inbounds i8, ptr %0, i64 921
  store i8 %14, ptr %15, align 1, !tbaa !17
  %16 = getelementptr inbounds i8, ptr %0, i64 880
  store i32 0, ptr %16, align 8, !tbaa !18
  %17 = getelementptr inbounds i8, ptr %0, i64 6
  %18 = load <2 x i16>, ptr %12, align 1, !tbaa !19
  store <2 x i16> %18, ptr %17, align 2, !tbaa !19
  %19 = getelementptr inbounds i8, ptr %0, i64 120
  %20 = load i16, ptr %19, align 1, !tbaa !20
  %21 = getelementptr inbounds i8, ptr %0, i64 10
  store i16 %20, ptr %21, align 2, !tbaa !21
  %22 = getelementptr inbounds i8, ptr %0, i64 156
  %23 = getelementptr inbounds i8, ptr %0, i64 12
  %24 = load <2 x i16>, ptr %22, align 1, !tbaa !19
  store <2 x i16> %24, ptr %23, align 4, !tbaa !19
  %25 = getelementptr inbounds i8, ptr %0, i64 884
  store i32 0, ptr %25, align 4, !tbaa !22
  %26 = tail call signext i16 @E100bReadEepromAndStationAddress(ptr noundef nonnull %0)
  %.not50 = icmp eq i16 %26, 0
  br i1 %.not50, label %27, label %50

27:                                               ; preds = %11
  %28 = getelementptr inbounds i8, ptr %0, i64 896
  store i16 32, ptr %28, align 8, !tbaa !23
  %29 = getelementptr inbounds i8, ptr %0, i64 900
  store i16 32, ptr %29, align 4, !tbaa !24
  %30 = load i64, ptr %6, align 8, !tbaa !14
  %31 = inttoptr i64 %30 to ptr
  %32 = getelementptr inbounds i8, ptr %0, i64 928
  store ptr %31, ptr %32, align 8, !tbaa !25
  %33 = getelementptr inbounds i8, ptr %0, i64 936
  %34 = insertelement <2 x i64> poison, i64 %30, i64 0
  %35 = shufflevector <2 x i64> %34, <2 x i64> poison, <2 x i32> zeroinitializer
  %36 = add <2 x i64> %35, <i64 49792, i64 57472>
  %37 = inttoptr <2 x i64> %36 to <2 x ptr>
  store <2 x ptr> %37, ptr %33, align 8, !tbaa !26
  %38 = load i64, ptr %8, align 8, !tbaa !27
  %39 = getelementptr inbounds i8, ptr %0, i64 976
  store i64 %38, ptr %39, align 8, !tbaa !28
  %40 = getelementptr inbounds i8, ptr %0, i64 984
  %41 = insertelement <2 x i64> poison, i64 %38, i64 0
  %42 = shufflevector <2 x i64> %41, <2 x i64> poison, <2 x i32> zeroinitializer
  %43 = add <2 x i64> %42, <i64 49792, i64 57472>
  store <2 x i64> %43, ptr %40, align 8, !tbaa !29
  %44 = getelementptr inbounds i8, ptr %0, i64 920
  store i8 -1, ptr %44, align 8, !tbaa !30
  %45 = getelementptr inbounds i8, ptr %0, i64 1539
  store i8 2, ptr %45, align 1, !tbaa !31
  %46 = getelementptr inbounds i8, ptr %0, i64 1538
  store i8 0, ptr %46, align 2, !tbaa !32
  %47 = getelementptr inbounds i8, ptr %0, i64 1550
  store i16 0, ptr %47, align 2, !tbaa !33
  %48 = tail call zeroext i16 @InitializeChip(ptr noundef nonnull %0)
  %49 = zext i16 %48 to i64
  br label %50

50:                                               ; preds = %11, %5, %1, %27
  %.0 = phi i64 [ %49, %27 ], [ 18, %1 ], [ %10, %5 ], [ 10, %11 ]
  ret i64 %.0
}

; Function Attrs: nounwind uwtable
declare dso_local signext i16 @E100bReadEepromAndStationAddress(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local zeroext i16 @InitializeChip(ptr noundef) local_unnamed_addr #0

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

!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, !10, i64 924}
!6 = !{!"s_data_instance", !7, i64 0, !7, i64 2, !8, i64 4, !8, i64 5, !7, i64 6, !7, i64 8, !7, i64 10, !7, i64 12, !7, i64 14, !8, i64 16, !8, i64 48, !8, i64 80, !8, i64 112, !8, i64 368, !10, i64 880, !10, i64 884, !7, i64 888, !7, i64 890, !8, i64 892, !8, i64 893, !8, i64 894, !8, i64 895, !7, i64 896, !7, i64 898, !7, i64 900, !7, i64 902, !10, i64 904, !10, i64 908, !7, i64 912, !7, i64 914, !8, i64 916, !8, i64 920, !8, i64 921, !7, i64 922, !10, i64 924, !11, i64 928, !11, i64 936, !11, i64 944, !11, i64 952, !11, i64 960, !11, i64 968, !12, i64 976, !12, i64 984, !12, i64 992, !12, i64 1000, !12, i64 1008, !8, i64 1016, !7, i64 1528, !7, i64 1530, !7, i64 1532, !7, i64 1534, !8, i64 1536, !8, i64 1537, !8, i64 1538, !8, i64 1539, !8, i64 1540, !8, i64 1541, !13, i64 1544, !12, i64 1808, !11, i64 1816, !12, i64 1824, !11, i64 1832, !11, i64 1840, !11, i64 1848, !11, i64 1856, !11, i64 1864, !11, i64 1872, !11, i64 1880, !11, i64 1888, !11, i64 1896, !11, i64 1904, !11, i64 1912}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long long", !8, i64 0}
!13 = !{!"mc", !8, i64 0, !7, i64 6, !8, i64 8}
!14 = !{!6, !12, i64 1000}
!15 = !{!16, !8, i64 60}
!16 = !{!"CONFIG_HEADER", !7, i64 0, !7, i64 2, !7, i64 4, !7, i64 6, !7, i64 8, !7, i64 10, !8, i64 12, !8, i64 13, !8, i64 14, !8, i64 15, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !7, i64 44, !7, i64 46, !10, i64 48, !8, i64 52, !8, i64 53, !7, i64 54, !10, i64 56, !8, i64 60, !8, i64 61, !8, i64 62, !8, i64 63}
!17 = !{!6, !8, i64 921}
!18 = !{!6, !10, i64 880}
!19 = !{!7, !7, i64 0}
!20 = !{!16, !7, i64 8}
!21 = !{!6, !7, i64 10}
!22 = !{!6, !10, i64 884}
!23 = !{!6, !7, i64 896}
!24 = !{!6, !7, i64 900}
!25 = !{!6, !11, i64 928}
!26 = !{!11, !11, i64 0}
!27 = !{!6, !12, i64 1008}
!28 = !{!6, !12, i64 976}
!29 = !{!12, !12, i64 0}
!30 = !{!6, !8, i64 920}
!31 = !{!6, !8, i64 1539}
!32 = !{!6, !8, i64 1538}
!33 = !{!6, !7, i64 1550}


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