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

; 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.MMC_HandleTypeDef = type { ptr, %struct.SDMMC_InitTypeDef, i32, ptr, i32, ptr, i32, i32, i32, i32, %struct.HAL_MMC_CardInfoTypeDef, [4 x i32], [4 x i32], [128 x i32] }
%struct.SDMMC_InitTypeDef = type { i32, i32, i32, i32, i32 }
%struct.HAL_MMC_CardInfoTypeDef = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.SDMMC_TypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [3 x i32], i32, i32, i32, i32, [8 x i32], i32, [222 x i32], i32 }

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @HAL_MMC_Erase(ptr noundef %0, i32 noundef %1, i32 noundef %2) #1 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %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
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %12 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %12, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %13 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %13, ptr %10, align 4, !tbaa !9
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %14, i32 0, i32 8
  %16 = load volatile i32, ptr %15, align 8, !tbaa !11
  %17 = icmp eq i32 %16, 1
  br i1 %17, label %18, label %152

18:                                               ; preds = %3
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %19, i32 0, i32 9
  store volatile i32 0, ptr %20, align 4, !tbaa !15
  %21 = load i32, ptr %10, align 4, !tbaa !9
  %22 = load i32, ptr %9, align 4, !tbaa !9
  %23 = icmp ult i32 %21, %22
  br i1 %23, label %24, label %29

24:                                               ; preds = %18
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %25, i32 0, i32 9
  %27 = load volatile i32, ptr %26, align 4, !tbaa !15
  %28 = or i32 %27, 134217728
  store volatile i32 %28, ptr %26, align 4, !tbaa !15
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %153

29:                                               ; preds = %18
  %30 = load i32, ptr %10, align 4, !tbaa !9
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %31, i32 0, i32 10
  %33 = getelementptr inbounds %struct.HAL_MMC_CardInfoTypeDef, ptr %32, i32 0, i32 5
  %34 = load i32, ptr %33, align 4, !tbaa !16
  %35 = icmp ugt i32 %30, %34
  br i1 %35, label %36, label %41

36:                                               ; preds = %29
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %37, i32 0, i32 9
  %39 = load volatile i32, ptr %38, align 4, !tbaa !15
  %40 = or i32 %39, 33554432
  store volatile i32 %40, ptr %38, align 4, !tbaa !15
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %153

41:                                               ; preds = %29
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %42, i32 0, i32 8
  store volatile i32 3, ptr %43, align 8, !tbaa !11
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %44, i32 0, i32 10
  %46 = getelementptr inbounds %struct.HAL_MMC_CardInfoTypeDef, ptr %45, i32 0, i32 1
  %47 = load i32, ptr %46, align 4, !tbaa !17
  %48 = and i32 %47, 32
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %61

50:                                               ; preds = %41
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %51, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !18
  %54 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %53, i32 0, i32 14
  store volatile i32 534777855, ptr %54, align 4, !tbaa !19
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %55, i32 0, i32 9
  %57 = load volatile i32, ptr %56, align 4, !tbaa !15
  %58 = or i32 %57, 67108864
  store volatile i32 %58, ptr %56, align 4, !tbaa !15
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %59, i32 0, i32 8
  store volatile i32 1, ptr %60, align 8, !tbaa !11
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %153

61:                                               ; preds = %41
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %62, i32 0, i32 0
  %64 = load ptr, ptr %63, align 8, !tbaa !18
  %65 = call i32 @SDMMC_GetResponse(ptr noundef %64, i32 noundef 0)
  %66 = and i32 %65, 33554432
  %67 = icmp eq i32 %66, 33554432
  br i1 %67, label %68, label %79

68:                                               ; preds = %61
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %69, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8, !tbaa !18
  %72 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %71, i32 0, i32 14
  store volatile i32 534777855, ptr %72, align 4, !tbaa !19
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %73, i32 0, i32 9
  %75 = load volatile i32, ptr %74, align 4, !tbaa !15
  %76 = or i32 %75, 2048
  store volatile i32 %76, ptr %74, align 4, !tbaa !15
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %77, i32 0, i32 8
  store volatile i32 1, ptr %78, align 8, !tbaa !11
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %153

79:                                               ; preds = %61
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %80, i32 0, i32 10
  %82 = getelementptr inbounds %struct.HAL_MMC_CardInfoTypeDef, ptr %81, i32 0, i32 0
  %83 = load i32, ptr %82, align 8, !tbaa !21
  %84 = icmp ne i32 %83, 1
  br i1 %84, label %85, label %90

85:                                               ; preds = %79
  %86 = load i32, ptr %9, align 4, !tbaa !9
  %87 = mul i32 %86, 512
  store i32 %87, ptr %9, align 4, !tbaa !9
  %88 = load i32, ptr %10, align 4, !tbaa !9
  %89 = mul i32 %88, 512
  store i32 %89, ptr %10, align 4, !tbaa !9
  br label %90

90:                                               ; preds = %85, %79
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %91, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8, !tbaa !18
  %94 = load i32, ptr %9, align 4, !tbaa !9
  %95 = call i32 @SDMMC_CmdEraseStartAdd(ptr noundef %93, i32 noundef %94)
  store i32 %95, ptr %8, align 4, !tbaa !9
  %96 = load i32, ptr %8, align 4, !tbaa !9
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %110

98:                                               ; preds = %90
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %99, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8, !tbaa !18
  %102 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %101, i32 0, i32 14
  store volatile i32 534777855, ptr %102, align 4, !tbaa !19
  %103 = load i32, ptr %8, align 4, !tbaa !9
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %104, i32 0, i32 9
  %106 = load volatile i32, ptr %105, align 4, !tbaa !15
  %107 = or i32 %106, %103
  store volatile i32 %107, ptr %105, align 4, !tbaa !15
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %108, i32 0, i32 8
  store volatile i32 1, ptr %109, align 8, !tbaa !11
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %153

110:                                              ; preds = %90
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %111, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8, !tbaa !18
  %114 = load i32, ptr %10, align 4, !tbaa !9
  %115 = call i32 @SDMMC_CmdEraseEndAdd(ptr noundef %113, i32 noundef %114)
  store i32 %115, ptr %8, align 4, !tbaa !9
  %116 = load i32, ptr %8, align 4, !tbaa !9
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %130

118:                                              ; preds = %110
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %119, i32 0, i32 0
  %121 = load ptr, ptr %120, align 8, !tbaa !18
  %122 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %121, i32 0, i32 14
  store volatile i32 534777855, ptr %122, align 4, !tbaa !19
  %123 = load i32, ptr %8, align 4, !tbaa !9
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %124, i32 0, i32 9
  %126 = load volatile i32, ptr %125, align 4, !tbaa !15
  %127 = or i32 %126, %123
  store volatile i32 %127, ptr %125, align 4, !tbaa !15
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %128, i32 0, i32 8
  store volatile i32 1, ptr %129, align 8, !tbaa !11
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %153

130:                                              ; preds = %110
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %131, i32 0, i32 0
  %133 = load ptr, ptr %132, align 8, !tbaa !18
  %134 = call i32 @SDMMC_CmdErase(ptr noundef %133)
  store i32 %134, ptr %8, align 4, !tbaa !9
  %135 = load i32, ptr %8, align 4, !tbaa !9
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %137, label %149

137:                                              ; preds = %130
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %138, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8, !tbaa !18
  %141 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %140, i32 0, i32 14
  store volatile i32 534777855, ptr %141, align 4, !tbaa !19
  %142 = load i32, ptr %8, align 4, !tbaa !9
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %143, i32 0, i32 9
  %145 = load volatile i32, ptr %144, align 4, !tbaa !15
  %146 = or i32 %145, %142
  store volatile i32 %146, ptr %144, align 4, !tbaa !15
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %147, i32 0, i32 8
  store volatile i32 1, ptr %148, align 8, !tbaa !11
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %153

149:                                              ; preds = %130
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %150, i32 0, i32 8
  store volatile i32 1, ptr %151, align 8, !tbaa !11
  store i32 0, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %153

152:                                              ; preds = %3
  store i32 2, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %153

153:                                              ; preds = %152, %149, %137, %118, %98, %68, %50, %36, %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  %154 = load i32, ptr %4, align 4
  ret i32 %154
}

declare i32 @SDMMC_GetResponse(ptr noundef, i32 noundef) #2

declare i32 @SDMMC_CmdEraseStartAdd(ptr noundef, i32 noundef) #2

declare i32 @SDMMC_CmdEraseEndAdd(ptr noundef, i32 noundef) #2

declare i32 @SDMMC_CmdErase(ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 64}
!12 = !{!"", !6, i64 0, !13, i64 8, !10, i64 28, !6, i64 32, !10, i64 40, !6, i64 48, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !14, i64 72, !7, i64 100, !7, i64 116, !7, i64 132}
!13 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!14 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24}
!15 = !{!12, !10, i64 68}
!16 = !{!12, !10, i64 92}
!17 = !{!12, !10, i64 76}
!18 = !{!12, !6, i64 0}
!19 = !{!20, !10, i64 56}
!20 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !7, i64 68, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !7, i64 96, !10, i64 128, !7, i64 132, !10, i64 1020}
!21 = !{!12, !10, i64 72}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 3) i32 @HAL_MMC_Erase(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %0, i64 64
  %5 = load volatile i32, ptr %4, align 8, !tbaa !5
  %6 = icmp eq i32 %5, 1
  br i1 %6, label %7, label %66

7:                                                ; preds = %3
  %8 = getelementptr inbounds i8, ptr %0, i64 68
  store volatile i32 0, ptr %8, align 4, !tbaa !13
  %9 = icmp ult i32 %2, %1
  br i1 %9, label %10, label %13

10:                                               ; preds = %7
  %11 = load volatile i32, ptr %8, align 4, !tbaa !13
  %12 = or i32 %11, 134217728
  store volatile i32 %12, ptr %8, align 4, !tbaa !13
  br label %66

13:                                               ; preds = %7
  %14 = getelementptr inbounds i8, ptr %0, i64 72
  %15 = getelementptr inbounds i8, ptr %0, i64 92
  %16 = load i32, ptr %15, align 4, !tbaa !14
  %17 = icmp ult i32 %16, %2
  br i1 %17, label %18, label %21

18:                                               ; preds = %13
  %19 = load volatile i32, ptr %8, align 4, !tbaa !13
  %20 = or i32 %19, 33554432
  store volatile i32 %20, ptr %8, align 4, !tbaa !13
  br label %66

21:                                               ; preds = %13
  store volatile i32 3, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %0, i64 76
  %23 = load i32, ptr %22, align 4, !tbaa !15
  %24 = and i32 %23, 32
  %25 = icmp eq i32 %24, 0
  %26 = load ptr, ptr %0, align 8, !tbaa !16
  br i1 %25, label %27, label %31

27:                                               ; preds = %21
  %28 = getelementptr inbounds i8, ptr %26, i64 56
  store volatile i32 534777855, ptr %28, align 4, !tbaa !17
  %29 = load volatile i32, ptr %8, align 4, !tbaa !13
  %30 = or i32 %29, 67108864
  store volatile i32 %30, ptr %8, align 4, !tbaa !13
  store volatile i32 1, ptr %4, align 8, !tbaa !5
  br label %66

31:                                               ; preds = %21
  %32 = tail call i32 @SDMMC_GetResponse(ptr noundef %26, i32 noundef 0) #2
  %33 = and i32 %32, 33554432
  %.not = icmp eq i32 %33, 0
  br i1 %.not, label %39, label %34

34:                                               ; preds = %31
  %35 = load ptr, ptr %0, align 8, !tbaa !16
  %36 = getelementptr inbounds i8, ptr %35, i64 56
  store volatile i32 534777855, ptr %36, align 4, !tbaa !17
  %37 = load volatile i32, ptr %8, align 4, !tbaa !13
  %38 = or i32 %37, 2048
  store volatile i32 %38, ptr %8, align 4, !tbaa !13
  store volatile i32 1, ptr %4, align 8, !tbaa !5
  br label %66

39:                                               ; preds = %31
  %40 = load i32, ptr %14, align 8, !tbaa !19
  %.not50 = icmp eq i32 %40, 1
  %41 = shl i32 %1, 9
  %.043 = select i1 %.not50, i32 %1, i32 %41
  %42 = load ptr, ptr %0, align 8, !tbaa !16
  %43 = tail call i32 @SDMMC_CmdEraseStartAdd(ptr noundef %42, i32 noundef %.043) #2
  %.not51 = icmp eq i32 %43, 0
  br i1 %.not51, label %49, label %44

44:                                               ; preds = %39
  %45 = load ptr, ptr %0, align 8, !tbaa !16
  %46 = getelementptr inbounds i8, ptr %45, i64 56
  store volatile i32 534777855, ptr %46, align 4, !tbaa !17
  %47 = load volatile i32, ptr %8, align 4, !tbaa !13
  %48 = or i32 %47, %43
  store volatile i32 %48, ptr %8, align 4, !tbaa !13
  store volatile i32 1, ptr %4, align 8, !tbaa !5
  br label %66

49:                                               ; preds = %39
  %50 = shl i32 %2, 9
  %.0 = select i1 %.not50, i32 %2, i32 %50
  %51 = load ptr, ptr %0, align 8, !tbaa !16
  %52 = tail call i32 @SDMMC_CmdEraseEndAdd(ptr noundef %51, i32 noundef %.0) #2
  %.not52 = icmp eq i32 %52, 0
  %53 = load ptr, ptr %0, align 8, !tbaa !16
  br i1 %.not52, label %58, label %54

54:                                               ; preds = %49
  %55 = getelementptr inbounds i8, ptr %53, i64 56
  store volatile i32 534777855, ptr %55, align 4, !tbaa !17
  %56 = load volatile i32, ptr %8, align 4, !tbaa !13
  %57 = or i32 %56, %52
  store volatile i32 %57, ptr %8, align 4, !tbaa !13
  store volatile i32 1, ptr %4, align 8, !tbaa !5
  br label %66

58:                                               ; preds = %49
  %59 = tail call i32 @SDMMC_CmdErase(ptr noundef %53) #2
  %.not53 = icmp eq i32 %59, 0
  br i1 %.not53, label %65, label %60

60:                                               ; preds = %58
  %61 = load ptr, ptr %0, align 8, !tbaa !16
  %62 = getelementptr inbounds i8, ptr %61, i64 56
  store volatile i32 534777855, ptr %62, align 4, !tbaa !17
  %63 = load volatile i32, ptr %8, align 4, !tbaa !13
  %64 = or i32 %63, %59
  store volatile i32 %64, ptr %8, align 4, !tbaa !13
  store volatile i32 1, ptr %4, align 8, !tbaa !5
  br label %66

65:                                               ; preds = %58
  store volatile i32 1, ptr %4, align 8, !tbaa !5
  br label %66

66:                                               ; preds = %3, %65, %60, %54, %44, %34, %27, %18, %10
  %.044 = phi i32 [ 1, %10 ], [ 1, %18 ], [ 1, %27 ], [ 1, %34 ], [ 1, %44 ], [ 1, %54 ], [ 1, %60 ], [ 0, %65 ], [ 2, %3 ]
  ret i32 %.044
}

declare i32 @SDMMC_GetResponse(ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @SDMMC_CmdEraseStartAdd(ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @SDMMC_CmdEraseEndAdd(ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @SDMMC_CmdErase(ptr noundef) local_unnamed_addr #1

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 = { "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, !11, i64 64}
!6 = !{!"", !7, i64 0, !10, i64 8, !11, i64 28, !7, i64 32, !11, i64 40, !7, i64 48, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !12, i64 72, !8, i64 100, !8, i64 116, !8, i64 132}
!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 = !{!"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}
!13 = !{!6, !11, i64 68}
!14 = !{!6, !11, i64 92}
!15 = !{!6, !11, i64 76}
!16 = !{!6, !7, i64 0}
!17 = !{!18, !11, i64 56}
!18 = !{!"", !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, !8, i64 68, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !8, i64 96, !11, i64 128, !8, i64 132, !11, i64 1020}
!19 = !{!6, !11, i64 72}


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