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

; 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_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] }

; Function Attrs: nounwind uwtable
define dso_local void @MX_GPIO_Init() #0 {
  %1 = alloca %struct.GPIO_InitTypeDef, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 20, ptr %1) #4
  call void @llvm.memset.p0.i64(ptr align 4 %1, i8 0, i64 20, i1 false)
  br label %8

8:                                                ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  %9 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !5
  %10 = zext i32 %9 to i64
  %11 = or i64 %10, 16
  %12 = trunc i64 %11 to i32
  store volatile i32 %12, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !5
  %13 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !5
  %14 = zext i32 %13 to i64
  %15 = and i64 %14, 16
  %16 = trunc i64 %15 to i32
  store volatile i32 %16, ptr %2, align 4, !tbaa !10
  %17 = load volatile i32, ptr %2, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %18

18:                                               ; preds = %8
  br label %19

19:                                               ; preds = %18
  br label %20

20:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  %21 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !5
  %22 = zext i32 %21 to i64
  %23 = or i64 %22, 4
  %24 = trunc i64 %23 to i32
  store volatile i32 %24, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !5
  %25 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !5
  %26 = zext i32 %25 to i64
  %27 = and i64 %26, 4
  %28 = trunc i64 %27 to i32
  store volatile i32 %28, ptr %3, align 4, !tbaa !10
  %29 = load volatile i32, ptr %3, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %30

30:                                               ; preds = %20
  br label %31

31:                                               ; preds = %30
  br label %32

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

42:                                               ; preds = %32
  br label %43

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %45 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !5
  %46 = zext i32 %45 to i64
  %47 = or i64 %46, 1
  %48 = trunc i64 %47 to i32
  store volatile i32 %48, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !5
  %49 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !5
  %50 = zext i32 %49 to i64
  %51 = and i64 %50, 1
  %52 = trunc i64 %51 to i32
  store volatile i32 %52, ptr %5, align 4, !tbaa !10
  %53 = load volatile i32, ptr %5, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %54

54:                                               ; preds = %44
  br label %55

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %57 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !5
  %58 = zext i32 %57 to i64
  %59 = or i64 %58, 2
  %60 = trunc i64 %59 to i32
  store volatile i32 %60, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !5
  %61 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !5
  %62 = zext i32 %61 to i64
  %63 = and i64 %62, 2
  %64 = trunc i64 %63 to i32
  store volatile i32 %64, ptr %6, align 4, !tbaa !10
  %65 = load volatile i32, ptr %6, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %66

66:                                               ; preds = %56
  br label %67

67:                                               ; preds = %66
  br label %68

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

78:                                               ; preds = %68
  br label %79

79:                                               ; preds = %78
  call void @HAL_GPIO_WritePin(ptr noundef inttoptr (i64 1476528128 to ptr), i16 noundef zeroext -8151, i32 noundef 0)
  call void @HAL_GPIO_WritePin(ptr noundef inttoptr (i64 1476530176 to ptr), i16 noundef zeroext -32768, i32 noundef 0)
  call void @HAL_GPIO_WritePin(ptr noundef inttoptr (i64 1476527104 to ptr), i16 noundef zeroext 4096, i32 noundef 0)
  call void @HAL_GPIO_WritePin(ptr noundef inttoptr (i64 1476529152 to ptr), i16 noundef zeroext 1024, i32 noundef 0)
  %80 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 0
  store i32 57385, ptr %80, align 4, !tbaa !11
  %81 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 1
  store i32 1, ptr %81, align 4, !tbaa !13
  %82 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 2
  store i32 0, ptr %82, align 4, !tbaa !14
  %83 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 3
  store i32 0, ptr %83, align 4, !tbaa !15
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476528128 to ptr), ptr noundef %1)
  %84 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 0
  store i32 32, ptr %84, align 4, !tbaa !11
  %85 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 1
  store i32 3, ptr %85, align 4, !tbaa !13
  %86 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 2
  store i32 0, ptr %86, align 4, !tbaa !14
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476526080 to ptr), ptr noundef %1)
  %87 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 0
  store i32 128, ptr %87, align 4, !tbaa !11
  %88 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 1
  store i32 2, ptr %88, align 4, !tbaa !13
  %89 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 2
  store i32 0, ptr %89, align 4, !tbaa !14
  %90 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 3
  store i32 0, ptr %90, align 4, !tbaa !15
  %91 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 4
  store i32 8, ptr %91, align 4, !tbaa !16
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476526080 to ptr), ptr noundef %1)
  %92 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 0
  store i32 16, ptr %92, align 4, !tbaa !11
  %93 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 1
  store i32 3, ptr %93, align 4, !tbaa !13
  %94 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 2
  store i32 0, ptr %94, align 4, !tbaa !14
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476528128 to ptr), ptr noundef %1)
  %95 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 0
  store i32 2, ptr %95, align 4, !tbaa !11
  %96 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 1
  store i32 2, ptr %96, align 4, !tbaa !13
  %97 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 2
  store i32 0, ptr %97, align 4, !tbaa !14
  %98 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 3
  store i32 0, ptr %98, align 4, !tbaa !15
  %99 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 4
  store i32 2, ptr %99, align 4, !tbaa !16
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476527104 to ptr), ptr noundef %1)
  %100 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 0
  store i32 5120, ptr %100, align 4, !tbaa !11
  %101 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 1
  store i32 1114112, ptr %101, align 4, !tbaa !13
  %102 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 2
  store i32 0, ptr %102, align 4, !tbaa !14
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476530176 to ptr), ptr noundef %1)
  %103 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 0
  store i32 16384, ptr %103, align 4, !tbaa !11
  %104 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 1
  store i32 2, ptr %104, align 4, !tbaa !13
  %105 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 2
  store i32 0, ptr %105, align 4, !tbaa !14
  %106 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 3
  store i32 0, ptr %106, align 4, !tbaa !15
  %107 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 4
  store i32 5, ptr %107, align 4, !tbaa !16
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476530176 to ptr), ptr noundef %1)
  %108 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 0
  store i32 32768, ptr %108, align 4, !tbaa !11
  %109 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 1
  store i32 1, ptr %109, align 4, !tbaa !13
  %110 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 2
  store i32 0, ptr %110, align 4, !tbaa !14
  %111 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 3
  store i32 0, ptr %111, align 4, !tbaa !15
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476530176 to ptr), ptr noundef %1)
  %112 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 0
  store i32 3072, ptr %112, align 4, !tbaa !11
  %113 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 1
  store i32 18, ptr %113, align 4, !tbaa !13
  %114 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 2
  store i32 0, ptr %114, align 4, !tbaa !14
  %115 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 3
  store i32 0, ptr %115, align 4, !tbaa !15
  %116 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 4
  store i32 4, ptr %116, align 4, !tbaa !16
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476527104 to ptr), ptr noundef %1)
  %117 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 0
  store i32 4096, ptr %117, align 4, !tbaa !11
  %118 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 1
  store i32 1, ptr %118, align 4, !tbaa !13
  %119 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 2
  store i32 0, ptr %119, align 4, !tbaa !14
  %120 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 3
  store i32 0, ptr %120, align 4, !tbaa !15
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476527104 to ptr), ptr noundef %1)
  %121 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 0
  store i32 32768, ptr %121, align 4, !tbaa !11
  %122 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 1
  store i32 2, ptr %122, align 4, !tbaa !13
  %123 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 2
  store i32 0, ptr %123, align 4, !tbaa !14
  %124 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 3
  store i32 0, ptr %124, align 4, !tbaa !15
  %125 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 4
  store i32 2, ptr %125, align 4, !tbaa !16
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476527104 to ptr), ptr noundef %1)
  %126 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 0
  store i32 1024, ptr %126, align 4, !tbaa !11
  %127 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 1
  store i32 1, ptr %127, align 4, !tbaa !13
  %128 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 2
  store i32 0, ptr %128, align 4, !tbaa !14
  %129 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 3
  store i32 0, ptr %129, align 4, !tbaa !15
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476529152 to ptr), ptr noundef %1)
  %130 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 0
  store i32 256, ptr %130, align 4, !tbaa !11
  %131 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 1
  store i32 2, ptr %131, align 4, !tbaa !13
  %132 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 2
  store i32 0, ptr %132, align 4, !tbaa !14
  %133 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 3
  store i32 0, ptr %133, align 4, !tbaa !15
  %134 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 4
  store i32 0, ptr %134, align 4, !tbaa !16
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476526080 to ptr), ptr noundef %1)
  %135 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 0
  store i32 32768, ptr %135, align 4, !tbaa !11
  %136 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 1
  store i32 1114112, ptr %136, align 4, !tbaa !13
  %137 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 2
  store i32 0, ptr %137, align 4, !tbaa !14
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476526080 to ptr), ptr noundef %1)
  %138 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 0
  store i32 4, ptr %138, align 4, !tbaa !11
  %139 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 1
  store i32 2, ptr %139, align 4, !tbaa !13
  %140 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 2
  store i32 0, ptr %140, align 4, !tbaa !14
  %141 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 3
  store i32 0, ptr %141, align 4, !tbaa !15
  %142 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 4
  store i32 8, ptr %142, align 4, !tbaa !16
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476529152 to ptr), ptr noundef %1)
  %143 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 0
  store i32 3, ptr %143, align 4, !tbaa !11
  %144 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 1
  store i32 2, ptr %144, align 4, !tbaa !13
  %145 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 2
  store i32 0, ptr %145, align 4, !tbaa !14
  %146 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 3
  store i32 0, ptr %146, align 4, !tbaa !15
  %147 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %1, i32 0, i32 4
  store i32 8, ptr %147, align 4, !tbaa !16
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476530176 to ptr), ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 20, ptr %1) #4
  ret void
}

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

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

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

declare void @HAL_GPIO_WritePin(ptr noundef, i16 noundef zeroext, i32 noundef) #3

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "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 #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 224}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !7, i64 152, !7, i64 156, !7, i64 160, !7, i64 164, !7, i64 168, !8, i64 172, !7, i64 208, !7, i64 212, !7, i64 216, !7, i64 220, !7, i64 224, !7, i64 228, !7, i64 232, !7, i64 236, !7, i64 240, !7, i64 244, !7, i64 248, !7, i64 252, !7, i64 256, !7, i64 260, !7, i64 264, !7, i64 268, !7, i64 272, !7, i64 276, !7, i64 280, !7, i64 284, !8, i64 288}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !7, i64 0}
!12 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16}
!13 = !{!12, !7, i64 4}
!14 = !{!12, !7, i64 8}
!15 = !{!12, !7, i64 12}
!16 = !{!12, !7, i64 16}


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

; Function Attrs: nounwind uwtable
define dso_local void @MX_GPIO_Init() local_unnamed_addr #0 {
  %1 = alloca %struct.GPIO_InitTypeDef, align 16
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %1) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(20) %1, i8 0, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2)
  %8 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !5
  %9 = or i32 %8, 16
  store volatile i32 %9, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !5
  %10 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !5
  %11 = and i32 %10, 16
  store volatile i32 %11, ptr %2, align 4, !tbaa !10
  %.0..0..0..0.5 = load volatile i32, ptr %2, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3)
  %12 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !5
  %13 = or i32 %12, 4
  store volatile i32 %13, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !5
  %14 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !5
  %15 = and i32 %14, 4
  store volatile i32 %15, ptr %3, align 4, !tbaa !10
  %.0..0..0..0.4 = load volatile i32, ptr %3, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4)
  %16 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !5
  %17 = or i32 %16, 128
  store volatile i32 %17, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !5
  %18 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !5
  %19 = and i32 %18, 128
  store volatile i32 %19, ptr %4, align 4, !tbaa !10
  %.0..0..0..0.3 = load volatile i32, ptr %4, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5)
  %20 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !5
  %21 = or i32 %20, 1
  store volatile i32 %21, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !5
  %22 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !5
  %23 = and i32 %22, 1
  store volatile i32 %23, ptr %5, align 4, !tbaa !10
  %.0..0..0..0.2 = load volatile i32, ptr %5, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6)
  %24 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !5
  %25 = or i32 %24, 2
  store volatile i32 %25, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !5
  %26 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !5
  %27 = and i32 %26, 2
  store volatile i32 %27, ptr %6, align 4, !tbaa !10
  %.0..0..0..0.1 = load volatile i32, ptr %6, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7)
  %28 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !5
  %29 = or i32 %28, 8
  store volatile i32 %29, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !5
  %30 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !5
  %31 = and i32 %30, 8
  store volatile i32 %31, ptr %7, align 4, !tbaa !10
  %.0..0..0..0. = load volatile i32, ptr %7, align 4, !tbaa !10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7)
  tail call void @HAL_GPIO_WritePin(ptr noundef nonnull inttoptr (i64 1476528128 to ptr), i16 noundef zeroext -8151, i32 noundef 0) #4
  tail call void @HAL_GPIO_WritePin(ptr noundef nonnull inttoptr (i64 1476530176 to ptr), i16 noundef zeroext -32768, i32 noundef 0) #4
  tail call void @HAL_GPIO_WritePin(ptr noundef nonnull inttoptr (i64 1476527104 to ptr), i16 noundef zeroext 4096, i32 noundef 0) #4
  tail call void @HAL_GPIO_WritePin(ptr noundef nonnull inttoptr (i64 1476529152 to ptr), i16 noundef zeroext 1024, i32 noundef 0) #4
  %32 = getelementptr inbounds i8, ptr %1, i64 4
  %33 = getelementptr inbounds i8, ptr %1, i64 8
  store <4 x i32> <i32 57385, i32 1, i32 0, i32 0>, ptr %1, align 16, !tbaa !10
  call void @HAL_GPIO_Init(ptr noundef nonnull inttoptr (i64 1476528128 to ptr), ptr noundef nonnull %1) #4
  store i32 32, ptr %1, align 16, !tbaa !11
  store i32 3, ptr %32, align 4, !tbaa !13
  store i32 0, ptr %33, align 8, !tbaa !14
  call void @HAL_GPIO_Init(ptr noundef nonnull inttoptr (i64 1476526080 to ptr), ptr noundef nonnull %1) #4
  store <4 x i32> <i32 128, i32 2, i32 0, i32 0>, ptr %1, align 16, !tbaa !10
  %34 = getelementptr inbounds i8, ptr %1, i64 16
  store i32 8, ptr %34, align 16, !tbaa !15
  call void @HAL_GPIO_Init(ptr noundef nonnull inttoptr (i64 1476526080 to ptr), ptr noundef nonnull %1) #4
  store i32 16, ptr %1, align 16, !tbaa !11
  store i32 3, ptr %32, align 4, !tbaa !13
  store i32 0, ptr %33, align 8, !tbaa !14
  call void @HAL_GPIO_Init(ptr noundef nonnull inttoptr (i64 1476528128 to ptr), ptr noundef nonnull %1) #4
  store <4 x i32> <i32 2, i32 2, i32 0, i32 0>, ptr %1, align 16, !tbaa !10
  store i32 2, ptr %34, align 16, !tbaa !15
  call void @HAL_GPIO_Init(ptr noundef nonnull inttoptr (i64 1476527104 to ptr), ptr noundef nonnull %1) #4
  store i32 5120, ptr %1, align 16, !tbaa !11
  store i32 1114112, ptr %32, align 4, !tbaa !13
  store i32 0, ptr %33, align 8, !tbaa !14
  call void @HAL_GPIO_Init(ptr noundef nonnull inttoptr (i64 1476530176 to ptr), ptr noundef nonnull %1) #4
  store <4 x i32> <i32 16384, i32 2, i32 0, i32 0>, ptr %1, align 16, !tbaa !10
  store i32 5, ptr %34, align 16, !tbaa !15
  call void @HAL_GPIO_Init(ptr noundef nonnull inttoptr (i64 1476530176 to ptr), ptr noundef nonnull %1) #4
  store <4 x i32> <i32 32768, i32 1, i32 0, i32 0>, ptr %1, align 16, !tbaa !10
  call void @HAL_GPIO_Init(ptr noundef nonnull inttoptr (i64 1476530176 to ptr), ptr noundef nonnull %1) #4
  store <4 x i32> <i32 3072, i32 18, i32 0, i32 0>, ptr %1, align 16, !tbaa !10
  store i32 4, ptr %34, align 16, !tbaa !15
  call void @HAL_GPIO_Init(ptr noundef nonnull inttoptr (i64 1476527104 to ptr), ptr noundef nonnull %1) #4
  store <4 x i32> <i32 4096, i32 1, i32 0, i32 0>, ptr %1, align 16, !tbaa !10
  call void @HAL_GPIO_Init(ptr noundef nonnull inttoptr (i64 1476527104 to ptr), ptr noundef nonnull %1) #4
  store <4 x i32> <i32 32768, i32 2, i32 0, i32 0>, ptr %1, align 16, !tbaa !10
  store i32 2, ptr %34, align 16, !tbaa !15
  call void @HAL_GPIO_Init(ptr noundef nonnull inttoptr (i64 1476527104 to ptr), ptr noundef nonnull %1) #4
  store <4 x i32> <i32 1024, i32 1, i32 0, i32 0>, ptr %1, align 16, !tbaa !10
  call void @HAL_GPIO_Init(ptr noundef nonnull inttoptr (i64 1476529152 to ptr), ptr noundef nonnull %1) #4
  store <4 x i32> <i32 256, i32 2, i32 0, i32 0>, ptr %1, align 16, !tbaa !10
  store i32 0, ptr %34, align 16, !tbaa !15
  call void @HAL_GPIO_Init(ptr noundef nonnull inttoptr (i64 1476526080 to ptr), ptr noundef nonnull %1) #4
  store i32 32768, ptr %1, align 16, !tbaa !11
  store i32 1114112, ptr %32, align 4, !tbaa !13
  store i32 0, ptr %33, align 8, !tbaa !14
  call void @HAL_GPIO_Init(ptr noundef nonnull inttoptr (i64 1476526080 to ptr), ptr noundef nonnull %1) #4
  store <4 x i32> <i32 4, i32 2, i32 0, i32 0>, ptr %1, align 16, !tbaa !10
  store i32 8, ptr %34, align 16, !tbaa !15
  call void @HAL_GPIO_Init(ptr noundef nonnull inttoptr (i64 1476529152 to ptr), ptr noundef nonnull %1) #4
  store <4 x i32> <i32 3, i32 2, i32 0, i32 0>, ptr %1, align 16, !tbaa !10
  store i32 8, ptr %34, align 16, !tbaa !15
  call void @HAL_GPIO_Init(ptr noundef nonnull inttoptr (i64 1476530176 to ptr), ptr noundef nonnull %1) #4
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %1) #4
  ret void
}

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

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

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

declare void @HAL_GPIO_WritePin(ptr noundef, i16 noundef zeroext, i32 noundef) local_unnamed_addr #3

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "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 #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 224}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !7, i64 152, !7, i64 156, !7, i64 160, !7, i64 164, !7, i64 168, !8, i64 172, !7, i64 208, !7, i64 212, !7, i64 216, !7, i64 220, !7, i64 224, !7, i64 228, !7, i64 232, !7, i64 236, !7, i64 240, !7, i64 244, !7, i64 248, !7, i64 252, !7, i64 256, !7, i64 260, !7, i64 264, !7, i64 268, !7, i64 272, !7, i64 276, !7, i64 280, !7, i64 284, !8, i64 288}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !7, i64 0}
!12 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16}
!13 = !{!12, !7, i64 4}
!14 = !{!12, !7, i64 8}
!15 = !{!12, !7, i64 16}


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