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

; 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.Map = type { i16, i16, ptr, ptr, ptr, ptr, i32, i16, i64, i64, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, [240 x i16], [20 x i16], ptr, ptr, ptr, ptr, ptr }

@screenHeight = external 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 void @MAP_scrollToEx(ptr noundef %0, i64 noundef %1, i64 noundef %2, i8 noundef zeroext %3) #1 {
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca i16, align 2
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  store i64 %2, ptr %7, align 8, !tbaa !9
  store i8 %3, ptr %8, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #4
  %11 = load i8, ptr %8, align 1, !tbaa !11
  %12 = zext i8 %11 to i32
  %13 = icmp ne i32 %12, 0
  br i1 %13, label %20, label %14

14:                                               ; preds = %4
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.Map, ptr %15, i32 0, i32 17
  %17 = load i16, ptr %16, align 2, !tbaa !12
  %18 = zext i16 %17 to i32
  %19 = icmp ne i32 %18, 0
  br label %20

20:                                               ; preds = %14, %4
  %21 = phi i1 [ true, %4 ], [ %19, %14 ]
  %22 = zext i1 %21 to i32
  %23 = trunc i32 %22 to i8
  store i8 %23, ptr %9, align 1, !tbaa !11
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.Map, ptr %24, i32 0, i32 17
  store i16 0, ptr %25, align 2, !tbaa !12
  %26 = load i8, ptr %9, align 1, !tbaa !11
  %27 = icmp ne i8 %26, 0
  br i1 %27, label %28, label %50

28:                                               ; preds = %20
  %29 = load i64, ptr %6, align 8, !tbaa !9
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.Map, ptr %30, i32 0, i32 8
  store i64 %29, ptr %31, align 8, !tbaa !16
  %32 = load i64, ptr %7, align 8, !tbaa !9
  %33 = sub i64 %32, 256
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.Map, ptr %34, i32 0, i32 9
  store i64 %33, ptr %35, align 8, !tbaa !17
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.Map, ptr %36, i32 0, i32 8
  %38 = load i64, ptr %37, align 8, !tbaa !16
  %39 = lshr i64 %38, 4
  %40 = trunc i64 %39 to i16
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.Map, ptr %41, i32 0, i32 18
  store i16 %40, ptr %42, align 8, !tbaa !18
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.Map, ptr %43, i32 0, i32 9
  %45 = load i64, ptr %44, align 8, !tbaa !17
  %46 = lshr i64 %45, 4
  %47 = trunc i64 %46 to i16
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.Map, ptr %48, i32 0, i32 19
  store i16 %47, ptr %49, align 2, !tbaa !19
  br label %50

50:                                               ; preds = %28, %20
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = load i64, ptr %6, align 8, !tbaa !9
  %53 = lshr i64 %52, 4
  %54 = trunc i64 %53 to i16
  %55 = load i64, ptr %7, align 8, !tbaa !9
  %56 = lshr i64 %55, 4
  %57 = trunc i64 %56 to i16
  call void @updateMap(ptr noundef %51, i16 noundef signext %54, i16 noundef signext %57)
  %58 = load i8, ptr %9, align 1, !tbaa !11
  %59 = zext i8 %58 to i32
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %67, label %61

61:                                               ; preds = %50
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.Map, ptr %62, i32 0, i32 8
  %64 = load i64, ptr %63, align 8, !tbaa !16
  %65 = load i64, ptr %6, align 8, !tbaa !9
  %66 = icmp ne i64 %64, %65
  br i1 %66, label %67, label %116

67:                                               ; preds = %61, %50
  call void @llvm.lifetime.start.p0(i64 2, ptr %10) #4
  %68 = call zeroext i8 @VDP_getHorizontalScrollingMode()
  %69 = zext i8 %68 to i32
  switch i32 %69, label %112 [
    i32 0, label %70
    i32 2, label %77
    i32 3, label %96
  ]

70:                                               ; preds = %67
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.Map, ptr %71, i32 0, i32 6
  %73 = load i32, ptr %72, align 8, !tbaa !20
  %74 = load i64, ptr %6, align 8, !tbaa !9
  %75 = sub i64 0, %74
  %76 = trunc i64 %75 to i16
  call void @VDP_setHorizontalScrollVSync(i32 noundef %73, i16 noundef signext %76)
  br label %112

77:                                               ; preds = %67
  %78 = load i16, ptr @screenHeight, align 2, !tbaa !21
  %79 = zext i16 %78 to i32
  %80 = sdiv i32 %79, 8
  %81 = trunc i32 %80 to i16
  store i16 %81, ptr %10, align 2, !tbaa !21
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.Map, ptr %82, i32 0, i32 20
  %84 = getelementptr inbounds [240 x i16], ptr %83, i64 0, i64 0
  %85 = load i64, ptr %6, align 8, !tbaa !9
  %86 = sub i64 0, %85
  %87 = trunc i64 %86 to i16
  %88 = load i16, ptr %10, align 2, !tbaa !21
  call void @memsetU16(ptr noundef %84, i16 noundef zeroext %87, i16 noundef zeroext %88)
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.Map, ptr %89, i32 0, i32 6
  %91 = load i32, ptr %90, align 8, !tbaa !20
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.Map, ptr %92, i32 0, i32 20
  %94 = getelementptr inbounds [240 x i16], ptr %93, i64 0, i64 0
  %95 = load i16, ptr %10, align 2, !tbaa !21
  call void @VDP_setHorizontalScrollTile(i32 noundef %91, i16 noundef zeroext 0, ptr noundef %94, i16 noundef zeroext %95, i32 noundef 2)
  br label %112

96:                                               ; preds = %67
  %97 = load i16, ptr @screenHeight, align 2, !tbaa !21
  store i16 %97, ptr %10, align 2, !tbaa !21
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.Map, ptr %98, i32 0, i32 20
  %100 = getelementptr inbounds [240 x i16], ptr %99, i64 0, i64 0
  %101 = load i64, ptr %6, align 8, !tbaa !9
  %102 = sub i64 0, %101
  %103 = trunc i64 %102 to i16
  %104 = load i16, ptr %10, align 2, !tbaa !21
  call void @memsetU16(ptr noundef %100, i16 noundef zeroext %103, i16 noundef zeroext %104)
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.Map, ptr %105, i32 0, i32 6
  %107 = load i32, ptr %106, align 8, !tbaa !20
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.Map, ptr %108, i32 0, i32 20
  %110 = getelementptr inbounds [240 x i16], ptr %109, i64 0, i64 0
  %111 = load i16, ptr %10, align 2, !tbaa !21
  call void @VDP_setHorizontalScrollLine(i32 noundef %107, i16 noundef zeroext 0, ptr noundef %110, i16 noundef zeroext %111, i32 noundef 2)
  br label %112

112:                                              ; preds = %96, %77, %70, %67
  %113 = load i64, ptr %6, align 8, !tbaa !9
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.Map, ptr %114, i32 0, i32 8
  store i64 %113, ptr %115, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 2, ptr %10) #4
  br label %116

116:                                              ; preds = %112, %61
  %117 = load i8, ptr %9, align 1, !tbaa !11
  %118 = zext i8 %117 to i32
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %126, label %120

120:                                              ; preds = %116
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.Map, ptr %121, i32 0, i32 9
  %123 = load i64, ptr %122, align 8, !tbaa !17
  %124 = load i64, ptr %7, align 8, !tbaa !9
  %125 = icmp ne i64 %123, %124
  br i1 %125, label %126, label %151

126:                                              ; preds = %120, %116
  %127 = call zeroext i8 @VDP_getVerticalScrollingMode()
  %128 = zext i8 %127 to i32
  switch i32 %128, label %147 [
    i32 0, label %129
    i32 1, label %135
  ]

129:                                              ; preds = %126
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.Map, ptr %130, i32 0, i32 6
  %132 = load i32, ptr %131, align 8, !tbaa !20
  %133 = load i64, ptr %7, align 8, !tbaa !9
  %134 = trunc i64 %133 to i16
  call void @VDP_setVerticalScrollVSync(i32 noundef %132, i16 noundef signext %134)
  br label %147

135:                                              ; preds = %126
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.Map, ptr %136, i32 0, i32 21
  %138 = getelementptr inbounds [20 x i16], ptr %137, i64 0, i64 0
  %139 = load i64, ptr %7, align 8, !tbaa !9
  %140 = trunc i64 %139 to i16
  call void @memsetU16(ptr noundef %138, i16 noundef zeroext %140, i16 noundef zeroext 20)
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.Map, ptr %141, i32 0, i32 6
  %143 = load i32, ptr %142, align 8, !tbaa !20
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.Map, ptr %144, i32 0, i32 21
  %146 = getelementptr inbounds [20 x i16], ptr %145, i64 0, i64 0
  call void @VDP_setVerticalScrollTile(i32 noundef %143, i16 noundef zeroext 0, ptr noundef %146, i16 noundef zeroext 20, i32 noundef 2)
  br label %147

147:                                              ; preds = %135, %129, %126
  %148 = load i64, ptr %7, align 8, !tbaa !9
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.Map, ptr %149, i32 0, i32 9
  store i64 %148, ptr %150, align 8, !tbaa !17
  br label %151

151:                                              ; preds = %147, %120
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  ret void
}

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

declare zeroext i8 @VDP_getHorizontalScrollingMode() #3

declare void @VDP_setHorizontalScrollVSync(i32 noundef, i16 noundef signext) #3

declare void @memsetU16(ptr noundef, i16 noundef zeroext, i16 noundef zeroext) #3

declare void @VDP_setHorizontalScrollTile(i32 noundef, i16 noundef zeroext, ptr noundef, i16 noundef zeroext, i32 noundef) #3

declare void @VDP_setHorizontalScrollLine(i32 noundef, i16 noundef zeroext, ptr noundef, i16 noundef zeroext, i32 noundef) #3

declare zeroext i8 @VDP_getVerticalScrollingMode() #3

declare void @VDP_setVerticalScrollVSync(i32 noundef, i16 noundef signext) #3

declare void @VDP_setVerticalScrollTile(i32 noundef, i16 noundef zeroext, ptr noundef, i16 noundef zeroext, i32 noundef) #3

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 = !{!"long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !14, i64 78}
!13 = !{!"Map", !14, i64 0, !14, i64 2, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !15, i64 40, !14, i64 44, !10, i64 48, !10, i64 56, !14, i64 64, !14, i64 66, !14, i64 68, !14, i64 70, !14, i64 72, !14, i64 74, !14, i64 76, !14, i64 78, !14, i64 80, !14, i64 82, !7, i64 84, !7, i64 564, !6, i64 608, !6, i64 616, !6, i64 624, !6, i64 632, !6, i64 640}
!14 = !{!"short", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!13, !10, i64 48}
!17 = !{!13, !10, i64 56}
!18 = !{!13, !14, i64 80}
!19 = !{!13, !14, i64 82}
!20 = !{!13, !15, i64 40}
!21 = !{!14, !14, i64 0}


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

@screenHeight = external local_unnamed_addr global i16, align 2

; Function Attrs: noinline nounwind uwtable
define dso_local void @MAP_scrollToEx(ptr noundef %0, i64 noundef %1, i64 noundef %2, i8 noundef zeroext %3) local_unnamed_addr #0 {
  %.not = icmp eq i8 %3, 0
  %5 = getelementptr inbounds i8, ptr %0, i64 78
  br i1 %.not, label %6, label %.thread

.thread:                                          ; preds = %4
  store i16 0, ptr %5, align 2, !tbaa !5
  br label %8

6:                                                ; preds = %4
  %7 = load i16, ptr %5, align 2, !tbaa !5
  %.not46 = icmp eq i16 %7, 0
  store i16 0, ptr %5, align 2, !tbaa !5
  br i1 %.not46, label %.critedge, label %8

8:                                                ; preds = %.thread, %6
  %9 = getelementptr inbounds i8, ptr %0, i64 48
  store i64 %1, ptr %9, align 8, !tbaa !13
  %10 = add i64 %2, -256
  %11 = getelementptr inbounds i8, ptr %0, i64 56
  store i64 %10, ptr %11, align 8, !tbaa !14
  %12 = lshr i64 %1, 4
  %13 = trunc i64 %12 to i16
  %14 = getelementptr inbounds i8, ptr %0, i64 80
  store i16 %13, ptr %14, align 8, !tbaa !15
  %15 = lshr i64 %10, 4
  %16 = trunc i64 %15 to i16
  %17 = getelementptr inbounds i8, ptr %0, i64 82
  store i16 %16, ptr %17, align 2, !tbaa !16
  %18 = lshr i64 %2, 4
  %19 = trunc i64 %18 to i16
  tail call void @updateMap(ptr noundef nonnull %0, i16 noundef signext %13, i16 noundef signext %19)
  br label %26

.critedge:                                        ; preds = %6
  %20 = lshr i64 %1, 4
  %21 = trunc i64 %20 to i16
  %22 = lshr i64 %2, 4
  %23 = trunc i64 %22 to i16
  tail call void @updateMap(ptr noundef nonnull %0, i16 noundef signext %21, i16 noundef signext %23)
  %24 = getelementptr inbounds i8, ptr %0, i64 48
  %25 = load i64, ptr %24, align 8, !tbaa !13
  %.not47 = icmp eq i64 %25, %1
  br i1 %.not47, label %.thread53, label %26

26:                                               ; preds = %8, %.critedge
  %.not4451 = phi i1 [ false, %8 ], [ true, %.critedge ]
  %27 = tail call zeroext i8 @VDP_getHorizontalScrollingMode() #3
  switch i8 %27, label %48 [
    i8 0, label %28
    i8 2, label %33
    i8 3, label %41
  ]

28:                                               ; preds = %26
  %29 = getelementptr inbounds i8, ptr %0, i64 40
  %30 = load i32, ptr %29, align 8, !tbaa !17
  %31 = trunc i64 %1 to i16
  %32 = sub i16 0, %31
  tail call void @VDP_setHorizontalScrollVSync(i32 noundef %30, i16 noundef signext %32) #3
  br label %48

33:                                               ; preds = %26
  %34 = load i16, ptr @screenHeight, align 2, !tbaa !18
  %35 = lshr i16 %34, 3
  %36 = getelementptr inbounds i8, ptr %0, i64 84
  %37 = trunc i64 %1 to i16
  %38 = sub i16 0, %37
  tail call void @memsetU16(ptr noundef nonnull %36, i16 noundef zeroext %38, i16 noundef zeroext %35) #3
  %39 = getelementptr inbounds i8, ptr %0, i64 40
  %40 = load i32, ptr %39, align 8, !tbaa !17
  tail call void @VDP_setHorizontalScrollTile(i32 noundef %40, i16 noundef zeroext 0, ptr noundef nonnull %36, i16 noundef zeroext %35, i32 noundef 2) #3
  br label %48

41:                                               ; preds = %26
  %42 = load i16, ptr @screenHeight, align 2, !tbaa !18
  %43 = getelementptr inbounds i8, ptr %0, i64 84
  %44 = trunc i64 %1 to i16
  %45 = sub i16 0, %44
  tail call void @memsetU16(ptr noundef nonnull %43, i16 noundef zeroext %45, i16 noundef zeroext %42) #3
  %46 = getelementptr inbounds i8, ptr %0, i64 40
  %47 = load i32, ptr %46, align 8, !tbaa !17
  tail call void @VDP_setHorizontalScrollLine(i32 noundef %47, i16 noundef zeroext 0, ptr noundef nonnull %43, i16 noundef zeroext %42, i32 noundef 2) #3
  br label %48

48:                                               ; preds = %26, %28, %33, %41
  %49 = getelementptr inbounds i8, ptr %0, i64 48
  store i64 %1, ptr %49, align 8, !tbaa !13
  br i1 %.not4451, label %.thread53, label %52

.thread53:                                        ; preds = %.critedge, %48
  %50 = getelementptr inbounds i8, ptr %0, i64 56
  %51 = load i64, ptr %50, align 8, !tbaa !14
  %.not48 = icmp eq i64 %51, %2
  br i1 %.not48, label %65, label %52

52:                                               ; preds = %.thread53, %48
  %53 = tail call zeroext i8 @VDP_getVerticalScrollingMode() #3
  switch i8 %53, label %63 [
    i8 0, label %54
    i8 1, label %58
  ]

54:                                               ; preds = %52
  %55 = getelementptr inbounds i8, ptr %0, i64 40
  %56 = load i32, ptr %55, align 8, !tbaa !17
  %57 = trunc i64 %2 to i16
  tail call void @VDP_setVerticalScrollVSync(i32 noundef %56, i16 noundef signext %57) #3
  br label %63

58:                                               ; preds = %52
  %59 = getelementptr inbounds i8, ptr %0, i64 564
  %60 = trunc i64 %2 to i16
  tail call void @memsetU16(ptr noundef nonnull %59, i16 noundef zeroext %60, i16 noundef zeroext 20) #3
  %61 = getelementptr inbounds i8, ptr %0, i64 40
  %62 = load i32, ptr %61, align 8, !tbaa !17
  tail call void @VDP_setVerticalScrollTile(i32 noundef %62, i16 noundef zeroext 0, ptr noundef nonnull %59, i16 noundef zeroext 20, i32 noundef 2) #3
  br label %63

63:                                               ; preds = %58, %54, %52
  %64 = getelementptr inbounds i8, ptr %0, i64 56
  store i64 %2, ptr %64, align 8, !tbaa !14
  br label %65

65:                                               ; preds = %63, %.thread53
  ret void
}

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

declare zeroext i8 @VDP_getHorizontalScrollingMode() local_unnamed_addr #2

declare void @VDP_setHorizontalScrollVSync(i32 noundef, i16 noundef signext) local_unnamed_addr #2

declare void @memsetU16(ptr noundef, i16 noundef zeroext, i16 noundef zeroext) local_unnamed_addr #2

declare void @VDP_setHorizontalScrollTile(i32 noundef, i16 noundef zeroext, ptr noundef, i16 noundef zeroext, i32 noundef) local_unnamed_addr #2

declare void @VDP_setHorizontalScrollLine(i32 noundef, i16 noundef zeroext, ptr noundef, i16 noundef zeroext, i32 noundef) local_unnamed_addr #2

declare zeroext i8 @VDP_getVerticalScrollingMode() local_unnamed_addr #2

declare void @VDP_setVerticalScrollVSync(i32 noundef, i16 noundef signext) local_unnamed_addr #2

declare void @VDP_setVerticalScrollTile(i32 noundef, i16 noundef zeroext, ptr noundef, i16 noundef zeroext, i32 noundef) local_unnamed_addr #2

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 78}
!6 = !{!"Map", !7, i64 0, !7, i64 2, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !11, i64 40, !7, i64 44, !12, i64 48, !12, i64 56, !7, i64 64, !7, i64 66, !7, i64 68, !7, i64 70, !7, i64 72, !7, i64 74, !7, i64 76, !7, i64 78, !7, i64 80, !7, i64 82, !8, i64 84, !8, i64 564, !10, i64 608, !10, i64 616, !10, i64 624, !10, i64 632, !10, i64 640}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !12, i64 48}
!14 = !{!6, !12, i64 56}
!15 = !{!6, !7, i64 80}
!16 = !{!6, !7, i64 82}
!17 = !{!6, !11, i64 40}
!18 = !{!7, !7, i64 0}


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