; LLVM IR from lfarcaro/ARINC653_ARMV7A_Z7000 :: ARINC653_ARMV7A_Z7000.sw/ARINC653_ARMV7A_Z7000_bsp/ps7_cortexa9_0/libsrc/sdps_v3_6 (SdCardInitialize)

; 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.XSdPs = type { %struct.XSdPs_Config, i32, i32, i32, i32, i8, i8, i8, i8, i32, i8, [4 x i32], i32, [4 x i32], i32, i32, i32, ptr, [8 x i8], [32 x %struct.XSdPs_Adma2Descriptor], i64, [24 x i8] }
%struct.XSdPs_Config = type { i16, i32, i32, i32, i32, i32, i32, i32, i8 }
%struct.XSdPs_Adma2Descriptor = type <{ i16, i16, i64 }>

@Xil_AssertStatus = external global i32, align 4
@.str = external hidden unnamed_addr constant [159 x i8], align 1

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

declare void @Xil_Assert(ptr noundef, i32 noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @XSdPs_ReadReg16(i32 noundef, i8 noundef zeroext) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @XSdPs_WriteReg8(i32 noundef, i8 noundef zeroext, i8 noundef zeroext) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @XSdPs_ReadReg8(i32 noundef, i8 noundef zeroext) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @Xil_In32(i64 noundef) #2

; 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 @XSdPs_SdCardInitialize(ptr noundef %0) #3 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca [4 x i32], align 16
  %8 = alloca i32, align 4
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %17

16:                                               ; preds = %1
  store i32 0, ptr @Xil_AssertStatus, align 4, !tbaa !9
  br label %18

17:                                               ; preds = %1
  call void @Xil_Assert(ptr noundef @.str, i32 noundef 359)
  store i32 1, ptr @Xil_AssertStatus, align 4, !tbaa !9
  store i32 0, ptr %2, align 4
  store i32 1, ptr %13, align 4
  br label %349

18:                                               ; preds = %16
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.XSdPs, ptr %19, i32 0, i32 1
  %21 = load i32, ptr %20, align 4, !tbaa !11
  %22 = icmp eq i32 %21, 286331153
  br i1 %22, label %23, label %24

23:                                               ; preds = %18
  store i32 0, ptr @Xil_AssertStatus, align 4, !tbaa !9
  br label %25

24:                                               ; preds = %18
  call void @Xil_Assert(ptr noundef @.str, i32 noundef 360)
  store i32 1, ptr @Xil_AssertStatus, align 4, !tbaa !9
  store i32 0, ptr %2, align 4
  store i32 1, ptr %13, align 4
  br label %349

25:                                               ; preds = %23
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.XSdPs, ptr %26, i32 0, i32 0
  %28 = getelementptr inbounds %struct.XSdPs_Config, ptr %27, i32 0, i32 5
  store i32 4, ptr %28, align 4, !tbaa !16
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.XSdPs, ptr %29, i32 0, i32 7
  %31 = load i8, ptr %30, align 2, !tbaa !17
  %32 = zext i8 %31 to i32
  %33 = icmp ne i32 %32, 2
  br i1 %33, label %40, label %34

34:                                               ; preds = %25
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.XSdPs, ptr %35, i32 0, i32 2
  %37 = load i32, ptr %36, align 8, !tbaa !18
  %38 = and i32 %37, -1073741824
  %39 = icmp ne i32 %38, 1073741824
  br i1 %39, label %40, label %60

40:                                               ; preds = %34, %25
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.XSdPs, ptr %41, i32 0, i32 0
  %43 = getelementptr inbounds %struct.XSdPs_Config, ptr %42, i32 0, i32 3
  %44 = load i32, ptr %43, align 4, !tbaa !19
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %46, label %59

46:                                               ; preds = %40
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.XSdPs, ptr %47, i32 0, i32 0
  %49 = getelementptr inbounds %struct.XSdPs_Config, ptr %48, i32 0, i32 1
  %50 = load i32, ptr %49, align 4, !tbaa !20
  %51 = add i32 %50, 36
  %52 = zext i32 %51 to i64
  %53 = call i32 @Xil_In32(i64 noundef %52)
  store i32 %53, ptr %4, align 4, !tbaa !9
  %54 = load i32, ptr %4, align 4, !tbaa !9
  %55 = and i32 %54, 65536
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %57, label %58

57:                                               ; preds = %46
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %347

58:                                               ; preds = %46
  br label %59

59:                                               ; preds = %58, %40
  br label %60

60:                                               ; preds = %59, %34
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = call i32 @XSdPs_CmdTransfer(ptr noundef %61, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  store i32 %62, ptr %5, align 4, !tbaa !9
  %63 = load i32, ptr %5, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = icmp ne i64 %64, 0
  br i1 %65, label %66, label %67

66:                                               ; preds = %60
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %347

67:                                               ; preds = %60
  %68 = load ptr, ptr %3, align 8, !tbaa !5
  %69 = call i32 @XSdPs_CmdTransfer(ptr noundef %68, i32 noundef 2048, i32 noundef 426, i32 noundef 0)
  store i32 %69, ptr %5, align 4, !tbaa !9
  %70 = load i32, ptr %5, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = icmp ne i64 %71, 0
  br i1 %72, label %73, label %77

73:                                               ; preds = %67
  %74 = load i32, ptr %5, align 4, !tbaa !9
  %75 = icmp ne i32 %74, 2
  br i1 %75, label %76, label %77

76:                                               ; preds = %73
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %347

77:                                               ; preds = %73, %67
  %78 = load i32, ptr %5, align 4, !tbaa !9
  %79 = icmp eq i32 %78, 2
  br i1 %79, label %80, label %102

80:                                               ; preds = %77
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.XSdPs, ptr %81, i32 0, i32 0
  %83 = getelementptr inbounds %struct.XSdPs_Config, ptr %82, i32 0, i32 1
  %84 = load i32, ptr %83, align 4, !tbaa !20
  call void @XSdPs_WriteReg8(i32 noundef %84, i8 noundef zeroext 47, i8 noundef zeroext 2)
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.XSdPs, ptr %85, i32 0, i32 0
  %87 = getelementptr inbounds %struct.XSdPs_Config, ptr %86, i32 0, i32 1
  %88 = load i32, ptr %87, align 4, !tbaa !20
  %89 = call zeroext i8 @XSdPs_ReadReg8(i32 noundef %88, i8 noundef zeroext 47)
  store i8 %89, ptr %9, align 1, !tbaa !21
  br label %90

90:                                               ; preds = %95, %80
  %91 = load i8, ptr %9, align 1, !tbaa !21
  %92 = zext i8 %91 to i32
  %93 = and i32 %92, 2
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %101

95:                                               ; preds = %90
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.XSdPs, ptr %96, i32 0, i32 0
  %98 = getelementptr inbounds %struct.XSdPs_Config, ptr %97, i32 0, i32 1
  %99 = load i32, ptr %98, align 4, !tbaa !20
  %100 = call zeroext i8 @XSdPs_ReadReg8(i32 noundef %99, i8 noundef zeroext 47)
  store i8 %100, ptr %9, align 1, !tbaa !21
  br label %90, !llvm.loop !22

101:                                              ; preds = %90
  br label %102

102:                                              ; preds = %101, %77
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.XSdPs, ptr %103, i32 0, i32 0
  %105 = getelementptr inbounds %struct.XSdPs_Config, ptr %104, i32 0, i32 1
  %106 = load i32, ptr %105, align 4, !tbaa !20
  %107 = add i32 %106, 16
  %108 = zext i32 %107 to i64
  %109 = call i32 @Xil_In32(i64 noundef %108)
  store i32 %109, ptr %6, align 4, !tbaa !9
  %110 = load i32, ptr %6, align 4, !tbaa !9
  %111 = icmp ne i32 %110, 426
  br i1 %111, label %112, label %115

112:                                              ; preds = %102
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.XSdPs, ptr %113, i32 0, i32 6
  store i8 1, ptr %114, align 1, !tbaa !24
  br label %118

115:                                              ; preds = %102
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.XSdPs, ptr %116, i32 0, i32 6
  store i8 2, ptr %117, align 1, !tbaa !24
  br label %118

118:                                              ; preds = %115, %112
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %119

119:                                              ; preds = %153, %118
  %120 = load i32, ptr %6, align 4, !tbaa !9
  %121 = and i32 %120, -2147483648
  %122 = icmp eq i32 %121, 0
  br i1 %122, label %123, label %161

123:                                              ; preds = %119
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  %125 = call i32 @XSdPs_CmdTransfer(ptr noundef %124, i32 noundef 14080, i32 noundef 0, i32 noundef 0)
  store i32 %125, ptr %5, align 4, !tbaa !9
  %126 = load i32, ptr %5, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  %128 = icmp ne i64 %127, 0
  br i1 %128, label %129, label %130

129:                                              ; preds = %123
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %347

130:                                              ; preds = %123
  store i32 1090486272, ptr %8, align 4, !tbaa !9
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.XSdPs, ptr %131, i32 0, i32 7
  %133 = load i8, ptr %132, align 2, !tbaa !17
  %134 = zext i8 %133 to i32
  %135 = icmp eq i32 %134, 2
  br i1 %135, label %136, label %145

136:                                              ; preds = %130
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.XSdPs, ptr %137, i32 0, i32 0
  %139 = getelementptr inbounds %struct.XSdPs_Config, ptr %138, i32 0, i32 5
  %140 = load i32, ptr %139, align 4, !tbaa !16
  %141 = icmp eq i32 %140, 8
  br i1 %141, label %142, label %145

142:                                              ; preds = %136
  %143 = load i32, ptr %8, align 4, !tbaa !9
  %144 = or i32 %143, 16777216
  store i32 %144, ptr %8, align 4, !tbaa !9
  br label %145

145:                                              ; preds = %142, %136, %130
  %146 = load ptr, ptr %3, align 8, !tbaa !5
  %147 = load i32, ptr %8, align 4, !tbaa !9
  %148 = call i32 @XSdPs_CmdTransfer(ptr noundef %146, i32 noundef 43264, i32 noundef %147, i32 noundef 0)
  store i32 %148, ptr %5, align 4, !tbaa !9
  %149 = load i32, ptr %5, align 4, !tbaa !9
  %150 = sext i32 %149 to i64
  %151 = icmp ne i64 %150, 0
  br i1 %151, label %152, label %153

152:                                              ; preds = %145
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %347

153:                                              ; preds = %145
  %154 = load ptr, ptr %3, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.XSdPs, ptr %154, i32 0, i32 0
  %156 = getelementptr inbounds %struct.XSdPs_Config, ptr %155, i32 0, i32 1
  %157 = load i32, ptr %156, align 4, !tbaa !20
  %158 = add i32 %157, 16
  %159 = zext i32 %158 to i64
  %160 = call i32 @Xil_In32(i64 noundef %159)
  store i32 %160, ptr %6, align 4, !tbaa !9
  br label %119, !llvm.loop !25

161:                                              ; preds = %119
  %162 = load i32, ptr %6, align 4, !tbaa !9
  %163 = and i32 %162, 1073741824
  %164 = icmp ne i32 %163, 0
  br i1 %164, label %165, label %168

165:                                              ; preds = %161
  %166 = load ptr, ptr %3, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.XSdPs, ptr %166, i32 0, i32 4
  store i32 1, ptr %167, align 16, !tbaa !26
  br label %168

168:                                              ; preds = %165, %161
  %169 = load i32, ptr %6, align 4, !tbaa !9
  %170 = and i32 %169, 16777216
  %171 = icmp ne i32 %170, 0
  br i1 %171, label %172, label %182

172:                                              ; preds = %168
  %173 = load ptr, ptr %3, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.XSdPs, ptr %173, i32 0, i32 10
  store i8 1, ptr %174, align 4, !tbaa !27
  %175 = load ptr, ptr %3, align 8, !tbaa !5
  %176 = call i32 @XSdPs_Switch_Voltage(ptr noundef %175)
  store i32 %176, ptr %5, align 4, !tbaa !9
  %177 = load i32, ptr %5, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = icmp ne i64 %178, 0
  br i1 %179, label %180, label %181

180:                                              ; preds = %172
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %347

181:                                              ; preds = %172
  br label %182

182:                                              ; preds = %181, %168
  %183 = load ptr, ptr %3, align 8, !tbaa !5
  %184 = call i32 @XSdPs_CmdTransfer(ptr noundef %183, i32 noundef 512, i32 noundef 0, i32 noundef 0)
  store i32 %184, ptr %5, align 4, !tbaa !9
  %185 = load i32, ptr %5, align 4, !tbaa !9
  %186 = sext i32 %185 to i64
  %187 = icmp ne i64 %186, 0
  br i1 %187, label %188, label %189

188:                                              ; preds = %182
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %347

189:                                              ; preds = %182
  %190 = load ptr, ptr %3, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.XSdPs, ptr %190, i32 0, i32 0
  %192 = getelementptr inbounds %struct.XSdPs_Config, ptr %191, i32 0, i32 1
  %193 = load i32, ptr %192, align 4, !tbaa !20
  %194 = call zeroext i16 @XSdPs_ReadReg16(i32 noundef %193, i8 noundef zeroext 16)
  %195 = zext i16 %194 to i32
  %196 = load ptr, ptr %3, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.XSdPs, ptr %196, i32 0, i32 11
  %198 = getelementptr inbounds [4 x i32], ptr %197, i64 0, i64 0
  store i32 %195, ptr %198, align 32, !tbaa !9
  %199 = load ptr, ptr %3, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.XSdPs, ptr %199, i32 0, i32 0
  %201 = getelementptr inbounds %struct.XSdPs_Config, ptr %200, i32 0, i32 1
  %202 = load i32, ptr %201, align 4, !tbaa !20
  %203 = call zeroext i16 @XSdPs_ReadReg16(i32 noundef %202, i8 noundef zeroext 20)
  %204 = zext i16 %203 to i32
  %205 = load ptr, ptr %3, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.XSdPs, ptr %205, i32 0, i32 11
  %207 = getelementptr inbounds [4 x i32], ptr %206, i64 0, i64 1
  store i32 %204, ptr %207, align 4, !tbaa !9
  %208 = load ptr, ptr %3, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.XSdPs, ptr %208, i32 0, i32 0
  %210 = getelementptr inbounds %struct.XSdPs_Config, ptr %209, i32 0, i32 1
  %211 = load i32, ptr %210, align 4, !tbaa !20
  %212 = call zeroext i16 @XSdPs_ReadReg16(i32 noundef %211, i8 noundef zeroext 24)
  %213 = zext i16 %212 to i32
  %214 = load ptr, ptr %3, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.XSdPs, ptr %214, i32 0, i32 11
  %216 = getelementptr inbounds [4 x i32], ptr %215, i64 0, i64 2
  store i32 %213, ptr %216, align 8, !tbaa !9
  %217 = load ptr, ptr %3, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.XSdPs, ptr %217, i32 0, i32 0
  %219 = getelementptr inbounds %struct.XSdPs_Config, ptr %218, i32 0, i32 1
  %220 = load i32, ptr %219, align 4, !tbaa !20
  %221 = call zeroext i16 @XSdPs_ReadReg16(i32 noundef %220, i8 noundef zeroext 28)
  %222 = zext i16 %221 to i32
  %223 = load ptr, ptr %3, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.XSdPs, ptr %223, i32 0, i32 11
  %225 = getelementptr inbounds [4 x i32], ptr %224, i64 0, i64 3
  store i32 %222, ptr %225, align 4, !tbaa !9
  br label %226

226:                                              ; preds = %244, %189
  %227 = load ptr, ptr %3, align 8, !tbaa !5
  %228 = call i32 @XSdPs_CmdTransfer(ptr noundef %227, i32 noundef 768, i32 noundef 0, i32 noundef 0)
  store i32 %228, ptr %5, align 4, !tbaa !9
  %229 = load i32, ptr %5, align 4, !tbaa !9
  %230 = sext i32 %229 to i64
  %231 = icmp ne i64 %230, 0
  br i1 %231, label %232, label %233

232:                                              ; preds = %226
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %347

233:                                              ; preds = %226
  %234 = load ptr, ptr %3, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.XSdPs, ptr %234, i32 0, i32 0
  %236 = getelementptr inbounds %struct.XSdPs_Config, ptr %235, i32 0, i32 1
  %237 = load i32, ptr %236, align 4, !tbaa !20
  %238 = add i32 %237, 16
  %239 = zext i32 %238 to i64
  %240 = call i32 @Xil_In32(i64 noundef %239)
  %241 = and i32 %240, -65536
  %242 = load ptr, ptr %3, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.XSdPs, ptr %242, i32 0, i32 12
  store i32 %241, ptr %243, align 16, !tbaa !28
  br label %244

244:                                              ; preds = %233
  %245 = load ptr, ptr %3, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.XSdPs, ptr %245, i32 0, i32 12
  %247 = load i32, ptr %246, align 16, !tbaa !28
  %248 = icmp eq i32 %247, 0
  br i1 %248, label %226, label %249, !llvm.loop !29

249:                                              ; preds = %244
  %250 = load ptr, ptr %3, align 8, !tbaa !5
  %251 = load ptr, ptr %3, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.XSdPs, ptr %251, i32 0, i32 12
  %253 = load i32, ptr %252, align 16, !tbaa !28
  %254 = call i32 @XSdPs_CmdTransfer(ptr noundef %250, i32 noundef 2304, i32 noundef %253, i32 noundef 0)
  store i32 %254, ptr %5, align 4, !tbaa !9
  %255 = load i32, ptr %5, align 4, !tbaa !9
  %256 = sext i32 %255 to i64
  %257 = icmp ne i64 %256, 0
  br i1 %257, label %258, label %259

258:                                              ; preds = %249
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %347

259:                                              ; preds = %249
  %260 = load ptr, ptr %3, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.XSdPs, ptr %260, i32 0, i32 0
  %262 = getelementptr inbounds %struct.XSdPs_Config, ptr %261, i32 0, i32 1
  %263 = load i32, ptr %262, align 4, !tbaa !20
  %264 = add i32 %263, 16
  %265 = zext i32 %264 to i64
  %266 = call i32 @Xil_In32(i64 noundef %265)
  %267 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 0
  store i32 %266, ptr %267, align 16, !tbaa !9
  %268 = load ptr, ptr %3, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.XSdPs, ptr %268, i32 0, i32 0
  %270 = getelementptr inbounds %struct.XSdPs_Config, ptr %269, i32 0, i32 1
  %271 = load i32, ptr %270, align 4, !tbaa !20
  %272 = add i32 %271, 20
  %273 = zext i32 %272 to i64
  %274 = call i32 @Xil_In32(i64 noundef %273)
  %275 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 1
  store i32 %274, ptr %275, align 4, !tbaa !9
  %276 = load ptr, ptr %3, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.XSdPs, ptr %276, i32 0, i32 0
  %278 = getelementptr inbounds %struct.XSdPs_Config, ptr %277, i32 0, i32 1
  %279 = load i32, ptr %278, align 4, !tbaa !20
  %280 = add i32 %279, 24
  %281 = zext i32 %280 to i64
  %282 = call i32 @Xil_In32(i64 noundef %281)
  %283 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 2
  store i32 %282, ptr %283, align 8, !tbaa !9
  %284 = load ptr, ptr %3, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.XSdPs, ptr %284, i32 0, i32 0
  %286 = getelementptr inbounds %struct.XSdPs_Config, ptr %285, i32 0, i32 1
  %287 = load i32, ptr %286, align 4, !tbaa !20
  %288 = add i32 %287, 28
  %289 = zext i32 %288 to i64
  %290 = call i32 @Xil_In32(i64 noundef %289)
  %291 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 3
  store i32 %290, ptr %291, align 4, !tbaa !9
  %292 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 3
  %293 = load i32, ptr %292, align 4, !tbaa !9
  %294 = and i32 %293, 12582912
  %295 = lshr i32 %294, 22
  %296 = icmp eq i32 %295, 0
  br i1 %296, label %297, label %330

297:                                              ; preds = %259
  %298 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 2
  %299 = load i32, ptr %298, align 8, !tbaa !9
  %300 = and i32 %299, 3840
  %301 = lshr i32 %300, 8
  %302 = shl i32 1, %301
  store i32 %302, ptr %10, align 4, !tbaa !9
  %303 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 1
  %304 = load i32, ptr %303, align 4, !tbaa !9
  %305 = and i32 %304, 896
  %306 = lshr i32 %305, 7
  %307 = add i32 %306, 2
  %308 = shl i32 1, %307
  store i32 %308, ptr %12, align 4, !tbaa !9
  %309 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 1
  %310 = load i32, ptr %309, align 4, !tbaa !9
  %311 = and i32 %310, -4194304
  %312 = lshr i32 %311, 22
  store i32 %312, ptr %11, align 4, !tbaa !9
  %313 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 2
  %314 = load i32, ptr %313, align 8, !tbaa !9
  %315 = and i32 %314, 3
  %316 = shl i32 %315, 10
  %317 = load i32, ptr %11, align 4, !tbaa !9
  %318 = or i32 %317, %316
  store i32 %318, ptr %11, align 4, !tbaa !9
  %319 = load i32, ptr %11, align 4, !tbaa !9
  %320 = add i32 %319, 1
  %321 = load i32, ptr %12, align 4, !tbaa !9
  %322 = mul i32 %320, %321
  store i32 %322, ptr %11, align 4, !tbaa !9
  %323 = load i32, ptr %11, align 4, !tbaa !9
  %324 = load i32, ptr %10, align 4, !tbaa !9
  %325 = mul i32 %323, %324
  store i32 %325, ptr %11, align 4, !tbaa !9
  %326 = load i32, ptr %11, align 4, !tbaa !9
  %327 = udiv i32 %326, 512
  %328 = load ptr, ptr %3, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.XSdPs, ptr %328, i32 0, i32 14
  store i32 %327, ptr %329, align 4, !tbaa !30
  br label %346

330:                                              ; preds = %259
  %331 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 3
  %332 = load i32, ptr %331, align 4, !tbaa !9
  %333 = and i32 %332, 12582912
  %334 = lshr i32 %333, 22
  %335 = icmp eq i32 %334, 1
  br i1 %335, label %336, label %345

336:                                              ; preds = %330
  %337 = getelementptr inbounds [4 x i32], ptr %7, i64 0, i64 1
  %338 = load i32, ptr %337, align 4, !tbaa !9
  %339 = and i32 %338, 1073741568
  %340 = lshr i32 %339, 8
  %341 = add i32 %340, 1
  %342 = mul i32 %341, 1024
  %343 = load ptr, ptr %3, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.XSdPs, ptr %343, i32 0, i32 14
  store i32 %342, ptr %344, align 4, !tbaa !30
  br label %345

345:                                              ; preds = %336, %330
  br label %346

346:                                              ; preds = %345, %297
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %347

347:                                              ; preds = %346, %258, %232, %188, %180, %152, %129, %76, %66, %57
  %348 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %348, ptr %2, align 4
  store i32 1, ptr %13, align 4
  br label %349

349:                                              ; preds = %347, %24, %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  %350 = load i32, ptr %2, align 4
  ret i32 %350
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @XSdPs_CmdTransfer(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @XSdPs_Switch_Voltage(ptr noundef) #3

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 = { inlinehint 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 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 #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 36}
!12 = !{!"", !13, i64 0, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !7, i64 52, !7, i64 53, !7, i64 54, !7, i64 55, !10, i64 56, !7, i64 60, !7, i64 64, !10, i64 80, !7, i64 84, !10, i64 100, !10, i64 104, !10, i64 108, !6, i64 112, !7, i64 128, !15, i64 512}
!13 = !{!"", !14, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !7, i64 32}
!14 = !{!"short", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!12, !10, i64 20}
!17 = !{!12, !7, i64 54}
!18 = !{!12, !10, i64 40}
!19 = !{!12, !10, i64 12}
!20 = !{!12, !10, i64 4}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!12, !7, i64 53}
!25 = distinct !{!25, !23}
!26 = !{!12, !10, i64 48}
!27 = !{!12, !7, i64 60}
!28 = !{!12, !10, i64 80}
!29 = distinct !{!29, !23}
!30 = !{!12, !10, i64 100}


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

@Xil_AssertStatus = external local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [159 x i8], align 1

declare void @Xil_Assert(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @XSdPs_ReadReg16(i32 noundef, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @XSdPs_WriteReg8(i32 noundef, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @XSdPs_ReadReg8(i32 noundef, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @Xil_In32(i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @XSdPs_SdCardInitialize(ptr noundef %0) local_unnamed_addr #2 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %6, label %2

2:                                                ; preds = %1
  store i32 0, ptr @Xil_AssertStatus, align 4, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 36
  %4 = load i32, ptr %3, align 4, !tbaa !9
  %5 = icmp eq i32 %4, 286331153
  br i1 %5, label %7, label %11

6:                                                ; preds = %1
  tail call void @Xil_Assert(ptr noundef nonnull @.str, i32 noundef 359) #3
  store i32 1, ptr @Xil_AssertStatus, align 4, !tbaa !5
  br label %.loopexit

7:                                                ; preds = %2
  %8 = getelementptr inbounds i8, ptr %0, i64 20
  store i32 4, ptr %8, align 4, !tbaa !15
  %9 = getelementptr inbounds i8, ptr %0, i64 54
  %10 = load i8, ptr %9, align 2, !tbaa !16
  %.not81 = icmp eq i8 %10, 2
  br i1 %.not81, label %12, label %16

11:                                               ; preds = %2
  tail call void @Xil_Assert(ptr noundef nonnull @.str, i32 noundef 360) #3
  store i32 1, ptr @Xil_AssertStatus, align 4, !tbaa !5
  br label %.loopexit

12:                                               ; preds = %7
  %13 = getelementptr inbounds i8, ptr %0, i64 40
  %14 = load i32, ptr %13, align 8, !tbaa !17
  %15 = and i32 %14, -1073741824
  %.not82 = icmp eq i32 %15, 1073741824
  br i1 %.not82, label %27, label %16

16:                                               ; preds = %12, %7
  %17 = getelementptr inbounds i8, ptr %0, i64 12
  %18 = load i32, ptr %17, align 4, !tbaa !18
  %.not83 = icmp eq i32 %18, 0
  br i1 %.not83, label %27, label %19

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %0, i64 4
  %21 = load i32, ptr %20, align 4, !tbaa !19
  %22 = add i32 %21, 36
  %23 = zext i32 %22 to i64
  %24 = tail call i32 @Xil_In32(i64 noundef %23)
  %25 = and i32 %24, 65536
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %.loopexit, label %27

27:                                               ; preds = %16, %19, %12
  %28 = tail call i32 @XSdPs_CmdTransfer(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %.not84 = icmp eq i32 %28, 0
  br i1 %.not84, label %29, label %.loopexit

29:                                               ; preds = %27
  %30 = tail call i32 @XSdPs_CmdTransfer(ptr noundef nonnull %0, i32 noundef 2048, i32 noundef 426, i32 noundef 0)
  %31 = and i32 %30, -3
  %or.cond.not = icmp eq i32 %31, 0
  br i1 %or.cond.not, label %32, label %.loopexit

32:                                               ; preds = %29
  %33 = icmp eq i32 %30, 2
  br i1 %33, label %34, label %.loopexit96

34:                                               ; preds = %32
  %35 = getelementptr inbounds i8, ptr %0, i64 4
  %36 = load i32, ptr %35, align 4, !tbaa !19
  tail call void @XSdPs_WriteReg8(i32 noundef %36, i8 noundef zeroext 47, i8 noundef zeroext 2)
  %37 = load i32, ptr %35, align 4, !tbaa !19
  %38 = tail call zeroext i8 @XSdPs_ReadReg8(i32 noundef %37, i8 noundef zeroext 47)
  %39 = and i8 %38, 2
  %.not8598 = icmp eq i8 %39, 0
  br i1 %.not8598, label %.loopexit96, label %.lr.ph

.lr.ph:                                           ; preds = %34, %.lr.ph
  %40 = load i32, ptr %35, align 4, !tbaa !19
  %41 = tail call zeroext i8 @XSdPs_ReadReg8(i32 noundef %40, i8 noundef zeroext 47)
  %42 = and i8 %41, 2
  %.not85 = icmp eq i8 %42, 0
  br i1 %.not85, label %.loopexit96, label %.lr.ph, !llvm.loop !20

.loopexit96:                                      ; preds = %.lr.ph, %34, %32
  %43 = getelementptr inbounds i8, ptr %0, i64 4
  %44 = load i32, ptr %43, align 4, !tbaa !19
  %45 = add i32 %44, 16
  %46 = zext i32 %45 to i64
  %47 = tail call i32 @Xil_In32(i64 noundef %46)
  %.not86 = icmp eq i32 %47, 426
  %spec.select103 = select i1 %.not86, i8 2, i8 1
  %48 = getelementptr inbounds i8, ptr %0, i64 53
  store i8 %spec.select103, ptr %48, align 1
  br label %49

49:                                               ; preds = %.loopexit96, %59
  %50 = tail call i32 @XSdPs_CmdTransfer(ptr noundef nonnull %0, i32 noundef 14080, i32 noundef 0, i32 noundef 0)
  %.not93 = icmp eq i32 %50, 0
  br i1 %.not93, label %51, label %.loopexit

51:                                               ; preds = %49
  %52 = load i8, ptr %9, align 2, !tbaa !16
  %53 = icmp eq i8 %52, 2
  br i1 %53, label %54, label %57

54:                                               ; preds = %51
  %55 = load i32, ptr %8, align 4, !tbaa !15
  %56 = icmp eq i32 %55, 8
  %spec.select = select i1 %56, i32 1107263488, i32 1090486272
  br label %57

57:                                               ; preds = %54, %51
  %.077 = phi i32 [ 1090486272, %51 ], [ %spec.select, %54 ]
  %58 = tail call i32 @XSdPs_CmdTransfer(ptr noundef nonnull %0, i32 noundef 43264, i32 noundef %.077, i32 noundef 0)
  %.not94 = icmp eq i32 %58, 0
  br i1 %.not94, label %59, label %.loopexit

59:                                               ; preds = %57
  %60 = load i32, ptr %43, align 4, !tbaa !19
  %61 = add i32 %60, 16
  %62 = zext i32 %61 to i64
  %63 = tail call i32 @Xil_In32(i64 noundef %62)
  %64 = icmp sgt i32 %63, -1
  br i1 %64, label %49, label %65, !llvm.loop !22

65:                                               ; preds = %59
  %66 = and i32 %63, 1073741824
  %.not87 = icmp eq i32 %66, 0
  br i1 %.not87, label %69, label %67

67:                                               ; preds = %65
  %68 = getelementptr inbounds i8, ptr %0, i64 48
  store i32 1, ptr %68, align 16, !tbaa !23
  br label %69

69:                                               ; preds = %67, %65
  %70 = and i32 %63, 16777216
  %.not88 = icmp eq i32 %70, 0
  br i1 %.not88, label %74, label %71

71:                                               ; preds = %69
  %72 = getelementptr inbounds i8, ptr %0, i64 60
  store i8 1, ptr %72, align 4, !tbaa !24
  %73 = tail call i32 @XSdPs_Switch_Voltage(ptr noundef nonnull %0)
  %.not89 = icmp eq i32 %73, 0
  br i1 %.not89, label %74, label %.loopexit

74:                                               ; preds = %71, %69
  %75 = tail call i32 @XSdPs_CmdTransfer(ptr noundef nonnull %0, i32 noundef 512, i32 noundef 0, i32 noundef 0)
  %.not90 = icmp eq i32 %75, 0
  br i1 %.not90, label %76, label %.loopexit

76:                                               ; preds = %74
  %77 = load i32, ptr %43, align 4, !tbaa !19
  %78 = tail call zeroext i16 @XSdPs_ReadReg16(i32 noundef %77, i8 noundef zeroext 16)
  %79 = zext i16 %78 to i32
  %80 = getelementptr inbounds i8, ptr %0, i64 64
  store i32 %79, ptr %80, align 32, !tbaa !5
  %81 = load i32, ptr %43, align 4, !tbaa !19
  %82 = tail call zeroext i16 @XSdPs_ReadReg16(i32 noundef %81, i8 noundef zeroext 20)
  %83 = zext i16 %82 to i32
  %84 = getelementptr inbounds i8, ptr %0, i64 68
  store i32 %83, ptr %84, align 4, !tbaa !5
  %85 = load i32, ptr %43, align 4, !tbaa !19
  %86 = tail call zeroext i16 @XSdPs_ReadReg16(i32 noundef %85, i8 noundef zeroext 24)
  %87 = zext i16 %86 to i32
  %88 = getelementptr inbounds i8, ptr %0, i64 72
  store i32 %87, ptr %88, align 8, !tbaa !5
  %89 = load i32, ptr %43, align 4, !tbaa !19
  %90 = tail call zeroext i16 @XSdPs_ReadReg16(i32 noundef %89, i8 noundef zeroext 28)
  %91 = zext i16 %90 to i32
  %92 = getelementptr inbounds i8, ptr %0, i64 76
  store i32 %91, ptr %92, align 4, !tbaa !5
  %93 = getelementptr inbounds i8, ptr %0, i64 80
  br label %94

94:                                               ; preds = %96, %76
  %95 = tail call i32 @XSdPs_CmdTransfer(ptr noundef nonnull %0, i32 noundef 768, i32 noundef 0, i32 noundef 0)
  %.not91 = icmp eq i32 %95, 0
  br i1 %.not91, label %96, label %.loopexit

96:                                               ; preds = %94
  %97 = load i32, ptr %43, align 4, !tbaa !19
  %98 = add i32 %97, 16
  %99 = zext i32 %98 to i64
  %100 = tail call i32 @Xil_In32(i64 noundef %99)
  %101 = and i32 %100, -65536
  store i32 %101, ptr %93, align 16, !tbaa !25
  %102 = icmp eq i32 %101, 0
  br i1 %102, label %94, label %103, !llvm.loop !26

103:                                              ; preds = %96
  %104 = tail call i32 @XSdPs_CmdTransfer(ptr noundef nonnull %0, i32 noundef 2304, i32 noundef %101, i32 noundef 0)
  %.not92 = icmp eq i32 %104, 0
  br i1 %.not92, label %105, label %.loopexit

105:                                              ; preds = %103
  %106 = load i32, ptr %43, align 4, !tbaa !19
  %107 = add i32 %106, 16
  %108 = zext i32 %107 to i64
  %109 = tail call i32 @Xil_In32(i64 noundef %108)
  %110 = load i32, ptr %43, align 4, !tbaa !19
  %111 = add i32 %110, 20
  %112 = zext i32 %111 to i64
  %113 = tail call i32 @Xil_In32(i64 noundef %112)
  %114 = load i32, ptr %43, align 4, !tbaa !19
  %115 = add i32 %114, 24
  %116 = zext i32 %115 to i64
  %117 = tail call i32 @Xil_In32(i64 noundef %116)
  %118 = load i32, ptr %43, align 4, !tbaa !19
  %119 = add i32 %118, 28
  %120 = zext i32 %119 to i64
  %121 = tail call i32 @Xil_In32(i64 noundef %120)
  %122 = lshr i32 %121, 22
  %123 = and i32 %122, 3
  switch i32 %123, label %.loopexit [
    i32 0, label %124
    i32 1, label %139
  ]

124:                                              ; preds = %105
  %125 = lshr i32 %117, 8
  %126 = and i32 %125, 15
  %127 = lshr i32 %113, 7
  %128 = and i32 %127, 7
  %129 = lshr i32 %113, 22
  %130 = shl i32 %117, 10
  %131 = and i32 %130, 3072
  %132 = add nuw nsw i32 %129, 1
  %133 = add nuw nsw i32 %132, %131
  %134 = add nuw nsw i32 %128, 2
  %135 = shl nuw nsw i32 %133, %134
  %136 = shl i32 %135, %126
  %137 = lshr i32 %136, 9
  %138 = getelementptr inbounds i8, ptr %0, i64 100
  store i32 %137, ptr %138, align 4, !tbaa !27
  br label %.loopexit

139:                                              ; preds = %105
  %140 = shl i32 %113, 2
  %141 = and i32 %140, -1024
  %142 = add i32 %141, 1024
  %143 = getelementptr inbounds i8, ptr %0, i64 100
  store i32 %142, ptr %143, align 4, !tbaa !27
  br label %.loopexit

.loopexit:                                        ; preds = %49, %57, %94, %19, %27, %29, %71, %74, %103, %105, %139, %124, %11, %6
  %.0 = phi i32 [ 0, %11 ], [ 0, %6 ], [ 1, %19 ], [ 1, %27 ], [ 1, %29 ], [ 1, %71 ], [ 1, %74 ], [ 1, %103 ], [ 0, %105 ], [ 0, %139 ], [ 0, %124 ], [ 1, %94 ], [ 1, %57 ], [ 1, %49 ]
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @XSdPs_CmdTransfer(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden i32 @XSdPs_Switch_Voltage(ptr noundef) local_unnamed_addr #2

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 = { inlinehint 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 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 36}
!10 = !{!"", !11, i64 0, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !7, i64 52, !7, i64 53, !7, i64 54, !7, i64 55, !6, i64 56, !7, i64 60, !7, i64 64, !6, i64 80, !7, i64 84, !6, i64 100, !6, i64 104, !6, i64 108, !13, i64 112, !7, i64 128, !14, i64 512}
!11 = !{!"", !12, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !7, i64 32}
!12 = !{!"short", !7, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!10, !6, i64 20}
!16 = !{!10, !7, i64 54}
!17 = !{!10, !6, i64 40}
!18 = !{!10, !6, i64 12}
!19 = !{!10, !6, i64 4}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!10, !6, i64 48}
!24 = !{!10, !7, i64 60}
!25 = !{!10, !6, i64 80}
!26 = distinct !{!26, !21}
!27 = !{!10, !6, i64 100}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MergedLoadStoreMotionPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass