; LLVM IR from Stephane-D/SGDK :: src (sprite_eng)

; 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.VRAMRegion = type { i16, i16, ptr, ptr }
%struct.SpriteDefinition = type { i16, i16, ptr, i16, ptr, i16, i16 }
%struct.Sprite = type { i16, i16, ptr, ptr, ptr, ptr, i16, i16, i16, i16, i16, i16, i16, i64, ptr, ptr }

@vram = external hidden global %struct.VRAMRegion, align 8
@usedVDPSprite = external hidden global i16, align 2

; 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: noinline nounwind uwtable
define dso_local ptr @SPR_addSpriteEx(ptr noundef %0, i16 noundef signext %1, i16 noundef signext %2, i16 noundef zeroext %3, i16 noundef zeroext %4) #1 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i16, align 2
  %9 = alloca i16, align 2
  %10 = alloca i16, align 2
  %11 = alloca i16, align 2
  %12 = alloca i16, align 2
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i16, align 2
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i16 %1, ptr %8, align 2, !tbaa !9
  store i16 %2, ptr %9, align 2, !tbaa !9
  store i16 %3, ptr %10, align 2, !tbaa !9
  store i16 %4, ptr %11, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %16 = load i16, ptr %11, align 2, !tbaa !9
  %17 = zext i16 %16 to i32
  %18 = and i32 %17, 16384
  %19 = trunc i32 %18 to i16
  %20 = call ptr @allocateSprite(i16 noundef zeroext %19)
  store ptr %20, ptr %13, align 8, !tbaa !5
  %21 = load ptr, ptr %13, align 8, !tbaa !5
  %22 = icmp ne ptr %21, null
  br i1 %22, label %24, label %23

23:                                               ; preds = %5
  store ptr null, ptr %6, align 8
  store i32 1, ptr %14, align 4
  br label %150

24:                                               ; preds = %5
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.SpriteDefinition, ptr %25, i32 0, i32 6
  %27 = load i16, ptr %26, align 2, !tbaa !11
  %28 = zext i16 %27 to i32
  %29 = load i16, ptr @usedVDPSprite, align 2, !tbaa !9
  %30 = sext i16 %29 to i32
  %31 = add nsw i32 %30, %28
  %32 = trunc i32 %31 to i16
  store i16 %32, ptr @usedVDPSprite, align 2, !tbaa !9
  %33 = load i16, ptr @usedVDPSprite, align 2, !tbaa !9
  %34 = sext i16 %33 to i32
  %35 = and i32 %34, 32768
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %63

37:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 2, ptr %15) #4
  %38 = load i16, ptr @usedVDPSprite, align 2, !tbaa !9
  %39 = sext i16 %38 to i32
  %40 = and i32 %39, -32769
  %41 = trunc i32 %40 to i16
  store i16 %41, ptr %15, align 2, !tbaa !9
  %42 = load i16, ptr %15, align 2, !tbaa !9
  %43 = zext i16 %42 to i32
  %44 = call zeroext i16 @VDP_getScreenWidth()
  %45 = zext i16 %44 to i32
  %46 = ashr i32 %45, 2
  %47 = icmp sge i32 %43, %46
  br i1 %47, label %48, label %59

48:                                               ; preds = %37
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.SpriteDefinition, ptr %49, i32 0, i32 6
  %51 = load i16, ptr %50, align 2, !tbaa !11
  %52 = zext i16 %51 to i32
  %53 = load i16, ptr @usedVDPSprite, align 2, !tbaa !9
  %54 = sext i16 %53 to i32
  %55 = sub nsw i32 %54, %52
  %56 = trunc i32 %55 to i16
  store i16 %56, ptr @usedVDPSprite, align 2, !tbaa !9
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = call zeroext i8 @releaseSprite(ptr noundef %57)
  store ptr null, ptr %6, align 8
  store i32 1, ptr %14, align 4
  br label %60

59:                                               ; preds = %37
  store i32 0, ptr %14, align 4
  br label %60

60:                                               ; preds = %59, %48
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #4
  %61 = load i32, ptr %14, align 4
  switch i32 %61, label %150 [
    i32 0, label %62
  ]

62:                                               ; preds = %60
  br label %63

63:                                               ; preds = %62, %24
  %64 = load i16, ptr %11, align 2, !tbaa !9
  %65 = zext i16 %64 to i32
  %66 = and i32 %65, 24320
  %67 = or i32 32768, %66
  %68 = trunc i32 %67 to i16
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.Sprite, ptr %69, i32 0, i32 0
  store i16 %68, ptr %70, align 8, !tbaa !13
  %71 = load i16, ptr %11, align 2, !tbaa !9
  %72 = zext i16 %71 to i32
  %73 = and i32 %72, 512
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %78

75:                                               ; preds = %63
  %76 = load ptr, ptr %13, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.Sprite, ptr %76, i32 0, i32 1
  store i16 0, ptr %77, align 2, !tbaa !16
  br label %81

78:                                               ; preds = %63
  %79 = load ptr, ptr %13, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.Sprite, ptr %79, i32 0, i32 1
  store i16 -1, ptr %80, align 2, !tbaa !16
  br label %81

81:                                               ; preds = %78, %75
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = load ptr, ptr %13, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.Sprite, ptr %83, i32 0, i32 2
  store ptr %82, ptr %84, align 8, !tbaa !17
  %85 = load ptr, ptr %13, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.Sprite, ptr %85, i32 0, i32 3
  store ptr null, ptr %86, align 8, !tbaa !18
  %87 = load ptr, ptr %13, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.Sprite, ptr %87, i32 0, i32 5
  store ptr null, ptr %88, align 8, !tbaa !19
  %89 = load ptr, ptr %13, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.Sprite, ptr %89, i32 0, i32 6
  store i16 -1, ptr %90, align 8, !tbaa !20
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.Sprite, ptr %91, i32 0, i32 7
  store i16 -1, ptr %92, align 2, !tbaa !21
  %93 = load ptr, ptr %13, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.Sprite, ptr %93, i32 0, i32 8
  store i16 0, ptr %94, align 4, !tbaa !22
  %95 = load i16, ptr %8, align 2, !tbaa !9
  %96 = sext i16 %95 to i32
  %97 = add nsw i32 %96, 128
  %98 = trunc i32 %97 to i16
  %99 = load ptr, ptr %13, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.Sprite, ptr %99, i32 0, i32 9
  store i16 %98, ptr %100, align 2, !tbaa !23
  %101 = load i16, ptr %9, align 2, !tbaa !9
  %102 = sext i16 %101 to i32
  %103 = add nsw i32 %102, 128
  %104 = trunc i32 %103 to i16
  %105 = load ptr, ptr %13, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.Sprite, ptr %105, i32 0, i32 10
  store i16 %104, ptr %106, align 8, !tbaa !24
  %107 = load i16, ptr %11, align 2, !tbaa !9
  %108 = zext i16 %107 to i32
  %109 = and i32 %108, 16384
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %114

111:                                              ; preds = %81
  %112 = load ptr, ptr %13, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.Sprite, ptr %112, i32 0, i32 11
  store i16 -32768, ptr %113, align 2, !tbaa !25
  br label %117

114:                                              ; preds = %81
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.Sprite, ptr %115, i32 0, i32 11
  store i16 32767, ptr %116, align 2, !tbaa !25
  br label %117

117:                                              ; preds = %114, %111
  %118 = load i16, ptr %11, align 2, !tbaa !9
  %119 = zext i16 %118 to i32
  %120 = and i32 %119, 2048
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %122, label %143

122:                                              ; preds = %117
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.SpriteDefinition, ptr %123, i32 0, i32 5
  %125 = load i16, ptr %124, align 8, !tbaa !26
  %126 = call signext i16 @VRAM_alloc(ptr noundef @vram, i16 noundef zeroext %125)
  store i16 %126, ptr %12, align 2, !tbaa !9
  %127 = load i16, ptr %12, align 2, !tbaa !9
  %128 = sext i16 %127 to i32
  %129 = icmp slt i32 %128, 0
  br i1 %129, label %130, label %133

130:                                              ; preds = %122
  %131 = load ptr, ptr %13, align 8, !tbaa !5
  %132 = call zeroext i8 @releaseSprite(ptr noundef %131)
  store ptr null, ptr %6, align 8
  store i32 1, ptr %14, align 4
  br label %150

133:                                              ; preds = %122
  %134 = load i16, ptr %12, align 2, !tbaa !9
  %135 = sext i16 %134 to i32
  %136 = load i16, ptr %10, align 2, !tbaa !9
  %137 = zext i16 %136 to i32
  %138 = and i32 %137, 63488
  %139 = or i32 %135, %138
  %140 = trunc i32 %139 to i16
  %141 = load ptr, ptr %13, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.Sprite, ptr %141, i32 0, i32 12
  store i16 %140, ptr %142, align 4, !tbaa !27
  br label %147

143:                                              ; preds = %117
  %144 = load i16, ptr %10, align 2, !tbaa !9
  %145 = load ptr, ptr %13, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.Sprite, ptr %145, i32 0, i32 12
  store i16 %144, ptr %146, align 4, !tbaa !27
  br label %147

147:                                              ; preds = %143, %133
  %148 = load ptr, ptr %13, align 8, !tbaa !5
  call void @SPR_setAnimAndFrame(ptr noundef %148, i16 noundef signext 0, i16 noundef signext 0)
  %149 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %149, ptr %6, align 8
  store i32 1, ptr %14, align 4
  br label %150

150:                                              ; preds = %147, %130, %60, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %12) #4
  %151 = load ptr, ptr %6, align 8
  ret ptr %151
}

; Function Attrs: nounwind uwtable
declare hidden ptr @allocateSprite(i16 noundef zeroext) #2

declare zeroext i16 @VDP_getScreenWidth() #3

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @releaseSprite(ptr noundef) #2

declare signext i16 @VRAM_alloc(ptr noundef, i16 noundef zeroext) #3

; Function Attrs: nounwind uwtable
declare dso_local void @SPR_setAnimAndFrame(ptr noundef, i16 noundef signext, i16 noundef signext) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noinline 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 = { "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 = !{!"short", !7, i64 0}
!11 = !{!12, !10, i64 34}
!12 = !{!"", !10, i64 0, !10, i64 2, !6, i64 8, !10, i64 16, !6, i64 24, !10, i64 32, !10, i64 34}
!13 = !{!14, !10, i64 0}
!14 = !{!"Sprite", !10, i64 0, !10, i64 2, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40, !10, i64 42, !10, i64 44, !10, i64 46, !10, i64 48, !10, i64 50, !10, i64 52, !15, i64 56, !6, i64 64, !6, i64 72}
!15 = !{!"long", !7, i64 0}
!16 = !{!14, !10, i64 2}
!17 = !{!14, !6, i64 8}
!18 = !{!14, !6, i64 16}
!19 = !{!14, !6, i64 32}
!20 = !{!14, !10, i64 40}
!21 = !{!14, !10, i64 42}
!22 = !{!14, !10, i64 44}
!23 = !{!14, !10, i64 46}
!24 = !{!14, !10, i64 48}
!25 = !{!14, !10, i64 50}
!26 = !{!12, !10, i64 32}
!27 = !{!14, !10, i64 52}


; 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.VRAMRegion = type { i16, i16, ptr, ptr }

@vram = external hidden global %struct.VRAMRegion, align 8
@usedVDPSprite = external hidden local_unnamed_addr global i16, align 2

; Function Attrs: noinline nounwind uwtable
define dso_local ptr @SPR_addSpriteEx(ptr noundef %0, i16 noundef signext %1, i16 noundef signext %2, i16 noundef zeroext %3, i16 noundef zeroext %4) local_unnamed_addr #0 {
  %6 = zext i16 %4 to i32
  %7 = and i32 %6, 16384
  %8 = trunc nuw nsw i32 %7 to i16
  %9 = tail call ptr @allocateSprite(i16 noundef zeroext %8)
  %.not = icmp eq ptr %9, null
  br i1 %.not, label %53, label %10

10:                                               ; preds = %5
  %11 = getelementptr inbounds i8, ptr %0, i64 34
  %12 = load i16, ptr %11, align 2, !tbaa !5
  %13 = load i16, ptr @usedVDPSprite, align 2, !tbaa !11
  %14 = add i16 %13, %12
  store i16 %14, ptr @usedVDPSprite, align 2, !tbaa !11
  %.not39 = icmp sgt i16 %14, -1
  br i1 %.not39, label %.critedge, label %15

15:                                               ; preds = %10
  %16 = and i16 %14, 32767
  %17 = tail call zeroext i16 @VDP_getScreenWidth() #3
  %18 = lshr i16 %17, 2
  %.not40 = icmp ult i16 %16, %18
  br i1 %.not40, label %.critedge, label %19

19:                                               ; preds = %15
  %20 = load i16, ptr %11, align 2, !tbaa !5
  %21 = load i16, ptr @usedVDPSprite, align 2, !tbaa !11
  %22 = sub i16 %21, %20
  store i16 %22, ptr @usedVDPSprite, align 2, !tbaa !11
  %23 = tail call zeroext i8 @releaseSprite(ptr noundef nonnull %9)
  br label %53

.critedge:                                        ; preds = %15, %10
  %24 = and i16 %4, 24320
  %25 = or disjoint i16 %24, -32768
  store i16 %25, ptr %9, align 8, !tbaa !12
  %26 = lshr i16 %4, 9
  %27 = and i16 %26, 1
  %sext = add nsw i16 %27, -1
  %28 = getelementptr inbounds i8, ptr %9, i64 2
  store i16 %sext, ptr %28, align 2
  %29 = getelementptr inbounds i8, ptr %9, i64 8
  store ptr %0, ptr %29, align 8, !tbaa !15
  %30 = getelementptr inbounds i8, ptr %9, i64 16
  store ptr null, ptr %30, align 8, !tbaa !16
  %31 = getelementptr inbounds i8, ptr %9, i64 32
  store ptr null, ptr %31, align 8, !tbaa !17
  %32 = getelementptr inbounds i8, ptr %9, i64 40
  store i16 -1, ptr %32, align 8, !tbaa !18
  %33 = getelementptr inbounds i8, ptr %9, i64 42
  store i16 -1, ptr %33, align 2, !tbaa !19
  %34 = getelementptr inbounds i8, ptr %9, i64 44
  store i16 0, ptr %34, align 4, !tbaa !20
  %35 = add i16 %1, 128
  %36 = getelementptr inbounds i8, ptr %9, i64 46
  store i16 %35, ptr %36, align 2, !tbaa !21
  %37 = add i16 %2, 128
  %38 = getelementptr inbounds i8, ptr %9, i64 48
  store i16 %37, ptr %38, align 8, !tbaa !22
  %.not42 = icmp eq i32 %7, 0
  %.sink44 = select i1 %.not42, i16 32767, i16 -32768
  %39 = getelementptr inbounds i8, ptr %9, i64 50
  store i16 %.sink44, ptr %39, align 2
  %40 = and i32 %6, 2048
  %.not43 = icmp eq i32 %40, 0
  br i1 %.not43, label %51, label %41

41:                                               ; preds = %.critedge
  %42 = getelementptr inbounds i8, ptr %0, i64 32
  %43 = load i16, ptr %42, align 8, !tbaa !23
  %44 = tail call signext i16 @VRAM_alloc(ptr noundef nonnull @vram, i16 noundef zeroext %43) #3
  %45 = icmp slt i16 %44, 0
  br i1 %45, label %46, label %48

46:                                               ; preds = %41
  %47 = tail call zeroext i8 @releaseSprite(ptr noundef nonnull %9)
  br label %53

48:                                               ; preds = %41
  %49 = and i16 %3, -2048
  %50 = or i16 %44, %49
  br label %51

51:                                               ; preds = %.critedge, %48
  %.sink = phi i16 [ %50, %48 ], [ %3, %.critedge ]
  %52 = getelementptr inbounds i8, ptr %9, i64 52
  store i16 %.sink, ptr %52, align 4, !tbaa !24
  tail call void @SPR_setAnimAndFrame(ptr noundef nonnull %9, i16 noundef signext 0, i16 noundef signext 0)
  br label %53

53:                                               ; preds = %19, %5, %51, %46
  %.1 = phi ptr [ null, %46 ], [ %9, %51 ], [ null, %19 ], [ null, %5 ]
  ret ptr %.1
}

; Function Attrs: nounwind uwtable
declare hidden ptr @allocateSprite(i16 noundef zeroext) local_unnamed_addr #1

declare zeroext i16 @VDP_getScreenWidth() local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare hidden zeroext i8 @releaseSprite(ptr noundef) local_unnamed_addr #1

declare signext i16 @VRAM_alloc(ptr noundef, i16 noundef zeroext) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @SPR_setAnimAndFrame(ptr noundef, i16 noundef signext, i16 noundef signext) local_unnamed_addr #1

attributes #0 = { noinline nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 34}
!6 = !{!"", !7, i64 0, !7, i64 2, !10, i64 8, !7, i64 16, !10, i64 24, !7, i64 32, !7, i64 34}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !7, i64 0}
!13 = !{!"Sprite", !7, i64 0, !7, i64 2, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !7, i64 40, !7, i64 42, !7, i64 44, !7, i64 46, !7, i64 48, !7, i64 50, !7, i64 52, !14, i64 56, !10, i64 64, !10, i64 72}
!14 = !{!"long", !8, i64 0}
!15 = !{!13, !10, i64 8}
!16 = !{!13, !10, i64 16}
!17 = !{!13, !10, i64 32}
!18 = !{!13, !7, i64 40}
!19 = !{!13, !7, i64 42}
!20 = !{!13, !7, i64 44}
!21 = !{!13, !7, i64 46}
!22 = !{!13, !7, i64 48}
!23 = !{!6, !7, i64 32}
!24 = !{!13, !7, i64 52}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MergedLoadStoreMotionPass,SROAPass,SimplifyCFGPass,TailCallElimPass