; LLVM IR from vokegpu/bicudo :: meow/src/tools/camera.ll (ZN4meow6camera9on_updateEv)

; 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.meow::application" = type { %"struct.bicudo::runtime", %"class.meow::camera", %"class.meow::immediate_graphics", %"struct.meow::tools::pickup_info_t", %"struct.meow::tools::pickup_info_t", %"struct.meow::settings", i64 }
%"struct.bicudo::runtime" = type { %"class.std::vector.2", %"struct.bicudo::physics::collision_info_t", i64, float, float, %"struct.bicudo::vec2", i32, ptr, ptr, ptr }
%"class.std::vector.2" = type { %"struct.std::_Vector_base.3" }
%"struct.std::_Vector_base.3" = type { %"struct.std::_Vector_base<bicudo::physics::placement *, std::allocator<bicudo::physics::placement *>>::_Vector_impl" }
%"struct.std::_Vector_base<bicudo::physics::placement *, std::allocator<bicudo::physics::placement *>>::_Vector_impl" = type { %"struct.std::_Vector_base<bicudo::physics::placement *, std::allocator<bicudo::physics::placement *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<bicudo::physics::placement *, std::allocator<bicudo::physics::placement *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.bicudo::physics::collision_info_t" = type <{ float, %"struct.bicudo::vec2", %"struct.bicudo::vec2", %"struct.bicudo::vec2", i8, i8, [2 x i8] }>
%"struct.bicudo::vec2" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float }
%"class.meow::camera" = type <{ %"struct.bicudo::physics::placement", float, %"struct.bicudo::vec4", float, float, [4 x i8] }>
%"struct.bicudo::physics::placement" = type { ptr, i64, i64, float, float, float, float, float, %"struct.bicudo::vec2", %"struct.bicudo::vec2", %"struct.bicudo::vec2", %"struct.bicudo::vec2", %"struct.bicudo::vec2", %"struct.bicudo::vec2", float, float, float, %"class.std::vector", %"class.std::vector", i8, i8, %"struct.bicudo::vec2", float }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<bicudo::vec2, std::allocator<bicudo::vec2>>::_Vector_impl" }
%"struct.std::_Vector_base<bicudo::vec2, std::allocator<bicudo::vec2>>::_Vector_impl" = type { %"struct.std::_Vector_base<bicudo::vec2, std::allocator<bicudo::vec2>>::_Vector_impl_data" }
%"struct.std::_Vector_base<bicudo::vec2, std::allocator<bicudo::vec2>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.bicudo::vec4" = type { %union.anon.0 }
%union.anon.0 = type { %struct.anon.1 }
%struct.anon.1 = type { float, float, float, float }
%"class.meow::immediate_graphics" = type <{ i32, [4 x i8], %"struct.meow::gpu::uniform", %"struct.meow::gpu::draw_call_t", %"struct.bicudo::mat4", %"struct.bicudo::mat4", %"struct.bicudo::vec2", %"struct.bicudo::vec4", float, [4 x i8] }>
%"struct.meow::gpu::uniform" = type { i32, %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.meow::gpu::draw_call_t" = type { i32, i32, i32, i32, i64, i64, %"class.std::vector.12" }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = 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.bicudo::mat4" = type { %union.anon.17 }
%union.anon.17 = type { %struct.anon.18 }
%struct.anon.18 = type { float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float }
%"struct.meow::tools::pickup_info_t" = type { %"struct.bicudo::vec2", %"struct.bicudo::vec2", %"struct.bicudo::vec2", ptr }
%"struct.meow::settings" = type { i8, i8, i8 }

@_ZN6bicudo2dtE = external global float, align 4
@_ZN4meow3appE = external global %"struct.meow::application", align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4meow6camera9on_updateEv(ptr noundef nonnull align 8 dereferenceable(196) %0) #0 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca %"struct.bicudo::vec2", align 4
  %4 = alloca %"struct.bicudo::vec2", align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %5 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %6 = getelementptr inbounds %"class.meow::camera", ptr %5, i32 0, i32 0
  %7 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %6, i32 0, i32 13
  %8 = load float, ptr @_ZN6bicudo2dtE, align 4, !tbaa !9
  %9 = call <2 x float> @_ZN6bicudo4vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef %8)
  %10 = getelementptr inbounds %"struct.bicudo::vec2", ptr %3, i32 0, i32 0
  %11 = getelementptr inbounds %union.anon, ptr %10, i32 0, i32 0
  store <2 x float> %9, ptr %11, align 4
  %12 = getelementptr inbounds %"class.meow::camera", ptr %5, i32 0, i32 0
  %13 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %12, i32 0, i32 12
  call void @_ZN6bicudo4vec2pLERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %13, ptr noundef nonnull align 4 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  %14 = getelementptr inbounds %"class.meow::camera", ptr %5, i32 0, i32 0
  %15 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %14, i32 0, i32 12
  %16 = getelementptr inbounds %"class.meow::camera", ptr %5, i32 0, i32 0
  %17 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %16, i32 0, i32 10
  call void @_ZN6bicudo4vec2pLERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %15)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %18 = getelementptr inbounds %"class.meow::camera", ptr %5, i32 0, i32 0
  %19 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %18, i32 0, i32 12
  %20 = getelementptr inbounds %"class.meow::camera", ptr %5, i32 0, i32 1
  %21 = load float, ptr %20, align 8, !tbaa !11
  %22 = load float, ptr @_ZN6bicudo2dtE, align 4, !tbaa !9
  %23 = fadd float %21, %22
  %24 = call <2 x float> @_ZN6bicudo4lerpERKNS_4vec2Eff(ptr noundef nonnull align 4 dereferenceable(8) %19, float noundef 0.000000e+00, float noundef %23)
  %25 = getelementptr inbounds %"struct.bicudo::vec2", ptr %4, i32 0, i32 0
  %26 = getelementptr inbounds %union.anon, ptr %25, i32 0, i32 0
  store <2 x float> %24, ptr %26, align 4
  %27 = getelementptr inbounds %"class.meow::camera", ptr %5, i32 0, i32 0
  %28 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %27, i32 0, i32 12
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %4, i64 8, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  %29 = getelementptr inbounds %"class.meow::camera", ptr %5, i32 0, i32 0
  %30 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %29, i32 0, i32 10
  %31 = getelementptr inbounds %"struct.bicudo::vec2", ptr %30, i32 0, i32 0
  %32 = getelementptr inbounds %struct.anon, ptr %31, i32 0, i32 0
  %33 = load float, ptr %32, align 4, !tbaa !23
  %34 = getelementptr inbounds %"class.meow::camera", ptr %5, i32 0, i32 2
  %35 = getelementptr inbounds %"struct.bicudo::vec4", ptr %34, i32 0, i32 0
  %36 = getelementptr inbounds %struct.anon.1, ptr %35, i32 0, i32 0
  store float %33, ptr %36, align 4, !tbaa !23
  %37 = getelementptr inbounds %"class.meow::camera", ptr %5, i32 0, i32 0
  %38 = getelementptr inbounds %"struct.bicudo::physics::placement", ptr %37, i32 0, i32 10
  %39 = getelementptr inbounds %"struct.bicudo::vec2", ptr %38, i32 0, i32 0
  %40 = getelementptr inbounds %struct.anon, ptr %39, i32 0, i32 1
  %41 = load float, ptr %40, align 4, !tbaa !23
  %42 = getelementptr inbounds %"class.meow::camera", ptr %5, i32 0, i32 2
  %43 = getelementptr inbounds %"struct.bicudo::vec4", ptr %42, i32 0, i32 0
  %44 = getelementptr inbounds %struct.anon.1, ptr %43, i32 0, i32 1
  store float %41, ptr %44, align 4, !tbaa !23
  %45 = load float, ptr getelementptr inbounds (%struct.anon.1, ptr getelementptr inbounds (%"class.meow::immediate_graphics", ptr getelementptr inbounds (%"struct.meow::application", ptr @_ZN4meow3appE, i32 0, i32 2), i32 0, i32 7), i32 0, i32 2), align 8, !tbaa !23
  %46 = load float, ptr getelementptr inbounds (%"class.meow::camera", ptr getelementptr inbounds (%"struct.meow::application", ptr @_ZN4meow3appE, i32 0, i32 1), i32 0, i32 3), align 4, !tbaa !24
  %47 = fdiv float %45, %46
  %48 = getelementptr inbounds %"class.meow::camera", ptr %5, i32 0, i32 2
  %49 = getelementptr inbounds %"struct.bicudo::vec4", ptr %48, i32 0, i32 0
  %50 = getelementptr inbounds %struct.anon.1, ptr %49, i32 0, i32 2
  store float %47, ptr %50, align 4, !tbaa !23
  %51 = load float, ptr getelementptr inbounds (%struct.anon.1, ptr getelementptr inbounds (%"class.meow::immediate_graphics", ptr getelementptr inbounds (%"struct.meow::application", ptr @_ZN4meow3appE, i32 0, i32 2), i32 0, i32 7), i32 0, i32 3), align 4, !tbaa !23
  %52 = load float, ptr getelementptr inbounds (%"class.meow::camera", ptr getelementptr inbounds (%"struct.meow::application", ptr @_ZN4meow3appE, i32 0, i32 1), i32 0, i32 3), align 4, !tbaa !24
  %53 = fdiv float %51, %52
  %54 = getelementptr inbounds %"class.meow::camera", ptr %5, i32 0, i32 2
  %55 = getelementptr inbounds %"struct.bicudo::vec4", ptr %54, i32 0, i32 0
  %56 = getelementptr inbounds %struct.anon.1, ptr %55, i32 0, i32 3
  store float %53, ptr %56, align 4, !tbaa !23
  ret void
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZN6bicudo4vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8), float noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6bicudo4vec2pLERKS0_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

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

declare <2 x float> @_ZN6bicudo4lerpERKNS_4vec2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) #4

; 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) #5

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 = { 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 #4 = { "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 nounwind willreturn memory(argmem: readwrite) }
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 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 168}
!12 = !{!"_ZTSN4meow6cameraE", !13, i64 0, !10, i64 168, !21, i64 172, !10, i64 188, !10, i64 192}
!13 = !{!"_ZTSN6bicudo7physics9placementE", !6, i64 0, !14, i64 8, !14, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !15, i64 44, !15, i64 52, !15, i64 60, !15, i64 68, !15, i64 76, !15, i64 84, !10, i64 92, !10, i64 96, !10, i64 100, !16, i64 104, !16, i64 128, !20, i64 152, !20, i64 153, !15, i64 156, !10, i64 164}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSN6bicudo4vec2E", !7, i64 0}
!16 = !{!"_ZTSSt6vectorIN6bicudo4vec2ESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIN6bicudo4vec2ESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN6bicudo4vec2ESaIS1_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN6bicudo4vec2ESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"_ZTSN6bicudo4vec4E", !7, i64 0}
!22 = !{i64 0, i64 8, !23}
!23 = !{!7, !7, i64 0}
!24 = !{!25, !10, i64 300}
!25 = !{!"_ZTSN4meow11applicationE", !26, i64 0, !12, i64 112, !33, i64 312, !47, i64 600, !47, i64 632, !48, i64 664, !14, i64 672}
!26 = !{!"_ZTSN6bicudo7runtimeE", !27, i64 0, !31, i64 24, !14, i64 56, !10, i64 64, !10, i64 68, !15, i64 72, !32, i64 80, !6, i64 88, !6, i64 96, !6, i64 104}
!27 = !{!"_ZTSSt6vectorIPN6bicudo7physics9placementESaIS3_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIPN6bicudo7physics9placementESaIS3_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIPN6bicudo7physics9placementESaIS3_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIPN6bicudo7physics9placementESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!"_ZTSN6bicudo7physics16collision_info_tE", !10, i64 0, !15, i64 4, !15, i64 12, !15, i64 20, !20, i64 28, !20, i64 29}
!32 = !{!"_ZTSN6bicudo20physics_runtime_typeE", !7, i64 0}
!33 = !{!"_ZTSN4meow18immediate_graphicsE", !34, i64 0, !35, i64 8, !40, i64 72, !46, i64 128, !46, i64 192, !15, i64 256, !21, i64 264, !10, i64 280}
!34 = !{!"int", !7, i64 0}
!35 = !{!"_ZTSN4meow3gpu7uniformE", !34, i64 0, !36, i64 8}
!36 = !{!"_ZTSSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEjSt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_jEEE", !37, i64 0}
!37 = !{!"_ZTSSt10_HashtableISt17basic_string_viewIcSt11char_traitsIcEESt4pairIKS3_jESaIS6_ENSt8__detail10_Select1stESt8equal_toIS3_ESt4hashIS3_ENS8_18_Mod_range_hashingENS8_20_Default_ranged_hashENS8_20_Prime_rehash_policyENS8_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !14, i64 8, !38, i64 16, !14, i64 24, !39, i64 32, !6, i64 48}
!38 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!39 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !10, i64 0, !14, i64 8}
!40 = !{!"_ZTSN4meow3gpu11draw_call_tE", !34, i64 0, !34, i64 4, !41, i64 8, !34, i64 12, !14, i64 16, !14, i64 24, !42, i64 32}
!41 = !{!"_ZTSN6bicudo5typesE", !7, i64 0}
!42 = !{!"_ZTSSt6vectorIjSaIjEE", !43, i64 0}
!43 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!46 = !{!"_ZTSN6bicudo4mat4E", !7, i64 0}
!47 = !{!"_ZTSN4meow5tools13pickup_info_tE", !15, i64 0, !15, i64 8, !15, i64 16, !6, i64 24}
!48 = !{!"_ZTSN4meow8settingsE", !20, i64 0, !20, i64 1, !20, i64 2}


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

%"struct.meow::application" = type { %"struct.bicudo::runtime", %"class.meow::camera", %"class.meow::immediate_graphics", %"struct.meow::tools::pickup_info_t", %"struct.meow::tools::pickup_info_t", %"struct.meow::settings", i64 }
%"struct.bicudo::runtime" = type { %"class.std::vector.2", %"struct.bicudo::physics::collision_info_t", i64, float, float, %"struct.bicudo::vec2", i32, ptr, ptr, ptr }
%"class.std::vector.2" = type { %"struct.std::_Vector_base.3" }
%"struct.std::_Vector_base.3" = type { %"struct.std::_Vector_base<bicudo::physics::placement *, std::allocator<bicudo::physics::placement *>>::_Vector_impl" }
%"struct.std::_Vector_base<bicudo::physics::placement *, std::allocator<bicudo::physics::placement *>>::_Vector_impl" = type { %"struct.std::_Vector_base<bicudo::physics::placement *, std::allocator<bicudo::physics::placement *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<bicudo::physics::placement *, std::allocator<bicudo::physics::placement *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.bicudo::physics::collision_info_t" = type <{ float, %"struct.bicudo::vec2", %"struct.bicudo::vec2", %"struct.bicudo::vec2", i8, i8, [2 x i8] }>
%"struct.bicudo::vec2" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float }
%"class.meow::camera" = type <{ %"struct.bicudo::physics::placement", float, %"struct.bicudo::vec4", float, float, [4 x i8] }>
%"struct.bicudo::physics::placement" = type { ptr, i64, i64, float, float, float, float, float, %"struct.bicudo::vec2", %"struct.bicudo::vec2", %"struct.bicudo::vec2", %"struct.bicudo::vec2", %"struct.bicudo::vec2", %"struct.bicudo::vec2", float, float, float, %"class.std::vector", %"class.std::vector", i8, i8, %"struct.bicudo::vec2", float }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<bicudo::vec2, std::allocator<bicudo::vec2>>::_Vector_impl" }
%"struct.std::_Vector_base<bicudo::vec2, std::allocator<bicudo::vec2>>::_Vector_impl" = type { %"struct.std::_Vector_base<bicudo::vec2, std::allocator<bicudo::vec2>>::_Vector_impl_data" }
%"struct.std::_Vector_base<bicudo::vec2, std::allocator<bicudo::vec2>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.bicudo::vec4" = type { %union.anon.0 }
%union.anon.0 = type { %struct.anon.1 }
%struct.anon.1 = type { float, float, float, float }
%"class.meow::immediate_graphics" = type <{ i32, [4 x i8], %"struct.meow::gpu::uniform", %"struct.meow::gpu::draw_call_t", %"struct.bicudo::mat4", %"struct.bicudo::mat4", %"struct.bicudo::vec2", %"struct.bicudo::vec4", float, [4 x i8] }>
%"struct.meow::gpu::uniform" = type { i32, %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.meow::gpu::draw_call_t" = type { i32, i32, i32, i32, i64, i64, %"class.std::vector.12" }
%"class.std::vector.12" = type { %"struct.std::_Vector_base.13" }
%"struct.std::_Vector_base.13" = 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.bicudo::mat4" = type { %union.anon.17 }
%union.anon.17 = type { %struct.anon.18 }
%struct.anon.18 = type { float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float }
%"struct.meow::tools::pickup_info_t" = type { %"struct.bicudo::vec2", %"struct.bicudo::vec2", %"struct.bicudo::vec2", ptr }
%"struct.meow::settings" = type { i8, i8, i8 }

@_ZN6bicudo2dtE = external local_unnamed_addr global float, align 4
@_ZN4meow3appE = external local_unnamed_addr global %"struct.meow::application", align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4meow6camera9on_updateEv(ptr noundef nonnull align 8 dereferenceable(196) %0) local_unnamed_addr #0 align 2 {
  %2 = alloca %"struct.bicudo::vec2", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %3 = getelementptr inbounds i8, ptr %0, i64 84
  %4 = load float, ptr @_ZN6bicudo2dtE, align 4, !tbaa !5
  %5 = tail call <2 x float> @_ZN6bicudo4vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef %4)
  store <2 x float> %5, ptr %2, align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 76
  call void @_ZN6bicudo4vec2pLERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %6, ptr noundef nonnull align 4 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  %7 = getelementptr inbounds i8, ptr %0, i64 60
  call void @_ZN6bicudo4vec2pLERKS0_(ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %6)
  %8 = getelementptr inbounds i8, ptr %0, i64 168
  %9 = load float, ptr %8, align 8, !tbaa !9
  %10 = load float, ptr @_ZN6bicudo2dtE, align 4, !tbaa !5
  %11 = fadd float %9, %10
  %12 = call <2 x float> @_ZN6bicudo4lerpERKNS_4vec2Eff(ptr noundef nonnull align 4 dereferenceable(8) %6, float noundef 0.000000e+00, float noundef %11)
  store <2 x float> %12, ptr %6, align 4, !tbaa !21
  %13 = getelementptr inbounds i8, ptr %0, i64 172
  %14 = load <2 x float>, ptr %7, align 4, !tbaa !21
  store <2 x float> %14, ptr %13, align 4, !tbaa !21
  %15 = load float, ptr getelementptr inbounds (i8, ptr @_ZN4meow3appE, i64 584), align 8, !tbaa !21
  %16 = load float, ptr getelementptr inbounds (i8, ptr @_ZN4meow3appE, i64 300), align 4, !tbaa !22
  %17 = fdiv float %15, %16
  %18 = getelementptr inbounds i8, ptr %0, i64 180
  store float %17, ptr %18, align 4, !tbaa !21
  %19 = load float, ptr getelementptr inbounds (i8, ptr @_ZN4meow3appE, i64 588), align 4, !tbaa !21
  %20 = load float, ptr getelementptr inbounds (i8, ptr @_ZN4meow3appE, i64 300), align 4, !tbaa !22
  %21 = fdiv float %19, %20
  %22 = getelementptr inbounds i8, ptr %0, i64 184
  store float %21, ptr %22, align 8, !tbaa !21
  ret void
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZN6bicudo4vec2mlEf(ptr noundef nonnull align 4 dereferenceable(8), float noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6bicudo4vec2pLERKS0_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

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

declare <2 x float> @_ZN6bicudo4lerpERKNS_4vec2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) local_unnamed_addr #4

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="64" "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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 = { 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 #4 = { "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 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 168}
!10 = !{!"_ZTSN4meow6cameraE", !11, i64 0, !6, i64 168, !20, i64 172, !6, i64 188, !6, i64 192}
!11 = !{!"_ZTSN6bicudo7physics9placementE", !12, i64 0, !13, i64 8, !13, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !14, i64 44, !14, i64 52, !14, i64 60, !14, i64 68, !14, i64 76, !14, i64 84, !6, i64 92, !6, i64 96, !6, i64 100, !15, i64 104, !15, i64 128, !19, i64 152, !19, i64 153, !14, i64 156, !6, i64 164}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSN6bicudo4vec2E", !7, i64 0}
!15 = !{!"_ZTSSt6vectorIN6bicudo4vec2ESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIN6bicudo4vec2ESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIN6bicudo4vec2ESaIS1_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN6bicudo4vec2ESaIS1_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!19 = !{!"bool", !7, i64 0}
!20 = !{!"_ZTSN6bicudo4vec4E", !7, i64 0}
!21 = !{!7, !7, i64 0}
!22 = !{!23, !6, i64 300}
!23 = !{!"_ZTSN4meow11applicationE", !24, i64 0, !10, i64 112, !31, i64 312, !45, i64 600, !45, i64 632, !46, i64 664, !13, i64 672}
!24 = !{!"_ZTSN6bicudo7runtimeE", !25, i64 0, !29, i64 24, !13, i64 56, !6, i64 64, !6, i64 68, !14, i64 72, !30, i64 80, !12, i64 88, !12, i64 96, !12, i64 104}
!25 = !{!"_ZTSSt6vectorIPN6bicudo7physics9placementESaIS3_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIPN6bicudo7physics9placementESaIS3_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIPN6bicudo7physics9placementESaIS3_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIPN6bicudo7physics9placementESaIS3_EE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!29 = !{!"_ZTSN6bicudo7physics16collision_info_tE", !6, i64 0, !14, i64 4, !14, i64 12, !14, i64 20, !19, i64 28, !19, i64 29}
!30 = !{!"_ZTSN6bicudo20physics_runtime_typeE", !7, i64 0}
!31 = !{!"_ZTSN4meow18immediate_graphicsE", !32, i64 0, !33, i64 8, !38, i64 72, !44, i64 128, !44, i64 192, !14, i64 256, !20, i64 264, !6, i64 280}
!32 = !{!"int", !7, i64 0}
!33 = !{!"_ZTSN4meow3gpu7uniformE", !32, i64 0, !34, i64 8}
!34 = !{!"_ZTSSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEjSt4hashIS3_ESt8equal_toIS3_ESaISt4pairIKS3_jEEE", !35, i64 0}
!35 = !{!"_ZTSSt10_HashtableISt17basic_string_viewIcSt11char_traitsIcEESt4pairIKS3_jESaIS6_ENSt8__detail10_Select1stESt8equal_toIS3_ESt4hashIS3_ENS8_18_Mod_range_hashingENS8_20_Default_ranged_hashENS8_20_Prime_rehash_policyENS8_17_Hashtable_traitsILb1ELb0ELb1EEEE", !12, i64 0, !13, i64 8, !36, i64 16, !13, i64 24, !37, i64 32, !12, i64 48}
!36 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !12, i64 0}
!37 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !6, i64 0, !13, i64 8}
!38 = !{!"_ZTSN4meow3gpu11draw_call_tE", !32, i64 0, !32, i64 4, !39, i64 8, !32, i64 12, !13, i64 16, !13, i64 24, !40, i64 32}
!39 = !{!"_ZTSN6bicudo5typesE", !7, i64 0}
!40 = !{!"_ZTSSt6vectorIjSaIjEE", !41, i64 0}
!41 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !12, i64 0, !12, i64 8, !12, i64 16}
!44 = !{!"_ZTSN6bicudo4mat4E", !7, i64 0}
!45 = !{!"_ZTSN4meow5tools13pickup_info_tE", !14, i64 0, !14, i64 8, !14, i64 16, !12, i64 24}
!46 = !{!"_ZTSN4meow8settingsE", !19, i64 0, !19, i64 1, !19, i64 2}


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