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

; 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.FLASH_ProcessTypeDef = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.FLASH_OBProgramInitTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }

@pFlash = external global %struct.FLASH_ProcessTypeDef, align 4

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

declare i32 @FLASH_WaitForLastOperation(i32 noundef, i32 noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @HAL_FLASHEx_OBProgram(ptr noundef %0) #2 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  br label %6

6:                                                ; preds = %1
  %7 = load i32, ptr getelementptr inbounds (%struct.FLASH_ProcessTypeDef, ptr @pFlash, i32 0, i32 5), align 4, !tbaa !9
  %8 = icmp eq i32 %7, 1
  br i1 %8, label %9, label %10

9:                                                ; preds = %6
  store i32 2, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %145

10:                                               ; preds = %6
  store i32 1, ptr getelementptr inbounds (%struct.FLASH_ProcessTypeDef, ptr @pFlash, i32 0, i32 5), align 4, !tbaa !9
  br label %11

11:                                               ; preds = %10
  br label %12

12:                                               ; preds = %11
  br label %13

13:                                               ; preds = %12
  store volatile i32 0, ptr getelementptr inbounds (%struct.FLASH_ProcessTypeDef, ptr @pFlash, i32 0, i32 6), align 4, !tbaa !12
  %14 = call i32 @FLASH_WaitForLastOperation(i32 noundef 50000, i32 noundef 1)
  %15 = icmp ne i32 %14, 0
  br i1 %15, label %16, label %17

16:                                               ; preds = %13
  store i32 1, ptr %4, align 4, !tbaa !13
  br label %23

17:                                               ; preds = %13
  %18 = call i32 @FLASH_WaitForLastOperation(i32 noundef 50000, i32 noundef 2)
  %19 = icmp ne i32 %18, 0
  br i1 %19, label %20, label %21

20:                                               ; preds = %17
  store i32 1, ptr %4, align 4, !tbaa !13
  br label %22

21:                                               ; preds = %17
  store i32 0, ptr %4, align 4, !tbaa !13
  br label %22

22:                                               ; preds = %21, %20
  br label %23

23:                                               ; preds = %22, %16
  %24 = load i32, ptr %4, align 4, !tbaa !13
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %26, label %140

26:                                               ; preds = %23
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %27, i32 0, i32 0
  %29 = load i32, ptr %28, align 4, !tbaa !14
  %30 = and i32 %29, 1
  %31 = icmp eq i32 %30, 1
  br i1 %31, label %32, label %52

32:                                               ; preds = %26
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %33, i32 0, i32 1
  %35 = load i32, ptr %34, align 4, !tbaa !16
  %36 = icmp eq i32 %35, 1
  br i1 %36, label %37, label %44

37:                                               ; preds = %32
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %38, i32 0, i32 2
  %40 = load i32, ptr %39, align 4, !tbaa !17
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %41, i32 0, i32 7
  %43 = load i32, ptr %42, align 4, !tbaa !18
  call void @FLASH_OB_EnableWRP(i32 noundef %40, i32 noundef %43)
  br label %51

44:                                               ; preds = %32
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %45, i32 0, i32 2
  %47 = load i32, ptr %46, align 4, !tbaa !17
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %48, i32 0, i32 7
  %50 = load i32, ptr %49, align 4, !tbaa !18
  call void @FLASH_OB_DisableWRP(i32 noundef %47, i32 noundef %50)
  br label %51

51:                                               ; preds = %44, %37
  br label %52

52:                                               ; preds = %51, %26
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %53, i32 0, i32 0
  %55 = load i32, ptr %54, align 4, !tbaa !14
  %56 = and i32 %55, 2
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %62

58:                                               ; preds = %52
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %59, i32 0, i32 3
  %61 = load i32, ptr %60, align 4, !tbaa !19
  call void @FLASH_OB_RDPConfig(i32 noundef %61)
  br label %62

62:                                               ; preds = %58, %52
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %63, i32 0, i32 0
  %65 = load i32, ptr %64, align 4, !tbaa !14
  %66 = and i32 %65, 4
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %75

68:                                               ; preds = %62
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %69, i32 0, i32 5
  %71 = load i32, ptr %70, align 4, !tbaa !20
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %72, i32 0, i32 6
  %74 = load i32, ptr %73, align 4, !tbaa !21
  call void @FLASH_OB_UserConfig(i32 noundef %71, i32 noundef %74)
  br label %75

75:                                               ; preds = %68, %62
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %76, i32 0, i32 0
  %78 = load i32, ptr %77, align 4, !tbaa !14
  %79 = and i32 %78, 8
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %81, label %94

81:                                               ; preds = %75
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %82, i32 0, i32 8
  %84 = load i32, ptr %83, align 4, !tbaa !22
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %85, i32 0, i32 9
  %87 = load i32, ptr %86, align 4, !tbaa !23
  %88 = load ptr, ptr %3, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %88, i32 0, i32 10
  %90 = load i32, ptr %89, align 4, !tbaa !24
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %91, i32 0, i32 7
  %93 = load i32, ptr %92, align 4, !tbaa !18
  call void @FLASH_OB_PCROPConfig(i32 noundef %84, i32 noundef %87, i32 noundef %90, i32 noundef %93)
  br label %94

94:                                               ; preds = %81, %75
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %95, i32 0, i32 0
  %97 = load i32, ptr %96, align 4, !tbaa !14
  %98 = and i32 %97, 16
  %99 = icmp eq i32 %98, 16
  br i1 %99, label %100, label %104

100:                                              ; preds = %94
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %101, i32 0, i32 4
  %103 = load i32, ptr %102, align 4, !tbaa !25
  call void @FLASH_OB_BOR_LevelConfig(i32 noundef %103)
  br label %104

104:                                              ; preds = %100, %94
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %105, i32 0, i32 0
  %107 = load i32, ptr %106, align 4, !tbaa !14
  %108 = and i32 %107, 64
  %109 = icmp eq i32 %108, 64
  br i1 %109, label %110, label %120

110:                                              ; preds = %104
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %111, i32 0, i32 11
  %113 = load i32, ptr %112, align 4, !tbaa !26
  %114 = load ptr, ptr %3, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %114, i32 0, i32 12
  %116 = load i32, ptr %115, align 4, !tbaa !27
  %117 = load ptr, ptr %3, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %117, i32 0, i32 13
  %119 = load i32, ptr %118, align 4, !tbaa !28
  call void @FLASH_OB_BootAddConfig(i32 noundef %113, i32 noundef %116, i32 noundef %119)
  br label %120

120:                                              ; preds = %110, %104
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %121, i32 0, i32 0
  %123 = load i32, ptr %122, align 4, !tbaa !14
  %124 = and i32 %123, 32
  %125 = icmp eq i32 %124, 32
  br i1 %125, label %126, label %139

126:                                              ; preds = %120
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %127, i32 0, i32 14
  %129 = load i32, ptr %128, align 4, !tbaa !29
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %130, i32 0, i32 15
  %132 = load i32, ptr %131, align 4, !tbaa !30
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %133, i32 0, i32 16
  %135 = load i32, ptr %134, align 4, !tbaa !31
  %136 = load ptr, ptr %3, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.FLASH_OBProgramInitTypeDef, ptr %136, i32 0, i32 7
  %138 = load i32, ptr %137, align 4, !tbaa !18
  call void @FLASH_OB_SecureAreaConfig(i32 noundef %129, i32 noundef %132, i32 noundef %135, i32 noundef %138)
  br label %139

139:                                              ; preds = %126, %120
  br label %140

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

141:                                              ; preds = %140
  store i32 0, ptr getelementptr inbounds (%struct.FLASH_ProcessTypeDef, ptr @pFlash, i32 0, i32 5), align 4, !tbaa !9
  br label %142

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142
  %144 = load i32, ptr %4, align 4, !tbaa !13
  store i32 %144, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %145

145:                                              ; preds = %143, %9
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  %146 = load i32, ptr %2, align 4
  ret i32 %146
}

; Function Attrs: nounwind uwtable
declare hidden void @FLASH_OB_EnableWRP(i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @FLASH_OB_DisableWRP(i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @FLASH_OB_RDPConfig(i32 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @FLASH_OB_UserConfig(i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @FLASH_OB_PCROPConfig(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @FLASH_OB_BOR_LevelConfig(i32 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @FLASH_OB_BootAddConfig(i32 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @FLASH_OB_SecureAreaConfig(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 20}
!10 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 24}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !11, i64 0}
!15 = !{!"", !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}
!16 = !{!15, !11, i64 4}
!17 = !{!15, !11, i64 8}
!18 = !{!15, !11, i64 28}
!19 = !{!15, !11, i64 12}
!20 = !{!15, !11, i64 20}
!21 = !{!15, !11, i64 24}
!22 = !{!15, !11, i64 32}
!23 = !{!15, !11, i64 36}
!24 = !{!15, !11, i64 40}
!25 = !{!15, !11, i64 16}
!26 = !{!15, !11, i64 44}
!27 = !{!15, !11, i64 48}
!28 = !{!15, !11, i64 52}
!29 = !{!15, !11, i64 56}
!30 = !{!15, !11, i64 60}
!31 = !{!15, !11, i64 64}


; 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.FLASH_ProcessTypeDef = type { i32, i32, i32, i32, i32, i32, i32 }

@pFlash = external global %struct.FLASH_ProcessTypeDef, align 4

declare i32 @FLASH_WaitForLastOperation(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 3) i32 @HAL_FLASHEx_OBProgram(ptr nocapture noundef readonly %0) local_unnamed_addr #1 {
  %2 = load i32, ptr getelementptr inbounds (i8, ptr @pFlash, i64 20), align 4, !tbaa !5
  %3 = icmp eq i32 %2, 1
  br i1 %3, label %75, label %4

4:                                                ; preds = %1
  store i32 1, ptr getelementptr inbounds (i8, ptr @pFlash, i64 20), align 4, !tbaa !5
  store volatile i32 0, ptr getelementptr inbounds (i8, ptr @pFlash, i64 24), align 4, !tbaa !10
  %5 = tail call i32 @FLASH_WaitForLastOperation(i32 noundef 50000, i32 noundef 1) #2
  %.not = icmp eq i32 %5, 0
  br i1 %.not, label %6, label %.thread

6:                                                ; preds = %4
  %7 = tail call i32 @FLASH_WaitForLastOperation(i32 noundef 50000, i32 noundef 2) #2
  %.not30 = icmp eq i32 %7, 0
  br i1 %.not30, label %8, label %.thread

8:                                                ; preds = %6
  %9 = load i32, ptr %0, align 4, !tbaa !11
  %10 = and i32 %9, 1
  %.not31 = icmp eq i32 %10, 0
  br i1 %.not31, label %21, label %11

11:                                               ; preds = %8
  %12 = getelementptr inbounds i8, ptr %0, i64 4
  %13 = load i32, ptr %12, align 4, !tbaa !13
  %14 = icmp eq i32 %13, 1
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = load i32, ptr %15, align 4, !tbaa !14
  %17 = getelementptr inbounds i8, ptr %0, i64 28
  %18 = load i32, ptr %17, align 4, !tbaa !15
  br i1 %14, label %19, label %20

19:                                               ; preds = %11
  tail call void @FLASH_OB_EnableWRP(i32 noundef %16, i32 noundef %18)
  br label %21

20:                                               ; preds = %11
  tail call void @FLASH_OB_DisableWRP(i32 noundef %16, i32 noundef %18)
  br label %21

21:                                               ; preds = %19, %20, %8
  %22 = load i32, ptr %0, align 4, !tbaa !11
  %23 = and i32 %22, 2
  %.not32 = icmp eq i32 %23, 0
  br i1 %.not32, label %27, label %24

24:                                               ; preds = %21
  %25 = getelementptr inbounds i8, ptr %0, i64 12
  %26 = load i32, ptr %25, align 4, !tbaa !16
  tail call void @FLASH_OB_RDPConfig(i32 noundef %26)
  %.pre = load i32, ptr %0, align 4, !tbaa !11
  br label %27

27:                                               ; preds = %24, %21
  %28 = phi i32 [ %.pre, %24 ], [ %22, %21 ]
  %29 = and i32 %28, 4
  %.not33 = icmp eq i32 %29, 0
  br i1 %.not33, label %35, label %30

30:                                               ; preds = %27
  %31 = getelementptr inbounds i8, ptr %0, i64 20
  %32 = load i32, ptr %31, align 4, !tbaa !17
  %33 = getelementptr inbounds i8, ptr %0, i64 24
  %34 = load i32, ptr %33, align 4, !tbaa !18
  tail call void @FLASH_OB_UserConfig(i32 noundef %32, i32 noundef %34)
  %.pre41 = load i32, ptr %0, align 4, !tbaa !11
  br label %35

35:                                               ; preds = %30, %27
  %36 = phi i32 [ %.pre41, %30 ], [ %28, %27 ]
  %37 = and i32 %36, 8
  %.not34 = icmp eq i32 %37, 0
  br i1 %.not34, label %47, label %38

38:                                               ; preds = %35
  %39 = getelementptr inbounds i8, ptr %0, i64 32
  %40 = load i32, ptr %39, align 4, !tbaa !19
  %41 = getelementptr inbounds i8, ptr %0, i64 36
  %42 = load i32, ptr %41, align 4, !tbaa !20
  %43 = getelementptr inbounds i8, ptr %0, i64 40
  %44 = load i32, ptr %43, align 4, !tbaa !21
  %45 = getelementptr inbounds i8, ptr %0, i64 28
  %46 = load i32, ptr %45, align 4, !tbaa !15
  tail call void @FLASH_OB_PCROPConfig(i32 noundef %40, i32 noundef %42, i32 noundef %44, i32 noundef %46)
  %.pre42 = load i32, ptr %0, align 4, !tbaa !11
  br label %47

47:                                               ; preds = %38, %35
  %48 = phi i32 [ %.pre42, %38 ], [ %36, %35 ]
  %49 = and i32 %48, 16
  %.not35 = icmp eq i32 %49, 0
  br i1 %.not35, label %53, label %50

50:                                               ; preds = %47
  %51 = getelementptr inbounds i8, ptr %0, i64 16
  %52 = load i32, ptr %51, align 4, !tbaa !22
  tail call void @FLASH_OB_BOR_LevelConfig(i32 noundef %52)
  %.pre43 = load i32, ptr %0, align 4, !tbaa !11
  br label %53

53:                                               ; preds = %50, %47
  %54 = phi i32 [ %.pre43, %50 ], [ %48, %47 ]
  %55 = and i32 %54, 64
  %.not36 = icmp eq i32 %55, 0
  br i1 %.not36, label %63, label %56

56:                                               ; preds = %53
  %57 = getelementptr inbounds i8, ptr %0, i64 44
  %58 = load i32, ptr %57, align 4, !tbaa !23
  %59 = getelementptr inbounds i8, ptr %0, i64 48
  %60 = load i32, ptr %59, align 4, !tbaa !24
  %61 = getelementptr inbounds i8, ptr %0, i64 52
  %62 = load i32, ptr %61, align 4, !tbaa !25
  tail call void @FLASH_OB_BootAddConfig(i32 noundef %58, i32 noundef %60, i32 noundef %62)
  %.pre44 = load i32, ptr %0, align 4, !tbaa !11
  br label %63

63:                                               ; preds = %56, %53
  %64 = phi i32 [ %.pre44, %56 ], [ %54, %53 ]
  %65 = and i32 %64, 32
  %.not37 = icmp eq i32 %65, 0
  br i1 %.not37, label %.thread, label %66

66:                                               ; preds = %63
  %67 = getelementptr inbounds i8, ptr %0, i64 56
  %68 = load i32, ptr %67, align 4, !tbaa !26
  %69 = getelementptr inbounds i8, ptr %0, i64 60
  %70 = load i32, ptr %69, align 4, !tbaa !27
  %71 = getelementptr inbounds i8, ptr %0, i64 64
  %72 = load i32, ptr %71, align 4, !tbaa !28
  %73 = getelementptr inbounds i8, ptr %0, i64 28
  %74 = load i32, ptr %73, align 4, !tbaa !15
  tail call void @FLASH_OB_SecureAreaConfig(i32 noundef %68, i32 noundef %70, i32 noundef %72, i32 noundef %74)
  br label %.thread

.thread:                                          ; preds = %4, %6, %66, %63
  %.040 = phi i32 [ 1, %6 ], [ 0, %66 ], [ 0, %63 ], [ 1, %4 ]
  store i32 0, ptr getelementptr inbounds (i8, ptr @pFlash, i64 20), align 4, !tbaa !5
  br label %75

75:                                               ; preds = %1, %.thread
  %.029 = phi i32 [ %.040, %.thread ], [ 2, %1 ]
  ret i32 %.029
}

; Function Attrs: nounwind uwtable
declare hidden void @FLASH_OB_EnableWRP(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @FLASH_OB_DisableWRP(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @FLASH_OB_RDPConfig(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @FLASH_OB_UserConfig(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @FLASH_OB_PCROPConfig(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @FLASH_OB_BOR_LevelConfig(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @FLASH_OB_BootAddConfig(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden void @FLASH_OB_SecureAreaConfig(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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 = { 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 20}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 24}
!11 = !{!12, !7, i64 0}
!12 = !{!"", !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}
!13 = !{!12, !7, i64 4}
!14 = !{!12, !7, i64 8}
!15 = !{!12, !7, i64 28}
!16 = !{!12, !7, i64 12}
!17 = !{!12, !7, i64 20}
!18 = !{!12, !7, i64 24}
!19 = !{!12, !7, i64 32}
!20 = !{!12, !7, i64 36}
!21 = !{!12, !7, i64 40}
!22 = !{!12, !7, i64 16}
!23 = !{!12, !7, i64 44}
!24 = !{!12, !7, i64 48}
!25 = !{!12, !7, i64 52}
!26 = !{!12, !7, i64 56}
!27 = !{!12, !7, i64 60}
!28 = !{!12, !7, i64 64}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass