; LLVM IR from reazon-research/OpenArm :: control/canfd_control/Core/Src (usart)

; 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.GPIO_InitTypeDef = type { i32, i32, i32, i32, i32 }
%struct.RCC_PeriphCLKInitTypeDef = type { i64, %struct.RCC_PLL2InitTypeDef, %struct.RCC_PLL3InitTypeDef, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.RCC_PLL2InitTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.RCC_PLL3InitTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.__UART_HandleTypeDef = type { ptr, %struct.UART_InitTypeDef, %struct.UART_AdvFeatureInitTypeDef, ptr, i16, i16, ptr, i16, i16, i16, i32, i16, i16, i32, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32 }
%struct.UART_InitTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.UART_AdvFeatureInitTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.RCC_TypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [9 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i32] }

declare void @Error_Handler() #0

; Function Attrs: nounwind uwtable
define dso_local void @HAL_UART_MspInit(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca %struct.GPIO_InitTypeDef, align 4
  %4 = alloca %struct.RCC_PeriphCLKInitTypeDef, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 20, ptr %3) #4
  call void @llvm.memset.p0.i64(ptr align 4 %3, i8 0, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 184, ptr %4) #4
  call void @llvm.memset.p0.i64(ptr align 8 %4, i8 0, i64 184, i1 false)
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %18, i32 0, i32 0
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = icmp eq ptr %20, inttoptr (i64 1073772544 to ptr)
  br i1 %21, label %22, label %58

22:                                               ; preds = %1
  %23 = getelementptr inbounds %struct.RCC_PeriphCLKInitTypeDef, ptr %4, i32 0, i32 0
  store i64 2, ptr %23, align 8, !tbaa !15
  %24 = getelementptr inbounds %struct.RCC_PeriphCLKInitTypeDef, ptr %4, i32 0, i32 14
  store i32 0, ptr %24, align 4, !tbaa !19
  %25 = call i32 @HAL_RCCEx_PeriphCLKConfig(ptr noundef %4)
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %27, label %28

27:                                               ; preds = %22
  call void @Error_Handler()
  br label %28

28:                                               ; preds = %27, %22
  br label %29

29:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %30 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 50), align 4, !tbaa !20
  %31 = zext i32 %30 to i64
  %32 = or i64 %31, 1073741824
  %33 = trunc i64 %32 to i32
  store volatile i32 %33, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 50), align 4, !tbaa !20
  %34 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 50), align 4, !tbaa !20
  %35 = zext i32 %34 to i64
  %36 = and i64 %35, 1073741824
  %37 = trunc i64 %36 to i32
  store volatile i32 %37, ptr %5, align 4, !tbaa !22
  %38 = load volatile i32, ptr %5, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %39

39:                                               ; preds = %29
  br label %40

40:                                               ; preds = %39
  br label %41

41:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %42 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !23
  %43 = zext i32 %42 to i64
  %44 = or i64 %43, 16
  %45 = trunc i64 %44 to i32
  store volatile i32 %45, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !23
  %46 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !23
  %47 = zext i32 %46 to i64
  %48 = and i64 %47, 16
  %49 = trunc i64 %48 to i32
  store volatile i32 %49, ptr %6, align 4, !tbaa !22
  %50 = load volatile i32, ptr %6, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %51

51:                                               ; preds = %41
  br label %52

52:                                               ; preds = %51
  %53 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 0
  store i32 384, ptr %53, align 4, !tbaa !24
  %54 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 1
  store i32 2, ptr %54, align 4, !tbaa !26
  %55 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 2
  store i32 0, ptr %55, align 4, !tbaa !27
  %56 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 3
  store i32 0, ptr %56, align 4, !tbaa !28
  %57 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 4
  store i32 7, ptr %57, align 4, !tbaa !29
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476530176 to ptr), ptr noundef %3)
  br label %290

58:                                               ; preds = %1
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %59, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8, !tbaa !9
  %62 = icmp eq ptr %61, inttoptr (i64 1073813504 to ptr)
  br i1 %62, label %63, label %99

63:                                               ; preds = %58
  %64 = getelementptr inbounds %struct.RCC_PeriphCLKInitTypeDef, ptr %4, i32 0, i32 0
  store i64 1, ptr %64, align 8, !tbaa !15
  %65 = getelementptr inbounds %struct.RCC_PeriphCLKInitTypeDef, ptr %4, i32 0, i32 15
  store i32 0, ptr %65, align 8, !tbaa !30
  %66 = call i32 @HAL_RCCEx_PeriphCLKConfig(ptr noundef %4)
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %69

68:                                               ; preds = %63
  call void @Error_Handler()
  br label %69

69:                                               ; preds = %68, %63
  br label %70

70:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %71 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 52), align 4, !tbaa !31
  %72 = zext i32 %71 to i64
  %73 = or i64 %72, 64
  %74 = trunc i64 %73 to i32
  store volatile i32 %74, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 52), align 4, !tbaa !31
  %75 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 52), align 4, !tbaa !31
  %76 = zext i32 %75 to i64
  %77 = and i64 %76, 64
  %78 = trunc i64 %77 to i32
  store volatile i32 %78, ptr %7, align 4, !tbaa !22
  %79 = load volatile i32, ptr %7, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %80

80:                                               ; preds = %70
  br label %81

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %83 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !23
  %84 = zext i32 %83 to i64
  %85 = or i64 %84, 8
  %86 = trunc i64 %85 to i32
  store volatile i32 %86, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !23
  %87 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !23
  %88 = zext i32 %87 to i64
  %89 = and i64 %88, 8
  %90 = trunc i64 %89 to i32
  store volatile i32 %90, ptr %8, align 4, !tbaa !22
  %91 = load volatile i32, ptr %8, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %92

92:                                               ; preds = %82
  br label %93

93:                                               ; preds = %92
  %94 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 0
  store i32 49152, ptr %94, align 4, !tbaa !24
  %95 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 1
  store i32 2, ptr %95, align 4, !tbaa !26
  %96 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 2
  store i32 0, ptr %96, align 4, !tbaa !27
  %97 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 3
  store i32 0, ptr %97, align 4, !tbaa !28
  %98 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 4
  store i32 11, ptr %98, align 4, !tbaa !29
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476529152 to ptr), ptr noundef %3)
  br label %289

99:                                               ; preds = %58
  %100 = load ptr, ptr %2, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %100, i32 0, i32 0
  %102 = load ptr, ptr %101, align 8, !tbaa !9
  %103 = icmp eq ptr %102, inttoptr (i64 1073811456 to ptr)
  br i1 %103, label %104, label %140

104:                                              ; preds = %99
  %105 = getelementptr inbounds %struct.RCC_PeriphCLKInitTypeDef, ptr %4, i32 0, i32 0
  store i64 1, ptr %105, align 8, !tbaa !15
  %106 = getelementptr inbounds %struct.RCC_PeriphCLKInitTypeDef, ptr %4, i32 0, i32 15
  store i32 0, ptr %106, align 8, !tbaa !30
  %107 = call i32 @HAL_RCCEx_PeriphCLKConfig(ptr noundef %4)
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %110

109:                                              ; preds = %104
  call void @Error_Handler()
  br label %110

110:                                              ; preds = %109, %104
  br label %111

111:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %112 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 52), align 4, !tbaa !31
  %113 = zext i32 %112 to i64
  %114 = or i64 %113, 16
  %115 = trunc i64 %114 to i32
  store volatile i32 %115, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 52), align 4, !tbaa !31
  %116 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 52), align 4, !tbaa !31
  %117 = zext i32 %116 to i64
  %118 = and i64 %117, 16
  %119 = trunc i64 %118 to i32
  store volatile i32 %119, ptr %9, align 4, !tbaa !22
  %120 = load volatile i32, ptr %9, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %121

121:                                              ; preds = %111
  br label %122

122:                                              ; preds = %121
  br label %123

123:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %124 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !23
  %125 = zext i32 %124 to i64
  %126 = or i64 %125, 1
  %127 = trunc i64 %126 to i32
  store volatile i32 %127, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !23
  %128 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !23
  %129 = zext i32 %128 to i64
  %130 = and i64 %129, 1
  %131 = trunc i64 %130 to i32
  store volatile i32 %131, ptr %10, align 4, !tbaa !22
  %132 = load volatile i32, ptr %10, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %133

133:                                              ; preds = %123
  br label %134

134:                                              ; preds = %133
  %135 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 0
  store i32 1536, ptr %135, align 4, !tbaa !24
  %136 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 1
  store i32 2, ptr %136, align 4, !tbaa !26
  %137 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 2
  store i32 0, ptr %137, align 4, !tbaa !27
  %138 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 3
  store i32 0, ptr %138, align 4, !tbaa !28
  %139 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 4
  store i32 7, ptr %139, align 4, !tbaa !29
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476526080 to ptr), ptr noundef %3)
  br label %288

140:                                              ; preds = %99
  %141 = load ptr, ptr %2, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %141, i32 0, i32 0
  %143 = load ptr, ptr %142, align 8, !tbaa !9
  %144 = icmp eq ptr %143, inttoptr (i64 1073759232 to ptr)
  br i1 %144, label %145, label %181

145:                                              ; preds = %140
  %146 = getelementptr inbounds %struct.RCC_PeriphCLKInitTypeDef, ptr %4, i32 0, i32 0
  store i64 2, ptr %146, align 8, !tbaa !15
  %147 = getelementptr inbounds %struct.RCC_PeriphCLKInitTypeDef, ptr %4, i32 0, i32 14
  store i32 0, ptr %147, align 4, !tbaa !19
  %148 = call i32 @HAL_RCCEx_PeriphCLKConfig(ptr noundef %4)
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %150, label %151

150:                                              ; preds = %145
  call void @Error_Handler()
  br label %151

151:                                              ; preds = %150, %145
  br label %152

152:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %153 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 50), align 4, !tbaa !20
  %154 = zext i32 %153 to i64
  %155 = or i64 %154, 131072
  %156 = trunc i64 %155 to i32
  store volatile i32 %156, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 50), align 4, !tbaa !20
  %157 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 50), align 4, !tbaa !20
  %158 = zext i32 %157 to i64
  %159 = and i64 %158, 131072
  %160 = trunc i64 %159 to i32
  store volatile i32 %160, ptr %11, align 4, !tbaa !22
  %161 = load volatile i32, ptr %11, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %162

162:                                              ; preds = %152
  br label %163

163:                                              ; preds = %162
  br label %164

164:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %165 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !23
  %166 = zext i32 %165 to i64
  %167 = or i64 %166, 8
  %168 = trunc i64 %167 to i32
  store volatile i32 %168, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !23
  %169 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !23
  %170 = zext i32 %169 to i64
  %171 = and i64 %170, 8
  %172 = trunc i64 %171 to i32
  store volatile i32 %172, ptr %12, align 4, !tbaa !22
  %173 = load volatile i32, ptr %12, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %174

174:                                              ; preds = %164
  br label %175

175:                                              ; preds = %174
  %176 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 0
  store i32 112, ptr %176, align 4, !tbaa !24
  %177 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 1
  store i32 2, ptr %177, align 4, !tbaa !26
  %178 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 2
  store i32 0, ptr %178, align 4, !tbaa !27
  %179 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 3
  store i32 0, ptr %179, align 4, !tbaa !28
  %180 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 4
  store i32 7, ptr %180, align 4, !tbaa !29
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476529152 to ptr), ptr noundef %3)
  br label %287

181:                                              ; preds = %140
  %182 = load ptr, ptr %2, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %182, i32 0, i32 0
  %184 = load ptr, ptr %183, align 8, !tbaa !9
  %185 = icmp eq ptr %184, inttoptr (i64 1073760256 to ptr)
  br i1 %185, label %186, label %239

186:                                              ; preds = %181
  %187 = getelementptr inbounds %struct.RCC_PeriphCLKInitTypeDef, ptr %4, i32 0, i32 0
  store i64 2, ptr %187, align 8, !tbaa !15
  %188 = getelementptr inbounds %struct.RCC_PeriphCLKInitTypeDef, ptr %4, i32 0, i32 14
  store i32 0, ptr %188, align 4, !tbaa !19
  %189 = call i32 @HAL_RCCEx_PeriphCLKConfig(ptr noundef %4)
  %190 = icmp ne i32 %189, 0
  br i1 %190, label %191, label %192

191:                                              ; preds = %186
  call void @Error_Handler()
  br label %192

192:                                              ; preds = %191, %186
  br label %193

193:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %194 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 50), align 4, !tbaa !20
  %195 = zext i32 %194 to i64
  %196 = or i64 %195, 262144
  %197 = trunc i64 %196 to i32
  store volatile i32 %197, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 50), align 4, !tbaa !20
  %198 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 50), align 4, !tbaa !20
  %199 = zext i32 %198 to i64
  %200 = and i64 %199, 262144
  %201 = trunc i64 %200 to i32
  store volatile i32 %201, ptr %13, align 4, !tbaa !22
  %202 = load volatile i32, ptr %13, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %203

203:                                              ; preds = %193
  br label %204

204:                                              ; preds = %203
  br label %205

205:                                              ; preds = %204
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %206 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !23
  %207 = zext i32 %206 to i64
  %208 = or i64 %207, 2
  %209 = trunc i64 %208 to i32
  store volatile i32 %209, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !23
  %210 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !23
  %211 = zext i32 %210 to i64
  %212 = and i64 %211, 2
  %213 = trunc i64 %212 to i32
  store volatile i32 %213, ptr %14, align 4, !tbaa !22
  %214 = load volatile i32, ptr %14, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %215

215:                                              ; preds = %205
  br label %216

216:                                              ; preds = %215
  br label %217

217:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %218 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !23
  %219 = zext i32 %218 to i64
  %220 = or i64 %219, 8
  %221 = trunc i64 %220 to i32
  store volatile i32 %221, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !23
  %222 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !23
  %223 = zext i32 %222 to i64
  %224 = and i64 %223, 8
  %225 = trunc i64 %224 to i32
  store volatile i32 %225, ptr %15, align 4, !tbaa !22
  %226 = load volatile i32, ptr %15, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %227

227:                                              ; preds = %217
  br label %228

228:                                              ; preds = %227
  %229 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 0
  store i32 16384, ptr %229, align 4, !tbaa !24
  %230 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 1
  store i32 2, ptr %230, align 4, !tbaa !26
  %231 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 2
  store i32 0, ptr %231, align 4, !tbaa !27
  %232 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 3
  store i32 0, ptr %232, align 4, !tbaa !28
  %233 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 4
  store i32 7, ptr %233, align 4, !tbaa !29
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476527104 to ptr), ptr noundef %3)
  %234 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 0
  store i32 768, ptr %234, align 4, !tbaa !24
  %235 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 1
  store i32 2, ptr %235, align 4, !tbaa !26
  %236 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 2
  store i32 0, ptr %236, align 4, !tbaa !27
  %237 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 3
  store i32 0, ptr %237, align 4, !tbaa !28
  %238 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 4
  store i32 7, ptr %238, align 4, !tbaa !29
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476529152 to ptr), ptr noundef %3)
  br label %286

239:                                              ; preds = %181
  %240 = load ptr, ptr %2, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %240, i32 0, i32 0
  %242 = load ptr, ptr %241, align 8, !tbaa !9
  %243 = icmp eq ptr %242, inttoptr (i64 1073814528 to ptr)
  br i1 %243, label %244, label %285

244:                                              ; preds = %239
  %245 = getelementptr inbounds %struct.RCC_PeriphCLKInitTypeDef, ptr %4, i32 0, i32 0
  store i64 1, ptr %245, align 8, !tbaa !15
  %246 = getelementptr inbounds %struct.RCC_PeriphCLKInitTypeDef, ptr %4, i32 0, i32 15
  store i32 0, ptr %246, align 8, !tbaa !30
  %247 = call i32 @HAL_RCCEx_PeriphCLKConfig(ptr noundef %4)
  %248 = icmp ne i32 %247, 0
  br i1 %248, label %249, label %250

249:                                              ; preds = %244
  call void @Error_Handler()
  br label %250

250:                                              ; preds = %249, %244
  br label %251

251:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %252 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 52), align 4, !tbaa !31
  %253 = zext i32 %252 to i64
  %254 = or i64 %253, 128
  %255 = trunc i64 %254 to i32
  store volatile i32 %255, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 52), align 4, !tbaa !31
  %256 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 52), align 4, !tbaa !31
  %257 = zext i32 %256 to i64
  %258 = and i64 %257, 128
  %259 = trunc i64 %258 to i32
  store volatile i32 %259, ptr %16, align 4, !tbaa !22
  %260 = load volatile i32, ptr %16, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %261

261:                                              ; preds = %251
  br label %262

262:                                              ; preds = %261
  br label %263

263:                                              ; preds = %262
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %264 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !23
  %265 = zext i32 %264 to i64
  %266 = or i64 %265, 16
  %267 = trunc i64 %266 to i32
  store volatile i32 %267, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !23
  %268 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !23
  %269 = zext i32 %268 to i64
  %270 = and i64 %269, 16
  %271 = trunc i64 %270 to i32
  store volatile i32 %271, ptr %17, align 4, !tbaa !22
  %272 = load volatile i32, ptr %17, align 4, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %273

273:                                              ; preds = %263
  br label %274

274:                                              ; preds = %273
  %275 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 0
  store i32 4, ptr %275, align 4, !tbaa !24
  %276 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 1
  store i32 2, ptr %276, align 4, !tbaa !26
  %277 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 2
  store i32 0, ptr %277, align 4, !tbaa !27
  %278 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 3
  store i32 0, ptr %278, align 4, !tbaa !28
  %279 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 4
  store i32 4, ptr %279, align 4, !tbaa !29
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476530176 to ptr), ptr noundef %3)
  %280 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 0
  store i32 8, ptr %280, align 4, !tbaa !24
  %281 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 1
  store i32 2, ptr %281, align 4, !tbaa !26
  %282 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 2
  store i32 0, ptr %282, align 4, !tbaa !27
  %283 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 3
  store i32 0, ptr %283, align 4, !tbaa !28
  %284 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 4
  store i32 11, ptr %284, align 4, !tbaa !29
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476530176 to ptr), ptr noundef %3)
  br label %285

285:                                              ; preds = %274, %239
  br label %286

286:                                              ; preds = %285, %228
  br label %287

287:                                              ; preds = %286, %175
  br label %288

288:                                              ; preds = %287, %134
  br label %289

289:                                              ; preds = %288, %93
  br label %290

290:                                              ; preds = %289, %52
  call void @llvm.lifetime.end.p0(i64 184, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 20, ptr %3) #4
  ret void
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

declare i32 @HAL_RCCEx_PeriphCLKConfig(ptr noundef) #0

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

declare void @HAL_GPIO_Init(ptr noundef, ptr noundef) #0

attributes #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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 0}
!10 = !{!"__UART_HandleTypeDef", !6, i64 0, !11, i64 8, !13, i64 44, !6, i64 88, !14, i64 96, !14, i64 98, !6, i64 104, !14, i64 112, !14, i64 114, !14, i64 116, !12, i64 120, !14, i64 124, !14, i64 126, !12, i64 128, !12, i64 132, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !12, i64 168, !12, i64 172, !12, i64 176, !12, i64 180}
!11 = !{!"", !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 = !{!"int", !7, i64 0}
!13 = !{!"", !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}
!14 = !{!"short", !7, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"", !17, i64 0, !18, i64 8, !18, i64 40, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !12, i64 136, !12, i64 140, !12, i64 144, !12, i64 148, !12, i64 152, !12, i64 156, !12, i64 160, !12, i64 164, !12, i64 168, !12, i64 172, !12, i64 176, !12, i64 180}
!17 = !{!"long", !7, i64 0}
!18 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28}
!19 = !{!16, !12, i64 116}
!20 = !{!21, !12, i64 232}
!21 = !{!"", !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, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !12, i64 136, !12, i64 140, !12, i64 144, !12, i64 148, !12, i64 152, !12, i64 156, !12, i64 160, !12, i64 164, !12, i64 168, !7, i64 172, !12, i64 208, !12, i64 212, !12, i64 216, !12, i64 220, !12, i64 224, !12, i64 228, !12, i64 232, !12, i64 236, !12, i64 240, !12, i64 244, !12, i64 248, !12, i64 252, !12, i64 256, !12, i64 260, !12, i64 264, !12, i64 268, !12, i64 272, !12, i64 276, !12, i64 280, !12, i64 284, !7, i64 288}
!22 = !{!12, !12, i64 0}
!23 = !{!21, !12, i64 224}
!24 = !{!25, !12, i64 0}
!25 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16}
!26 = !{!25, !12, i64 4}
!27 = !{!25, !12, i64 8}
!28 = !{!25, !12, i64 12}
!29 = !{!25, !12, i64 16}
!30 = !{!16, !12, i64 120}
!31 = !{!21, !12, i64 240}


; 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.GPIO_InitTypeDef = type { i32, i32, i32, i32, i32 }
%struct.RCC_PeriphCLKInitTypeDef = type { i64, %struct.RCC_PLL2InitTypeDef, %struct.RCC_PLL3InitTypeDef, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.RCC_PLL2InitTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.RCC_PLL3InitTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32 }

declare void @Error_Handler() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @HAL_UART_MspInit(ptr nocapture noundef readonly %0) local_unnamed_addr #1 {
  %2 = alloca %struct.GPIO_InitTypeDef, align 16
  %3 = alloca %struct.RCC_PeriphCLKInitTypeDef, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %2) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(20) %2, i8 0, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 184, ptr nonnull %3) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(184) %3, i8 0, i64 184, i1 false)
  %17 = load ptr, ptr %0, align 8, !tbaa !5
  %magicptr = ptrtoint ptr %17 to i64
  switch i64 %magicptr, label %100 [
    i64 1073772544, label %18
    i64 1073813504, label %31
    i64 1073811456, label %44
    i64 1073759232, label %57
    i64 1073760256, label %70
    i64 1073814528, label %87
  ]

18:                                               ; preds = %1
  store i64 2, ptr %3, align 8, !tbaa !14
  %19 = call i32 @HAL_RCCEx_PeriphCLKConfig(ptr noundef nonnull %3) #4
  %.not24 = icmp eq i32 %19, 0
  br i1 %.not24, label %21, label %20

20:                                               ; preds = %18
  call void @Error_Handler() #4
  br label %21

21:                                               ; preds = %18, %20
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4)
  %22 = load volatile i32, ptr inttoptr (i64 1476543720 to ptr), align 8, !tbaa !18
  %23 = or i32 %22, 1073741824
  store volatile i32 %23, ptr inttoptr (i64 1476543720 to ptr), align 8, !tbaa !18
  %24 = load volatile i32, ptr inttoptr (i64 1476543720 to ptr), align 8, !tbaa !18
  %25 = and i32 %24, 1073741824
  store volatile i32 %25, ptr %4, align 4, !tbaa !20
  %.0..0..0..0.12 = load volatile i32, ptr %4, align 4, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5)
  %26 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !21
  %27 = or i32 %26, 16
  store volatile i32 %27, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !21
  %28 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !21
  %29 = and i32 %28, 16
  store volatile i32 %29, ptr %5, align 4, !tbaa !20
  %.0..0..0..0.11 = load volatile i32, ptr %5, align 4, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5)
  store <4 x i32> <i32 384, i32 2, i32 0, i32 0>, ptr %2, align 16, !tbaa !20
  %30 = getelementptr inbounds i8, ptr %2, i64 16
  store i32 7, ptr %30, align 16, !tbaa !22
  br label %.sink.split

31:                                               ; preds = %1
  store i64 1, ptr %3, align 8, !tbaa !14
  %32 = call i32 @HAL_RCCEx_PeriphCLKConfig(ptr noundef nonnull %3) #4
  %.not23 = icmp eq i32 %32, 0
  br i1 %.not23, label %34, label %33

33:                                               ; preds = %31
  call void @Error_Handler() #4
  br label %34

34:                                               ; preds = %31, %33
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6)
  %35 = load volatile i32, ptr inttoptr (i64 1476543728 to ptr), align 16, !tbaa !24
  %36 = or i32 %35, 64
  store volatile i32 %36, ptr inttoptr (i64 1476543728 to ptr), align 16, !tbaa !24
  %37 = load volatile i32, ptr inttoptr (i64 1476543728 to ptr), align 16, !tbaa !24
  %38 = and i32 %37, 64
  store volatile i32 %38, ptr %6, align 4, !tbaa !20
  %.0..0..0..0.10 = load volatile i32, ptr %6, align 4, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7)
  %39 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !21
  %40 = or i32 %39, 8
  store volatile i32 %40, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !21
  %41 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !21
  %42 = and i32 %41, 8
  store volatile i32 %42, ptr %7, align 4, !tbaa !20
  %.0..0..0..0.9 = load volatile i32, ptr %7, align 4, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7)
  store <4 x i32> <i32 49152, i32 2, i32 0, i32 0>, ptr %2, align 16, !tbaa !20
  %43 = getelementptr inbounds i8, ptr %2, i64 16
  store i32 11, ptr %43, align 16, !tbaa !22
  br label %.sink.split

44:                                               ; preds = %1
  store i64 1, ptr %3, align 8, !tbaa !14
  %45 = call i32 @HAL_RCCEx_PeriphCLKConfig(ptr noundef nonnull %3) #4
  %.not22 = icmp eq i32 %45, 0
  br i1 %.not22, label %47, label %46

46:                                               ; preds = %44
  call void @Error_Handler() #4
  br label %47

47:                                               ; preds = %44, %46
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8)
  %48 = load volatile i32, ptr inttoptr (i64 1476543728 to ptr), align 16, !tbaa !24
  %49 = or i32 %48, 16
  store volatile i32 %49, ptr inttoptr (i64 1476543728 to ptr), align 16, !tbaa !24
  %50 = load volatile i32, ptr inttoptr (i64 1476543728 to ptr), align 16, !tbaa !24
  %51 = and i32 %50, 16
  store volatile i32 %51, ptr %8, align 4, !tbaa !20
  %.0..0..0..0.8 = load volatile i32, ptr %8, align 4, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9)
  %52 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !21
  %53 = or i32 %52, 1
  store volatile i32 %53, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !21
  %54 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !21
  %55 = and i32 %54, 1
  store volatile i32 %55, ptr %9, align 4, !tbaa !20
  %.0..0..0..0.7 = load volatile i32, ptr %9, align 4, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9)
  store <4 x i32> <i32 1536, i32 2, i32 0, i32 0>, ptr %2, align 16, !tbaa !20
  %56 = getelementptr inbounds i8, ptr %2, i64 16
  store i32 7, ptr %56, align 16, !tbaa !22
  br label %.sink.split

57:                                               ; preds = %1
  store i64 2, ptr %3, align 8, !tbaa !14
  %58 = call i32 @HAL_RCCEx_PeriphCLKConfig(ptr noundef nonnull %3) #4
  %.not21 = icmp eq i32 %58, 0
  br i1 %.not21, label %60, label %59

59:                                               ; preds = %57
  call void @Error_Handler() #4
  br label %60

60:                                               ; preds = %57, %59
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10)
  %61 = load volatile i32, ptr inttoptr (i64 1476543720 to ptr), align 8, !tbaa !18
  %62 = or i32 %61, 131072
  store volatile i32 %62, ptr inttoptr (i64 1476543720 to ptr), align 8, !tbaa !18
  %63 = load volatile i32, ptr inttoptr (i64 1476543720 to ptr), align 8, !tbaa !18
  %64 = and i32 %63, 131072
  store volatile i32 %64, ptr %10, align 4, !tbaa !20
  %.0..0..0..0.6 = load volatile i32, ptr %10, align 4, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11)
  %65 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !21
  %66 = or i32 %65, 8
  store volatile i32 %66, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !21
  %67 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !21
  %68 = and i32 %67, 8
  store volatile i32 %68, ptr %11, align 4, !tbaa !20
  %.0..0..0..0.5 = load volatile i32, ptr %11, align 4, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11)
  store <4 x i32> <i32 112, i32 2, i32 0, i32 0>, ptr %2, align 16, !tbaa !20
  %69 = getelementptr inbounds i8, ptr %2, i64 16
  store i32 7, ptr %69, align 16, !tbaa !22
  br label %.sink.split

70:                                               ; preds = %1
  store i64 2, ptr %3, align 8, !tbaa !14
  %71 = call i32 @HAL_RCCEx_PeriphCLKConfig(ptr noundef nonnull %3) #4
  %.not20 = icmp eq i32 %71, 0
  br i1 %.not20, label %73, label %72

72:                                               ; preds = %70
  call void @Error_Handler() #4
  br label %73

73:                                               ; preds = %70, %72
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12)
  %74 = load volatile i32, ptr inttoptr (i64 1476543720 to ptr), align 8, !tbaa !18
  %75 = or i32 %74, 262144
  store volatile i32 %75, ptr inttoptr (i64 1476543720 to ptr), align 8, !tbaa !18
  %76 = load volatile i32, ptr inttoptr (i64 1476543720 to ptr), align 8, !tbaa !18
  %77 = and i32 %76, 262144
  store volatile i32 %77, ptr %12, align 4, !tbaa !20
  %.0..0..0..0.4 = load volatile i32, ptr %12, align 4, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13)
  %78 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !21
  %79 = or i32 %78, 2
  store volatile i32 %79, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !21
  %80 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !21
  %81 = and i32 %80, 2
  store volatile i32 %81, ptr %13, align 4, !tbaa !20
  %.0..0..0..0.3 = load volatile i32, ptr %13, align 4, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14)
  %82 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !21
  %83 = or i32 %82, 8
  store volatile i32 %83, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !21
  %84 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !21
  %85 = and i32 %84, 8
  store volatile i32 %85, ptr %14, align 4, !tbaa !20
  %.0..0..0..0.2 = load volatile i32, ptr %14, align 4, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14)
  store <4 x i32> <i32 16384, i32 2, i32 0, i32 0>, ptr %2, align 16, !tbaa !20
  %86 = getelementptr inbounds i8, ptr %2, i64 16
  store i32 7, ptr %86, align 16, !tbaa !22
  call void @HAL_GPIO_Init(ptr noundef nonnull inttoptr (i64 1476527104 to ptr), ptr noundef nonnull %2) #4
  store <4 x i32> <i32 768, i32 2, i32 0, i32 0>, ptr %2, align 16, !tbaa !20
  store i32 7, ptr %86, align 16, !tbaa !22
  br label %.sink.split

87:                                               ; preds = %1
  store i64 1, ptr %3, align 8, !tbaa !14
  %88 = call i32 @HAL_RCCEx_PeriphCLKConfig(ptr noundef nonnull %3) #4
  %.not = icmp eq i32 %88, 0
  br i1 %.not, label %90, label %89

89:                                               ; preds = %87
  call void @Error_Handler() #4
  br label %90

90:                                               ; preds = %87, %89
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15)
  %91 = load volatile i32, ptr inttoptr (i64 1476543728 to ptr), align 16, !tbaa !24
  %92 = or i32 %91, 128
  store volatile i32 %92, ptr inttoptr (i64 1476543728 to ptr), align 16, !tbaa !24
  %93 = load volatile i32, ptr inttoptr (i64 1476543728 to ptr), align 16, !tbaa !24
  %94 = and i32 %93, 128
  store volatile i32 %94, ptr %15, align 4, !tbaa !20
  %.0..0..0..0.1 = load volatile i32, ptr %15, align 4, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16)
  %95 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !21
  %96 = or i32 %95, 16
  store volatile i32 %96, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !21
  %97 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !21
  %98 = and i32 %97, 16
  store volatile i32 %98, ptr %16, align 4, !tbaa !20
  %.0..0..0..0. = load volatile i32, ptr %16, align 4, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16)
  store <4 x i32> <i32 4, i32 2, i32 0, i32 0>, ptr %2, align 16, !tbaa !20
  %99 = getelementptr inbounds i8, ptr %2, i64 16
  store i32 4, ptr %99, align 16, !tbaa !22
  call void @HAL_GPIO_Init(ptr noundef nonnull inttoptr (i64 1476530176 to ptr), ptr noundef nonnull %2) #4
  store <4 x i32> <i32 8, i32 2, i32 0, i32 0>, ptr %2, align 16, !tbaa !20
  store i32 11, ptr %99, align 16, !tbaa !22
  br label %.sink.split

.sink.split:                                      ; preds = %21, %47, %73, %90, %60, %34
  %.sink = phi ptr [ inttoptr (i64 1476529152 to ptr), %34 ], [ inttoptr (i64 1476529152 to ptr), %60 ], [ inttoptr (i64 1476530176 to ptr), %90 ], [ inttoptr (i64 1476529152 to ptr), %73 ], [ inttoptr (i64 1476526080 to ptr), %47 ], [ inttoptr (i64 1476530176 to ptr), %21 ]
  call void @HAL_GPIO_Init(ptr noundef nonnull %.sink, ptr noundef nonnull %2) #4
  br label %100

100:                                              ; preds = %.sink.split, %1
  call void @llvm.lifetime.end.p0(i64 184, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %2) #4
  ret void
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

declare i32 @HAL_RCCEx_PeriphCLKConfig(ptr noundef) local_unnamed_addr #0

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

declare void @HAL_GPIO_Init(ptr noundef, ptr noundef) local_unnamed_addr #0

attributes #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 = { 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"__UART_HandleTypeDef", !7, i64 0, !10, i64 8, !12, i64 44, !7, i64 88, !13, i64 96, !13, i64 98, !7, i64 104, !13, i64 112, !13, i64 114, !13, i64 116, !11, i64 120, !13, i64 124, !13, i64 126, !11, i64 128, !11, i64 132, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !11, i64 168, !11, i64 172, !11, i64 176, !11, i64 180}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !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 = !{!"int", !8, i64 0}
!12 = !{!"", !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}
!13 = !{!"short", !8, i64 0}
!14 = !{!15, !16, i64 0}
!15 = !{!"", !16, i64 0, !17, i64 8, !17, i64 40, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !11, i64 156, !11, i64 160, !11, i64 164, !11, i64 168, !11, i64 172, !11, i64 176, !11, i64 180}
!16 = !{!"long", !8, i64 0}
!17 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28}
!18 = !{!19, !11, i64 232}
!19 = !{!"", !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, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !11, i64 156, !11, i64 160, !11, i64 164, !11, i64 168, !8, i64 172, !11, i64 208, !11, i64 212, !11, i64 216, !11, i64 220, !11, i64 224, !11, i64 228, !11, i64 232, !11, i64 236, !11, i64 240, !11, i64 244, !11, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284, !8, i64 288}
!20 = !{!11, !11, i64 0}
!21 = !{!19, !11, i64 224}
!22 = !{!23, !11, i64 16}
!23 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16}
!24 = !{!19, !11, i64 240}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass