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

; 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::Object3D" = type { %"class.rmg::Object", %"struct.rmg::Mat4", %"struct.rmg::Vec3", ptr, float, float, float, ptr, ptr, %"class.rmg::internal::Pending", ptr, ptr, %"class.rmg::internal::Pending" }
%"class.rmg::Object" = type { ptr, i64, ptr, %"struct.rmg::ColorRGBA", i8, i32 }
%"struct.rmg::ColorRGBA" = type { float, float, float, float }
%"struct.rmg::Mat4" = type { %union.anon }
%union.anon = type { [4 x [4 x float]] }
%"struct.rmg::Vec3" = type { %union.anon.0 }
%union.anon.0 = type { %struct.anon }
%struct.anon = type { float, float, float }
%"class.rmg::internal::Pending" = type { ptr, ptr }

@_ZTVN3rmg8Object3DE = external dso_local unnamed_addr constant { [5 x ptr] }, align 8

declare void @_ZN3rmg4Mat4C1Ev(ptr noundef nonnull align 4 dereferenceable(64)) unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3rmg8Object3DC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(216) %0, ptr noundef nonnull align 8 dereferenceable(216) %1) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8
  %8 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3rmg6ObjectC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(48) %8)
  store ptr getelementptr inbounds inrange(-16, 24) ({ [5 x ptr] }, ptr @_ZTVN3rmg8Object3DE, i32 0, i32 0, i32 2), ptr %7, align 8, !tbaa !9
  %9 = getelementptr inbounds %"class.rmg::Object3D", ptr %7, i32 0, i32 1
  invoke void @_ZN3rmg4Mat4C1Ev(ptr noundef nonnull align 4 dereferenceable(64) %9)
          to label %10 unwind label %58

10:                                               ; preds = %2
  %11 = getelementptr inbounds %"class.rmg::Object3D", ptr %7, i32 0, i32 2
  invoke void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %11)
          to label %12 unwind label %58

12:                                               ; preds = %10
  %13 = getelementptr inbounds %"class.rmg::Object3D", ptr %7, i32 0, i32 3
  store ptr null, ptr %13, align 8, !tbaa !11
  %14 = getelementptr inbounds %"class.rmg::Object3D", ptr %7, i32 0, i32 7
  store ptr null, ptr %14, align 8, !tbaa !22
  %15 = getelementptr inbounds %"class.rmg::Object3D", ptr %7, i32 0, i32 8
  store ptr null, ptr %15, align 8, !tbaa !23
  %16 = getelementptr inbounds %"class.rmg::Object3D", ptr %7, i32 0, i32 9
  call void @_ZN3rmg8internal7PendingC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  %17 = getelementptr inbounds %"class.rmg::Object3D", ptr %7, i32 0, i32 10
  store ptr null, ptr %17, align 8, !tbaa !24
  %18 = getelementptr inbounds %"class.rmg::Object3D", ptr %7, i32 0, i32 11
  store ptr null, ptr %18, align 8, !tbaa !25
  %19 = getelementptr inbounds %"class.rmg::Object3D", ptr %7, i32 0, i32 12
  call void @_ZN3rmg8internal7PendingC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %"class.rmg::Object3D", ptr %20, i32 0, i32 1
  %22 = getelementptr inbounds %"class.rmg::Object3D", ptr %7, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %21, i64 64, i1 false), !tbaa.struct !26
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %"class.rmg::Object3D", ptr %23, i32 0, i32 2
  %25 = getelementptr inbounds %"class.rmg::Object3D", ptr %7, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %24, i64 12, i1 false), !tbaa.struct !28
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %"class.rmg::Object3D", ptr %26, i32 0, i32 3
  %28 = load ptr, ptr %27, align 8, !tbaa !11
  %29 = getelementptr inbounds %"class.rmg::Object3D", ptr %7, i32 0, i32 3
  store ptr %28, ptr %29, align 8, !tbaa !11
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %"class.rmg::Object3D", ptr %30, i32 0, i32 4
  %32 = load float, ptr %31, align 8, !tbaa !29
  %33 = getelementptr inbounds %"class.rmg::Object3D", ptr %7, i32 0, i32 4
  store float %32, ptr %33, align 8, !tbaa !29
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %"class.rmg::Object3D", ptr %34, i32 0, i32 5
  %36 = load float, ptr %35, align 4, !tbaa !30
  %37 = getelementptr inbounds %"class.rmg::Object3D", ptr %7, i32 0, i32 5
  store float %36, ptr %37, align 4, !tbaa !30
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %"class.rmg::Object3D", ptr %38, i32 0, i32 6
  %40 = load float, ptr %39, align 8, !tbaa !31
  %41 = getelementptr inbounds %"class.rmg::Object3D", ptr %7, i32 0, i32 6
  store float %40, ptr %41, align 8, !tbaa !31
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %"class.rmg::Object3D", ptr %42, i32 0, i32 7
  %44 = load ptr, ptr %43, align 8, !tbaa !22
  %45 = getelementptr inbounds %"class.rmg::Object3D", ptr %7, i32 0, i32 7
  store ptr %44, ptr %45, align 8, !tbaa !22
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %"class.rmg::Object3D", ptr %46, i32 0, i32 8
  %48 = load ptr, ptr %47, align 8, !tbaa !23
  %49 = getelementptr inbounds %"class.rmg::Object3D", ptr %7, i32 0, i32 8
  store ptr %48, ptr %49, align 8, !tbaa !23
  %50 = getelementptr inbounds %"class.rmg::Object3D", ptr %7, i32 0, i32 8
  %51 = load ptr, ptr %50, align 8, !tbaa !23
  %52 = icmp ne ptr %51, null
  br i1 %52, label %53, label %62

53:                                               ; preds = %12
  %54 = getelementptr inbounds %"class.rmg::Object3D", ptr %7, i32 0, i32 8
  %55 = load ptr, ptr %54, align 8, !tbaa !23
  %56 = load i32, ptr %55, align 4, !tbaa !32
  %57 = add i32 %56, 1
  store i32 %57, ptr %55, align 4, !tbaa !32
  br label %62

58:                                               ; preds = %10, %2
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %5, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %6, align 4
  br label %94

62:                                               ; preds = %53, %12
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %"class.rmg::Object3D", ptr %63, i32 0, i32 9
  %65 = getelementptr inbounds %"class.rmg::Object3D", ptr %7, i32 0, i32 9
  %66 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3rmg8internal7PendingaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %65, ptr noundef nonnull align 8 dereferenceable(16) %64)
          to label %67 unwind label %84

67:                                               ; preds = %62
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %"class.rmg::Object3D", ptr %68, i32 0, i32 10
  %70 = load ptr, ptr %69, align 8, !tbaa !24
  %71 = getelementptr inbounds %"class.rmg::Object3D", ptr %7, i32 0, i32 10
  store ptr %70, ptr %71, align 8, !tbaa !24
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %"class.rmg::Object3D", ptr %72, i32 0, i32 11
  %74 = load ptr, ptr %73, align 8, !tbaa !25
  %75 = getelementptr inbounds %"class.rmg::Object3D", ptr %7, i32 0, i32 11
  store ptr %74, ptr %75, align 8, !tbaa !25
  %76 = getelementptr inbounds %"class.rmg::Object3D", ptr %7, i32 0, i32 11
  %77 = load ptr, ptr %76, align 8, !tbaa !25
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %88

79:                                               ; preds = %67
  %80 = getelementptr inbounds %"class.rmg::Object3D", ptr %7, i32 0, i32 11
  %81 = load ptr, ptr %80, align 8, !tbaa !25
  %82 = load i32, ptr %81, align 4, !tbaa !32
  %83 = add i32 %82, 1
  store i32 %83, ptr %81, align 4, !tbaa !32
  br label %88

84:                                               ; preds = %88, %62
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %5, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %6, align 4
  call void @_ZN3rmg8internal7PendingD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #6
  call void @_ZN3rmg8internal7PendingD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #6
  br label %94

88:                                               ; preds = %79, %67
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %"class.rmg::Object3D", ptr %89, i32 0, i32 12
  %91 = getelementptr inbounds %"class.rmg::Object3D", ptr %7, i32 0, i32 12
  %92 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3rmg8internal7PendingaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %91, ptr noundef nonnull align 8 dereferenceable(16) %90)
          to label %93 unwind label %84

93:                                               ; preds = %88
  ret void

94:                                               ; preds = %84, %58
  call void @_ZN3rmg6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #6
  br label %95

95:                                               ; preds = %94
  %96 = load ptr, ptr %5, align 8
  %97 = load i32, ptr %6, align 4
  %98 = insertvalue { ptr, i32 } poison, ptr %96, 0
  %99 = insertvalue { ptr, i32 } %98, i32 %97, 1
  resume { ptr, i32 } %99
}

declare void @_ZN3rmg6ObjectC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #0

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN3rmg8internal7PendingaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #0

attributes #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 = { inlinehint 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 #2 = { 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 #6 = { 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 128}
!12 = !{!"_ZTSN3rmg8Object3DE", !13, i64 0, !19, i64 48, !20, i64 112, !6, i64 128, !16, i64 136, !16, i64 140, !16, i64 144, !6, i64 152, !6, i64 160, !21, i64 168, !6, i64 184, !6, i64 192, !21, i64 200}
!13 = !{!"_ZTSN3rmg6ObjectE", !14, i64 8, !6, i64 16, !15, i64 24, !17, i64 40, !18, i64 44}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSN3rmg9ColorRGBAE", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12}
!16 = !{!"float", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTSN3rmg10ObjectTypeE", !7, i64 0}
!19 = !{!"_ZTSN3rmg4Mat4E", !7, i64 0}
!20 = !{!"_ZTSN3rmg4Vec3E", !7, i64 0}
!21 = !{!"_ZTSN3rmg8internal7PendingE", !6, i64 0, !6, i64 8}
!22 = !{!12, !6, i64 152}
!23 = !{!12, !6, i64 160}
!24 = !{!12, !6, i64 184}
!25 = !{!12, !6, i64 192}
!26 = !{i64 0, i64 64, !27}
!27 = !{!7, !7, i64 0}
!28 = !{i64 0, i64 12, !27}
!29 = !{!12, !16, i64 136}
!30 = !{!12, !16, i64 140}
!31 = !{!12, !16, i64 144}
!32 = !{!33, !33, i64 0}
!33 = !{!"int", !7, 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"

@_ZTVN3rmg8Object3DE = external dso_local unnamed_addr constant { [5 x ptr] }, align 8

declare void @_ZN3rmg4Mat4C1Ev(ptr noundef nonnull align 4 dereferenceable(64)) unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3rmg8Object3DC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(216) %0, ptr noundef nonnull align 8 dereferenceable(216) %1) unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZN3rmg6ObjectC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(48) %1)
  store ptr getelementptr inbounds inrange(-16, 24) (i8, ptr @_ZTVN3rmg8Object3DE, i64 16), ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 48
  invoke void @_ZN3rmg4Mat4C1Ev(ptr noundef nonnull align 4 dereferenceable(64) %3)
          to label %4 unwind label %30

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 112
  tail call void @_ZN3rmg4Vec3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %5)
  %6 = getelementptr inbounds i8, ptr %0, i64 128
  store ptr null, ptr %6, align 8, !tbaa !8
  %7 = getelementptr inbounds i8, ptr %0, i64 152
  %8 = getelementptr inbounds i8, ptr %0, i64 160
  %9 = getelementptr inbounds i8, ptr %0, i64 168
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %7, i8 0, i64 16, i1 false)
  tail call void @_ZN3rmg8internal7PendingC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  %10 = getelementptr inbounds i8, ptr %0, i64 184
  %11 = getelementptr inbounds i8, ptr %0, i64 192
  %12 = getelementptr inbounds i8, ptr %0, i64 200
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %10, i8 0, i64 16, i1 false)
  tail call void @_ZN3rmg8internal7PendingC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  %13 = getelementptr inbounds i8, ptr %1, i64 48
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %3, ptr noundef nonnull align 8 dereferenceable(64) %13, i64 64, i1 false), !tbaa.struct !21
  %14 = getelementptr inbounds i8, ptr %1, i64 112
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %5, ptr noundef nonnull align 8 dereferenceable(12) %14, i64 12, i1 false), !tbaa.struct !23
  %15 = getelementptr inbounds i8, ptr %1, i64 128
  %16 = load ptr, ptr %15, align 8, !tbaa !8
  store ptr %16, ptr %6, align 8, !tbaa !8
  %17 = getelementptr inbounds i8, ptr %1, i64 136
  %18 = getelementptr inbounds i8, ptr %0, i64 136
  %19 = load <2 x float>, ptr %17, align 8, !tbaa !24
  store <2 x float> %19, ptr %18, align 8, !tbaa !24
  %20 = getelementptr inbounds i8, ptr %1, i64 144
  %21 = load float, ptr %20, align 8, !tbaa !25
  %22 = getelementptr inbounds i8, ptr %0, i64 144
  store float %21, ptr %22, align 8, !tbaa !25
  %23 = getelementptr inbounds i8, ptr %1, i64 152
  %24 = load ptr, ptr %23, align 8, !tbaa !26
  store ptr %24, ptr %7, align 8, !tbaa !26
  %25 = getelementptr inbounds i8, ptr %1, i64 160
  %26 = load ptr, ptr %25, align 8, !tbaa !27
  store ptr %26, ptr %8, align 8, !tbaa !27
  %.not = icmp eq ptr %26, null
  br i1 %.not, label %32, label %27

27:                                               ; preds = %4
  %28 = load i32, ptr %26, align 4, !tbaa !28
  %29 = add i32 %28, 1
  store i32 %29, ptr %26, align 4, !tbaa !28
  br label %32

30:                                               ; preds = %2
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %49

32:                                               ; preds = %27, %4
  %33 = getelementptr inbounds i8, ptr %1, i64 168
  %34 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3rmg8internal7PendingaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %33)
          to label %35 unwind label %43

35:                                               ; preds = %32
  %36 = getelementptr inbounds i8, ptr %1, i64 184
  %37 = load ptr, ptr %36, align 8, !tbaa !30
  store ptr %37, ptr %10, align 8, !tbaa !30
  %38 = getelementptr inbounds i8, ptr %1, i64 192
  %39 = load ptr, ptr %38, align 8, !tbaa !31
  store ptr %39, ptr %11, align 8, !tbaa !31
  %.not18 = icmp eq ptr %39, null
  br i1 %.not18, label %45, label %40

40:                                               ; preds = %35
  %41 = load i32, ptr %39, align 4, !tbaa !28
  %42 = add i32 %41, 1
  store i32 %42, ptr %39, align 4, !tbaa !28
  br label %45

43:                                               ; preds = %45, %32
  %44 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN3rmg8internal7PendingD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  tail call void @_ZN3rmg8internal7PendingD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  br label %49

45:                                               ; preds = %40, %35
  %46 = getelementptr inbounds i8, ptr %1, i64 200
  %47 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN3rmg8internal7PendingaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %46)
          to label %48 unwind label %43

48:                                               ; preds = %45
  ret void

49:                                               ; preds = %43, %30
  %.pn = phi { ptr, i32 } [ %44, %43 ], [ %31, %30 ]
  tail call void @_ZN3rmg6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #7
  resume { ptr, i32 } %.pn
}

declare void @_ZN3rmg6ObjectC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #0

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN3rmg8internal7PendingaSERKS1_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0

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

attributes #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 = { inlinehint 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 #2 = { 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { 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, !13, i64 128}
!9 = !{!"_ZTSN3rmg8Object3DE", !10, i64 0, !18, i64 48, !19, i64 112, !13, i64 128, !15, i64 136, !15, i64 140, !15, i64 144, !13, i64 152, !13, i64 160, !20, i64 168, !13, i64 184, !13, i64 192, !20, i64 200}
!10 = !{!"_ZTSN3rmg6ObjectE", !11, i64 8, !13, i64 16, !14, i64 24, !16, i64 40, !17, i64 44}
!11 = !{!"long", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"any pointer", !12, i64 0}
!14 = !{!"_ZTSN3rmg9ColorRGBAE", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!15 = !{!"float", !12, i64 0}
!16 = !{!"bool", !12, i64 0}
!17 = !{!"_ZTSN3rmg10ObjectTypeE", !12, i64 0}
!18 = !{!"_ZTSN3rmg4Mat4E", !12, i64 0}
!19 = !{!"_ZTSN3rmg4Vec3E", !12, i64 0}
!20 = !{!"_ZTSN3rmg8internal7PendingE", !13, i64 0, !13, i64 8}
!21 = !{i64 0, i64 64, !22}
!22 = !{!12, !12, i64 0}
!23 = !{i64 0, i64 12, !22}
!24 = !{!15, !15, i64 0}
!25 = !{!9, !15, i64 144}
!26 = !{!9, !13, i64 152}
!27 = !{!9, !13, i64 160}
!28 = !{!29, !29, i64 0}
!29 = !{!"int", !12, i64 0}
!30 = !{!9, !13, i64 184}
!31 = !{!9, !13, i64 192}


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