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

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

@planeWidth = external global i16, align 2
@windowWidth = 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: nounwind uwtable
declare dso_local zeroext i16 @VDP_getPlaneAddress(i32 noundef, i16 noundef zeroext, i16 noundef zeroext) #1

declare void @VDP_setAutoInc(i8 noundef zeroext) #2

; Function Attrs: nounwind uwtable
define dso_local void @VDP_fillTileMapRect(i32 noundef %0, i16 noundef zeroext %1, i16 noundef zeroext %2, i16 noundef zeroext %3, i16 noundef zeroext %4, i16 noundef zeroext %5) #1 {
  %7 = alloca i32, align 4
  %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 ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i16, align 2
  %17 = alloca i16, align 2
  %18 = alloca i16, align 2
  %19 = alloca i16, align 2
  %20 = alloca i64, align 8
  store i32 %0, ptr %7, align 4, !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
  store i16 %5, ptr %12, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 2, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 2, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 2, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 2, ptr %19) #3
  call void @VDP_setAutoInc(i8 noundef zeroext 2)
  store ptr inttoptr (i64 12582916 to ptr), ptr %13, align 8, !tbaa !11
  store ptr inttoptr (i64 12582912 to ptr), ptr %14, align 8, !tbaa !11
  store ptr inttoptr (i64 12582912 to ptr), ptr %15, align 8, !tbaa !11
  %21 = load i32, ptr %7, align 4, !tbaa !5
  %22 = load i16, ptr %9, align 2, !tbaa !9
  %23 = load i16, ptr %10, align 2, !tbaa !9
  %24 = call zeroext i16 @VDP_getPlaneAddress(i32 noundef %21, i16 noundef zeroext %22, i16 noundef zeroext %23)
  store i16 %24, ptr %16, align 2, !tbaa !9
  %25 = load i32, ptr %7, align 4, !tbaa !5
  %26 = icmp eq i32 %25, 2
  br i1 %26, label %27, label %30

27:                                               ; preds = %6
  %28 = load i16, ptr @windowWidth, align 2, !tbaa !9
  %29 = zext i16 %28 to i32
  br label %33

30:                                               ; preds = %6
  %31 = load i16, ptr @planeWidth, align 2, !tbaa !9
  %32 = zext i16 %31 to i32
  br label %33

33:                                               ; preds = %30, %27
  %34 = phi i32 [ %29, %27 ], [ %32, %30 ]
  %35 = trunc i32 %34 to i16
  store i16 %35, ptr %17, align 2, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  %36 = load i16, ptr %8, align 2, !tbaa !9
  %37 = zext i16 %36 to i64
  %38 = shl i64 %37, 16
  %39 = load i16, ptr %8, align 2, !tbaa !9
  %40 = zext i16 %39 to i64
  %41 = or i64 %38, %40
  store i64 %41, ptr %20, align 8, !tbaa !13
  %42 = load i16, ptr %12, align 2, !tbaa !9
  store i16 %42, ptr %18, align 2, !tbaa !9
  br label %43

43:                                               ; preds = %88, %33
  %44 = load i16, ptr %18, align 2, !tbaa !9
  %45 = add i16 %44, -1
  store i16 %45, ptr %18, align 2, !tbaa !9
  %46 = icmp ne i16 %44, 0
  br i1 %46, label %47, label %96

47:                                               ; preds = %43
  %48 = load i16, ptr %16, align 2, !tbaa !9
  %49 = zext i16 %48 to i64
  %50 = and i64 %49, 16383
  %51 = add i64 16384, %50
  %52 = shl i64 %51, 16
  %53 = load i16, ptr %16, align 2, !tbaa !9
  %54 = zext i16 %53 to i64
  %55 = lshr i64 %54, 14
  %56 = or i64 %55, 0
  %57 = add i64 %52, %56
  %58 = load ptr, ptr %13, align 8, !tbaa !11
  store volatile i64 %57, ptr %58, align 8, !tbaa !13
  %59 = load i16, ptr %11, align 2, !tbaa !9
  %60 = zext i16 %59 to i32
  %61 = ashr i32 %60, 3
  %62 = trunc i32 %61 to i16
  store i16 %62, ptr %19, align 2, !tbaa !9
  br label %63

63:                                               ; preds = %67, %47
  %64 = load i16, ptr %19, align 2, !tbaa !9
  %65 = add i16 %64, -1
  store i16 %65, ptr %19, align 2, !tbaa !9
  %66 = icmp ne i16 %64, 0
  br i1 %66, label %67, label %76

67:                                               ; preds = %63
  %68 = load i64, ptr %20, align 8, !tbaa !13
  %69 = load ptr, ptr %14, align 8, !tbaa !11
  store volatile i64 %68, ptr %69, align 8, !tbaa !13
  %70 = load i64, ptr %20, align 8, !tbaa !13
  %71 = load ptr, ptr %14, align 8, !tbaa !11
  store volatile i64 %70, ptr %71, align 8, !tbaa !13
  %72 = load i64, ptr %20, align 8, !tbaa !13
  %73 = load ptr, ptr %14, align 8, !tbaa !11
  store volatile i64 %72, ptr %73, align 8, !tbaa !13
  %74 = load i64, ptr %20, align 8, !tbaa !13
  %75 = load ptr, ptr %14, align 8, !tbaa !11
  store volatile i64 %74, ptr %75, align 8, !tbaa !13
  br label %63, !llvm.loop !15

76:                                               ; preds = %63
  %77 = load i16, ptr %11, align 2, !tbaa !9
  %78 = zext i16 %77 to i32
  %79 = and i32 %78, 7
  %80 = trunc i32 %79 to i16
  store i16 %80, ptr %19, align 2, !tbaa !9
  br label %81

81:                                               ; preds = %85, %76
  %82 = load i16, ptr %19, align 2, !tbaa !9
  %83 = add i16 %82, -1
  store i16 %83, ptr %19, align 2, !tbaa !9
  %84 = icmp ne i16 %82, 0
  br i1 %84, label %85, label %88

85:                                               ; preds = %81
  %86 = load i16, ptr %8, align 2, !tbaa !9
  %87 = load ptr, ptr %15, align 8, !tbaa !11
  store volatile i16 %86, ptr %87, align 2, !tbaa !9
  br label %81, !llvm.loop !17

88:                                               ; preds = %81
  %89 = load i16, ptr %17, align 2, !tbaa !9
  %90 = zext i16 %89 to i32
  %91 = mul nsw i32 %90, 2
  %92 = load i16, ptr %16, align 2, !tbaa !9
  %93 = zext i16 %92 to i32
  %94 = add nsw i32 %93, %91
  %95 = trunc i32 %94 to i16
  store i16 %95, ptr %16, align 2, !tbaa !9
  br label %43, !llvm.loop !18

96:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  ret void
}

attributes #0 = { nocallback nofree nosync 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, !6, i64 0}
!6 = !{!"int", !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, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}


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

@planeWidth = external local_unnamed_addr global i16, align 2
@windowWidth = external local_unnamed_addr global i16, align 2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i16 @VDP_getPlaneAddress(i32 noundef, i16 noundef zeroext, i16 noundef zeroext) local_unnamed_addr #0

declare void @VDP_setAutoInc(i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @VDP_fillTileMapRect(i32 noundef %0, i16 noundef zeroext %1, i16 noundef zeroext %2, i16 noundef zeroext %3, i16 noundef zeroext %4, i16 noundef zeroext %5) local_unnamed_addr #0 {
  tail call void @VDP_setAutoInc(i8 noundef zeroext 2) #2
  %7 = tail call zeroext i16 @VDP_getPlaneAddress(i32 noundef %0, i16 noundef zeroext %2, i16 noundef zeroext %3)
  %8 = zext i16 %1 to i64
  %9 = mul nuw nsw i64 %8, 65537
  %10 = add i16 %5, -1
  %.not37 = icmp eq i16 %5, 0
  br i1 %.not37, label %._crit_edge41, label %.lr.ph40

.lr.ph40:                                         ; preds = %6
  %11 = icmp eq i32 %0, 2
  %12 = load i16, ptr @windowWidth, align 2
  %13 = load i16, ptr @planeWidth, align 2
  %.v = select i1 %11, i16 %12, i16 %13
  %14 = lshr i16 %4, 3
  %.not2830 = icmp ult i16 %4, 8
  %15 = and i16 %4, 7
  %.not2932 = icmp eq i16 %15, 0
  %16 = shl i16 %.v, 1
  br i1 %.not2830, label %.lr.ph40.split.us, label %.lr.ph40.split

.lr.ph40.split.us:                                ; preds = %.lr.ph40
  br i1 %.not2932, label %.lr.ph40.split.us.split.us.preheader, label %.lr.ph35.us.preheader

.lr.ph35.us.preheader:                            ; preds = %.lr.ph40.split.us
  %.not29.us = icmp eq i16 %15, 1
  %.not29.us.1 = icmp eq i16 %15, 2
  %.not29.us.2 = icmp eq i16 %15, 3
  %.not29.us.3 = icmp eq i16 %15, 4
  %.not29.us.4 = icmp eq i16 %15, 5
  %.not29.us.5 = icmp eq i16 %15, 6
  br label %.lr.ph35.us

.lr.ph40.split.us.split.us.preheader:             ; preds = %.lr.ph40.split.us
  %xtraiter61 = and i16 %5, 1
  %lcmp.mod62.not = icmp eq i16 %xtraiter61, 0
  br i1 %lcmp.mod62.not, label %.lr.ph40.split.us.split.us.prol.loopexit, label %.lr.ph40.split.us.split.us.prol

.lr.ph40.split.us.split.us.prol:                  ; preds = %.lr.ph40.split.us.split.us.preheader
  %17 = zext i16 %7 to i64
  %18 = shl nuw nsw i64 %17, 16
  %19 = and i64 %18, 1073676288
  %20 = lshr i64 %17, 14
  %21 = or disjoint i64 %20, %19
  %22 = or disjoint i64 %21, 1073741824
  store volatile i64 %22, ptr inttoptr (i64 12582916 to ptr), align 8, !tbaa !5
  %23 = add i16 %7, %16
  %24 = add i16 %5, -2
  br label %.lr.ph40.split.us.split.us.prol.loopexit

.lr.ph40.split.us.split.us.prol.loopexit:         ; preds = %.lr.ph40.split.us.split.us.prol, %.lr.ph40.split.us.split.us.preheader
  %.unr = phi i16 [ %10, %.lr.ph40.split.us.split.us.preheader ], [ %24, %.lr.ph40.split.us.split.us.prol ]
  %.038.us.us.unr = phi i16 [ %7, %.lr.ph40.split.us.split.us.preheader ], [ %23, %.lr.ph40.split.us.split.us.prol ]
  %25 = icmp eq i16 %10, 0
  br i1 %25, label %._crit_edge41, label %.lr.ph40.split.us.split.us

.lr.ph40.split.us.split.us:                       ; preds = %.lr.ph40.split.us.split.us.prol.loopexit, %.lr.ph40.split.us.split.us
  %26 = phi i16 [ %41, %.lr.ph40.split.us.split.us ], [ %.unr, %.lr.ph40.split.us.split.us.prol.loopexit ]
  %.038.us.us = phi i16 [ %40, %.lr.ph40.split.us.split.us ], [ %.038.us.us.unr, %.lr.ph40.split.us.split.us.prol.loopexit ]
  %27 = zext i16 %.038.us.us to i64
  %28 = shl nuw nsw i64 %27, 16
  %29 = and i64 %28, 1073676288
  %30 = lshr i64 %27, 14
  %31 = or disjoint i64 %30, %29
  %32 = or disjoint i64 %31, 1073741824
  store volatile i64 %32, ptr inttoptr (i64 12582916 to ptr), align 8, !tbaa !5
  %33 = add i16 %.038.us.us, %16
  %34 = zext i16 %33 to i64
  %35 = shl nuw nsw i64 %34, 16
  %36 = and i64 %35, 1073676288
  %37 = lshr i64 %34, 14
  %38 = or disjoint i64 %37, %36
  %39 = or disjoint i64 %38, 1073741824
  store volatile i64 %39, ptr inttoptr (i64 12582916 to ptr), align 8, !tbaa !5
  %40 = add i16 %33, %16
  %41 = add i16 %26, -2
  %.not.us.us.1 = icmp eq i16 %26, 1
  br i1 %.not.us.us.1, label %._crit_edge41, label %.lr.ph40.split.us.split.us, !llvm.loop !9

.lr.ph35.us:                                      ; preds = %.lr.ph35.us.preheader, %._crit_edge36.us
  %42 = phi i16 [ %56, %._crit_edge36.us ], [ %10, %.lr.ph35.us.preheader ]
  %.038.us = phi i16 [ %55, %._crit_edge36.us ], [ %7, %.lr.ph35.us.preheader ]
  %43 = zext i16 %.038.us to i64
  %44 = shl nuw nsw i64 %43, 16
  %45 = and i64 %44, 1073676288
  %46 = lshr i64 %43, 14
  %47 = or disjoint i64 %46, %45
  %48 = or disjoint i64 %47, 1073741824
  store volatile i64 %48, ptr inttoptr (i64 12582916 to ptr), align 8, !tbaa !5
  store volatile i16 %1, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !11
  br i1 %.not29.us, label %._crit_edge36.us, label %49, !llvm.loop !13

49:                                               ; preds = %.lr.ph35.us
  store volatile i16 %1, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !11
  br i1 %.not29.us.1, label %._crit_edge36.us, label %50, !llvm.loop !13

50:                                               ; preds = %49
  store volatile i16 %1, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !11
  br i1 %.not29.us.2, label %._crit_edge36.us, label %51, !llvm.loop !13

51:                                               ; preds = %50
  store volatile i16 %1, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !11
  br i1 %.not29.us.3, label %._crit_edge36.us, label %52, !llvm.loop !13

52:                                               ; preds = %51
  store volatile i16 %1, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !11
  br i1 %.not29.us.4, label %._crit_edge36.us, label %53, !llvm.loop !13

53:                                               ; preds = %52
  store volatile i16 %1, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !11
  br i1 %.not29.us.5, label %._crit_edge36.us, label %54, !llvm.loop !13

54:                                               ; preds = %53
  store volatile i16 %1, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !11
  br label %._crit_edge36.us

._crit_edge36.us:                                 ; preds = %54, %53, %52, %51, %50, %49, %.lr.ph35.us
  %55 = add i16 %.038.us, %16
  %56 = add i16 %42, -1
  %.not.us = icmp eq i16 %42, 0
  br i1 %.not.us, label %._crit_edge41, label %.lr.ph35.us, !llvm.loop !9

.lr.ph40.split:                                   ; preds = %.lr.ph40
  br i1 %.not2932, label %.lr.ph.us.preheader, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.lr.ph40.split
  %57 = add nsw i16 %14, -1
  %xtraiter = and i16 %14, 3
  %lcmp.mod.not = icmp eq i16 %xtraiter, 0
  %58 = icmp ult i16 %57, 3
  %.not29 = icmp eq i16 %15, 1
  %.not29.1 = icmp eq i16 %15, 2
  %.not29.2 = icmp eq i16 %15, 3
  %.not29.3 = icmp eq i16 %15, 4
  %.not29.4 = icmp eq i16 %15, 5
  %.not29.5 = icmp eq i16 %15, 6
  br label %.lr.ph

.lr.ph.us.preheader:                              ; preds = %.lr.ph40.split
  %xtraiter58 = and i16 %14, 3
  %lcmp.mod59.not = icmp eq i16 %xtraiter58, 0
  %59 = icmp ult i16 %4, 32
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %._crit_edge.us
  %60 = phi i16 [ %70, %._crit_edge.us ], [ %10, %.lr.ph.us.preheader ]
  %.038.us42 = phi i16 [ %69, %._crit_edge.us ], [ %7, %.lr.ph.us.preheader ]
  %61 = zext i16 %.038.us42 to i64
  %62 = shl nuw nsw i64 %61, 16
  %63 = and i64 %62, 1073676288
  %64 = lshr i64 %61, 14
  %65 = or disjoint i64 %64, %63
  %66 = or disjoint i64 %65, 1073741824
  store volatile i64 %66, ptr inttoptr (i64 12582916 to ptr), align 8, !tbaa !5
  br i1 %lcmp.mod59.not, label %.prol.loopexit57, label %.prol.preheader56

.prol.preheader56:                                ; preds = %.lr.ph.us, %.prol.preheader56
  %.02631.us.prol = phi i16 [ %67, %.prol.preheader56 ], [ %14, %.lr.ph.us ]
  %prol.iter60 = phi i16 [ %prol.iter60.next, %.prol.preheader56 ], [ 0, %.lr.ph.us ]
  %67 = add nsw i16 %.02631.us.prol, -1
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  %prol.iter60.next = add i16 %prol.iter60, 1
  %prol.iter60.cmp.not = icmp eq i16 %prol.iter60.next, %xtraiter58
  br i1 %prol.iter60.cmp.not, label %.prol.loopexit57, label %.prol.preheader56, !llvm.loop !14

.prol.loopexit57:                                 ; preds = %.prol.preheader56, %.lr.ph.us
  %.02631.us.unr = phi i16 [ %14, %.lr.ph.us ], [ %67, %.prol.preheader56 ]
  br i1 %59, label %._crit_edge.us, label %.lr.ph.us.new

.lr.ph.us.new:                                    ; preds = %.prol.loopexit57, %.lr.ph.us.new
  %.02631.us = phi i16 [ %68, %.lr.ph.us.new ], [ %.02631.us.unr, %.prol.loopexit57 ]
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  %68 = add nsw i16 %.02631.us, -4
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  %.not28.us.3 = icmp eq i16 %68, 0
  br i1 %.not28.us.3, label %._crit_edge.us, label %.lr.ph.us.new, !llvm.loop !16

._crit_edge.us:                                   ; preds = %.lr.ph.us.new, %.prol.loopexit57
  %69 = add i16 %.038.us42, %16
  %70 = add i16 %60, -1
  %.not.us43 = icmp eq i16 %60, 0
  br i1 %.not.us43, label %._crit_edge41, label %.lr.ph.us, !llvm.loop !9

.lr.ph:                                           ; preds = %.lr.ph.preheader, %._crit_edge36
  %71 = phi i16 [ %81, %._crit_edge36 ], [ %10, %.lr.ph.preheader ]
  %.038 = phi i16 [ %80, %._crit_edge36 ], [ %7, %.lr.ph.preheader ]
  %72 = zext i16 %.038 to i64
  %73 = shl nuw nsw i64 %72, 16
  %74 = and i64 %73, 1073676288
  %75 = lshr i64 %72, 14
  %76 = or disjoint i64 %75, %74
  %77 = or disjoint i64 %76, 1073741824
  store volatile i64 %77, ptr inttoptr (i64 12582916 to ptr), align 8, !tbaa !5
  br i1 %lcmp.mod.not, label %.prol.loopexit, label %.prol.preheader

.prol.preheader:                                  ; preds = %.lr.ph, %.prol.preheader
  %.02631.prol = phi i16 [ %78, %.prol.preheader ], [ %14, %.lr.ph ]
  %prol.iter = phi i16 [ %prol.iter.next, %.prol.preheader ], [ 0, %.lr.ph ]
  %78 = add nsw i16 %.02631.prol, -1
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  %prol.iter.next = add i16 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i16 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.prol.loopexit, label %.prol.preheader, !llvm.loop !17

.prol.loopexit:                                   ; preds = %.prol.preheader, %.lr.ph
  %.02631.unr = phi i16 [ %14, %.lr.ph ], [ %78, %.prol.preheader ]
  br i1 %58, label %._crit_edge, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.prol.loopexit, %.lr.ph.new
  %.02631 = phi i16 [ %79, %.lr.ph.new ], [ %.02631.unr, %.prol.loopexit ]
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  %79 = add nsw i16 %.02631, -4
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  store volatile i64 %9, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !5
  %.not28.3 = icmp eq i16 %79, 0
  br i1 %.not28.3, label %._crit_edge, label %.lr.ph.new, !llvm.loop !16

._crit_edge:                                      ; preds = %.prol.loopexit, %.lr.ph.new
  store volatile i16 %1, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !11
  br i1 %.not29, label %._crit_edge36, label %._crit_edge.1, !llvm.loop !13

._crit_edge.1:                                    ; preds = %._crit_edge
  store volatile i16 %1, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !11
  br i1 %.not29.1, label %._crit_edge36, label %._crit_edge.2, !llvm.loop !13

._crit_edge.2:                                    ; preds = %._crit_edge.1
  store volatile i16 %1, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !11
  br i1 %.not29.2, label %._crit_edge36, label %._crit_edge.3, !llvm.loop !13

._crit_edge.3:                                    ; preds = %._crit_edge.2
  store volatile i16 %1, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !11
  br i1 %.not29.3, label %._crit_edge36, label %._crit_edge.4, !llvm.loop !13

._crit_edge.4:                                    ; preds = %._crit_edge.3
  store volatile i16 %1, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !11
  br i1 %.not29.4, label %._crit_edge36, label %._crit_edge.5, !llvm.loop !13

._crit_edge.5:                                    ; preds = %._crit_edge.4
  store volatile i16 %1, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !11
  br i1 %.not29.5, label %._crit_edge36, label %._crit_edge.6, !llvm.loop !13

._crit_edge.6:                                    ; preds = %._crit_edge.5
  store volatile i16 %1, ptr inttoptr (i64 12582912 to ptr), align 4194304, !tbaa !11
  br label %._crit_edge36

._crit_edge36:                                    ; preds = %._crit_edge.6, %._crit_edge.5, %._crit_edge.4, %._crit_edge.3, %._crit_edge.2, %._crit_edge.1, %._crit_edge
  %80 = add i16 %.038, %16
  %81 = add i16 %71, -1
  %.not = icmp eq i16 %71, 0
  br i1 %.not, label %._crit_edge41, label %.lr.ph, !llvm.loop !9

._crit_edge41:                                    ; preds = %._crit_edge36, %._crit_edge.us, %._crit_edge36.us, %.lr.ph40.split.us.split.us.prol.loopexit, %.lr.ph40.split.us.split.us, %6
  ret void
}

attributes #0 = { 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 = { "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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !15}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass