; LLVM IR from tyoma/agge :: src/agge.text/font.ll (ZNK4agge4font10load_glyphEj)

; 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.std::__detail::_Node_iterator.24" = type { %"struct.std::__detail::_Node_iterator_base.25" }
%"struct.std::__detail::_Node_iterator_base.25" = type { ptr }
%"class.agge::glyph" = type <{ float, %"struct.agge::glyph::glyph_metrics", [4 x i8], %"class.std::shared_ptr.26", i32, [4 x i8] }>
%"struct.agge::glyph::glyph_metrics" = type { float, float }
%"class.std::shared_ptr.26" = type { %"class.std::__shared_ptr.27" }
%"class.std::__shared_ptr.27" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.std::pair.29" = type <{ %"struct.std::__detail::_Node_iterator.24", i8, [7 x i8] }>
%"struct.std::pair.32" = type { i32, [4 x i8], %"class.agge::glyph" }
%"class.agge::font" = type <{ [128 x ptr], %"class.std::shared_ptr", %"struct.agge::font_metrics", [4 x i8], %"class.agge::hash_map", %"class.agge::hash_map.2", float, [4 x i8] }>
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"struct.agge::font_metrics" = type { float, float, float }
%"class.agge::hash_map" = type { %"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 }
%"class.agge::hash_map.2" = type { %"class.std::unordered_map.3" }
%"class.std::unordered_map.3" = type { %"class.std::_Hashtable.4" }
%"class.std::_Hashtable.4" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::pair.34" = type { i32, [4 x i8], %"class.agge::glyph" }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #0 align 2

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZNK4agge4font10load_glyphEj(ptr noundef nonnull align 8 dereferenceable(1172) %0, i32 noundef %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::__detail::_Node_iterator.24", align 8
  %7 = alloca %"class.agge::glyph", align 8
  %8 = alloca %"class.std::shared_ptr.26", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"struct.std::pair.29", align 8
  %13 = alloca %"struct.std::pair.32", align 8
  %14 = alloca { ptr, i8 }, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  %15 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @_ZNSt8__detail14_Node_iteratorISt4pairIKjN4agge5glyphEELb0ELb1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #5
  call void @_ZN4agge5glyphC2Ev(ptr noundef nonnull align 8 dereferenceable(36) %7) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  %16 = getelementptr inbounds %"class.agge::font", ptr %15, i32 0, i32 1
  %17 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %16) #5
  %18 = load i32, ptr %5, align 4, !tbaa !9
  %19 = getelementptr inbounds %"class.agge::glyph", ptr %7, i32 0, i32 1
  %20 = load ptr, ptr %17, align 8, !tbaa !11
  %21 = getelementptr inbounds ptr, ptr %20, i64 3
  %22 = load ptr, ptr %21, align 8
  invoke void %22(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.26") align 8 %8, ptr noundef nonnull align 8 dereferenceable(8) %17, i32 noundef %18, ptr noundef nonnull align 4 dereferenceable(8) %19)
          to label %23 unwind label %29

23:                                               ; preds = %2
  %24 = getelementptr inbounds %"class.agge::glyph", ptr %7, i32 0, i32 3
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN4agge10pod_vectorINS0_5glyph10path_pointEEEEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  call void @_ZNSt12__shared_ptrIN4agge10pod_vectorINS0_5glyph10path_pointEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  %26 = getelementptr inbounds %"class.agge::glyph", ptr %7, i32 0, i32 3
  %27 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4agge10pod_vectorINS0_5glyph10path_pointEEELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %26) #5
  br i1 %27, label %33, label %28

28:                                               ; preds = %23
  store ptr null, ptr %3, align 8
  store i32 1, ptr %11, align 4
  br label %67

29:                                               ; preds = %2
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %9, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  br label %69

33:                                               ; preds = %23
  %34 = getelementptr inbounds %"class.agge::font", ptr %15, i32 0, i32 6
  %35 = load float, ptr %34, align 8, !tbaa !13
  %36 = getelementptr inbounds %"class.agge::glyph", ptr %7, i32 0, i32 0
  store float %35, ptr %36, align 8, !tbaa !29
  %37 = getelementptr inbounds %"class.agge::font", ptr %15, i32 0, i32 6
  %38 = load float, ptr %37, align 8, !tbaa !13
  %39 = getelementptr inbounds %"class.agge::glyph", ptr %7, i32 0, i32 1
  %40 = getelementptr inbounds %"struct.agge::glyph::glyph_metrics", ptr %39, i32 0, i32 0
  %41 = load float, ptr %40, align 4, !tbaa !34
  %42 = fmul float %41, %38
  store float %42, ptr %40, align 4, !tbaa !34
  %43 = getelementptr inbounds %"class.agge::font", ptr %15, i32 0, i32 6
  %44 = load float, ptr %43, align 8, !tbaa !13
  %45 = getelementptr inbounds %"class.agge::glyph", ptr %7, i32 0, i32 1
  %46 = getelementptr inbounds %"struct.agge::glyph::glyph_metrics", ptr %45, i32 0, i32 1
  %47 = load float, ptr %46, align 4, !tbaa !35
  %48 = fmul float %47, %44
  store float %48, ptr %46, align 4, !tbaa !35
  %49 = load i32, ptr %5, align 4, !tbaa !9
  %50 = getelementptr inbounds %"class.agge::glyph", ptr %7, i32 0, i32 4
  store i32 %49, ptr %50, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %51 = getelementptr inbounds %"class.agge::font", ptr %15, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 48, ptr %13) #5
  invoke void @_ZSt9make_pairIRjRN4agge5glyphEESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr dead_on_unwind writable sret(%"struct.std::pair.32") align 8 %13, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 8 dereferenceable(36) %7)
          to label %52 unwind label %58

52:                                               ; preds = %33
  %53 = invoke { ptr, i8 } @_ZNSt13unordered_mapIjN4agge5glyphENS0_10knuth_hashESt8equal_toIjESaISt4pairIKjS1_EEE6insertIS5_IjS1_EEENSt9enable_ifIXsr16is_constructibleIS7_OT_EE5valueES5_INSt8__detail14_Node_iteratorIS7_Lb0ELb1EEEbEE4typeESE_(ptr noundef nonnull align 8 dereferenceable(56) %51, ptr noundef nonnull align 8 dereferenceable(48) %13)
          to label %54 unwind label %62

54:                                               ; preds = %52
  store { ptr, i8 } %53, ptr %14, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %14, i64 9, i1 false)
  %55 = getelementptr inbounds %"struct.std::pair.29", ptr %12, i32 0, i32 0
  %56 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjN4agge5glyphEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %55) #5
  %57 = getelementptr inbounds %"struct.std::pair.34", ptr %56, i32 0, i32 2
  store ptr %57, ptr %3, align 8
  call void @_ZNSt4pairIjN4agge5glyphEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  store i32 1, ptr %11, align 4
  br label %67

58:                                               ; preds = %33
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %9, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %10, align 4
  br label %66

62:                                               ; preds = %52
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %9, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %10, align 4
  call void @_ZNSt4pairIjN4agge5glyphEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %13) #5
  br label %66

66:                                               ; preds = %62, %58
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  br label %69

67:                                               ; preds = %54, %28
  call void @_ZN4agge5glyphD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %7) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %68 = load ptr, ptr %3, align 8
  ret ptr %68

69:                                               ; preds = %66, %29
  call void @_ZN4agge5glyphD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %7) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %70

70:                                               ; preds = %69
  %71 = load ptr, ptr %9, align 8
  %72 = load i32, ptr %10, align 4
  %73 = insertvalue { ptr, i32 } poison, ptr %71, 0
  %74 = insertvalue { ptr, i32 } %73, i32 %72, 1
  resume { ptr, i32 } %74
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4agge5glyphC2Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN4agge10pod_vectorINS0_5glyph10path_pointEEEEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt12__shared_ptrIN4agge10pod_vectorINS0_5glyph10path_pointEEELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_mapIjN4agge5glyphENS0_10knuth_hashESt8equal_toIjESaISt4pairIKjS1_EEE6insertIS5_IjS1_EEENSt9enable_ifIXsr16is_constructibleIS7_OT_EE5valueES5_INSt8__detail14_Node_iteratorIS7_Lb0ELb1EEEbEE4typeESE_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairIRjRN4agge5glyphEESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.32") align 8, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(36)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjN4agge5glyphEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4agge5glyphD2Ev(ptr noundef nonnull align 8 dereferenceable(36)) unnamed_addr #4 align 2

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

attributes #0 = { 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 #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !19, i64 1168}
!14 = !{!"_ZTSN4agge4fontE", !7, i64 0, !15, i64 1024, !18, i64 1040, !20, i64 1056, !26, i64 1112, !19, i64 1168}
!15 = !{!"_ZTSSt10shared_ptrIN4agge4font8accessorEE", !16, i64 0}
!16 = !{!"_ZTSSt12__shared_ptrIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !17, i64 8}
!17 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!18 = !{!"_ZTSN4agge12font_metricsE", !19, i64 0, !19, i64 4, !19, i64 8}
!19 = !{!"float", !7, i64 0}
!20 = !{!"_ZTSN4agge8hash_mapIjNS_5glyphENS_10knuth_hashEEE", !21, i64 0}
!21 = !{!"_ZTSSt13unordered_mapIjN4agge5glyphENS0_10knuth_hashESt8equal_toIjESaISt4pairIKjS1_EEE", !22, i64 0}
!22 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN4agge5glyphEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjENS2_10knuth_hashENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !23, i64 8, !24, i64 16, !23, i64 24, !25, i64 32, !6, i64 48}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!25 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !19, i64 0, !23, i64 8}
!26 = !{!"_ZTSN4agge8hash_mapIjjNS_10knuth_hashEEE", !27, i64 0}
!27 = !{!"_ZTSSt13unordered_mapIjjN4agge10knuth_hashESt8equal_toIjESaISt4pairIKjjEEE", !28, i64 0}
!28 = !{!"_ZTSSt10_HashtableIjSt4pairIKjjESaIS2_ENSt8__detail10_Select1stESt8equal_toIjEN4agge10knuth_hashENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !23, i64 8, !24, i64 16, !23, i64 24, !25, i64 32, !6, i64 48}
!29 = !{!30, !19, i64 0}
!30 = !{!"_ZTSN4agge5glyphE", !19, i64 0, !31, i64 4, !32, i64 16, !10, i64 32}
!31 = !{!"_ZTSN4agge5glyph13glyph_metricsE", !19, i64 0, !19, i64 4}
!32 = !{!"_ZTSSt10shared_ptrIN4agge10pod_vectorINS0_5glyph10path_pointEEEE", !33, i64 0}
!33 = !{!"_ZTSSt12__shared_ptrIN4agge10pod_vectorINS0_5glyph10path_pointEEELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !17, i64 8}
!34 = !{!30, !19, i64 4}
!35 = !{!30, !19, i64 8}
!36 = !{!30, !10, i64 32}


; 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.std::__detail::_Node_iterator.24" = type { %"struct.std::__detail::_Node_iterator_base.25" }
%"struct.std::__detail::_Node_iterator_base.25" = type { ptr }
%"class.agge::glyph" = type <{ float, %"struct.agge::glyph::glyph_metrics", [4 x i8], %"class.std::shared_ptr.26", i32, [4 x i8] }>
%"struct.agge::glyph::glyph_metrics" = type { float, float }
%"class.std::shared_ptr.26" = type { %"class.std::__shared_ptr.27" }
%"class.std::__shared_ptr.27" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.std::pair.29" = type <{ %"struct.std::__detail::_Node_iterator.24", i8, [7 x i8] }>
%"struct.std::pair.32" = type { i32, [4 x i8], %"class.agge::glyph" }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZNK4agge4font10load_glyphEj(ptr noundef nonnull align 8 dereferenceable(1172) %0, i32 noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca %"struct.std::__detail::_Node_iterator.24", align 8
  %5 = alloca %"class.agge::glyph", align 8
  %6 = alloca %"class.std::shared_ptr.26", align 8
  %7 = alloca %"struct.std::pair.29", align 8
  %8 = alloca %"struct.std::pair.32", align 8
  store i32 %1, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  call void @_ZNSt8__detail14_Node_iteratorISt4pairIKjN4agge5glyphEELb0ELb1EEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #4
  call void @_ZN4agge5glyphC2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  %9 = getelementptr inbounds i8, ptr %0, i64 1024
  %10 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %9) #4
  %11 = getelementptr inbounds i8, ptr %5, i64 4
  %12 = load ptr, ptr %10, align 8, !tbaa !9
  %13 = getelementptr inbounds i8, ptr %12, i64 24
  %14 = load ptr, ptr %13, align 8
  invoke void %14(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.26") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %10, i32 noundef %1, ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %15 unwind label %19

15:                                               ; preds = %2
  %16 = getelementptr inbounds i8, ptr %5, i64 16
  %17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN4agge10pod_vectorINS0_5glyph10path_pointEEEEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %6) #4
  call void @_ZNSt12__shared_ptrIN4agge10pod_vectorINS0_5glyph10path_pointEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  %18 = call noundef zeroext i1 @_ZNKSt12__shared_ptrIN4agge10pod_vectorINS0_5glyph10path_pointEEELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16) %16) #4
  br i1 %18, label %21, label %40

19:                                               ; preds = %2
  %20 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  br label %41

21:                                               ; preds = %15
  %22 = getelementptr inbounds i8, ptr %0, i64 1168
  %23 = load float, ptr %22, align 8, !tbaa !11
  store float %23, ptr %5, align 8, !tbaa !28
  %24 = load <2 x float>, ptr %11, align 4, !tbaa !33
  %25 = insertelement <2 x float> poison, float %23, i64 0
  %26 = shufflevector <2 x float> %25, <2 x float> poison, <2 x i32> zeroinitializer
  %27 = fmul <2 x float> %26, %24
  store <2 x float> %27, ptr %11, align 4, !tbaa !33
  %28 = getelementptr inbounds i8, ptr %5, i64 32
  store i32 %1, ptr %28, align 8, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #4
  invoke void @_ZSt9make_pairIRjRN4agge5glyphEESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.32") align 8 %8, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 8 dereferenceable(36) %5)
          to label %29 unwind label %35

29:                                               ; preds = %21
  %30 = getelementptr inbounds i8, ptr %0, i64 1056
  %31 = invoke { ptr, i8 } @_ZNSt13unordered_mapIjN4agge5glyphENS0_10knuth_hashESt8equal_toIjESaISt4pairIKjS1_EEE6insertIS5_IjS1_EEENSt9enable_ifIXsr16is_constructibleIS7_OT_EE5valueES5_INSt8__detail14_Node_iteratorIS7_Lb0ELb1EEEbEE4typeESE_(ptr noundef nonnull align 8 dereferenceable(56) %30, ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %32 unwind label %37

32:                                               ; preds = %29
  %.fca.0.extract = extractvalue { ptr, i8 } %31, 0
  %.fca.1.extract = extractvalue { ptr, i8 } %31, 1
  store ptr %.fca.0.extract, ptr %7, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  store i8 %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  %33 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjN4agge5glyphEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %34 = getelementptr inbounds i8, ptr %33, i64 8
  call void @_ZNSt4pairIjN4agge5glyphEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  br label %40

35:                                               ; preds = %21
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %39

37:                                               ; preds = %29
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairIjN4agge5glyphEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #4
  br label %39

39:                                               ; preds = %37, %35
  %.pn = phi { ptr, i32 } [ %38, %37 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  br label %41

40:                                               ; preds = %15, %32
  %.0 = phi ptr [ %34, %32 ], [ null, %15 ]
  call void @_ZN4agge5glyphD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  ret ptr %.0

41:                                               ; preds = %39, %19
  %.pn.pn = phi { ptr, i32 } [ %.pn, %39 ], [ %20, %19 ]
  call void @_ZN4agge5glyphD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  resume { ptr, i32 } %.pn.pn
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN4agge10pod_vectorINS0_5glyph10path_pointEEEEaSEOS5_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt12__shared_ptrIN4agge10pod_vectorINS0_5glyph10path_pointEEELN9__gnu_cxx12_Lock_policyE2EEcvbEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_mapIjN4agge5glyphENS0_10knuth_hashESt8equal_toIjESaISt4pairIKjS1_EEE6insertIS5_IjS1_EEENSt9enable_ifIXsr16is_constructibleIS7_OT_EE5valueES5_INSt8__detail14_Node_iteratorIS7_Lb0ELb1EEEbEE4typeESE_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairIRjRN4agge5glyphEESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS5_INS6_IT0_E4typeEE6__typeEEOS7_OSC_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.32") align 8, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKjN4agge5glyphEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !18, i64 1168}
!12 = !{!"_ZTSN4agge4fontE", !7, i64 0, !13, i64 1024, !17, i64 1040, !19, i64 1056, !25, i64 1112, !18, i64 1168}
!13 = !{!"_ZTSSt10shared_ptrIN4agge4font8accessorEE", !14, i64 0}
!14 = !{!"_ZTSSt12__shared_ptrIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2EE", !15, i64 0, !16, i64 8}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !15, i64 0}
!17 = !{!"_ZTSN4agge12font_metricsE", !18, i64 0, !18, i64 4, !18, i64 8}
!18 = !{!"float", !7, i64 0}
!19 = !{!"_ZTSN4agge8hash_mapIjNS_5glyphENS_10knuth_hashEEE", !20, i64 0}
!20 = !{!"_ZTSSt13unordered_mapIjN4agge5glyphENS0_10knuth_hashESt8equal_toIjESaISt4pairIKjS1_EEE", !21, i64 0}
!21 = !{!"_ZTSSt10_HashtableIjSt4pairIKjN4agge5glyphEESaIS4_ENSt8__detail10_Select1stESt8equal_toIjENS2_10knuth_hashENS6_18_Mod_range_hashingENS6_20_Default_ranged_hashENS6_20_Prime_rehash_policyENS6_17_Hashtable_traitsILb1ELb0ELb1EEEE", !15, i64 0, !22, i64 8, !23, i64 16, !22, i64 24, !24, i64 32, !15, i64 48}
!22 = !{!"long", !7, i64 0}
!23 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !15, i64 0}
!24 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !18, i64 0, !22, i64 8}
!25 = !{!"_ZTSN4agge8hash_mapIjjNS_10knuth_hashEEE", !26, i64 0}
!26 = !{!"_ZTSSt13unordered_mapIjjN4agge10knuth_hashESt8equal_toIjESaISt4pairIKjjEEE", !27, i64 0}
!27 = !{!"_ZTSSt10_HashtableIjSt4pairIKjjESaIS2_ENSt8__detail10_Select1stESt8equal_toIjEN4agge10knuth_hashENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb1ELb0ELb1EEEE", !15, i64 0, !22, i64 8, !23, i64 16, !22, i64 24, !24, i64 32, !15, i64 48}
!28 = !{!29, !18, i64 0}
!29 = !{!"_ZTSN4agge5glyphE", !18, i64 0, !30, i64 4, !31, i64 16, !6, i64 32}
!30 = !{!"_ZTSN4agge5glyph13glyph_metricsE", !18, i64 0, !18, i64 4}
!31 = !{!"_ZTSSt10shared_ptrIN4agge10pod_vectorINS0_5glyph10path_pointEEEE", !32, i64 0}
!32 = !{!"_ZTSSt12__shared_ptrIN4agge10pod_vectorINS0_5glyph10path_pointEEELN9__gnu_cxx12_Lock_policyE2EE", !15, i64 0, !16, i64 8}
!33 = !{!18, !18, i64 0}
!34 = !{!29, !6, i64 32}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass