; LLVM IR from FrancesoM/Bisc8FX :: sdk_projects/bisc8_platform/ps7_cortexa9_0/standalone_domain/bsp/ps7_cortexa9_0_ (EpGetData)

; 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.XUsbPs = type { %struct.XUsbPs_SetupData, %struct.XUsbPs_Config, i32, ptr, %struct.XUsbPs_DeviceConfig, ptr, ptr, i32, ptr, i8, ptr }
%struct.XUsbPs_SetupData = type { i8, i8, i16, i16, i16 }
%struct.XUsbPs_Config = type { i16, i32 }
%struct.XUsbPs_DeviceConfig = type { i8, [12 x %struct.XUsbPs_EpConfig], i32, [12 x %struct.XUsbPs_Endpoint], i32 }
%struct.XUsbPs_EpConfig = type { %struct.XUsbPs_EpSetup, %struct.XUsbPs_EpSetup }
%struct.XUsbPs_EpSetup = type { i32, i32, i32, i16 }
%struct.XUsbPs_Endpoint = type { %struct.XUsbPs_EpOut, %struct.XUsbPs_EpIn }
%struct.XUsbPs_EpOut = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i8, i32 }
%struct.XUsbPs_EpIn = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @XUsbPs_EpGetData(ptr noundef %0, i8 noundef zeroext %1, i32 noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i8 %1, ptr %5, align 1, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, 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
  store i32 0, ptr %11, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !10
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.XUsbPs, ptr %13, i32 0, i32 4
  %15 = getelementptr inbounds %struct.XUsbPs_DeviceConfig, ptr %14, i32 0, i32 3
  %16 = load i8, ptr %5, align 1, !tbaa !9
  %17 = zext i8 %16 to i64
  %18 = getelementptr inbounds [12 x %struct.XUsbPs_Endpoint], ptr %15, i64 0, i64 %17
  %19 = getelementptr inbounds %struct.XUsbPs_Endpoint, ptr %18, i32 0, i32 0
  store ptr %19, ptr %7, align 8, !tbaa !5
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.XUsbPs, ptr %20, i32 0, i32 4
  %22 = getelementptr inbounds %struct.XUsbPs_DeviceConfig, ptr %21, i32 0, i32 1
  %23 = load i8, ptr %5, align 1, !tbaa !9
  %24 = zext i8 %23 to i64
  %25 = getelementptr inbounds [12 x %struct.XUsbPs_EpConfig], ptr %22, i64 0, i64 %24
  %26 = getelementptr inbounds %struct.XUsbPs_EpConfig, ptr %25, i32 0, i32 0
  store ptr %26, ptr %8, align 8, !tbaa !5
  br label %27

27:                                               ; preds = %191, %3
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %28, i32 0, i32 2
  %30 = load ptr, ptr %29, align 8, !tbaa !12
  %31 = ptrtoint ptr %30 to i32
  %32 = zext i32 %31 to i64
  call void @Xil_DCacheInvalidateRange(i64 noundef %32, i32 noundef 32)
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %33, i32 0, i32 2
  %35 = load ptr, ptr %34, align 8, !tbaa !12
  %36 = ptrtoint ptr %35 to i32
  %37 = add i32 %36, 28
  %38 = zext i32 %37 to i64
  %39 = inttoptr i64 %38 to ptr
  %40 = load i32, ptr %39, align 4, !tbaa !10
  %41 = zext i32 %40 to i64
  %42 = inttoptr i64 %41 to ptr
  store ptr %42, ptr %9, align 8, !tbaa !5
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.XUsbPs_EpSetup, ptr %43, i32 0, i32 2
  %45 = load i32, ptr %44, align 4, !tbaa !14
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %46, i32 0, i32 2
  %48 = load ptr, ptr %47, align 8, !tbaa !12
  %49 = ptrtoint ptr %48 to i32
  %50 = add i32 %49, 4
  %51 = zext i32 %50 to i64
  %52 = inttoptr i64 %51 to ptr
  %53 = load i32, ptr %52, align 4, !tbaa !10
  %54 = and i32 %53, 2147418112
  %55 = lshr i32 %54, 16
  %56 = sub i32 %45, %55
  store i32 %56, ptr %11, align 4, !tbaa !10
  %57 = load i32, ptr %11, align 4, !tbaa !10
  %58 = icmp ugt i32 %57, 0
  br i1 %58, label %59, label %61

59:                                               ; preds = %27
  %60 = load i32, ptr %11, align 4, !tbaa !10
  store i32 %60, ptr %6, align 4, !tbaa !10
  br label %62

61:                                               ; preds = %27
  store i32 0, ptr %6, align 4, !tbaa !10
  br label %62

62:                                               ; preds = %61, %59
  %63 = load i32, ptr %6, align 4, !tbaa !10
  store i32 %63, ptr %12, align 4, !tbaa !10
  %64 = load i32, ptr %6, align 4, !tbaa !10
  %65 = urem i32 %64, 32
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %67, label %72

67:                                               ; preds = %62
  %68 = load i32, ptr %6, align 4, !tbaa !10
  %69 = udiv i32 %68, 32
  %70 = mul i32 %69, 32
  %71 = add i32 %70, 32
  store i32 %71, ptr %12, align 4, !tbaa !10
  br label %72

72:                                               ; preds = %67, %62
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = ptrtoint ptr %73 to i32
  %75 = zext i32 %74 to i64
  %76 = load i32, ptr %12, align 4, !tbaa !10
  call void @Xil_DCacheInvalidateRange(i64 noundef %75, i32 noundef %76)
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %77, i32 0, i32 9
  %79 = load ptr, ptr %78, align 8, !tbaa !17
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = load i32, ptr %6, align 4, !tbaa !10
  %82 = zext i32 %81 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %79, ptr align 1 %80, i64 %82, i1 false)
  %83 = load i32, ptr %6, align 4, !tbaa !10
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %84, i32 0, i32 8
  %86 = load i32, ptr %85, align 4, !tbaa !18
  %87 = add i32 %86, %83
  store i32 %87, ptr %85, align 4, !tbaa !18
  %88 = load i32, ptr %6, align 4, !tbaa !10
  %89 = load ptr, ptr %7, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %89, i32 0, i32 9
  %91 = load ptr, ptr %90, align 8, !tbaa !17
  %92 = zext i32 %88 to i64
  %93 = getelementptr inbounds i8, ptr %91, i64 %92
  store ptr %93, ptr %90, align 8, !tbaa !17
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %94, i32 0, i32 2
  %96 = load ptr, ptr %95, align 8, !tbaa !12
  %97 = ptrtoint ptr %96 to i32
  store i32 %97, ptr %10, align 4, !tbaa !10
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = ptrtoint ptr %98 to i32
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %100, i32 0, i32 2
  %102 = load ptr, ptr %101, align 8, !tbaa !12
  %103 = ptrtoint ptr %102 to i32
  %104 = add i32 %103, 8
  %105 = zext i32 %104 to i64
  %106 = inttoptr i64 %105 to ptr
  store i32 %99, ptr %106, align 4, !tbaa !10
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %107, i32 0, i32 2
  %109 = load ptr, ptr %108, align 8, !tbaa !12
  %110 = ptrtoint ptr %109 to i32
  %111 = add i32 %110, 4
  %112 = zext i32 %111 to i64
  %113 = inttoptr i64 %112 to ptr
  %114 = load i32, ptr %113, align 4, !tbaa !10
  %115 = and i32 %114, -2147418113
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.XUsbPs_EpSetup, ptr %116, i32 0, i32 2
  %118 = load i32, ptr %117, align 4, !tbaa !14
  %119 = shl i32 %118, 16
  %120 = or i32 %115, %119
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %121, i32 0, i32 2
  %123 = load ptr, ptr %122, align 8, !tbaa !12
  %124 = ptrtoint ptr %123 to i32
  %125 = add i32 %124, 4
  %126 = zext i32 %125 to i64
  %127 = inttoptr i64 %126 to ptr
  store i32 %120, ptr %127, align 4, !tbaa !10
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %128, i32 0, i32 2
  %130 = load ptr, ptr %129, align 8, !tbaa !12
  %131 = ptrtoint ptr %130 to i32
  %132 = zext i32 %131 to i64
  call void @Xil_DCacheFlushRange(i64 noundef %132, i32 noundef 32)
  %133 = load i32, ptr %10, align 4, !tbaa !10
  call void @XUsbPs_EpBufferRelease(i32 noundef %133)
  %134 = load ptr, ptr %7, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %134, i32 0, i32 2
  %136 = load ptr, ptr %135, align 8, !tbaa !12
  %137 = ptrtoint ptr %136 to i32
  %138 = add i32 %137, 0
  %139 = zext i32 %138 to i64
  %140 = inttoptr i64 %139 to ptr
  %141 = load i32, ptr %140, align 4, !tbaa !10
  %142 = and i32 %141, -32
  %143 = zext i32 %142 to i64
  %144 = inttoptr i64 %143 to ptr
  %145 = load ptr, ptr %7, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %145, i32 0, i32 2
  store ptr %144, ptr %146, align 8, !tbaa !12
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %147, i32 0, i32 2
  %149 = load ptr, ptr %148, align 8, !tbaa !12
  %150 = ptrtoint ptr %149 to i32
  %151 = zext i32 %150 to i64
  call void @Xil_DCacheInvalidateRange(i64 noundef %151, i32 noundef 32)
  %152 = load ptr, ptr %7, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %152, i32 0, i32 7
  %154 = load i32, ptr %153, align 8, !tbaa !19
  %155 = load ptr, ptr %7, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %155, i32 0, i32 8
  %157 = load i32, ptr %156, align 4, !tbaa !18
  %158 = icmp ule i32 %154, %157
  br i1 %158, label %169, label %159

159:                                              ; preds = %72
  %160 = load ptr, ptr %7, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %160, i32 0, i32 8
  %162 = load i32, ptr %161, align 4, !tbaa !18
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.XUsbPs_EpSetup, ptr %163, i32 0, i32 3
  %165 = load i16, ptr %164, align 4, !tbaa !20
  %166 = zext i16 %165 to i32
  %167 = urem i32 %162, %166
  %168 = icmp ne i32 %167, 0
  br i1 %168, label %169, label %190

169:                                              ; preds = %159, %72
  %170 = load ptr, ptr %7, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %170, i32 0, i32 10
  store i8 0, ptr %171, align 8, !tbaa !21
  %172 = load ptr, ptr %7, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %172, i32 0, i32 5
  %174 = load ptr, ptr %173, align 8, !tbaa !22
  %175 = icmp ne ptr %174, null
  br i1 %175, label %176, label %189

176:                                              ; preds = %169
  %177 = load ptr, ptr %7, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %177, i32 0, i32 5
  %179 = load ptr, ptr %178, align 8, !tbaa !22
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %180, i32 0, i32 6
  %182 = load ptr, ptr %181, align 8, !tbaa !23
  %183 = load ptr, ptr %7, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %183, i32 0, i32 7
  %185 = load i32, ptr %184, align 8, !tbaa !19
  %186 = load ptr, ptr %7, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %186, i32 0, i32 8
  %188 = load i32, ptr %187, align 4, !tbaa !18
  call void %179(ptr noundef %182, i32 noundef %185, i32 noundef %188)
  br label %189

189:                                              ; preds = %176, %169
  br label %206

190:                                              ; preds = %159
  br label %191

191:                                              ; preds = %190
  %192 = load ptr, ptr %7, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %192, i32 0, i32 2
  %194 = load ptr, ptr %193, align 8, !tbaa !12
  %195 = ptrtoint ptr %194 to i32
  %196 = add i32 %195, 4
  %197 = zext i32 %196 to i64
  %198 = inttoptr i64 %197 to ptr
  %199 = load i32, ptr %198, align 4, !tbaa !10
  %200 = and i32 %199, 128
  %201 = icmp ne i32 %200, 0
  %202 = zext i1 %201 to i64
  %203 = select i1 %201, i32 1, i32 0
  %204 = icmp ne i32 %203, 0
  %205 = xor i1 %204, true
  br i1 %205, label %27, label %206, !llvm.loop !24

206:                                              ; preds = %191, %189
  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 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret void
}

declare void @Xil_DCacheInvalidateRange(i64 noundef, i32 noundef) #3

declare void @Xil_DCacheFlushRange(i64 noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @XUsbPs_EpBufferRelease(i32 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !6, i64 16}
!13 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !11, i64 56, !11, i64 60, !6, i64 64, !7, i64 72, !11, i64 76}
!14 = !{!15, !11, i64 8}
!15 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !16, i64 12}
!16 = !{!"short", !7, i64 0}
!17 = !{!13, !6, i64 64}
!18 = !{!13, !11, i64 60}
!19 = !{!13, !11, i64 56}
!20 = !{!15, !16, i64 12}
!21 = !{!13, !7, i64 72}
!22 = !{!13, !6, i64 40}
!23 = !{!13, !6, i64 48}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


; 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.XUsbPs_Endpoint = type { %struct.XUsbPs_EpOut, %struct.XUsbPs_EpIn }
%struct.XUsbPs_EpOut = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i8, i32 }
%struct.XUsbPs_EpIn = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32 }
%struct.XUsbPs_EpConfig = type { %struct.XUsbPs_EpSetup, %struct.XUsbPs_EpSetup }
%struct.XUsbPs_EpSetup = type { i32, i32, i32, i16 }

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

; Function Attrs: nounwind uwtable
define dso_local void @XUsbPs_EpGetData(ptr nocapture noundef %0, i8 noundef zeroext %1, i32 noundef %2) local_unnamed_addr #1 {
  %4 = getelementptr inbounds i8, ptr %0, i64 424
  %5 = zext i8 %1 to i64
  %6 = getelementptr inbounds [12 x %struct.XUsbPs_Endpoint], ptr %4, i64 0, i64 %5
  %7 = getelementptr inbounds i8, ptr %0, i64 36
  %8 = getelementptr inbounds [12 x %struct.XUsbPs_EpConfig], ptr %7, i64 0, i64 %5
  %9 = getelementptr inbounds i8, ptr %6, i64 16
  %10 = getelementptr inbounds i8, ptr %8, i64 8
  %11 = getelementptr inbounds i8, ptr %6, i64 64
  %12 = getelementptr inbounds i8, ptr %6, i64 60
  %13 = getelementptr inbounds i8, ptr %6, i64 56
  %14 = getelementptr inbounds i8, ptr %8, i64 12
  %.pre = load ptr, ptr %9, align 8, !tbaa !5
  br label %15

15:                                               ; preds = %77, %3
  %16 = phi ptr [ %78, %77 ], [ %.pre, %3 ]
  %17 = ptrtoint ptr %16 to i64
  %18 = and i64 %17, 4294967295
  tail call void @Xil_DCacheInvalidateRange(i64 noundef %18, i32 noundef 32) #3
  %19 = load ptr, ptr %9, align 8, !tbaa !5
  %20 = ptrtoint ptr %19 to i64
  %21 = add i64 %20, 28
  %22 = and i64 %21, 4294967295
  %23 = inttoptr i64 %22 to ptr
  %24 = load i32, ptr %23, align 4, !tbaa !11
  %25 = zext i32 %24 to i64
  %26 = inttoptr i64 %25 to ptr
  %27 = load i32, ptr %10, align 4, !tbaa !12
  %28 = add i64 %20, 4
  %29 = and i64 %28, 4294967295
  %30 = inttoptr i64 %29 to ptr
  %31 = load i32, ptr %30, align 4, !tbaa !11
  %32 = lshr i32 %31, 16
  %33 = and i32 %32, 32767
  %34 = sub i32 %27, %33
  %.biased = add i32 %34, 31
  %.0 = and i32 %.biased, -32
  tail call void @Xil_DCacheInvalidateRange(i64 noundef %25, i32 noundef %.0) #3
  %35 = load ptr, ptr %11, align 8, !tbaa !15
  %36 = zext i32 %34 to i64
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %35, ptr align 1 %26, i64 %36, i1 false)
  %37 = load i32, ptr %12, align 4, !tbaa !16
  %38 = add i32 %37, %34
  store i32 %38, ptr %12, align 4, !tbaa !16
  %39 = load ptr, ptr %11, align 8, !tbaa !15
  %40 = getelementptr inbounds i8, ptr %39, i64 %36
  store ptr %40, ptr %11, align 8, !tbaa !15
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = ptrtoint ptr %41 to i64
  %43 = trunc i64 %42 to i32
  %44 = add i64 %42, 8
  %45 = and i64 %44, 4294967295
  %46 = inttoptr i64 %45 to ptr
  store i32 %24, ptr %46, align 4, !tbaa !11
  %47 = add i64 %42, 4
  %48 = and i64 %47, 4294967295
  %49 = inttoptr i64 %48 to ptr
  %50 = load i32, ptr %49, align 4, !tbaa !11
  %51 = and i32 %50, -2147418113
  %52 = load i32, ptr %10, align 4, !tbaa !12
  %53 = shl i32 %52, 16
  %54 = or i32 %53, %51
  store i32 %54, ptr %49, align 4, !tbaa !11
  %55 = and i64 %42, 4294967295
  tail call void @Xil_DCacheFlushRange(i64 noundef %55, i32 noundef 32) #3
  tail call void @XUsbPs_EpBufferRelease(i32 noundef %43)
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = ptrtoint ptr %56 to i64
  %58 = and i64 %57, 4294967295
  %59 = inttoptr i64 %58 to ptr
  %60 = load i32, ptr %59, align 4, !tbaa !11
  %61 = and i32 %60, -32
  %62 = zext i32 %61 to i64
  %63 = inttoptr i64 %62 to ptr
  store ptr %63, ptr %9, align 8, !tbaa !5
  tail call void @Xil_DCacheInvalidateRange(i64 noundef %62, i32 noundef 32) #3
  %64 = load i32, ptr %13, align 8, !tbaa !17
  %65 = load i32, ptr %12, align 4, !tbaa !16
  %.not48 = icmp ugt i32 %64, %65
  br i1 %.not48, label %66, label %70

66:                                               ; preds = %15
  %67 = load i16, ptr %14, align 4, !tbaa !18
  %68 = zext i16 %67 to i32
  %69 = urem i32 %65, %68
  %.not49 = icmp eq i32 %69, 0
  br i1 %.not49, label %77, label %70

70:                                               ; preds = %66, %15
  %71 = getelementptr inbounds i8, ptr %6, i64 72
  store i8 0, ptr %71, align 8, !tbaa !19
  %72 = getelementptr inbounds i8, ptr %6, i64 40
  %73 = load ptr, ptr %72, align 8, !tbaa !20
  %.not51 = icmp eq ptr %73, null
  br i1 %.not51, label %.loopexit, label %74

74:                                               ; preds = %70
  %75 = getelementptr inbounds i8, ptr %6, i64 48
  %76 = load ptr, ptr %75, align 8, !tbaa !21
  tail call void %73(ptr noundef %76, i32 noundef %64, i32 noundef %65) #3
  br label %.loopexit

77:                                               ; preds = %66
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = ptrtoint ptr %78 to i64
  %80 = add i64 %79, 4
  %81 = and i64 %80, 4294967295
  %82 = inttoptr i64 %81 to ptr
  %83 = load i32, ptr %82, align 4, !tbaa !11
  %84 = and i32 %83, 128
  %.not50 = icmp eq i32 %84, 0
  br i1 %.not50, label %15, label %.loopexit, !llvm.loop !22

.loopexit:                                        ; preds = %77, %70, %74
  ret void
}

declare void @Xil_DCacheInvalidateRange(i64 noundef, i32 noundef) local_unnamed_addr #2

declare void @Xil_DCacheFlushRange(i64 noundef, i32 noundef) local_unnamed_addr #2

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

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 16}
!6 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !10, i64 56, !10, i64 60, !7, i64 64, !8, i64 72, !10, i64 76}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!13, !10, i64 8}
!13 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !14, i64 12}
!14 = !{!"short", !8, i64 0}
!15 = !{!6, !7, i64 64}
!16 = !{!6, !10, i64 60}
!17 = !{!6, !10, i64 56}
!18 = !{!13, !14, i64 12}
!19 = !{!6, !8, i64 72}
!20 = !{!6, !7, i64 40}
!21 = !{!6, !7, i64 48}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


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