; LLVM IR from achilles288/robot-monitor-graphics :: src/base/sprite.ll (ZN3rmg8Sprite2DC2EPNS_7ContextEPKcRKNS_4Vec2E)

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

%"class.rmg::internal::Pending" = type { ptr, ptr }
%"class.rmg::Sprite2D" = type { %"class.rmg::Object2D.base", ptr, ptr, %"class.rmg::internal::Pending" }
%"class.rmg::Object2D.base" = type <{ %"class.rmg::Object", i8, [3 x i8], i32, i32, %"struct.rmg::Mat3", float, %"struct.rmg::Vec2" }>
%"class.rmg::Object" = type { ptr, i64, ptr, %"struct.rmg::ColorRGBA", i8, i32 }
%"struct.rmg::ColorRGBA" = type { float, float, float, float }
%"struct.rmg::Mat3" = type { %union.anon }
%union.anon = type { [3 x [3 x float]] }
%"struct.rmg::Vec2" = type { %union.anon.0 }
%union.anon.0 = type { %struct.anon }
%struct.anon = type { float, float }
%"class.rmg::Object2D" = type <{ %"class.rmg::Object", i8, [3 x i8], i32, i32, %"struct.rmg::Mat3", float, %"struct.rmg::Vec2", [4 x i8] }>

@_ZTVN3rmg8Sprite2DE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3rmg8Sprite2DC2EPNS_7ContextEPKcRKNS_4Vec2E(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 4 dereferenceable(8) %3) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"class.rmg::internal::Pending", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %13 = load ptr, ptr %5, align 8
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN3rmg8Object2DC2EPNS_7ContextE(ptr noundef nonnull align 8 dereferenceable(108) %13, ptr noundef %14)
  store ptr getelementptr inbounds inrange(-16, 16) ({ [4 x ptr] }, ptr @_ZTVN3rmg8Sprite2DE, i32 0, i32 0, i32 2), ptr %13, align 8, !tbaa !9
  %15 = getelementptr inbounds %"class.rmg::Sprite2D", ptr %13, i32 0, i32 1
  store ptr null, ptr %15, align 8, !tbaa !11
  %16 = getelementptr inbounds %"class.rmg::Sprite2D", ptr %13, i32 0, i32 2
  store ptr null, ptr %16, align 8, !tbaa !25
  %17 = getelementptr inbounds %"class.rmg::Sprite2D", ptr %13, i32 0, i32 3
  call void @_ZN3rmg8internal7PendingC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  %18 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #8
          to label %19 unwind label %40

19:                                               ; preds = %4
  invoke void @_ZN3rmg8internal13SpriteTextureC1Ev(ptr noundef nonnull align 8 dereferenceable(12) %18)
          to label %20 unwind label %44

20:                                               ; preds = %19
  %21 = getelementptr inbounds %"class.rmg::Sprite2D", ptr %13, i32 0, i32 1
  store ptr %18, ptr %21, align 8, !tbaa !11
  %22 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 4) #8
          to label %23 unwind label %40

23:                                               ; preds = %20
  %24 = getelementptr inbounds %"class.rmg::Sprite2D", ptr %13, i32 0, i32 2
  store ptr %22, ptr %24, align 8, !tbaa !25
  %25 = getelementptr inbounds %"class.rmg::Sprite2D", ptr %13, i32 0, i32 2
  %26 = load ptr, ptr %25, align 8, !tbaa !25
  store i32 1, ptr %26, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %27 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #8
          to label %28 unwind label %48

28:                                               ; preds = %23
  %29 = getelementptr inbounds %"class.rmg::Sprite2D", ptr %13, i32 0, i32 1
  %30 = load ptr, ptr %29, align 8, !tbaa !11
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN3rmg8internal10SpriteLoadC1EPNS0_13SpriteTextureEPKc(ptr noundef nonnull align 8 dereferenceable(36) %27, ptr noundef %30, ptr noundef %31)
          to label %32 unwind label %52

32:                                               ; preds = %28
  store ptr %27, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #7
  %33 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZN3rmg8internal7PendingC1EPNS0_11ContextLoadE(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef %33)
          to label %34 unwind label %56

34:                                               ; preds = %32
  %35 = getelementptr inbounds %"class.rmg::Sprite2D", ptr %13, i32 0, i32 3
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3rmg8internal7PendingaSEOS1_(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @_ZN3rmg8internal7PendingD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN3rmg8Object2D7setSizeERKNS_4Vec2E(ptr noundef nonnull align 8 dereferenceable(108) %13, ptr noundef nonnull align 4 dereferenceable(8) %37)
          to label %38 unwind label %48

38:                                               ; preds = %34
  %39 = getelementptr inbounds %"class.rmg::Object2D", ptr %13, i32 0, i32 4
  store i32 1, ptr %39, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  ret void

40:                                               ; preds = %20, %4
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %9, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %10, align 4
  br label %61

44:                                               ; preds = %19
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %9, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %18, i64 noundef 16) #9
  br label %61

48:                                               ; preds = %34, %23
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %9, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %10, align 4
  br label %60

52:                                               ; preds = %28
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %9, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %27, i64 noundef 40) #9
  br label %60

56:                                               ; preds = %32
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %9, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #7
  br label %60

60:                                               ; preds = %56, %52, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %61

61:                                               ; preds = %60, %44, %40
  call void @_ZN3rmg8internal7PendingD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #7
  call void @_ZN3rmg6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(108) %13) #7
  br label %62

62:                                               ; preds = %61
  %63 = load ptr, ptr %9, align 8
  %64 = load i32, ptr %10, align 4
  %65 = insertvalue { ptr, i32 } poison, ptr %63, 0
  %66 = insertvalue { ptr, i32 } %65, i32 %64, 1
  resume { ptr, i32 } %66
}

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

declare i32 @__gxx_personality_v0(...)

declare void @_ZN3rmg8Object2DC2EPNS_7ContextE(ptr noundef nonnull align 8 dereferenceable(108), ptr noundef) unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3rmg8internal7PendingC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #4

declare void @_ZN3rmg8internal13SpriteTextureC1Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #5

declare void @_ZN3rmg8internal10SpriteLoadC1EPNS0_13SpriteTextureEPKc(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef, ptr noundef) unnamed_addr #2

declare void @_ZN3rmg8internal7PendingC1EPNS0_11ContextLoadE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #2

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN3rmg8internal7PendingaSEOS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #6

; Function Attrs: nounwind
declare void @_ZN3rmg8internal7PendingD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6

declare void @_ZN3rmg8Object2D7setSizeERKNS_4Vec2E(ptr noundef nonnull align 8 dereferenceable(108), ptr noundef nonnull align 4 dereferenceable(8)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3rmg6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nobuiltin allocsize(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 = { nobuiltin 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !6, i64 112}
!12 = !{!"_ZTSN3rmg8Sprite2DE", !13, i64 0, !6, i64 112, !6, i64 120, !24, i64 128}
!13 = !{!"_ZTSN3rmg8Object2DE", !14, i64 0, !7, i64 48, !20, i64 52, !21, i64 56, !22, i64 60, !17, i64 96, !23, i64 100}
!14 = !{!"_ZTSN3rmg6ObjectE", !15, i64 8, !6, i64 16, !16, i64 24, !18, i64 40, !19, i64 44}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSN3rmg9ColorRGBAE", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12}
!17 = !{!"float", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSN3rmg10ObjectTypeE", !7, i64 0}
!20 = !{!"_ZTSN3rmg9AlignmentE", !7, i64 0}
!21 = !{!"_ZTSN3rmg12Object2DTypeE", !7, i64 0}
!22 = !{!"_ZTSN3rmg4Mat3E", !7, i64 0}
!23 = !{!"_ZTSN3rmg4Vec2E", !7, i64 0}
!24 = !{!"_ZTSN3rmg8internal7PendingE", !6, i64 0, !6, i64 8}
!25 = !{!12, !6, i64 120}
!26 = !{!27, !27, i64 0}
!27 = !{!"int", !7, i64 0}
!28 = !{!13, !21, i64 56}


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

%"class.rmg::internal::Pending" = type { ptr, ptr }

@_ZTVN3rmg8Sprite2DE = external dso_local unnamed_addr constant { [4 x ptr] }, align 8

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3rmg8Sprite2DC2EPNS_7ContextEPKcRKNS_4Vec2E(ptr noundef nonnull align 8 dereferenceable(144) %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 4 dereferenceable(8) %3) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.rmg::internal::Pending", align 8
  tail call void @_ZN3rmg8Object2DC2EPNS_7ContextE(ptr noundef nonnull align 8 dereferenceable(108) %0, ptr noundef %1)
  store ptr getelementptr inbounds inrange(-16, 16) (i8, ptr @_ZTVN3rmg8Sprite2DE, i64 16), ptr %0, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 112
  %7 = getelementptr inbounds i8, ptr %0, i64 120
  %8 = getelementptr inbounds i8, ptr %0, i64 128
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %6, i8 0, i64 16, i1 false)
  tail call void @_ZN3rmg8internal7PendingC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  %9 = invoke noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #9
          to label %10 unwind label %21

10:                                               ; preds = %4
  invoke void @_ZN3rmg8internal13SpriteTextureC1Ev(ptr noundef nonnull align 8 dereferenceable(12) %9)
          to label %11 unwind label %23

11:                                               ; preds = %10
  store ptr %9, ptr %6, align 8, !tbaa !8
  %12 = invoke noalias noundef nonnull dereferenceable(4) ptr @_Znwm(i64 noundef 4) #9
          to label %13 unwind label %21

13:                                               ; preds = %11
  store ptr %12, ptr %7, align 8, !tbaa !24
  store i32 1, ptr %12, align 4, !tbaa !25
  %14 = invoke noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #9
          to label %15 unwind label %25

15:                                               ; preds = %13
  invoke void @_ZN3rmg8internal10SpriteLoadC1EPNS0_13SpriteTextureEPKc(ptr noundef nonnull align 8 dereferenceable(36) %14, ptr noundef nonnull %9, ptr noundef %2)
          to label %16 unwind label %27

16:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #8
  invoke void @_ZN3rmg8internal7PendingC1EPNS0_11ContextLoadE(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull %14)
          to label %17 unwind label %29

17:                                               ; preds = %16
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN3rmg8internal7PendingaSEOS1_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %5) #8
  call void @_ZN3rmg8internal7PendingD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  invoke void @_ZN3rmg8Object2D7setSizeERKNS_4Vec2E(ptr noundef nonnull align 8 dereferenceable(108) %0, ptr noundef nonnull align 4 dereferenceable(8) %3)
          to label %19 unwind label %25

19:                                               ; preds = %17
  %20 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 1, ptr %20, align 8, !tbaa !27
  ret void

21:                                               ; preds = %11, %4
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %31

23:                                               ; preds = %10
  %24 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %9, i64 noundef 16) #10
  br label %31

25:                                               ; preds = %17, %13
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %31

27:                                               ; preds = %15
  %28 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %14, i64 noundef 40) #10
  br label %31

29:                                               ; preds = %16
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  br label %31

31:                                               ; preds = %25, %27, %29, %23, %21
  %.pn.pn = phi { ptr, i32 } [ %22, %21 ], [ %24, %23 ], [ %26, %25 ], [ %30, %29 ], [ %28, %27 ]
  call void @_ZN3rmg8internal7PendingD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #8
  call void @_ZN3rmg6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(108) %0) #8
  resume { ptr, i32 } %.pn.pn
}

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

declare i32 @__gxx_personality_v0(...)

declare void @_ZN3rmg8Object2DC2EPNS_7ContextE(ptr noundef nonnull align 8 dereferenceable(108), ptr noundef) unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3rmg8internal7PendingC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #4

declare void @_ZN3rmg8internal13SpriteTextureC1Ev(ptr noundef nonnull align 8 dereferenceable(12)) unnamed_addr #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #5

declare void @_ZN3rmg8internal10SpriteLoadC1EPNS0_13SpriteTextureEPKc(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef, ptr noundef) unnamed_addr #2

declare void @_ZN3rmg8internal7PendingC1EPNS0_11ContextLoadE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #2

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN3rmg8internal7PendingaSEOS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #6

; Function Attrs: nounwind
declare void @_ZN3rmg8internal7PendingD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6

declare void @_ZN3rmg8Object2D7setSizeERKNS_4Vec2E(ptr noundef nonnull align 8 dereferenceable(108), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3rmg6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nobuiltin allocsize(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 = { nobuiltin 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 #6 = { 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 #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !14, i64 112}
!9 = !{!"_ZTSN3rmg8Sprite2DE", !10, i64 0, !14, i64 112, !14, i64 120, !23, i64 128}
!10 = !{!"_ZTSN3rmg8Object2DE", !11, i64 0, !13, i64 48, !19, i64 52, !20, i64 56, !21, i64 60, !16, i64 96, !22, i64 100}
!11 = !{!"_ZTSN3rmg6ObjectE", !12, i64 8, !14, i64 16, !15, i64 24, !17, i64 40, !18, i64 44}
!12 = !{!"long", !13, i64 0}
!13 = !{!"omnipotent char", !7, i64 0}
!14 = !{!"any pointer", !13, i64 0}
!15 = !{!"_ZTSN3rmg9ColorRGBAE", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12}
!16 = !{!"float", !13, i64 0}
!17 = !{!"bool", !13, i64 0}
!18 = !{!"_ZTSN3rmg10ObjectTypeE", !13, i64 0}
!19 = !{!"_ZTSN3rmg9AlignmentE", !13, i64 0}
!20 = !{!"_ZTSN3rmg12Object2DTypeE", !13, i64 0}
!21 = !{!"_ZTSN3rmg4Mat3E", !13, i64 0}
!22 = !{!"_ZTSN3rmg4Vec2E", !13, i64 0}
!23 = !{!"_ZTSN3rmg8internal7PendingE", !14, i64 0, !14, i64 8}
!24 = !{!9, !14, i64 120}
!25 = !{!26, !26, i64 0}
!26 = !{!"int", !13, i64 0}
!27 = !{!10, !20, i64 56}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass