; LLVM IR from ctlst-tech/catpilot :: bsp/mcu/core/stm32/h753/hal/src (stm32h7xx_hal_sd_ex)

; 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.SDMMC_DataInitTypeDef = type { i32, i32, i32, i32, i32, i32 }
%struct.SD_HandleTypeDef = type { ptr, %struct.SDMMC_InitTypeDef, i32, ptr, i32, ptr, i32, i32, i32, i32, %struct.HAL_SD_CardInfoTypeDef, [4 x i32], [4 x i32] }
%struct.SDMMC_InitTypeDef = type { i32, i32, i32, i32, i32 }
%struct.HAL_SD_CardInfoTypeDef = type { i32, i32, 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: nounwind uwtable
define dso_local i32 @HAL_SDEx_ReadBlocksDMAMultiBuffer(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %struct.SDMMC_DataInitTypeDef, 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
  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 24, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %14 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %14, ptr %12, align 4, !tbaa !9
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %15, i32 0, i32 8
  %17 = load volatile i32, ptr %16, align 8, !tbaa !11
  %18 = icmp eq i32 %17, 1
  br i1 %18, label %19, label %139

19:                                               ; preds = %3
  %20 = load i32, ptr %12, align 4, !tbaa !9
  %21 = load i32, ptr %7, align 4, !tbaa !9
  %22 = add i32 %20, %21
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %23, i32 0, i32 10
  %25 = getelementptr inbounds %struct.HAL_SD_CardInfoTypeDef, ptr %24, i32 0, i32 6
  %26 = load i32, ptr %25, align 8, !tbaa !15
  %27 = icmp ugt i32 %22, %26
  br i1 %27, label %28, label %33

28:                                               ; preds = %19
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %29, i32 0, i32 9
  %31 = load volatile i32, ptr %30, align 4, !tbaa !16
  %32 = or i32 %31, 33554432
  store volatile i32 %32, ptr %30, align 4, !tbaa !16
  store i32 1, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %140

33:                                               ; preds = %19
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %34, i32 0, i32 0
  %36 = load ptr, ptr %35, align 8, !tbaa !17
  %37 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %36, i32 0, i32 20
  %38 = load volatile i32, ptr %37, align 4, !tbaa !18
  store i32 %38, ptr %10, align 4, !tbaa !9
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %39, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !17
  %42 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %41, i32 0, i32 21
  %43 = load volatile i32, ptr %42, align 4, !tbaa !20
  store i32 %43, ptr %11, align 4, !tbaa !9
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %44, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !17
  %47 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %46, i32 0, i32 19
  %48 = load volatile i32, ptr %47, align 4, !tbaa !21
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %56, label %50

50:                                               ; preds = %33
  %51 = load i32, ptr %10, align 4, !tbaa !9
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %56, label %53

53:                                               ; preds = %50
  %54 = load i32, ptr %11, align 4, !tbaa !9
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %56, label %59

56:                                               ; preds = %53, %50, %33
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %57, i32 0, i32 9
  store volatile i32 33554432, ptr %58, align 4, !tbaa !16
  store i32 1, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %140

59:                                               ; preds = %53
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %60, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8, !tbaa !17
  %63 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %62, i32 0, i32 11
  store volatile i32 0, ptr %63, align 4, !tbaa !22
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %64, i32 0, i32 0
  %66 = load ptr, ptr %65, align 8, !tbaa !17
  %67 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %66, i32 0, i32 14
  store volatile i32 402657082, ptr %67, align 4, !tbaa !23
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %68, i32 0, i32 9
  store volatile i32 0, ptr %69, align 4, !tbaa !16
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %70, i32 0, i32 8
  store volatile i32 3, ptr %71, align 8, !tbaa !11
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %72, i32 0, i32 10
  %74 = getelementptr inbounds %struct.HAL_SD_CardInfoTypeDef, ptr %73, i32 0, i32 0
  %75 = load i32, ptr %74, align 8, !tbaa !24
  %76 = icmp ne i32 %75, 1
  br i1 %76, label %77, label %80

77:                                               ; preds = %59
  %78 = load i32, ptr %12, align 4, !tbaa !9
  %79 = mul i32 %78, 512
  store i32 %79, ptr %12, align 4, !tbaa !9
  br label %80

80:                                               ; preds = %77, %59
  %81 = getelementptr inbounds %struct.SDMMC_DataInitTypeDef, ptr %8, i32 0, i32 0
  store i32 -1, ptr %81, align 4, !tbaa !25
  %82 = load i32, ptr %7, align 4, !tbaa !9
  %83 = mul i32 512, %82
  %84 = getelementptr inbounds %struct.SDMMC_DataInitTypeDef, ptr %8, i32 0, i32 1
  store i32 %83, ptr %84, align 4, !tbaa !27
  %85 = getelementptr inbounds %struct.SDMMC_DataInitTypeDef, ptr %8, i32 0, i32 2
  store i32 144, ptr %85, align 4, !tbaa !28
  %86 = getelementptr inbounds %struct.SDMMC_DataInitTypeDef, ptr %8, i32 0, i32 3
  store i32 2, ptr %86, align 4, !tbaa !29
  %87 = getelementptr inbounds %struct.SDMMC_DataInitTypeDef, ptr %8, i32 0, i32 4
  store i32 0, ptr %87, align 4, !tbaa !30
  %88 = getelementptr inbounds %struct.SDMMC_DataInitTypeDef, ptr %8, i32 0, i32 5
  store i32 0, ptr %88, align 4, !tbaa !31
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %89, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !17
  %92 = call i32 @SDMMC_ConfigData(ptr noundef %91, ptr noundef %8)
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %93, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8, !tbaa !17
  %96 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %95, i32 0, i32 11
  %97 = load volatile i32, ptr %96, align 4, !tbaa !22
  %98 = zext i32 %97 to i64
  %99 = or i64 %98, 8192
  %100 = trunc i64 %99 to i32
  store volatile i32 %100, ptr %96, align 4, !tbaa !22
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %101, i32 0, i32 0
  %103 = load ptr, ptr %102, align 8, !tbaa !17
  %104 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %103, i32 0, i32 3
  %105 = load volatile i32, ptr %104, align 4, !tbaa !32
  %106 = zext i32 %105 to i64
  %107 = or i64 %106, 64
  %108 = trunc i64 %107 to i32
  store volatile i32 %108, ptr %104, align 4, !tbaa !32
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %109, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8, !tbaa !17
  %112 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %111, i32 0, i32 18
  store volatile i32 3, ptr %112, align 4, !tbaa !33
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %113, i32 0, i32 7
  store volatile i32 130, ptr %114, align 4, !tbaa !34
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %115, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8, !tbaa !17
  %118 = load i32, ptr %12, align 4, !tbaa !9
  %119 = call i32 @SDMMC_CmdReadMultiBlock(ptr noundef %117, i32 noundef %118)
  store i32 %119, ptr %9, align 4, !tbaa !9
  %120 = load i32, ptr %9, align 4, !tbaa !9
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %122, label %130

122:                                              ; preds = %80
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %123, i32 0, i32 8
  store volatile i32 1, ptr %124, align 8, !tbaa !11
  %125 = load i32, ptr %9, align 4, !tbaa !9
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %126, i32 0, i32 9
  %128 = load volatile i32, ptr %127, align 4, !tbaa !16
  %129 = or i32 %128, %125
  store volatile i32 %129, ptr %127, align 4, !tbaa !16
  store i32 1, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %140

130:                                              ; preds = %80
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %131, i32 0, i32 0
  %133 = load ptr, ptr %132, align 8, !tbaa !17
  %134 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %133, i32 0, i32 15
  %135 = load volatile i32, ptr %134, align 4, !tbaa !35
  %136 = zext i32 %135 to i64
  %137 = or i64 %136, 268435754
  %138 = trunc i64 %137 to i32
  store volatile i32 %138, ptr %134, align 4, !tbaa !35
  store i32 0, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %140

139:                                              ; preds = %3
  store i32 2, ptr %4, align 4
  store i32 1, ptr %13, align 4
  br label %140

140:                                              ; preds = %139, %130, %122, %56, %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  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 24, ptr %8) #3
  %141 = load i32, ptr %4, align 4
  ret i32 %141
}

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 108, !7, i64 124}
!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, !10, i64 28, !10, i64 32}
!15 = !{!12, !10, i64 96}
!16 = !{!12, !10, i64 68}
!17 = !{!12, !6, i64 0}
!18 = !{!19, !10, i64 88}
!19 = !{!"", !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}
!20 = !{!19, !10, i64 92}
!21 = !{!19, !10, i64 84}
!22 = !{!19, !10, i64 44}
!23 = !{!19, !10, i64 56}
!24 = !{!12, !10, i64 72}
!25 = !{!26, !10, i64 0}
!26 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20}
!27 = !{!26, !10, i64 4}
!28 = !{!26, !10, i64 8}
!29 = !{!26, !10, i64 12}
!30 = !{!26, !10, i64 16}
!31 = !{!26, !10, i64 20}
!32 = !{!19, !10, i64 12}
!33 = !{!19, !10, i64 80}
!34 = !{!12, !10, i64 60}
!35 = !{!19, !10, i64 60}


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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 3) i32 @HAL_SDEx_ReadBlocksDMAMultiBuffer(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = alloca %struct.SDMMC_DataInitTypeDef, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #3
  %5 = getelementptr inbounds i8, ptr %0, i64 64
  %6 = load volatile i32, ptr %5, align 8, !tbaa !5
  %7 = icmp eq i32 %6, 1
  br i1 %7, label %8, label %59

8:                                                ; preds = %3
  %9 = add i32 %2, %1
  %10 = getelementptr inbounds i8, ptr %0, i64 72
  %11 = getelementptr inbounds i8, ptr %0, i64 96
  %12 = load i32, ptr %11, align 8, !tbaa !13
  %13 = icmp ugt i32 %9, %12
  br i1 %13, label %14, label %18

14:                                               ; preds = %8
  %15 = getelementptr inbounds i8, ptr %0, i64 68
  %16 = load volatile i32, ptr %15, align 4, !tbaa !14
  %17 = or i32 %16, 33554432
  store volatile i32 %17, ptr %15, align 4, !tbaa !14
  br label %59

18:                                               ; preds = %8
  %19 = load ptr, ptr %0, align 8, !tbaa !15
  %20 = getelementptr inbounds i8, ptr %19, i64 88
  %21 = load volatile i32, ptr %20, align 4, !tbaa !16
  %22 = getelementptr inbounds i8, ptr %19, i64 92
  %23 = load volatile i32, ptr %22, align 4, !tbaa !18
  %24 = getelementptr inbounds i8, ptr %19, i64 84
  %25 = load volatile i32, ptr %24, align 4, !tbaa !19
  %26 = icmp eq i32 %25, 0
  %27 = icmp eq i32 %21, 0
  %or.cond = select i1 %26, i1 true, i1 %27
  %28 = icmp eq i32 %23, 0
  %or.cond3 = select i1 %or.cond, i1 true, i1 %28
  br i1 %or.cond3, label %29, label %31

29:                                               ; preds = %18
  %30 = getelementptr inbounds i8, ptr %0, i64 68
  store volatile i32 33554432, ptr %30, align 4, !tbaa !14
  br label %59

31:                                               ; preds = %18
  %32 = getelementptr inbounds i8, ptr %19, i64 44
  store volatile i32 0, ptr %32, align 4, !tbaa !20
  %33 = getelementptr inbounds i8, ptr %19, i64 56
  store volatile i32 402657082, ptr %33, align 4, !tbaa !21
  %34 = getelementptr inbounds i8, ptr %0, i64 68
  store volatile i32 0, ptr %34, align 4, !tbaa !14
  store volatile i32 3, ptr %5, align 8, !tbaa !5
  %35 = load i32, ptr %10, align 8, !tbaa !22
  %.not = icmp eq i32 %35, 1
  %36 = shl i32 %1, 9
  %spec.select = select i1 %.not, i32 %1, i32 %36
  store i32 -1, ptr %4, align 4, !tbaa !23
  %37 = shl i32 %2, 9
  %38 = getelementptr inbounds i8, ptr %4, i64 4
  store i32 %37, ptr %38, align 4, !tbaa !25
  %39 = getelementptr inbounds i8, ptr %4, i64 8
  store <4 x i32> <i32 144, i32 2, i32 0, i32 0>, ptr %39, align 4, !tbaa !26
  %40 = call i32 @SDMMC_ConfigData(ptr noundef nonnull %19, ptr noundef nonnull %4) #3
  %41 = load ptr, ptr %0, align 8, !tbaa !15
  %42 = getelementptr inbounds i8, ptr %41, i64 44
  %43 = load volatile i32, ptr %42, align 4, !tbaa !20
  %44 = or i32 %43, 8192
  store volatile i32 %44, ptr %42, align 4, !tbaa !20
  %45 = getelementptr inbounds i8, ptr %41, i64 12
  %46 = load volatile i32, ptr %45, align 4, !tbaa !27
  %47 = or i32 %46, 64
  store volatile i32 %47, ptr %45, align 4, !tbaa !27
  %48 = getelementptr inbounds i8, ptr %41, i64 80
  store volatile i32 3, ptr %48, align 4, !tbaa !28
  %49 = getelementptr inbounds i8, ptr %0, i64 60
  store volatile i32 130, ptr %49, align 4, !tbaa !29
  %50 = call i32 @SDMMC_CmdReadMultiBlock(ptr noundef %41, i32 noundef %spec.select) #3
  %.not36 = icmp eq i32 %50, 0
  br i1 %.not36, label %54, label %51

51:                                               ; preds = %31
  store volatile i32 1, ptr %5, align 8, !tbaa !5
  %52 = load volatile i32, ptr %34, align 4, !tbaa !14
  %53 = or i32 %52, %50
  store volatile i32 %53, ptr %34, align 4, !tbaa !14
  br label %59

54:                                               ; preds = %31
  %55 = load ptr, ptr %0, align 8, !tbaa !15
  %56 = getelementptr inbounds i8, ptr %55, i64 60
  %57 = load volatile i32, ptr %56, align 4, !tbaa !30
  %58 = or i32 %57, 268435754
  store volatile i32 %58, ptr %56, align 4, !tbaa !30
  br label %59

59:                                               ; preds = %3, %54, %51, %29, %14
  %.034 = phi i32 [ 1, %14 ], [ 1, %29 ], [ 1, %51 ], [ 0, %54 ], [ 2, %3 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #3
  ret i32 %.034
}

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

declare i32 @SDMMC_ConfigData(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @SDMMC_CmdReadMultiBlock(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !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 108, !8, i64 124}
!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, !11, i64 28, !11, i64 32}
!13 = !{!6, !11, i64 96}
!14 = !{!6, !11, i64 68}
!15 = !{!6, !7, i64 0}
!16 = !{!17, !11, i64 88}
!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, !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}
!18 = !{!17, !11, i64 92}
!19 = !{!17, !11, i64 84}
!20 = !{!17, !11, i64 44}
!21 = !{!17, !11, i64 56}
!22 = !{!6, !11, i64 72}
!23 = !{!24, !11, i64 0}
!24 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!25 = !{!24, !11, i64 4}
!26 = !{!11, !11, i64 0}
!27 = !{!17, !11, i64 12}
!28 = !{!17, !11, i64 80}
!29 = !{!6, !11, i64 60}
!30 = !{!17, !11, i64 60}


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