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

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

@Xil_AssertStatus = external global i32, align 4
@.str = external hidden unnamed_addr constant [171 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @XUsbPs_EpBufferReceive(ptr noundef %0, i8 noundef zeroext %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #2 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i8, align 1
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i8 %1, ptr %8, align 1, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  store i32 0, ptr %14, align 4, !tbaa !10
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %5
  store i32 0, ptr @Xil_AssertStatus, align 4, !tbaa !10
  br label %20

19:                                               ; preds = %5
  call void @Xil_Assert(ptr noundef @.str, i32 noundef 510)
  store i32 1, ptr @Xil_AssertStatus, align 4, !tbaa !10
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %154

20:                                               ; preds = %18
  %21 = load ptr, ptr %9, align 8, !tbaa !5
  %22 = icmp ne ptr %21, null
  br i1 %22, label %23, label %24

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

24:                                               ; preds = %20
  call void @Xil_Assert(ptr noundef @.str, i32 noundef 511)
  store i32 1, ptr @Xil_AssertStatus, align 4, !tbaa !10
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %154

25:                                               ; preds = %23
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %29

28:                                               ; preds = %25
  store i32 0, ptr @Xil_AssertStatus, align 4, !tbaa !10
  br label %30

29:                                               ; preds = %25
  call void @Xil_Assert(ptr noundef @.str, i32 noundef 512)
  store i32 1, ptr @Xil_AssertStatus, align 4, !tbaa !10
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %154

30:                                               ; preds = %28
  %31 = load ptr, ptr %11, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %34

33:                                               ; preds = %30
  store i32 0, ptr @Xil_AssertStatus, align 4, !tbaa !10
  br label %35

34:                                               ; preds = %30
  call void @Xil_Assert(ptr noundef @.str, i32 noundef 513)
  store i32 1, ptr @Xil_AssertStatus, align 4, !tbaa !10
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %154

35:                                               ; preds = %33
  %36 = load i8, ptr %8, align 1, !tbaa !9
  %37 = zext i8 %36 to i32
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.XUsbPs, ptr %38, i32 0, i32 4
  %40 = getelementptr inbounds %struct.XUsbPs_DeviceConfig, ptr %39, i32 0, i32 0
  %41 = load i8, ptr %40, align 8, !tbaa !12
  %42 = zext i8 %41 to i32
  %43 = icmp slt i32 %37, %42
  br i1 %43, label %44, label %45

44:                                               ; preds = %35
  store i32 0, ptr @Xil_AssertStatus, align 4, !tbaa !10
  br label %46

45:                                               ; preds = %35
  call void @Xil_Assert(ptr noundef @.str, i32 noundef 514)
  store i32 1, ptr @Xil_AssertStatus, align 4, !tbaa !10
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %154

46:                                               ; preds = %44
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.XUsbPs, ptr %47, i32 0, i32 4
  %49 = getelementptr inbounds %struct.XUsbPs_DeviceConfig, ptr %48, i32 0, i32 3
  %50 = load i8, ptr %8, align 1, !tbaa !9
  %51 = zext i8 %50 to i64
  %52 = getelementptr inbounds [12 x %struct.XUsbPs_Endpoint], ptr %49, i64 0, i64 %51
  %53 = getelementptr inbounds %struct.XUsbPs_Endpoint, ptr %52, i32 0, i32 0
  store ptr %53, ptr %12, align 8, !tbaa !5
  %54 = load ptr, ptr %12, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %54, i32 0, i32 2
  %56 = load ptr, ptr %55, align 8, !tbaa !18
  %57 = ptrtoint ptr %56 to i32
  %58 = zext i32 %57 to i64
  call void @Xil_DCacheInvalidateRange(i64 noundef %58, i32 noundef 32)
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %59, i32 0, i32 2
  %61 = load ptr, ptr %60, align 8, !tbaa !18
  %62 = ptrtoint ptr %61 to i32
  %63 = add i32 %62, 4
  %64 = zext i32 %63 to i64
  %65 = inttoptr i64 %64 to ptr
  %66 = load i32, ptr %65, align 4, !tbaa !10
  %67 = and i32 %66, 128
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %69, label %70

69:                                               ; preds = %46
  br i1 true, label %71, label %72

70:                                               ; preds = %46
  br i1 false, label %71, label %72

71:                                               ; preds = %70, %69
  store i32 1414, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %154

72:                                               ; preds = %70, %69
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.XUsbPs, ptr %73, i32 0, i32 4
  %75 = getelementptr inbounds %struct.XUsbPs_DeviceConfig, ptr %74, i32 0, i32 1
  %76 = load i8, ptr %8, align 1, !tbaa !9
  %77 = zext i8 %76 to i64
  %78 = getelementptr inbounds [12 x %struct.XUsbPs_EpConfig], ptr %75, i64 0, i64 %77
  %79 = getelementptr inbounds %struct.XUsbPs_EpConfig, ptr %78, i32 0, i32 0
  store ptr %79, ptr %13, align 8, !tbaa !5
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %80, i32 0, i32 2
  %82 = load ptr, ptr %81, align 8, !tbaa !18
  %83 = ptrtoint ptr %82 to i32
  %84 = add i32 %83, 28
  %85 = zext i32 %84 to i64
  %86 = inttoptr i64 %85 to ptr
  %87 = load i32, ptr %86, align 4, !tbaa !10
  %88 = zext i32 %87 to i64
  %89 = inttoptr i64 %88 to ptr
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %89, ptr %90, align 8, !tbaa !5
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.XUsbPs_EpSetup, ptr %91, i32 0, i32 2
  %93 = load i32, ptr %92, align 4, !tbaa !20
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %94, i32 0, i32 2
  %96 = load ptr, ptr %95, align 8, !tbaa !18
  %97 = ptrtoint ptr %96 to i32
  %98 = add i32 %97, 4
  %99 = zext i32 %98 to i64
  %100 = inttoptr i64 %99 to ptr
  %101 = load i32, ptr %100, align 4, !tbaa !10
  %102 = and i32 %101, 2147418112
  %103 = lshr i32 %102, 16
  %104 = sub i32 %93, %103
  store i32 %104, ptr %14, align 4, !tbaa !10
  %105 = load i32, ptr %14, align 4, !tbaa !10
  %106 = icmp ugt i32 %105, 0
  br i1 %106, label %107, label %110

107:                                              ; preds = %72
  %108 = load i32, ptr %14, align 4, !tbaa !10
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 %108, ptr %109, align 4, !tbaa !10
  br label %112

110:                                              ; preds = %72
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 0, ptr %111, align 4, !tbaa !10
  br label %112

112:                                              ; preds = %110, %107
  %113 = load ptr, ptr %12, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %113, i32 0, i32 2
  %115 = load ptr, ptr %114, align 8, !tbaa !18
  %116 = ptrtoint ptr %115 to i32
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 %116, ptr %117, align 4, !tbaa !10
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = ptrtoint ptr %119 to i32
  %121 = load ptr, ptr %12, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %121, i32 0, i32 2
  %123 = load ptr, ptr %122, align 8, !tbaa !18
  %124 = ptrtoint ptr %123 to i32
  %125 = add i32 %124, 8
  %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 %12, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %128, i32 0, i32 2
  %130 = load ptr, ptr %129, align 8, !tbaa !18
  %131 = ptrtoint ptr %130 to i32
  %132 = add i32 %131, 4
  %133 = zext i32 %132 to i64
  %134 = inttoptr i64 %133 to ptr
  %135 = load i32, ptr %134, align 4, !tbaa !10
  %136 = and i32 %135, -2147418113
  %137 = load ptr, ptr %13, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.XUsbPs_EpSetup, ptr %137, i32 0, i32 2
  %139 = load i32, ptr %138, align 4, !tbaa !20
  %140 = shl i32 %139, 16
  %141 = or i32 %136, %140
  %142 = load ptr, ptr %12, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %142, i32 0, i32 2
  %144 = load ptr, ptr %143, align 8, !tbaa !18
  %145 = ptrtoint ptr %144 to i32
  %146 = add i32 %145, 4
  %147 = zext i32 %146 to i64
  %148 = inttoptr i64 %147 to ptr
  store i32 %141, ptr %148, align 4, !tbaa !10
  %149 = load ptr, ptr %12, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.XUsbPs_EpOut, ptr %149, i32 0, i32 2
  %151 = load ptr, ptr %150, align 8, !tbaa !18
  %152 = ptrtoint ptr %151 to i32
  %153 = zext i32 %152 to i64
  call void @Xil_DCacheFlushRange(i64 noundef %153, i32 noundef 32)
  store i32 0, ptr %6, align 4
  store i32 1, ptr %15, align 4
  br label %154

154:                                              ; preds = %112, %71, %45, %34, %29, %24, %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  %155 = load i32, ptr %6, align 4
  ret i32 %155
}

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 = { 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 = !{!"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, !7, i64 32}
!13 = !{!"", !14, i64 0, !16, i64 8, !11, i64 16, !6, i64 24, !17, i64 32, !6, i64 2352, !6, i64 2360, !11, i64 2368, !6, i64 2376, !7, i64 2384, !6, i64 2392}
!14 = !{!"", !7, i64 0, !7, i64 1, !15, i64 2, !15, i64 4, !15, i64 6}
!15 = !{!"short", !7, i64 0}
!16 = !{!"", !15, i64 0, !11, i64 4}
!17 = !{!"", !7, i64 0, !7, i64 4, !11, i64 388, !7, i64 392, !11, i64 2312}
!18 = !{!19, !6, i64 16}
!19 = !{!"", !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}
!20 = !{!21, !11, i64 8}
!21 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !15, i64 12}


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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 1415) i32 @XUsbPs_EpBufferReceive(ptr noundef readonly %0, i8 noundef zeroext %1, ptr noundef writeonly %2, ptr noundef writeonly %3, ptr noundef writeonly %4) local_unnamed_addr #1 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %7, label %6

6:                                                ; preds = %5
  store i32 0, ptr @Xil_AssertStatus, align 4, !tbaa !5
  %.not33 = icmp eq ptr %2, null
  br i1 %.not33, label %9, label %8

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

8:                                                ; preds = %6
  %.not34 = icmp eq ptr %3, null
  br i1 %.not34, label %11, label %10

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

10:                                               ; preds = %8
  %.not35 = icmp eq ptr %4, null
  br i1 %.not35, label %16, label %12

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

12:                                               ; preds = %10
  %13 = getelementptr inbounds i8, ptr %0, i64 32
  %14 = load i8, ptr %13, align 8, !tbaa !9
  %15 = icmp ugt i8 %14, %1
  br i1 %15, label %17, label %31

16:                                               ; preds = %10
  tail call void @Xil_Assert(ptr noundef nonnull @.str, i32 noundef 513) #2
  store i32 1, ptr @Xil_AssertStatus, align 4, !tbaa !5
  br label %61

17:                                               ; preds = %12
  %18 = getelementptr inbounds i8, ptr %0, i64 424
  %19 = zext i8 %1 to i64
  %20 = getelementptr inbounds [12 x %struct.XUsbPs_Endpoint], ptr %18, i64 0, i64 %19, i32 0, i32 2
  %21 = load ptr, ptr %20, align 8, !tbaa !16
  %22 = ptrtoint ptr %21 to i64
  %23 = and i64 %22, 4294967295
  tail call void @Xil_DCacheInvalidateRange(i64 noundef %23, i32 noundef 32) #2
  %24 = load ptr, ptr %20, align 8, !tbaa !16
  %25 = ptrtoint ptr %24 to i64
  %26 = add i64 %25, 4
  %27 = and i64 %26, 4294967295
  %28 = inttoptr i64 %27 to ptr
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %30 = and i32 %29, 128
  %.not36 = icmp eq i32 %30, 0
  br i1 %.not36, label %32, label %61

31:                                               ; preds = %12
  tail call void @Xil_Assert(ptr noundef nonnull @.str, i32 noundef 514) #2
  store i32 1, ptr @Xil_AssertStatus, align 4, !tbaa !5
  br label %61

32:                                               ; preds = %17
  %33 = getelementptr inbounds i8, ptr %0, i64 36
  %34 = add i64 %25, 28
  %35 = and i64 %34, 4294967295
  %36 = inttoptr i64 %35 to ptr
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = zext i32 %37 to i64
  %39 = inttoptr i64 %38 to ptr
  store ptr %39, ptr %2, align 8, !tbaa !18
  %40 = getelementptr inbounds [12 x %struct.XUsbPs_EpConfig], ptr %33, i64 0, i64 %19, i32 0, i32 2
  %41 = load i32, ptr %40, align 4, !tbaa !19
  %42 = load ptr, ptr %20, align 8, !tbaa !16
  %43 = ptrtoint ptr %42 to i64
  %44 = add i64 %43, 4
  %45 = and i64 %44, 4294967295
  %46 = inttoptr i64 %45 to ptr
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = lshr i32 %47, 16
  %49 = and i32 %48, 32767
  %50 = sub i32 %41, %49
  store i32 %50, ptr %3, align 4, !tbaa !5
  %51 = trunc i64 %43 to i32
  store i32 %51, ptr %4, align 4, !tbaa !5
  %52 = add i64 %43, 8
  %53 = and i64 %52, 4294967295
  %54 = inttoptr i64 %53 to ptr
  store i32 %37, ptr %54, align 4, !tbaa !5
  %55 = load i32, ptr %46, align 4, !tbaa !5
  %56 = and i32 %55, -2147418113
  %57 = load i32, ptr %40, align 4, !tbaa !19
  %58 = shl i32 %57, 16
  %59 = or i32 %58, %56
  store i32 %59, ptr %46, align 4, !tbaa !5
  %60 = and i64 %43, 4294967295
  tail call void @Xil_DCacheFlushRange(i64 noundef %60, i32 noundef 32) #2
  br label %61

61:                                               ; preds = %17, %32, %31, %16, %11, %9, %7
  %.0 = phi i32 [ 0, %32 ], [ 0, %31 ], [ 0, %16 ], [ 0, %11 ], [ 0, %9 ], [ 0, %7 ], [ 1414, %17 ]
  ret i32 %.0
}

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 = { 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 32}
!10 = !{!"", !11, i64 0, !13, i64 8, !6, i64 16, !14, i64 24, !15, i64 32, !14, i64 2352, !14, i64 2360, !6, i64 2368, !14, i64 2376, !7, i64 2384, !14, i64 2392}
!11 = !{!"", !7, i64 0, !7, i64 1, !12, i64 2, !12, i64 4, !12, i64 6}
!12 = !{!"short", !7, i64 0}
!13 = !{!"", !12, i64 0, !6, i64 4}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!"", !7, i64 0, !7, i64 4, !6, i64 388, !7, i64 392, !6, i64 2312}
!16 = !{!17, !14, i64 16}
!17 = !{!"", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !6, i64 56, !6, i64 60, !14, i64 64, !7, i64 72, !6, i64 76}
!18 = !{!14, !14, i64 0}
!19 = !{!20, !6, i64 8}
!20 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !12, i64 12}


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