; LLVM IR from ssloy/tinyraycaster :: tinyraycaster.ll (Z8draw_mapR11FrameBufferRKSt6vectorI6SpriteSaIS2_EERK7TextureRK3Mapmm)

; 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 { i64, i64 }
%struct.Texture = type { i64, i64, i64, i64, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Sprite = type { float, float, i64, float }

@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._Z8draw_mapR11FrameBufferRKSt6vectorI6SpriteSaIS2_EERK7TextureRK3Mapmm = external hidden unnamed_addr constant [116 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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8draw_mapR11FrameBufferRKSt6vectorI6SpriteSaIS2_EERK7TextureRK3Mapmm(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %4, i64 noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i64 %4, ptr %11, align 8, !tbaa !9
  store i64 %5, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %20

20:                                               ; preds = %74, %6
  %21 = load i64, ptr %13, align 8, !tbaa !9
  %22 = load ptr, ptr %10, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.Map, ptr %22, i32 0, i32 1
  %24 = load i64, ptr %23, align 8, !tbaa !11
  %25 = icmp ult i64 %21, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %20
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %77

27:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %28

28:                                               ; preds = %70, %27
  %29 = load i64, ptr %15, align 8, !tbaa !9
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.Map, ptr %30, i32 0, i32 0
  %32 = load i64, ptr %31, align 8, !tbaa !13
  %33 = icmp ult i64 %29, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %28
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  br label %73

35:                                               ; preds = %28
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = load i64, ptr %15, align 8, !tbaa !9
  %38 = load i64, ptr %13, align 8, !tbaa !9
  %39 = call noundef zeroext i1 @_ZNK3Map8is_emptyEmm(ptr noundef nonnull align 8 dereferenceable(16) %36, i64 noundef %37, i64 noundef %38)
  br i1 %39, label %40, label %41

40:                                               ; preds = %35
  br label %70

41:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %42 = load i64, ptr %15, align 8, !tbaa !9
  %43 = load i64, ptr %11, align 8, !tbaa !9
  %44 = mul i64 %42, %43
  store i64 %44, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %45 = load i64, ptr %13, align 8, !tbaa !9
  %46 = load i64, ptr %12, align 8, !tbaa !9
  %47 = mul i64 %45, %46
  store i64 %47, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = load i64, ptr %15, align 8, !tbaa !9
  %50 = load i64, ptr %13, align 8, !tbaa !9
  %51 = call noundef i32 @_ZNK3Map3getEmm(ptr noundef nonnull align 8 dereferenceable(16) %48, i64 noundef %49, i64 noundef %50)
  %52 = sext i32 %51 to i64
  store i64 %52, ptr %18, align 8, !tbaa !9
  %53 = load i64, ptr %18, align 8, !tbaa !9
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.Texture, ptr %54, i32 0, i32 2
  %56 = load i64, ptr %55, align 8, !tbaa !14
  %57 = icmp ult i64 %53, %56
  br i1 %57, label %58, label %59

58:                                               ; preds = %41
  br label %61

59:                                               ; preds = %41
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 28, ptr noundef @__PRETTY_FUNCTION__._Z8draw_mapR11FrameBufferRKSt6vectorI6SpriteSaIS2_EERK7TextureRK3Mapmm) #7
  unreachable

60:                                               ; No predecessors!
  br label %61

61:                                               ; preds = %60, %58
  %62 = load ptr, ptr %7, align 8, !tbaa !5
  %63 = load i64, ptr %16, align 8, !tbaa !9
  %64 = load i64, ptr %17, align 8, !tbaa !9
  %65 = load i64, ptr %11, align 8, !tbaa !9
  %66 = load i64, ptr %12, align 8, !tbaa !9
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = load i64, ptr %18, align 8, !tbaa !9
  %69 = call noundef i32 @_ZNK7Texture3getEmmm(ptr noundef nonnull align 8 dereferenceable(56) %67, i64 noundef 0, i64 noundef 0, i64 noundef %68)
  call void @_ZN11FrameBuffer14draw_rectangleEmmmmj(ptr noundef nonnull align 8 dereferenceable(40) %62, i64 noundef %63, i64 noundef %64, i64 noundef %65, i64 noundef %66, i32 noundef %69)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %70

70:                                               ; preds = %61, %40
  %71 = load i64, ptr %15, align 8, !tbaa !9
  %72 = add i64 %71, 1
  store i64 %72, ptr %15, align 8, !tbaa !9
  br label %28, !llvm.loop !20

73:                                               ; preds = %34
  br label %74

74:                                               ; preds = %73
  %75 = load i64, ptr %13, align 8, !tbaa !9
  %76 = add i64 %75, 1
  store i64 %76, ptr %13, align 8, !tbaa !9
  br label %20, !llvm.loop !22

77:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %78

78:                                               ; preds = %105, %77
  %79 = load i64, ptr %19, align 8, !tbaa !9
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = call noundef i64 @_ZNKSt6vectorI6SpriteSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #6
  %82 = icmp ult i64 %79, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %78
  store i32 8, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %108

84:                                               ; preds = %78
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = load i64, ptr %19, align 8, !tbaa !9
  %88 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI6SpriteSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %87) #6
  %89 = getelementptr inbounds %struct.Sprite, ptr %88, i32 0, i32 0
  %90 = load float, ptr %89, align 8, !tbaa !23
  %91 = load i64, ptr %11, align 8, !tbaa !9
  %92 = uitofp i64 %91 to float
  %93 = call float @llvm.fmuladd.f32(float %90, float %92, float -3.000000e+00)
  %94 = fptoui float %93 to i64
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = load i64, ptr %19, align 8, !tbaa !9
  %97 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI6SpriteSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %96) #6
  %98 = getelementptr inbounds %struct.Sprite, ptr %97, i32 0, i32 1
  %99 = load float, ptr %98, align 4, !tbaa !26
  %100 = load i64, ptr %12, align 8, !tbaa !9
  %101 = uitofp i64 %100 to float
  %102 = call float @llvm.fmuladd.f32(float %99, float %101, float -3.000000e+00)
  %103 = fptoui float %102 to i64
  %104 = call noundef i32 @_Z10pack_colorhhhh(i8 noundef zeroext -1, i8 noundef zeroext 0, i8 noundef zeroext 0, i8 noundef zeroext -1)
  call void @_ZN11FrameBuffer14draw_rectangleEmmmmj(ptr noundef nonnull align 8 dereferenceable(40) %85, i64 noundef %94, i64 noundef %103, i64 noundef 6, i64 noundef 6, i32 noundef %104)
  br label %105

105:                                              ; preds = %84
  %106 = load i64, ptr %19, align 8, !tbaa !9
  %107 = add i64 %106, 1
  store i64 %107, ptr %19, align 8, !tbaa !9
  br label %78, !llvm.loop !27

108:                                              ; preds = %83
  ret void
}

declare noundef zeroext i1 @_ZNK3Map8is_emptyEmm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) #3

declare noundef i32 @_ZNK3Map3getEmm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) #3

declare void @_ZN11FrameBuffer14draw_rectangleEmmmmj(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, i64 noundef, i64 noundef, i64 noundef, i32 noundef) #3

declare noundef i32 @_ZNK7Texture3getEmmm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i64 noundef, i64 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI6SpriteSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI6SpriteSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

declare noundef i32 @_Z10pack_colorhhhh(i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn nounwind "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 = { mustprogress 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 = { mustprogress 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { noreturn 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"_ZTS3Map", !10, i64 0, !10, i64 8}
!13 = !{!12, !10, i64 0}
!14 = !{!15, !10, i64 16}
!15 = !{!"_ZTS7Texture", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !16, i64 32}
!16 = !{!"_ZTSSt6vectorIjSaIjEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!24, !25, i64 0}
!24 = !{!"_ZTS6Sprite", !25, i64 0, !25, i64 4, !10, i64 8, !25, i64 16}
!25 = !{!"float", !7, i64 0}
!26 = !{!24, !25, i64 4}
!27 = distinct !{!27, !21}


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

@.str.1 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@__PRETTY_FUNCTION__._Z8draw_mapR11FrameBufferRKSt6vectorI6SpriteSaIS2_EERK7TextureRK3Mapmm = external hidden unnamed_addr constant [116 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8draw_mapR11FrameBufferRKSt6vectorI6SpriteSaIS2_EERK7TextureRK3Mapmm(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(56) %2, ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %4, i64 noundef %5) local_unnamed_addr #1 {
  %7 = getelementptr inbounds i8, ptr %3, i64 8
  %8 = load i64, ptr %7, align 8, !tbaa !5
  %.not = icmp eq i64 %8, 0
  br i1 %.not, label %.preheader, label %.preheader37.lr.ph

.preheader37.lr.ph:                               ; preds = %6
  %9 = getelementptr inbounds i8, ptr %2, i64 16
  %10 = load i64, ptr %3, align 8, !tbaa !10
  %.not43 = icmp eq i64 %10, 0
  br i1 %.not43, label %.preheader, label %.preheader37

.preheader37:                                     ; preds = %.preheader37.lr.ph, %._crit_edge
  %11 = phi i64 [ %17, %._crit_edge ], [ %8, %.preheader37.lr.ph ]
  %12 = phi i64 [ %18, %._crit_edge ], [ 1, %.preheader37.lr.ph ]
  %.03439 = phi i64 [ %19, %._crit_edge ], [ 0, %.preheader37.lr.ph ]
  %.not44 = icmp eq i64 %12, 0
  br i1 %.not44, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader37
  %13 = mul i64 %.03439, %5
  br label %21

.preheader:                                       ; preds = %._crit_edge, %.preheader37.lr.ph, %6
  %14 = tail call noundef i64 @_ZNKSt6vectorI6SpriteSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %.not45 = icmp eq i64 %14, 0
  br i1 %.not45, label %._crit_edge42, label %.lr.ph41

.lr.ph41:                                         ; preds = %.preheader
  %15 = uitofp i64 %4 to float
  %16 = uitofp i64 %5 to float
  br label %36

._crit_edge.loopexit:                             ; preds = %32
  %.pre = load i64, ptr %7, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader37
  %17 = phi i64 [ %.pre, %._crit_edge.loopexit ], [ %11, %.preheader37 ]
  %18 = phi i64 [ %34, %._crit_edge.loopexit ], [ 0, %.preheader37 ]
  %19 = add nuw i64 %.03439, 1
  %20 = icmp ult i64 %19, %17
  br i1 %20, label %.preheader37, label %.preheader, !llvm.loop !11

21:                                               ; preds = %.lr.ph, %32
  %.03538 = phi i64 [ 0, %.lr.ph ], [ %33, %32 ]
  %22 = tail call noundef zeroext i1 @_ZNK3Map8is_emptyEmm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %.03538, i64 noundef %.03439)
  br i1 %22, label %32, label %23

23:                                               ; preds = %21
  %24 = tail call noundef i32 @_ZNK3Map3getEmm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef %.03538, i64 noundef %.03439)
  %25 = sext i32 %24 to i64
  %26 = load i64, ptr %9, align 8, !tbaa !14
  %27 = icmp ugt i64 %26, %25
  br i1 %27, label %29, label %28

28:                                               ; preds = %23
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 28, ptr noundef nonnull @__PRETTY_FUNCTION__._Z8draw_mapR11FrameBufferRKSt6vectorI6SpriteSaIS2_EERK7TextureRK3Mapmm) #6
  unreachable

29:                                               ; preds = %23
  %30 = mul i64 %.03538, %4
  %31 = tail call noundef i32 @_ZNK7Texture3getEmmm(ptr noundef nonnull align 8 dereferenceable(56) %2, i64 noundef 0, i64 noundef 0, i64 noundef %25)
  tail call void @_ZN11FrameBuffer14draw_rectangleEmmmmj(ptr noundef nonnull align 8 dereferenceable(40) %0, i64 noundef %30, i64 noundef %13, i64 noundef %4, i64 noundef %5, i32 noundef %31)
  br label %32

32:                                               ; preds = %21, %29
  %33 = add nuw i64 %.03538, 1
  %34 = load i64, ptr %3, align 8, !tbaa !10
  %35 = icmp ult i64 %33, %34
  br i1 %35, label %21, label %._crit_edge.loopexit, !llvm.loop !21

._crit_edge42:                                    ; preds = %36, %.preheader
  ret void

36:                                               ; preds = %.lr.ph41, %36
  %.040 = phi i64 [ 0, %.lr.ph41 ], [ %47, %36 ]
  %37 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI6SpriteSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.040) #5
  %38 = load float, ptr %37, align 8, !tbaa !22
  %39 = tail call float @llvm.fmuladd.f32(float %38, float %15, float -3.000000e+00)
  %40 = fptoui float %39 to i64
  %41 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI6SpriteSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.040) #5
  %42 = getelementptr inbounds i8, ptr %41, i64 4
  %43 = load float, ptr %42, align 4, !tbaa !25
  %44 = tail call float @llvm.fmuladd.f32(float %43, float %16, float -3.000000e+00)
  %45 = fptoui float %44 to i64
  %46 = tail call noundef i32 @_Z10pack_colorhhhh(i8 noundef zeroext -1, i8 noundef zeroext 0, i8 noundef zeroext 0, i8 noundef zeroext -1)
  tail call void @_ZN11FrameBuffer14draw_rectangleEmmmmj(ptr noundef nonnull align 8 dereferenceable(40) %0, i64 noundef %40, i64 noundef %45, i64 noundef 6, i64 noundef 6, i32 noundef %46)
  %47 = add nuw i64 %.040, 1
  %48 = tail call noundef i64 @_ZNKSt6vectorI6SpriteSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #5
  %49 = icmp ult i64 %47, %48
  br i1 %49, label %36, label %._crit_edge42, !llvm.loop !26
}

declare noundef zeroext i1 @_ZNK3Map8is_emptyEmm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) local_unnamed_addr #2

declare noundef i32 @_ZNK3Map3getEmm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) local_unnamed_addr #2

declare void @_ZN11FrameBuffer14draw_rectangleEmmmmj(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, i64 noundef, i64 noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

declare noundef i32 @_ZNK7Texture3getEmmm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI6SpriteSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI6SpriteSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

declare noundef i32 @_Z10pack_colorhhhh(i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #2

attributes #0 = { noreturn nounwind "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 = { mustprogress 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 = { mustprogress 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }
attributes #6 = { noreturn 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 8}
!6 = !{!"_ZTS3Map", !7, i64 0, !7, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 0}
!11 = distinct !{!11, !12, !13}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.unswitch.partial.disable"}
!14 = !{!15, !7, i64 16}
!15 = !{!"_ZTS7Texture", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !16, i64 32}
!16 = !{!"_ZTSSt6vectorIjSaIjEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !20, i64 0, !20, i64 8, !20, i64 16}
!20 = !{!"any pointer", !8, i64 0}
!21 = distinct !{!21, !12}
!22 = !{!23, !24, i64 0}
!23 = !{!"_ZTS6Sprite", !24, i64 0, !24, i64 4, !7, i64 8, !24, i64 16}
!24 = !{!"float", !8, i64 0}
!25 = !{!23, !24, i64 4}
!26 = distinct !{!26, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass