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

; 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.HAL_MMC_CardCSDTypeDef = type { i8, i8, i8, i8, i8, i8, i16, i8, i8, i8, i8, i8, i8, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
%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_GetCardCSD(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #2
  store i32 0, ptr %6, align 4, !tbaa !9
  %8 = load ptr, ptr %4, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %8, i32 0, i32 11
  %10 = getelementptr inbounds [4 x i32], ptr %9, i64 0, i64 0
  %11 = load i32, ptr %10, align 4, !tbaa !9
  %12 = and i32 %11, -1073741824
  %13 = lshr i32 %12, 30
  %14 = trunc i32 %13 to i8
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %15, i32 0, i32 0
  store volatile i8 %14, ptr %16, align 4, !tbaa !11
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %17, i32 0, i32 11
  %19 = getelementptr inbounds [4 x i32], ptr %18, i64 0, i64 0
  %20 = load i32, ptr %19, align 4, !tbaa !9
  %21 = and i32 %20, 1006632960
  %22 = lshr i32 %21, 26
  %23 = trunc i32 %22 to i8
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %24, i32 0, i32 1
  store volatile i8 %23, ptr %25, align 1, !tbaa !14
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %26, i32 0, i32 11
  %28 = getelementptr inbounds [4 x i32], ptr %27, i64 0, i64 0
  %29 = load i32, ptr %28, align 4, !tbaa !9
  %30 = and i32 %29, 50331648
  %31 = lshr i32 %30, 24
  %32 = trunc i32 %31 to i8
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %33, i32 0, i32 2
  store volatile i8 %32, ptr %34, align 2, !tbaa !15
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %35, i32 0, i32 11
  %37 = getelementptr inbounds [4 x i32], ptr %36, i64 0, i64 0
  %38 = load i32, ptr %37, align 4, !tbaa !9
  %39 = and i32 %38, 16711680
  %40 = lshr i32 %39, 16
  %41 = trunc i32 %40 to i8
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %42, i32 0, i32 3
  store volatile i8 %41, ptr %43, align 1, !tbaa !16
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %44, i32 0, i32 11
  %46 = getelementptr inbounds [4 x i32], ptr %45, i64 0, i64 0
  %47 = load i32, ptr %46, align 4, !tbaa !9
  %48 = and i32 %47, 65280
  %49 = lshr i32 %48, 8
  %50 = trunc i32 %49 to i8
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %51, i32 0, i32 4
  store volatile i8 %50, ptr %52, align 4, !tbaa !17
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %53, i32 0, i32 11
  %55 = getelementptr inbounds [4 x i32], ptr %54, i64 0, i64 0
  %56 = load i32, ptr %55, align 4, !tbaa !9
  %57 = and i32 %56, 255
  %58 = trunc i32 %57 to i8
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %59, i32 0, i32 5
  store volatile i8 %58, ptr %60, align 1, !tbaa !18
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %61, i32 0, i32 11
  %63 = getelementptr inbounds [4 x i32], ptr %62, i64 0, i64 1
  %64 = load i32, ptr %63, align 4, !tbaa !9
  %65 = and i32 %64, -1048576
  %66 = lshr i32 %65, 20
  %67 = trunc i32 %66 to i16
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %68, i32 0, i32 6
  store volatile i16 %67, ptr %69, align 2, !tbaa !19
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %70, i32 0, i32 11
  %72 = getelementptr inbounds [4 x i32], ptr %71, i64 0, i64 1
  %73 = load i32, ptr %72, align 4, !tbaa !9
  %74 = and i32 %73, 983040
  %75 = lshr i32 %74, 16
  %76 = trunc i32 %75 to i8
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %77, i32 0, i32 7
  store volatile i8 %76, ptr %78, align 4, !tbaa !20
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %79, i32 0, i32 11
  %81 = getelementptr inbounds [4 x i32], ptr %80, i64 0, i64 1
  %82 = load i32, ptr %81, align 4, !tbaa !9
  %83 = and i32 %82, 32768
  %84 = lshr i32 %83, 15
  %85 = trunc i32 %84 to i8
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %86, i32 0, i32 8
  store volatile i8 %85, ptr %87, align 1, !tbaa !21
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %88, i32 0, i32 11
  %90 = getelementptr inbounds [4 x i32], ptr %89, i64 0, i64 1
  %91 = load i32, ptr %90, align 4, !tbaa !9
  %92 = and i32 %91, 16384
  %93 = lshr i32 %92, 14
  %94 = trunc i32 %93 to i8
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %95, i32 0, i32 9
  store volatile i8 %94, ptr %96, align 2, !tbaa !22
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %97, i32 0, i32 11
  %99 = getelementptr inbounds [4 x i32], ptr %98, i64 0, i64 1
  %100 = load i32, ptr %99, align 4, !tbaa !9
  %101 = and i32 %100, 8192
  %102 = lshr i32 %101, 13
  %103 = trunc i32 %102 to i8
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %104, i32 0, i32 10
  store volatile i8 %103, ptr %105, align 1, !tbaa !23
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %106, i32 0, i32 11
  %108 = getelementptr inbounds [4 x i32], ptr %107, i64 0, i64 1
  %109 = load i32, ptr %108, align 4, !tbaa !9
  %110 = and i32 %109, 4096
  %111 = lshr i32 %110, 12
  %112 = trunc i32 %111 to i8
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %113, i32 0, i32 11
  store volatile i8 %112, ptr %114, align 4, !tbaa !24
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %115, i32 0, i32 12
  store volatile i8 0, ptr %116, align 1, !tbaa !25
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = call i32 @MMC_ReadExtCSD(ptr noundef %117, ptr noundef %6, i32 noundef 268435455)
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %121

120:                                              ; preds = %2
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %425

121:                                              ; preds = %2
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %122, i32 0, i32 10
  %124 = getelementptr inbounds %struct.HAL_MMC_CardInfoTypeDef, ptr %123, i32 0, i32 0
  %125 = load i32, ptr %124, align 8, !tbaa !26
  %126 = icmp eq i32 %125, 0
  br i1 %126, label %127, label %237

127:                                              ; preds = %121
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %128, i32 0, i32 11
  %130 = getelementptr inbounds [4 x i32], ptr %129, i64 0, i64 1
  %131 = load i32, ptr %130, align 4, !tbaa !9
  %132 = and i32 %131, 1023
  %133 = shl i32 %132, 2
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %134, i32 0, i32 11
  %136 = getelementptr inbounds [4 x i32], ptr %135, i64 0, i64 2
  %137 = load i32, ptr %136, align 4, !tbaa !9
  %138 = and i32 %137, -1073741824
  %139 = lshr i32 %138, 30
  %140 = or i32 %133, %139
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %141, i32 0, i32 13
  store volatile i32 %140, ptr %142, align 4, !tbaa !30
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %143, i32 0, i32 11
  %145 = getelementptr inbounds [4 x i32], ptr %144, i64 0, i64 2
  %146 = load i32, ptr %145, align 4, !tbaa !9
  %147 = and i32 %146, 939524096
  %148 = lshr i32 %147, 27
  %149 = trunc i32 %148 to i8
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %150, i32 0, i32 14
  store volatile i8 %149, ptr %151, align 4, !tbaa !31
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %152, i32 0, i32 11
  %154 = getelementptr inbounds [4 x i32], ptr %153, i64 0, i64 2
  %155 = load i32, ptr %154, align 4, !tbaa !9
  %156 = and i32 %155, 117440512
  %157 = lshr i32 %156, 24
  %158 = trunc i32 %157 to i8
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %159, i32 0, i32 15
  store volatile i8 %158, ptr %160, align 1, !tbaa !32
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %161, i32 0, i32 11
  %163 = getelementptr inbounds [4 x i32], ptr %162, i64 0, i64 2
  %164 = load i32, ptr %163, align 4, !tbaa !9
  %165 = and i32 %164, 14680064
  %166 = lshr i32 %165, 21
  %167 = trunc i32 %166 to i8
  %168 = load ptr, ptr %5, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %168, i32 0, i32 16
  store volatile i8 %167, ptr %169, align 2, !tbaa !33
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %170, i32 0, i32 11
  %172 = getelementptr inbounds [4 x i32], ptr %171, i64 0, i64 2
  %173 = load i32, ptr %172, align 4, !tbaa !9
  %174 = and i32 %173, 1835008
  %175 = lshr i32 %174, 18
  %176 = trunc i32 %175 to i8
  %177 = load ptr, ptr %5, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %177, i32 0, i32 17
  store volatile i8 %176, ptr %178, align 1, !tbaa !34
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %179, i32 0, i32 11
  %181 = getelementptr inbounds [4 x i32], ptr %180, i64 0, i64 2
  %182 = load i32, ptr %181, align 4, !tbaa !9
  %183 = and i32 %182, 229376
  %184 = lshr i32 %183, 15
  %185 = trunc i32 %184 to i8
  %186 = load ptr, ptr %5, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %186, i32 0, i32 18
  store volatile i8 %185, ptr %187, align 4, !tbaa !35
  %188 = load ptr, ptr %5, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %188, i32 0, i32 13
  %190 = load volatile i32, ptr %189, align 4, !tbaa !30
  %191 = add i32 %190, 1
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %192, i32 0, i32 10
  %194 = getelementptr inbounds %struct.HAL_MMC_CardInfoTypeDef, ptr %193, i32 0, i32 3
  store i32 %191, ptr %194, align 4, !tbaa !36
  %195 = load ptr, ptr %5, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %195, i32 0, i32 18
  %197 = load volatile i8, ptr %196, align 4, !tbaa !35
  %198 = zext i8 %197 to i32
  %199 = and i32 %198, 7
  %200 = add i32 %199, 2
  %201 = zext i32 %200 to i64
  %202 = shl i64 1, %201
  %203 = load ptr, ptr %4, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %203, i32 0, i32 10
  %205 = getelementptr inbounds %struct.HAL_MMC_CardInfoTypeDef, ptr %204, i32 0, i32 3
  %206 = load i32, ptr %205, align 4, !tbaa !36
  %207 = zext i32 %206 to i64
  %208 = mul i64 %207, %202
  %209 = trunc i64 %208 to i32
  store i32 %209, ptr %205, align 4, !tbaa !36
  %210 = load ptr, ptr %5, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %210, i32 0, i32 7
  %212 = load volatile i8, ptr %211, align 4, !tbaa !20
  %213 = zext i8 %212 to i32
  %214 = and i32 %213, 15
  %215 = zext i32 %214 to i64
  %216 = shl i64 1, %215
  %217 = trunc i64 %216 to i32
  %218 = load ptr, ptr %4, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %218, i32 0, i32 10
  %220 = getelementptr inbounds %struct.HAL_MMC_CardInfoTypeDef, ptr %219, i32 0, i32 4
  store i32 %217, ptr %220, align 8, !tbaa !37
  %221 = load ptr, ptr %4, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %221, i32 0, i32 10
  %223 = getelementptr inbounds %struct.HAL_MMC_CardInfoTypeDef, ptr %222, i32 0, i32 3
  %224 = load i32, ptr %223, align 4, !tbaa !36
  %225 = load ptr, ptr %4, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %225, i32 0, i32 10
  %227 = getelementptr inbounds %struct.HAL_MMC_CardInfoTypeDef, ptr %226, i32 0, i32 4
  %228 = load i32, ptr %227, align 8, !tbaa !37
  %229 = udiv i32 %228, 512
  %230 = mul i32 %224, %229
  %231 = load ptr, ptr %4, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %231, i32 0, i32 10
  %233 = getelementptr inbounds %struct.HAL_MMC_CardInfoTypeDef, ptr %232, i32 0, i32 5
  store i32 %230, ptr %233, align 4, !tbaa !38
  %234 = load ptr, ptr %4, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %234, i32 0, i32 10
  %236 = getelementptr inbounds %struct.HAL_MMC_CardInfoTypeDef, ptr %235, i32 0, i32 6
  store i32 512, ptr %236, align 8, !tbaa !39
  br label %277

237:                                              ; preds = %121
  %238 = load ptr, ptr %4, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %238, i32 0, i32 10
  %240 = getelementptr inbounds %struct.HAL_MMC_CardInfoTypeDef, ptr %239, i32 0, i32 0
  %241 = load i32, ptr %240, align 8, !tbaa !26
  %242 = icmp eq i32 %241, 1
  br i1 %242, label %243, label %265

243:                                              ; preds = %237
  %244 = load i32, ptr %6, align 4, !tbaa !9
  %245 = load ptr, ptr %4, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %245, i32 0, i32 10
  %247 = getelementptr inbounds %struct.HAL_MMC_CardInfoTypeDef, ptr %246, i32 0, i32 3
  store i32 %244, ptr %247, align 4, !tbaa !36
  %248 = load ptr, ptr %4, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %248, i32 0, i32 10
  %250 = getelementptr inbounds %struct.HAL_MMC_CardInfoTypeDef, ptr %249, i32 0, i32 3
  %251 = load i32, ptr %250, align 4, !tbaa !36
  %252 = load ptr, ptr %4, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %252, i32 0, i32 10
  %254 = getelementptr inbounds %struct.HAL_MMC_CardInfoTypeDef, ptr %253, i32 0, i32 5
  store i32 %251, ptr %254, align 4, !tbaa !38
  %255 = load ptr, ptr %4, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %255, i32 0, i32 10
  %257 = getelementptr inbounds %struct.HAL_MMC_CardInfoTypeDef, ptr %256, i32 0, i32 4
  store i32 512, ptr %257, align 8, !tbaa !37
  %258 = load ptr, ptr %4, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %258, i32 0, i32 10
  %260 = getelementptr inbounds %struct.HAL_MMC_CardInfoTypeDef, ptr %259, i32 0, i32 4
  %261 = load i32, ptr %260, align 8, !tbaa !37
  %262 = load ptr, ptr %4, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %262, i32 0, i32 10
  %264 = getelementptr inbounds %struct.HAL_MMC_CardInfoTypeDef, ptr %263, i32 0, i32 6
  store i32 %261, ptr %264, align 8, !tbaa !39
  br label %276

265:                                              ; preds = %237
  %266 = load ptr, ptr %4, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %266, i32 0, i32 0
  %268 = load ptr, ptr %267, align 8, !tbaa !40
  %269 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %268, i32 0, i32 14
  store volatile i32 534777855, ptr %269, align 4, !tbaa !41
  %270 = load ptr, ptr %4, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %270, i32 0, i32 9
  %272 = load volatile i32, ptr %271, align 4, !tbaa !43
  %273 = or i32 %272, 268435456
  store volatile i32 %273, ptr %271, align 4, !tbaa !43
  %274 = load ptr, ptr %4, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %274, i32 0, i32 8
  store volatile i32 1, ptr %275, align 8, !tbaa !44
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %425

276:                                              ; preds = %243
  br label %277

277:                                              ; preds = %276, %127
  %278 = load ptr, ptr %4, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %278, i32 0, i32 11
  %280 = getelementptr inbounds [4 x i32], ptr %279, i64 0, i64 2
  %281 = load i32, ptr %280, align 4, !tbaa !9
  %282 = and i32 %281, 16384
  %283 = lshr i32 %282, 14
  %284 = trunc i32 %283 to i8
  %285 = load ptr, ptr %5, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %285, i32 0, i32 19
  store volatile i8 %284, ptr %286, align 1, !tbaa !45
  %287 = load ptr, ptr %4, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %287, i32 0, i32 11
  %289 = getelementptr inbounds [4 x i32], ptr %288, i64 0, i64 2
  %290 = load i32, ptr %289, align 4, !tbaa !9
  %291 = and i32 %290, 16256
  %292 = lshr i32 %291, 7
  %293 = trunc i32 %292 to i8
  %294 = load ptr, ptr %5, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %294, i32 0, i32 20
  store volatile i8 %293, ptr %295, align 2, !tbaa !46
  %296 = load ptr, ptr %4, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %296, i32 0, i32 11
  %298 = getelementptr inbounds [4 x i32], ptr %297, i64 0, i64 2
  %299 = load i32, ptr %298, align 4, !tbaa !9
  %300 = and i32 %299, 127
  %301 = trunc i32 %300 to i8
  %302 = load ptr, ptr %5, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %302, i32 0, i32 21
  store volatile i8 %301, ptr %303, align 1, !tbaa !47
  %304 = load ptr, ptr %4, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %304, i32 0, i32 11
  %306 = getelementptr inbounds [4 x i32], ptr %305, i64 0, i64 3
  %307 = load i32, ptr %306, align 4, !tbaa !9
  %308 = and i32 %307, -2147483648
  %309 = lshr i32 %308, 31
  %310 = trunc i32 %309 to i8
  %311 = load ptr, ptr %5, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %311, i32 0, i32 22
  store volatile i8 %310, ptr %312, align 4, !tbaa !48
  %313 = load ptr, ptr %4, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %313, i32 0, i32 11
  %315 = getelementptr inbounds [4 x i32], ptr %314, i64 0, i64 3
  %316 = load i32, ptr %315, align 4, !tbaa !9
  %317 = and i32 %316, 1610612736
  %318 = lshr i32 %317, 29
  %319 = trunc i32 %318 to i8
  %320 = load ptr, ptr %5, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %320, i32 0, i32 23
  store volatile i8 %319, ptr %321, align 1, !tbaa !49
  %322 = load ptr, ptr %4, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %322, i32 0, i32 11
  %324 = getelementptr inbounds [4 x i32], ptr %323, i64 0, i64 3
  %325 = load i32, ptr %324, align 4, !tbaa !9
  %326 = and i32 %325, 469762048
  %327 = lshr i32 %326, 26
  %328 = trunc i32 %327 to i8
  %329 = load ptr, ptr %5, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %329, i32 0, i32 24
  store volatile i8 %328, ptr %330, align 2, !tbaa !50
  %331 = load ptr, ptr %4, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %331, i32 0, i32 11
  %333 = getelementptr inbounds [4 x i32], ptr %332, i64 0, i64 3
  %334 = load i32, ptr %333, align 4, !tbaa !9
  %335 = and i32 %334, 62914560
  %336 = lshr i32 %335, 22
  %337 = trunc i32 %336 to i8
  %338 = load ptr, ptr %5, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %338, i32 0, i32 25
  store volatile i8 %337, ptr %339, align 1, !tbaa !51
  %340 = load ptr, ptr %4, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %340, i32 0, i32 11
  %342 = getelementptr inbounds [4 x i32], ptr %341, i64 0, i64 3
  %343 = load i32, ptr %342, align 4, !tbaa !9
  %344 = and i32 %343, 2097152
  %345 = lshr i32 %344, 21
  %346 = trunc i32 %345 to i8
  %347 = load ptr, ptr %5, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %347, i32 0, i32 26
  store volatile i8 %346, ptr %348, align 4, !tbaa !52
  %349 = load ptr, ptr %5, align 8, !tbaa !5
  %350 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %349, i32 0, i32 27
  store volatile i8 0, ptr %350, align 1, !tbaa !53
  %351 = load ptr, ptr %4, align 8, !tbaa !5
  %352 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %351, i32 0, i32 11
  %353 = getelementptr inbounds [4 x i32], ptr %352, i64 0, i64 3
  %354 = load i32, ptr %353, align 4, !tbaa !9
  %355 = and i32 %354, 65536
  %356 = lshr i32 %355, 16
  %357 = trunc i32 %356 to i8
  %358 = load ptr, ptr %5, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %358, i32 0, i32 28
  store volatile i8 %357, ptr %359, align 2, !tbaa !54
  %360 = load ptr, ptr %4, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %360, i32 0, i32 11
  %362 = getelementptr inbounds [4 x i32], ptr %361, i64 0, i64 3
  %363 = load i32, ptr %362, align 4, !tbaa !9
  %364 = and i32 %363, 32768
  %365 = lshr i32 %364, 15
  %366 = trunc i32 %365 to i8
  %367 = load ptr, ptr %5, align 8, !tbaa !5
  %368 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %367, i32 0, i32 29
  store volatile i8 %366, ptr %368, align 1, !tbaa !55
  %369 = load ptr, ptr %4, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %369, i32 0, i32 11
  %371 = getelementptr inbounds [4 x i32], ptr %370, i64 0, i64 3
  %372 = load i32, ptr %371, align 4, !tbaa !9
  %373 = and i32 %372, 16384
  %374 = lshr i32 %373, 14
  %375 = trunc i32 %374 to i8
  %376 = load ptr, ptr %5, align 8, !tbaa !5
  %377 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %376, i32 0, i32 30
  store volatile i8 %375, ptr %377, align 4, !tbaa !56
  %378 = load ptr, ptr %4, align 8, !tbaa !5
  %379 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %378, i32 0, i32 11
  %380 = getelementptr inbounds [4 x i32], ptr %379, i64 0, i64 3
  %381 = load i32, ptr %380, align 4, !tbaa !9
  %382 = and i32 %381, 8192
  %383 = lshr i32 %382, 13
  %384 = trunc i32 %383 to i8
  %385 = load ptr, ptr %5, align 8, !tbaa !5
  %386 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %385, i32 0, i32 31
  store volatile i8 %384, ptr %386, align 1, !tbaa !57
  %387 = load ptr, ptr %4, align 8, !tbaa !5
  %388 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %387, i32 0, i32 11
  %389 = getelementptr inbounds [4 x i32], ptr %388, i64 0, i64 3
  %390 = load i32, ptr %389, align 4, !tbaa !9
  %391 = and i32 %390, 4096
  %392 = lshr i32 %391, 12
  %393 = trunc i32 %392 to i8
  %394 = load ptr, ptr %5, align 8, !tbaa !5
  %395 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %394, i32 0, i32 32
  store volatile i8 %393, ptr %395, align 2, !tbaa !58
  %396 = load ptr, ptr %4, align 8, !tbaa !5
  %397 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %396, i32 0, i32 11
  %398 = getelementptr inbounds [4 x i32], ptr %397, i64 0, i64 3
  %399 = load i32, ptr %398, align 4, !tbaa !9
  %400 = and i32 %399, 3072
  %401 = lshr i32 %400, 10
  %402 = trunc i32 %401 to i8
  %403 = load ptr, ptr %5, align 8, !tbaa !5
  %404 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %403, i32 0, i32 33
  store volatile i8 %402, ptr %404, align 1, !tbaa !59
  %405 = load ptr, ptr %4, align 8, !tbaa !5
  %406 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %405, i32 0, i32 11
  %407 = getelementptr inbounds [4 x i32], ptr %406, i64 0, i64 3
  %408 = load i32, ptr %407, align 4, !tbaa !9
  %409 = and i32 %408, 768
  %410 = lshr i32 %409, 8
  %411 = trunc i32 %410 to i8
  %412 = load ptr, ptr %5, align 8, !tbaa !5
  %413 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %412, i32 0, i32 34
  store volatile i8 %411, ptr %413, align 4, !tbaa !60
  %414 = load ptr, ptr %4, align 8, !tbaa !5
  %415 = getelementptr inbounds %struct.MMC_HandleTypeDef, ptr %414, i32 0, i32 11
  %416 = getelementptr inbounds [4 x i32], ptr %415, i64 0, i64 3
  %417 = load i32, ptr %416, align 4, !tbaa !9
  %418 = and i32 %417, 254
  %419 = lshr i32 %418, 1
  %420 = trunc i32 %419 to i8
  %421 = load ptr, ptr %5, align 8, !tbaa !5
  %422 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %421, i32 0, i32 35
  store volatile i8 %420, ptr %422, align 1, !tbaa !61
  %423 = load ptr, ptr %5, align 8, !tbaa !5
  %424 = getelementptr inbounds %struct.HAL_MMC_CardCSDTypeDef, ptr %423, i32 0, i32 36
  store volatile i8 1, ptr %424, align 2, !tbaa !62
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %425

425:                                              ; preds = %277, %265, %120
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #2
  %426 = load i32, ptr %3, align 4
  ret i32 %426
}

; Function Attrs: nounwind uwtable
declare hidden i32 @MMC_ReadExtCSD(ptr noundef, ptr noundef, i32 noundef) #1

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 = { 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, !7, i64 0}
!12 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !13, i64 6, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !7, i64 12, !7, i64 13, !10, i64 16, !7, i64 20, !7, i64 21, !7, i64 22, !7, i64 23, !7, i64 24, !7, i64 25, !7, i64 26, !7, i64 27, !7, i64 28, !7, i64 29, !7, i64 30, !7, i64 31, !7, i64 32, !7, i64 33, !7, i64 34, !7, i64 35, !7, i64 36, !7, i64 37, !7, i64 38, !7, i64 39, !7, i64 40, !7, i64 41, !7, i64 42}
!13 = !{!"short", !7, i64 0}
!14 = !{!12, !7, i64 1}
!15 = !{!12, !7, i64 2}
!16 = !{!12, !7, i64 3}
!17 = !{!12, !7, i64 4}
!18 = !{!12, !7, i64 5}
!19 = !{!12, !13, i64 6}
!20 = !{!12, !7, i64 8}
!21 = !{!12, !7, i64 9}
!22 = !{!12, !7, i64 10}
!23 = !{!12, !7, i64 11}
!24 = !{!12, !7, i64 12}
!25 = !{!12, !7, i64 13}
!26 = !{!27, !10, i64 72}
!27 = !{!"", !6, i64 0, !28, 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, !29, i64 72, !7, i64 100, !7, i64 116, !7, i64 132}
!28 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!29 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24}
!30 = !{!12, !10, i64 16}
!31 = !{!12, !7, i64 20}
!32 = !{!12, !7, i64 21}
!33 = !{!12, !7, i64 22}
!34 = !{!12, !7, i64 23}
!35 = !{!12, !7, i64 24}
!36 = !{!27, !10, i64 84}
!37 = !{!27, !10, i64 88}
!38 = !{!27, !10, i64 92}
!39 = !{!27, !10, i64 96}
!40 = !{!27, !6, i64 0}
!41 = !{!42, !10, i64 56}
!42 = !{!"", !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}
!43 = !{!27, !10, i64 68}
!44 = !{!27, !10, i64 64}
!45 = !{!12, !7, i64 25}
!46 = !{!12, !7, i64 26}
!47 = !{!12, !7, i64 27}
!48 = !{!12, !7, i64 28}
!49 = !{!12, !7, i64 29}
!50 = !{!12, !7, i64 30}
!51 = !{!12, !7, i64 31}
!52 = !{!12, !7, i64 32}
!53 = !{!12, !7, i64 33}
!54 = !{!12, !7, i64 34}
!55 = !{!12, !7, i64 35}
!56 = !{!12, !7, i64 36}
!57 = !{!12, !7, i64 37}
!58 = !{!12, !7, i64 38}
!59 = !{!12, !7, i64 39}
!60 = !{!12, !7, i64 40}
!61 = !{!12, !7, i64 41}
!62 = !{!12, !7, i64 42}


; 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress 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 range(i32 0, 2) i32 @HAL_MMC_GetCardCSD(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #2
  store i32 0, ptr %3, align 4, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 100
  %5 = load i32, ptr %4, align 4, !tbaa !5
  %6 = lshr i32 %5, 30
  %7 = trunc nuw nsw i32 %6 to i8
  store volatile i8 %7, ptr %1, align 4, !tbaa !9
  %8 = lshr i32 %5, 26
  %9 = trunc nuw nsw i32 %8 to i8
  %10 = and i8 %9, 15
  %11 = getelementptr inbounds i8, ptr %1, i64 1
  store volatile i8 %10, ptr %11, align 1, !tbaa !12
  %12 = lshr i32 %5, 24
  %13 = trunc nuw i32 %12 to i8
  %14 = and i8 %13, 3
  %15 = getelementptr inbounds i8, ptr %1, i64 2
  store volatile i8 %14, ptr %15, align 2, !tbaa !13
  %16 = lshr i32 %5, 16
  %17 = trunc i32 %16 to i8
  %18 = getelementptr inbounds i8, ptr %1, i64 3
  store volatile i8 %17, ptr %18, align 1, !tbaa !14
  %19 = lshr i32 %5, 8
  %20 = trunc i32 %19 to i8
  %21 = getelementptr inbounds i8, ptr %1, i64 4
  store volatile i8 %20, ptr %21, align 4, !tbaa !15
  %22 = trunc i32 %5 to i8
  %23 = getelementptr inbounds i8, ptr %1, i64 5
  store volatile i8 %22, ptr %23, align 1, !tbaa !16
  %24 = getelementptr inbounds i8, ptr %0, i64 104
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %26 = lshr i32 %25, 20
  %27 = trunc nuw nsw i32 %26 to i16
  %28 = getelementptr inbounds i8, ptr %1, i64 6
  store volatile i16 %27, ptr %28, align 2, !tbaa !17
  %29 = lshr i32 %25, 16
  %30 = trunc i32 %29 to i8
  %31 = and i8 %30, 15
  %32 = getelementptr inbounds i8, ptr %1, i64 8
  store volatile i8 %31, ptr %32, align 4, !tbaa !18
  %33 = lshr i32 %25, 15
  %34 = trunc i32 %33 to i8
  %35 = and i8 %34, 1
  %36 = getelementptr inbounds i8, ptr %1, i64 9
  store volatile i8 %35, ptr %36, align 1, !tbaa !19
  %37 = lshr i32 %25, 14
  %38 = trunc i32 %37 to i8
  %39 = and i8 %38, 1
  %40 = getelementptr inbounds i8, ptr %1, i64 10
  store volatile i8 %39, ptr %40, align 2, !tbaa !20
  %41 = lshr i32 %25, 13
  %42 = trunc i32 %41 to i8
  %43 = and i8 %42, 1
  %44 = getelementptr inbounds i8, ptr %1, i64 11
  store volatile i8 %43, ptr %44, align 1, !tbaa !21
  %45 = lshr i32 %25, 12
  %46 = trunc i32 %45 to i8
  %47 = and i8 %46, 1
  %48 = getelementptr inbounds i8, ptr %1, i64 12
  store volatile i8 %47, ptr %48, align 4, !tbaa !22
  %49 = getelementptr inbounds i8, ptr %1, i64 13
  store volatile i8 0, ptr %49, align 1, !tbaa !23
  %50 = call i32 @MMC_ReadExtCSD(ptr noundef %0, ptr noundef nonnull %3, i32 noundef 268435455)
  %.not = icmp eq i32 %50, 0
  br i1 %.not, label %51, label %180

51:                                               ; preds = %2
  %52 = getelementptr inbounds i8, ptr %0, i64 72
  %53 = load i32, ptr %52, align 8, !tbaa !24
  switch i32 %53, label %106 [
    i32 0, label %54
    i32 1, label %100
  ]

54:                                               ; preds = %51
  %55 = load i32, ptr %24, align 4, !tbaa !5
  %56 = shl i32 %55, 2
  %57 = and i32 %56, 4092
  %58 = getelementptr inbounds i8, ptr %0, i64 108
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = lshr i32 %59, 30
  %61 = or disjoint i32 %57, %60
  %62 = getelementptr inbounds i8, ptr %1, i64 16
  store volatile i32 %61, ptr %62, align 4, !tbaa !29
  %63 = load i32, ptr %58, align 4, !tbaa !5
  %64 = lshr i32 %63, 27
  %65 = trunc nuw nsw i32 %64 to i8
  %66 = and i8 %65, 7
  %67 = getelementptr inbounds i8, ptr %1, i64 20
  store volatile i8 %66, ptr %67, align 4, !tbaa !30
  %68 = lshr i32 %63, 24
  %69 = trunc nuw i32 %68 to i8
  %70 = and i8 %69, 7
  %71 = getelementptr inbounds i8, ptr %1, i64 21
  store volatile i8 %70, ptr %71, align 1, !tbaa !31
  %72 = lshr i32 %63, 21
  %73 = trunc i32 %72 to i8
  %74 = and i8 %73, 7
  %75 = getelementptr inbounds i8, ptr %1, i64 22
  store volatile i8 %74, ptr %75, align 2, !tbaa !32
  %76 = lshr i32 %63, 18
  %77 = trunc i32 %76 to i8
  %78 = and i8 %77, 7
  %79 = getelementptr inbounds i8, ptr %1, i64 23
  store volatile i8 %78, ptr %79, align 1, !tbaa !33
  %80 = lshr i32 %63, 15
  %81 = trunc i32 %80 to i8
  %82 = and i8 %81, 7
  %83 = getelementptr inbounds i8, ptr %1, i64 24
  store volatile i8 %82, ptr %83, align 4, !tbaa !34
  %84 = load volatile i32, ptr %62, align 4, !tbaa !29
  %85 = add i32 %84, 1
  %86 = getelementptr inbounds i8, ptr %0, i64 84
  %87 = load volatile i8, ptr %83, align 4, !tbaa !34
  %88 = and i8 %87, 7
  %narrow = add nuw nsw i8 %88, 2
  %89 = zext nneg i8 %narrow to i32
  %90 = shl i32 %85, %89
  store i32 %90, ptr %86, align 4, !tbaa !35
  %91 = load volatile i8, ptr %32, align 4, !tbaa !18
  %92 = and i8 %91, 15
  %93 = zext nneg i8 %92 to i32
  %94 = shl nuw nsw i32 1, %93
  %95 = getelementptr inbounds i8, ptr %0, i64 88
  store i32 %94, ptr %95, align 8, !tbaa !36
  %96 = lshr i32 %94, 9
  %97 = mul i32 %96, %90
  %98 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 %97, ptr %98, align 4, !tbaa !37
  %99 = getelementptr inbounds i8, ptr %0, i64 96
  store i32 512, ptr %99, align 8, !tbaa !38
  br label %113

100:                                              ; preds = %51
  %101 = load i32, ptr %3, align 4, !tbaa !5
  %102 = getelementptr inbounds i8, ptr %0, i64 84
  store i32 %101, ptr %102, align 4, !tbaa !35
  %103 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 %101, ptr %103, align 4, !tbaa !37
  %104 = getelementptr inbounds i8, ptr %0, i64 88
  store i32 512, ptr %104, align 8, !tbaa !36
  %105 = getelementptr inbounds i8, ptr %0, i64 96
  store i32 512, ptr %105, align 8, !tbaa !38
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 108
  %.pre = load i32, ptr %.phi.trans.insert, align 4, !tbaa !5
  br label %113

106:                                              ; preds = %51
  %107 = load ptr, ptr %0, align 8, !tbaa !39
  %108 = getelementptr inbounds i8, ptr %107, i64 56
  store volatile i32 534777855, ptr %108, align 4, !tbaa !40
  %109 = getelementptr inbounds i8, ptr %0, i64 68
  %110 = load volatile i32, ptr %109, align 4, !tbaa !42
  %111 = or i32 %110, 268435456
  store volatile i32 %111, ptr %109, align 4, !tbaa !42
  %112 = getelementptr inbounds i8, ptr %0, i64 64
  store volatile i32 1, ptr %112, align 8, !tbaa !43
  br label %180

113:                                              ; preds = %100, %54
  %114 = phi i32 [ %.pre, %100 ], [ %63, %54 ]
  %115 = lshr i32 %114, 14
  %116 = trunc i32 %115 to i8
  %117 = and i8 %116, 1
  %118 = getelementptr inbounds i8, ptr %1, i64 25
  store volatile i8 %117, ptr %118, align 1, !tbaa !44
  %119 = lshr i32 %114, 7
  %120 = trunc i32 %119 to i8
  %121 = and i8 %120, 127
  %122 = getelementptr inbounds i8, ptr %1, i64 26
  store volatile i8 %121, ptr %122, align 2, !tbaa !45
  %123 = trunc i32 %114 to i8
  %124 = and i8 %123, 127
  %125 = getelementptr inbounds i8, ptr %1, i64 27
  store volatile i8 %124, ptr %125, align 1, !tbaa !46
  %126 = getelementptr inbounds i8, ptr %0, i64 112
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %128 = lshr i32 %127, 31
  %129 = trunc nuw nsw i32 %128 to i8
  %130 = getelementptr inbounds i8, ptr %1, i64 28
  store volatile i8 %129, ptr %130, align 4, !tbaa !47
  %131 = lshr i32 %127, 29
  %132 = trunc nuw nsw i32 %131 to i8
  %133 = and i8 %132, 3
  %134 = getelementptr inbounds i8, ptr %1, i64 29
  store volatile i8 %133, ptr %134, align 1, !tbaa !48
  %135 = lshr i32 %127, 26
  %136 = trunc nuw nsw i32 %135 to i8
  %137 = and i8 %136, 7
  %138 = getelementptr inbounds i8, ptr %1, i64 30
  store volatile i8 %137, ptr %138, align 2, !tbaa !49
  %139 = lshr i32 %127, 22
  %140 = trunc i32 %139 to i8
  %141 = and i8 %140, 15
  %142 = getelementptr inbounds i8, ptr %1, i64 31
  store volatile i8 %141, ptr %142, align 1, !tbaa !50
  %143 = lshr i32 %127, 21
  %144 = trunc i32 %143 to i8
  %145 = and i8 %144, 1
  %146 = getelementptr inbounds i8, ptr %1, i64 32
  store volatile i8 %145, ptr %146, align 4, !tbaa !51
  %147 = getelementptr inbounds i8, ptr %1, i64 33
  store volatile i8 0, ptr %147, align 1, !tbaa !52
  %148 = lshr i32 %127, 16
  %149 = trunc i32 %148 to i8
  %150 = and i8 %149, 1
  %151 = getelementptr inbounds i8, ptr %1, i64 34
  store volatile i8 %150, ptr %151, align 2, !tbaa !53
  %152 = lshr i32 %127, 15
  %153 = trunc i32 %152 to i8
  %154 = and i8 %153, 1
  %155 = getelementptr inbounds i8, ptr %1, i64 35
  store volatile i8 %154, ptr %155, align 1, !tbaa !54
  %156 = lshr i32 %127, 14
  %157 = trunc i32 %156 to i8
  %158 = and i8 %157, 1
  %159 = getelementptr inbounds i8, ptr %1, i64 36
  store volatile i8 %158, ptr %159, align 4, !tbaa !55
  %160 = lshr i32 %127, 13
  %161 = trunc i32 %160 to i8
  %162 = and i8 %161, 1
  %163 = getelementptr inbounds i8, ptr %1, i64 37
  store volatile i8 %162, ptr %163, align 1, !tbaa !56
  %164 = lshr i32 %127, 12
  %165 = trunc i32 %164 to i8
  %166 = and i8 %165, 1
  %167 = getelementptr inbounds i8, ptr %1, i64 38
  store volatile i8 %166, ptr %167, align 2, !tbaa !57
  %168 = lshr i32 %127, 10
  %169 = trunc i32 %168 to i8
  %170 = and i8 %169, 3
  %171 = getelementptr inbounds i8, ptr %1, i64 39
  store volatile i8 %170, ptr %171, align 1, !tbaa !58
  %172 = lshr i32 %127, 8
  %173 = trunc i32 %172 to i8
  %174 = and i8 %173, 3
  %175 = getelementptr inbounds i8, ptr %1, i64 40
  store volatile i8 %174, ptr %175, align 4, !tbaa !59
  %176 = trunc i32 %127 to i8
  %177 = lshr i8 %176, 1
  %178 = getelementptr inbounds i8, ptr %1, i64 41
  store volatile i8 %177, ptr %178, align 1, !tbaa !60
  %179 = getelementptr inbounds i8, ptr %1, i64 42
  store volatile i8 1, ptr %179, align 2, !tbaa !61
  br label %180

180:                                              ; preds = %2, %113, %106
  %.0 = phi i32 [ 0, %113 ], [ 1, %106 ], [ 1, %2 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #2
  ret i32 %.0
}

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

attributes #0 = { mustprogress 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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !7, i64 0}
!10 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !11, i64 6, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !7, i64 12, !7, i64 13, !6, i64 16, !7, i64 20, !7, i64 21, !7, i64 22, !7, i64 23, !7, i64 24, !7, i64 25, !7, i64 26, !7, i64 27, !7, i64 28, !7, i64 29, !7, i64 30, !7, i64 31, !7, i64 32, !7, i64 33, !7, i64 34, !7, i64 35, !7, i64 36, !7, i64 37, !7, i64 38, !7, i64 39, !7, i64 40, !7, i64 41, !7, i64 42}
!11 = !{!"short", !7, i64 0}
!12 = !{!10, !7, i64 1}
!13 = !{!10, !7, i64 2}
!14 = !{!10, !7, i64 3}
!15 = !{!10, !7, i64 4}
!16 = !{!10, !7, i64 5}
!17 = !{!10, !11, i64 6}
!18 = !{!10, !7, i64 8}
!19 = !{!10, !7, i64 9}
!20 = !{!10, !7, i64 10}
!21 = !{!10, !7, i64 11}
!22 = !{!10, !7, i64 12}
!23 = !{!10, !7, i64 13}
!24 = !{!25, !6, i64 72}
!25 = !{!"", !26, i64 0, !27, i64 8, !6, i64 28, !26, i64 32, !6, i64 40, !26, i64 48, !6, i64 56, !6, i64 60, !6, i64 64, !6, i64 68, !28, i64 72, !7, i64 100, !7, i64 116, !7, i64 132}
!26 = !{!"any pointer", !7, i64 0}
!27 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16}
!28 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24}
!29 = !{!10, !6, i64 16}
!30 = !{!10, !7, i64 20}
!31 = !{!10, !7, i64 21}
!32 = !{!10, !7, i64 22}
!33 = !{!10, !7, i64 23}
!34 = !{!10, !7, i64 24}
!35 = !{!25, !6, i64 84}
!36 = !{!25, !6, i64 88}
!37 = !{!25, !6, i64 92}
!38 = !{!25, !6, i64 96}
!39 = !{!25, !26, i64 0}
!40 = !{!41, !6, i64 56}
!41 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !6, i64 56, !6, i64 60, !6, i64 64, !7, i64 68, !6, i64 80, !6, i64 84, !6, i64 88, !6, i64 92, !7, i64 96, !6, i64 128, !7, i64 132, !6, i64 1020}
!42 = !{!25, !6, i64 68}
!43 = !{!25, !6, i64 64}
!44 = !{!10, !7, i64 25}
!45 = !{!10, !7, i64 26}
!46 = !{!10, !7, i64 27}
!47 = !{!10, !7, i64 28}
!48 = !{!10, !7, i64 29}
!49 = !{!10, !7, i64 30}
!50 = !{!10, !7, i64 31}
!51 = !{!10, !7, i64 32}
!52 = !{!10, !7, i64 33}
!53 = !{!10, !7, i64 34}
!54 = !{!10, !7, i64 35}
!55 = !{!10, !7, i64 36}
!56 = !{!10, !7, i64 37}
!57 = !{!10, !7, i64 38}
!58 = !{!10, !7, i64 39}
!59 = !{!10, !7, i64 40}
!60 = !{!10, !7, i64 41}
!61 = !{!10, !7, i64 42}


; Effective O3 passes: BDCEPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass