; LLVM IR from lichen-community-systems/signaletic :: hosts/daisy/vendor/libDaisy/Drivers/STM32H7xx_HAL_Driver/Src (IRQHandler)

; 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.ETH_HandleTypeDef = type { ptr, %struct.ETH_InitTypeDef, %struct.ETH_TxDescListTypeDef, %struct.ETH_RxDescListTypeDef, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.ETH_InitTypeDef = type { ptr, i32, ptr, ptr, i32 }
%struct.ETH_TxDescListTypeDef = type { [4 x i32], i32 }
%struct.ETH_RxDescListTypeDef = type { [4 x i32], i32, i32, i32, i32, i32 }
%struct.ETH_TypeDef = type { i32, i32, i32, i32, i32, i32, [14 x i32], i32, i32, i32, i32, i32, i32, [2 x i32], i32, [7 x i32], i32, [7 x i32], i32, i32, i32, i32, i32, i32, [2 x i32], i32, i32, i32, i32, [12 x i32], i32, i32, i32, i32, i32, i32, [54 x i32], i32, i32, [2 x i32], i32, [59 x i32], i32, i32, i32, i32, i32, i32, i32, i32, [248 x i32], i32, i32, i32, i32, i32, [14 x i32], i32, i32, [5 x i32], i32, [10 x i32], i32, i32, [10 x i32], i32, [9 x i32], i32, i32, i32, i32, [65 x i32], i32, i32, [2 x i32], i32, i32, i32, i32, [4 x i32], i32, i32, [2 x i32], i32, i32, i32, i32, [108 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, [3 x i32], i32, i32, [2 x i32], i32, i32, i32, i32, i32, i32, i32, i32, [4 x i32], i32, [3 x i32], i32, i32, i32, i32, [12 x i32], i32, i32, i32, i32, i32, [11 x i32], i32, [7 x i32], i32, [55 x i32], i32, i32, i32, [8 x i32], i32, i32, i32, i32, [177 x i32], i32, i32, i32, i32, [60 x i32], i32, i32, i32, [2 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [2 x i32], i32 }
%struct.EXTI_Core_TypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }

; Function Attrs: nounwind uwtable
define dso_local void @HAL_ETH_IRQHandler(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %3, i32 0, i32 0
  %5 = load ptr, ptr %4, align 8, !tbaa !9
  %6 = getelementptr inbounds %struct.ETH_TypeDef, ptr %5, i32 0, i32 164
  %7 = load volatile i32, ptr %6, align 4, !tbaa !15
  %8 = zext i32 %7 to i64
  %9 = and i64 %8, 64
  %10 = icmp eq i64 %9, 64
  br i1 %10, label %11, label %27

11:                                               ; preds = %1
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %12, i32 0, i32 0
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = getelementptr inbounds %struct.ETH_TypeDef, ptr %14, i32 0, i32 153
  %16 = load volatile i32, ptr %15, align 4, !tbaa !17
  %17 = zext i32 %16 to i64
  %18 = and i64 %17, 64
  %19 = icmp eq i64 %18, 64
  br i1 %19, label %20, label %26

20:                                               ; preds = %11
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  call void @HAL_ETH_RxCpltCallback(ptr noundef %21)
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %22, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = getelementptr inbounds %struct.ETH_TypeDef, ptr %24, i32 0, i32 164
  store volatile i32 32832, ptr %25, align 4, !tbaa !15
  br label %26

26:                                               ; preds = %20, %11
  br label %27

27:                                               ; preds = %26, %1
  %28 = load ptr, ptr %2, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %28, i32 0, i32 0
  %30 = load ptr, ptr %29, align 8, !tbaa !9
  %31 = getelementptr inbounds %struct.ETH_TypeDef, ptr %30, i32 0, i32 164
  %32 = load volatile i32, ptr %31, align 4, !tbaa !15
  %33 = zext i32 %32 to i64
  %34 = and i64 %33, 1
  %35 = icmp eq i64 %34, 1
  br i1 %35, label %36, label %52

36:                                               ; preds = %27
  %37 = load ptr, ptr %2, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %37, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  %40 = getelementptr inbounds %struct.ETH_TypeDef, ptr %39, i32 0, i32 153
  %41 = load volatile i32, ptr %40, align 4, !tbaa !17
  %42 = zext i32 %41 to i64
  %43 = and i64 %42, 1
  %44 = icmp eq i64 %43, 1
  br i1 %44, label %45, label %51

45:                                               ; preds = %36
  %46 = load ptr, ptr %2, align 8, !tbaa !5
  call void @HAL_ETH_TxCpltCallback(ptr noundef %46)
  %47 = load ptr, ptr %2, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %47, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8, !tbaa !9
  %50 = getelementptr inbounds %struct.ETH_TypeDef, ptr %49, i32 0, i32 164
  store volatile i32 32769, ptr %50, align 4, !tbaa !15
  br label %51

51:                                               ; preds = %45, %36
  br label %52

52:                                               ; preds = %51, %27
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %53, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8, !tbaa !9
  %56 = getelementptr inbounds %struct.ETH_TypeDef, ptr %55, i32 0, i32 164
  %57 = load volatile i32, ptr %56, align 4, !tbaa !15
  %58 = zext i32 %57 to i64
  %59 = and i64 %58, 16384
  %60 = icmp eq i64 %59, 16384
  br i1 %60, label %61, label %122

61:                                               ; preds = %52
  %62 = load ptr, ptr %2, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %62, i32 0, i32 0
  %64 = load ptr, ptr %63, align 8, !tbaa !9
  %65 = getelementptr inbounds %struct.ETH_TypeDef, ptr %64, i32 0, i32 153
  %66 = load volatile i32, ptr %65, align 4, !tbaa !17
  %67 = zext i32 %66 to i64
  %68 = and i64 %67, 16384
  %69 = icmp eq i64 %68, 16384
  br i1 %69, label %70, label %121

70:                                               ; preds = %61
  %71 = load ptr, ptr %2, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %71, i32 0, i32 7
  %73 = load volatile i32, ptr %72, align 4, !tbaa !18
  %74 = or i32 %73, 8
  store volatile i32 %74, ptr %72, align 4, !tbaa !18
  %75 = load ptr, ptr %2, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %75, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8, !tbaa !9
  %78 = getelementptr inbounds %struct.ETH_TypeDef, ptr %77, i32 0, i32 164
  %79 = load volatile i32, ptr %78, align 4, !tbaa !15
  %80 = zext i32 %79 to i64
  %81 = and i64 %80, 4096
  %82 = icmp eq i64 %81, 4096
  br i1 %82, label %83, label %104

83:                                               ; preds = %70
  %84 = load ptr, ptr %2, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %84, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8, !tbaa !9
  %87 = getelementptr inbounds %struct.ETH_TypeDef, ptr %86, i32 0, i32 164
  %88 = load volatile i32, ptr %87, align 4, !tbaa !15
  %89 = zext i32 %88 to i64
  %90 = and i64 %89, 4354
  %91 = trunc i64 %90 to i32
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %92, i32 0, i32 8
  store volatile i32 %91, ptr %93, align 8, !tbaa !19
  %94 = load ptr, ptr %2, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %94, i32 0, i32 0
  %96 = load ptr, ptr %95, align 8, !tbaa !9
  %97 = getelementptr inbounds %struct.ETH_TypeDef, ptr %96, i32 0, i32 153
  %98 = load volatile i32, ptr %97, align 4, !tbaa !17
  %99 = zext i32 %98 to i64
  %100 = and i64 %99, -49153
  %101 = trunc i64 %100 to i32
  store volatile i32 %101, ptr %97, align 4, !tbaa !17
  %102 = load ptr, ptr %2, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %102, i32 0, i32 5
  store volatile i32 224, ptr %103, align 4, !tbaa !20
  br label %119

104:                                              ; preds = %70
  %105 = load ptr, ptr %2, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %105, i32 0, i32 0
  %107 = load ptr, ptr %106, align 8, !tbaa !9
  %108 = getelementptr inbounds %struct.ETH_TypeDef, ptr %107, i32 0, i32 164
  %109 = load volatile i32, ptr %108, align 4, !tbaa !15
  %110 = zext i32 %109 to i64
  %111 = and i64 %110, 26240
  %112 = trunc i64 %111 to i32
  %113 = load ptr, ptr %2, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %113, i32 0, i32 8
  store volatile i32 %112, ptr %114, align 8, !tbaa !19
  %115 = load ptr, ptr %2, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %115, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8, !tbaa !9
  %118 = getelementptr inbounds %struct.ETH_TypeDef, ptr %117, i32 0, i32 164
  store volatile i32 26240, ptr %118, align 4, !tbaa !15
  br label %119

119:                                              ; preds = %104, %83
  %120 = load ptr, ptr %2, align 8, !tbaa !5
  call void @HAL_ETH_DMAErrorCallback(ptr noundef %120)
  br label %121

121:                                              ; preds = %119, %61
  br label %122

122:                                              ; preds = %121, %52
  %123 = load ptr, ptr %2, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %123, i32 0, i32 0
  %125 = load ptr, ptr %124, align 8, !tbaa !9
  %126 = getelementptr inbounds %struct.ETH_TypeDef, ptr %125, i32 0, i32 18
  %127 = load volatile i32, ptr %126, align 4, !tbaa !21
  %128 = zext i32 %127 to i64
  %129 = and i64 %128, 24576
  %130 = icmp eq i64 %129, 24576
  br i1 %130, label %131, label %144

131:                                              ; preds = %122
  %132 = load ptr, ptr %2, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %132, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8, !tbaa !9
  %135 = getelementptr inbounds %struct.ETH_TypeDef, ptr %134, i32 0, i32 20
  %136 = load volatile i32, ptr %135, align 4, !tbaa !22
  %137 = load ptr, ptr %2, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %137, i32 0, i32 9
  store volatile i32 %136, ptr %138, align 4, !tbaa !23
  %139 = load ptr, ptr %2, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %139, i32 0, i32 5
  store volatile i32 224, ptr %140, align 4, !tbaa !20
  %141 = load ptr, ptr %2, align 8, !tbaa !5
  call void @HAL_ETH_MACErrorCallback(ptr noundef %141)
  %142 = load ptr, ptr %2, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %142, i32 0, i32 9
  store volatile i32 0, ptr %143, align 4, !tbaa !23
  br label %144

144:                                              ; preds = %131, %122
  %145 = load ptr, ptr %2, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %145, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8, !tbaa !9
  %148 = getelementptr inbounds %struct.ETH_TypeDef, ptr %147, i32 0, i32 18
  %149 = load volatile i32, ptr %148, align 4, !tbaa !21
  %150 = zext i32 %149 to i64
  %151 = and i64 %150, 16
  %152 = icmp eq i64 %151, 16
  br i1 %152, label %153, label %167

153:                                              ; preds = %144
  %154 = load ptr, ptr %2, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %154, i32 0, i32 0
  %156 = load ptr, ptr %155, align 8, !tbaa !9
  %157 = getelementptr inbounds %struct.ETH_TypeDef, ptr %156, i32 0, i32 22
  %158 = load volatile i32, ptr %157, align 4, !tbaa !24
  %159 = zext i32 %158 to i64
  %160 = and i64 %159, 96
  %161 = trunc i64 %160 to i32
  %162 = load ptr, ptr %2, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %162, i32 0, i32 10
  store volatile i32 %161, ptr %163, align 8, !tbaa !25
  %164 = load ptr, ptr %2, align 8, !tbaa !5
  call void @HAL_ETH_PMTCallback(ptr noundef %164)
  %165 = load ptr, ptr %2, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %165, i32 0, i32 10
  store volatile i32 0, ptr %166, align 8, !tbaa !25
  br label %167

167:                                              ; preds = %153, %144
  %168 = load ptr, ptr %2, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %168, i32 0, i32 0
  %170 = load ptr, ptr %169, align 8, !tbaa !9
  %171 = getelementptr inbounds %struct.ETH_TypeDef, ptr %170, i32 0, i32 18
  %172 = load volatile i32, ptr %171, align 4, !tbaa !21
  %173 = zext i32 %172 to i64
  %174 = and i64 %173, 32
  %175 = icmp eq i64 %174, 32
  br i1 %175, label %176, label %188

176:                                              ; preds = %167
  %177 = load ptr, ptr %2, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %177, i32 0, i32 0
  %179 = load ptr, ptr %178, align 8, !tbaa !9
  %180 = getelementptr inbounds %struct.ETH_TypeDef, ptr %179, i32 0, i32 22
  %181 = load volatile i32, ptr %180, align 4, !tbaa !24
  %182 = and i32 %181, 15
  %183 = load ptr, ptr %2, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %183, i32 0, i32 11
  store volatile i32 %182, ptr %184, align 4, !tbaa !26
  %185 = load ptr, ptr %2, align 8, !tbaa !5
  call void @HAL_ETH_EEECallback(ptr noundef %185)
  %186 = load ptr, ptr %2, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.ETH_HandleTypeDef, ptr %186, i32 0, i32 11
  store volatile i32 0, ptr %187, align 4, !tbaa !26
  br label %188

188:                                              ; preds = %176, %167
  %189 = load volatile i32, ptr getelementptr inbounds (%struct.EXTI_Core_TypeDef, ptr inttoptr (i64 1476395136 to ptr), i32 0, i32 10), align 4, !tbaa !27
  %190 = and i32 %189, 4194304
  %191 = icmp ne i32 %190, 0
  br i1 %191, label %192, label %194

192:                                              ; preds = %188
  store volatile i32 4194304, ptr getelementptr inbounds (%struct.EXTI_Core_TypeDef, ptr inttoptr (i64 1476395136 to ptr), i32 0, i32 10), align 4, !tbaa !27
  %193 = load ptr, ptr %2, align 8, !tbaa !5
  call void @HAL_ETH_WakeUpCallback(ptr noundef %193)
  br label %194

194:                                              ; preds = %192, %188
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @HAL_ETH_RxCpltCallback(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @HAL_ETH_TxCpltCallback(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @HAL_ETH_DMAErrorCallback(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @HAL_ETH_MACErrorCallback(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @HAL_ETH_PMTCallback(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @HAL_ETH_EEECallback(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @HAL_ETH_WakeUpCallback(ptr noundef) #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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"", !6, i64 0, !11, i64 8, !13, i64 48, !14, i64 68, !12, i64 104, !12, i64 108, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132}
!11 = !{!"", !6, i64 0, !12, i64 8, !6, i64 16, !6, i64 24, !12, i64 32}
!12 = !{!"int", !7, i64 0}
!13 = !{!"", !7, i64 0, !12, i64 16}
!14 = !{!"", !7, i64 0, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32}
!15 = !{!16, !12, i64 4448}
!16 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !7, i64 24, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !7, i64 104, !12, i64 112, !7, i64 116, !12, i64 144, !7, i64 148, !12, i64 176, !12, i64 180, !12, i64 184, !12, i64 188, !12, i64 192, !12, i64 196, !7, i64 200, !12, i64 208, !12, i64 212, !12, i64 216, !12, i64 220, !7, i64 224, !12, i64 272, !12, i64 276, !12, i64 280, !12, i64 284, !12, i64 288, !12, i64 292, !7, i64 296, !12, i64 512, !12, i64 516, !7, i64 520, !12, i64 528, !7, i64 532, !12, i64 768, !12, i64 772, !12, i64 776, !12, i64 780, !12, i64 784, !12, i64 788, !12, i64 792, !12, i64 796, !7, i64 800, !12, i64 1792, !12, i64 1796, !12, i64 1800, !12, i64 1804, !12, i64 1808, !7, i64 1812, !12, i64 1868, !12, i64 1872, !7, i64 1876, !12, i64 1896, !7, i64 1900, !12, i64 1940, !12, i64 1944, !7, i64 1948, !12, i64 1988, !7, i64 1992, !12, i64 2028, !12, i64 2032, !12, i64 2036, !12, i64 2040, !7, i64 2044, !12, i64 2304, !12, i64 2308, !7, i64 2312, !12, i64 2320, !12, i64 2324, !12, i64 2328, !12, i64 2332, !7, i64 2336, !12, i64 2352, !12, i64 2356, !7, i64 2360, !12, i64 2368, !12, i64 2372, !12, i64 2376, !12, i64 2380, !7, i64 2384, !12, i64 2816, !12, i64 2820, !12, i64 2824, !12, i64 2828, !12, i64 2832, !12, i64 2836, !12, i64 2840, !12, i64 2844, !12, i64 2848, !7, i64 2852, !12, i64 2864, !12, i64 2868, !7, i64 2872, !12, i64 2880, !12, i64 2884, !12, i64 2888, !12, i64 2892, !12, i64 2896, !12, i64 2900, !12, i64 2904, !12, i64 2908, !7, i64 2912, !12, i64 2928, !7, i64 2932, !12, i64 2944, !12, i64 2948, !12, i64 2952, !12, i64 2956, !7, i64 2960, !12, i64 3008, !12, i64 3012, !12, i64 3016, !12, i64 3020, !12, i64 3024, !7, i64 3028, !12, i64 3072, !7, i64 3076, !12, i64 3104, !7, i64 3108, !12, i64 3328, !12, i64 3332, !12, i64 3336, !7, i64 3340, !12, i64 3372, !12, i64 3376, !12, i64 3380, !12, i64 3384, !7, i64 3388, !12, i64 4096, !12, i64 4100, !12, i64 4104, !12, i64 4108, !7, i64 4112, !12, i64 4352, !12, i64 4356, !12, i64 4360, !7, i64 4364, !12, i64 4372, !12, i64 4376, !12, i64 4380, !12, i64 4384, !12, i64 4388, !12, i64 4392, !12, i64 4396, !12, i64 4400, !12, i64 4404, !12, i64 4408, !12, i64 4412, !12, i64 4416, !12, i64 4420, !12, i64 4424, !12, i64 4428, !12, i64 4432, !12, i64 4436, !12, i64 4440, !12, i64 4444, !12, i64 4448, !7, i64 4452, !12, i64 4460}
!17 = !{!16, !12, i64 4404}
!18 = !{!10, !12, i64 116}
!19 = !{!10, !12, i64 120}
!20 = !{!10, !12, i64 108}
!21 = !{!16, !12, i64 176}
!22 = !{!16, !12, i64 184}
!23 = !{!10, !12, i64 124}
!24 = !{!16, !12, i64 192}
!25 = !{!10, !12, i64 128}
!26 = !{!10, !12, i64 132}
!27 = !{!28, !12, i64 40}
!28 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40}


; 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
define dso_local void @HAL_ETH_IRQHandler(ptr noundef %0) local_unnamed_addr #0 {
  %2 = load ptr, ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %2, i64 4448
  %4 = load volatile i32, ptr %3, align 4, !tbaa !14
  %5 = and i32 %4, 64
  %.not = icmp eq i32 %5, 0
  br i1 %.not, label %13, label %6

6:                                                ; preds = %1
  %7 = getelementptr inbounds i8, ptr %2, i64 4404
  %8 = load volatile i32, ptr %7, align 4, !tbaa !16
  %9 = and i32 %8, 64
  %.not37 = icmp eq i32 %9, 0
  br i1 %.not37, label %13, label %10

10:                                               ; preds = %6
  tail call void @HAL_ETH_RxCpltCallback(ptr noundef nonnull %0)
  %11 = load ptr, ptr %0, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 4448
  store volatile i32 32832, ptr %12, align 4, !tbaa !14
  br label %13

13:                                               ; preds = %6, %10, %1
  %14 = phi ptr [ %2, %6 ], [ %11, %10 ], [ %2, %1 ]
  %15 = getelementptr inbounds i8, ptr %14, i64 4448
  %16 = load volatile i32, ptr %15, align 4, !tbaa !14
  %17 = and i32 %16, 1
  %.not38 = icmp eq i32 %17, 0
  br i1 %.not38, label %25, label %18

18:                                               ; preds = %13
  %19 = getelementptr inbounds i8, ptr %14, i64 4404
  %20 = load volatile i32, ptr %19, align 4, !tbaa !16
  %21 = and i32 %20, 1
  %.not39 = icmp eq i32 %21, 0
  br i1 %.not39, label %25, label %22

22:                                               ; preds = %18
  tail call void @HAL_ETH_TxCpltCallback(ptr noundef nonnull %0)
  %23 = load ptr, ptr %0, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %23, i64 4448
  store volatile i32 32769, ptr %24, align 4, !tbaa !14
  br label %25

25:                                               ; preds = %18, %22, %13
  %26 = phi ptr [ %14, %18 ], [ %23, %22 ], [ %14, %13 ]
  %27 = getelementptr inbounds i8, ptr %26, i64 4448
  %28 = load volatile i32, ptr %27, align 4, !tbaa !14
  %29 = and i32 %28, 16384
  %.not40 = icmp eq i32 %29, 0
  br i1 %.not40, label %50, label %30

30:                                               ; preds = %25
  %31 = getelementptr inbounds i8, ptr %26, i64 4404
  %32 = load volatile i32, ptr %31, align 4, !tbaa !16
  %33 = and i32 %32, 16384
  %.not41 = icmp eq i32 %33, 0
  br i1 %.not41, label %50, label %34

34:                                               ; preds = %30
  %35 = getelementptr inbounds i8, ptr %0, i64 116
  %36 = load volatile i32, ptr %35, align 4, !tbaa !17
  %37 = or i32 %36, 8
  store volatile i32 %37, ptr %35, align 4, !tbaa !17
  %38 = load volatile i32, ptr %27, align 4, !tbaa !14
  %39 = and i32 %38, 4096
  %.not42 = icmp eq i32 %39, 0
  %40 = load volatile i32, ptr %27, align 4, !tbaa !14
  %41 = getelementptr inbounds i8, ptr %0, i64 120
  br i1 %.not42, label %47, label %42

42:                                               ; preds = %34
  %43 = and i32 %40, 4354
  store volatile i32 %43, ptr %41, align 8, !tbaa !18
  %44 = load volatile i32, ptr %31, align 4, !tbaa !16
  %45 = and i32 %44, -49153
  store volatile i32 %45, ptr %31, align 4, !tbaa !16
  %46 = getelementptr inbounds i8, ptr %0, i64 108
  store volatile i32 224, ptr %46, align 4, !tbaa !19
  br label %49

47:                                               ; preds = %34
  %48 = and i32 %40, 26240
  store volatile i32 %48, ptr %41, align 8, !tbaa !18
  store volatile i32 26240, ptr %27, align 4, !tbaa !14
  br label %49

49:                                               ; preds = %47, %42
  tail call void @HAL_ETH_DMAErrorCallback(ptr noundef nonnull %0)
  %.pre = load ptr, ptr %0, align 8, !tbaa !5
  br label %50

50:                                               ; preds = %30, %49, %25
  %51 = phi ptr [ %26, %30 ], [ %.pre, %49 ], [ %26, %25 ]
  %52 = getelementptr inbounds i8, ptr %51, i64 176
  %53 = load volatile i32, ptr %52, align 4, !tbaa !20
  %54 = and i32 %53, 24576
  %55 = icmp eq i32 %54, 24576
  br i1 %55, label %56, label %61

56:                                               ; preds = %50
  %57 = getelementptr inbounds i8, ptr %51, i64 184
  %58 = load volatile i32, ptr %57, align 4, !tbaa !21
  %59 = getelementptr inbounds i8, ptr %0, i64 124
  store volatile i32 %58, ptr %59, align 4, !tbaa !22
  %60 = getelementptr inbounds i8, ptr %0, i64 108
  store volatile i32 224, ptr %60, align 4, !tbaa !19
  tail call void @HAL_ETH_MACErrorCallback(ptr noundef nonnull %0)
  store volatile i32 0, ptr %59, align 4, !tbaa !22
  %.pre46 = load ptr, ptr %0, align 8, !tbaa !5
  br label %61

61:                                               ; preds = %56, %50
  %62 = phi ptr [ %.pre46, %56 ], [ %51, %50 ]
  %63 = getelementptr inbounds i8, ptr %62, i64 176
  %64 = load volatile i32, ptr %63, align 4, !tbaa !20
  %65 = and i32 %64, 16
  %.not43 = icmp eq i32 %65, 0
  br i1 %.not43, label %71, label %66

66:                                               ; preds = %61
  %67 = getelementptr inbounds i8, ptr %62, i64 192
  %68 = load volatile i32, ptr %67, align 4, !tbaa !23
  %69 = and i32 %68, 96
  %70 = getelementptr inbounds i8, ptr %0, i64 128
  store volatile i32 %69, ptr %70, align 8, !tbaa !24
  tail call void @HAL_ETH_PMTCallback(ptr noundef nonnull %0)
  store volatile i32 0, ptr %70, align 8, !tbaa !24
  %.pre47 = load ptr, ptr %0, align 8, !tbaa !5
  br label %71

71:                                               ; preds = %66, %61
  %72 = phi ptr [ %.pre47, %66 ], [ %62, %61 ]
  %73 = getelementptr inbounds i8, ptr %72, i64 176
  %74 = load volatile i32, ptr %73, align 4, !tbaa !20
  %75 = and i32 %74, 32
  %.not44 = icmp eq i32 %75, 0
  br i1 %.not44, label %81, label %76

76:                                               ; preds = %71
  %77 = getelementptr inbounds i8, ptr %72, i64 192
  %78 = load volatile i32, ptr %77, align 4, !tbaa !23
  %79 = and i32 %78, 15
  %80 = getelementptr inbounds i8, ptr %0, i64 132
  store volatile i32 %79, ptr %80, align 4, !tbaa !25
  tail call void @HAL_ETH_EEECallback(ptr noundef nonnull %0)
  store volatile i32 0, ptr %80, align 4, !tbaa !25
  br label %81

81:                                               ; preds = %76, %71
  %82 = load volatile i32, ptr inttoptr (i64 1476395176 to ptr), align 8, !tbaa !26
  %83 = and i32 %82, 4194304
  %.not45 = icmp eq i32 %83, 0
  br i1 %.not45, label %85, label %84

84:                                               ; preds = %81
  store volatile i32 4194304, ptr inttoptr (i64 1476395176 to ptr), align 8, !tbaa !26
  tail call void @HAL_ETH_WakeUpCallback(ptr noundef nonnull %0)
  br label %85

85:                                               ; preds = %84, %81
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @HAL_ETH_RxCpltCallback(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @HAL_ETH_TxCpltCallback(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @HAL_ETH_DMAErrorCallback(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @HAL_ETH_MACErrorCallback(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @HAL_ETH_PMTCallback(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @HAL_ETH_EEECallback(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @HAL_ETH_WakeUpCallback(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, !7, i64 0}
!6 = !{!"", !7, i64 0, !10, i64 8, !12, i64 48, !13, i64 68, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !7, i64 0, !11, i64 8, !7, i64 16, !7, i64 24, !11, i64 32}
!11 = !{!"int", !8, i64 0}
!12 = !{!"", !8, i64 0, !11, i64 16}
!13 = !{!"", !8, i64 0, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32}
!14 = !{!15, !11, i64 4448}
!15 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !8, i64 24, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !8, i64 104, !11, i64 112, !8, i64 116, !11, i64 144, !8, i64 148, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !11, i64 192, !11, i64 196, !8, i64 200, !11, i64 208, !11, i64 212, !11, i64 216, !11, i64 220, !8, i64 224, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284, !11, i64 288, !11, i64 292, !8, i64 296, !11, i64 512, !11, i64 516, !8, i64 520, !11, i64 528, !8, i64 532, !11, i64 768, !11, i64 772, !11, i64 776, !11, i64 780, !11, i64 784, !11, i64 788, !11, i64 792, !11, i64 796, !8, i64 800, !11, i64 1792, !11, i64 1796, !11, i64 1800, !11, i64 1804, !11, i64 1808, !8, i64 1812, !11, i64 1868, !11, i64 1872, !8, i64 1876, !11, i64 1896, !8, i64 1900, !11, i64 1940, !11, i64 1944, !8, i64 1948, !11, i64 1988, !8, i64 1992, !11, i64 2028, !11, i64 2032, !11, i64 2036, !11, i64 2040, !8, i64 2044, !11, i64 2304, !11, i64 2308, !8, i64 2312, !11, i64 2320, !11, i64 2324, !11, i64 2328, !11, i64 2332, !8, i64 2336, !11, i64 2352, !11, i64 2356, !8, i64 2360, !11, i64 2368, !11, i64 2372, !11, i64 2376, !11, i64 2380, !8, i64 2384, !11, i64 2816, !11, i64 2820, !11, i64 2824, !11, i64 2828, !11, i64 2832, !11, i64 2836, !11, i64 2840, !11, i64 2844, !11, i64 2848, !8, i64 2852, !11, i64 2864, !11, i64 2868, !8, i64 2872, !11, i64 2880, !11, i64 2884, !11, i64 2888, !11, i64 2892, !11, i64 2896, !11, i64 2900, !11, i64 2904, !11, i64 2908, !8, i64 2912, !11, i64 2928, !8, i64 2932, !11, i64 2944, !11, i64 2948, !11, i64 2952, !11, i64 2956, !8, i64 2960, !11, i64 3008, !11, i64 3012, !11, i64 3016, !11, i64 3020, !11, i64 3024, !8, i64 3028, !11, i64 3072, !8, i64 3076, !11, i64 3104, !8, i64 3108, !11, i64 3328, !11, i64 3332, !11, i64 3336, !8, i64 3340, !11, i64 3372, !11, i64 3376, !11, i64 3380, !11, i64 3384, !8, i64 3388, !11, i64 4096, !11, i64 4100, !11, i64 4104, !11, i64 4108, !8, i64 4112, !11, i64 4352, !11, i64 4356, !11, i64 4360, !8, i64 4364, !11, i64 4372, !11, i64 4376, !11, i64 4380, !11, i64 4384, !11, i64 4388, !11, i64 4392, !11, i64 4396, !11, i64 4400, !11, i64 4404, !11, i64 4408, !11, i64 4412, !11, i64 4416, !11, i64 4420, !11, i64 4424, !11, i64 4428, !11, i64 4432, !11, i64 4436, !11, i64 4440, !11, i64 4444, !11, i64 4448, !8, i64 4452, !11, i64 4460}
!16 = !{!15, !11, i64 4404}
!17 = !{!6, !11, i64 116}
!18 = !{!6, !11, i64 120}
!19 = !{!6, !11, i64 108}
!20 = !{!15, !11, i64 176}
!21 = !{!15, !11, i64 184}
!22 = !{!6, !11, i64 124}
!23 = !{!15, !11, i64 192}
!24 = !{!6, !11, i64 128}
!25 = !{!6, !11, i64 132}
!26 = !{!27, !11, i64 40}
!27 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40}


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