; LLVM IR from tyoma/agge :: src/agge.text (text_engine_base)

; 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::pair.22" = type <{ %"class.std::shared_ptr.24", float, [4 x i8] }>
%"class.std::shared_ptr.24" = type { %"class.std::__shared_ptr.25" }
%"class.std::__shared_ptr.25" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.std::pair.71" = type <{ %"struct.std::__detail::_Node_iterator.73", i8, [7 x i8] }>
%"struct.std::__detail::_Node_iterator.73" = type { %"struct.std::__detail::_Node_iterator_base.74" }
%"struct.std::__detail::_Node_iterator_base.74" = type { ptr }
%"struct.std::pair.76" = type { %"struct.agge::font_descriptor", %"class.std::weak_ptr" }
%"struct.agge::font_descriptor" = type <{ %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::weak_ptr" = type { %"class.std::__weak_ptr" }
%"class.std::__weak_ptr" = type { ptr, %"class.std::__weak_count" }
%"class.std::__weak_count" = type { ptr }
%"class.agge::text_engine_base" = type { %"struct.agge::font_factory", ptr, i32, %"class.agge::hash_map", %"class.agge::hash_map.2" }
%"struct.agge::font_factory" = type { ptr }
%"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.78" = type { %"struct.agge::font_descriptor", %"class.std::weak_ptr" }

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

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

; Function Attrs: 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 void @_ZN4agge16text_engine_base20create_font_accessorENS_15font_descriptorE(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.22") align 8 %0, ptr noundef nonnull align 8 dereferenceable(136) %1, ptr noundef %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::shared_ptr.24", align 8
  %8 = alloca float, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"struct.std::pair.71", align 8
  %14 = alloca %"struct.std::pair.76", align 8
  %15 = alloca %"class.std::weak_ptr", align 8
  %16 = alloca { ptr, i8 }, align 8
  %17 = alloca %"class.std::shared_ptr.24", align 8
  %18 = alloca %"class.std::shared_ptr.24", align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::shared_ptr.24", align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %21 = load ptr, ptr %5, align 8
  %22 = getelementptr inbounds %"struct.agge::font_descriptor", ptr %2, i32 0, i32 1
  %23 = load i32, ptr %22, align 8
  %24 = lshr i32 %23, 25
  %25 = and i32 %24, 3
  %26 = icmp ne i32 0, %25
  br i1 %26, label %27, label %38

27:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #8
  %28 = getelementptr inbounds %"class.agge::text_engine_base", ptr %21, i32 0, i32 1
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  %30 = load ptr, ptr %29, align 8, !tbaa !23
  %31 = getelementptr inbounds ptr, ptr %30, i64 0
  %32 = load ptr, ptr %31, align 8
  call void %32(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.24") align 8 %7, ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(36) %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store float 1.000000e+00, ptr %8, align 4, !tbaa !25
  invoke void @_ZSt9make_pairISt10shared_ptrIN4agge4font8accessorEEfESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS6_INS7_IT0_E4typeEE6__typeEEOS8_OSD_(ptr dead_on_unwind writable sret(%"struct.std::pair.22") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %33 unwind label %34

33:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @_ZNSt12__shared_ptrIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #8
  br label %119

34:                                               ; preds = %27
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %9, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @_ZNSt12__shared_ptrIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #8
  br label %120

38:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %39 = getelementptr inbounds %"struct.agge::font_descriptor", ptr %2, i32 0, i32 1
  %40 = load i32, ptr %39, align 8
  %41 = shl i32 %40, 12
  %42 = ashr i32 %41, 12
  %43 = sitofp i32 %42 to float
  %44 = fdiv float %43, 1.000000e+03
  store float %44, ptr %11, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %45 = getelementptr inbounds %"struct.agge::font_descriptor", ptr %2, i32 0, i32 1
  %46 = load i32, ptr %45, align 8
  %47 = shl i32 %46, 12
  %48 = ashr i32 %47, 12
  store i32 %48, ptr %12, align 4, !tbaa !26
  %49 = getelementptr inbounds %"struct.agge::font_descriptor", ptr %2, i32 0, i32 1
  %50 = load i32, ptr %49, align 8
  %51 = and i32 %50, -1048576
  %52 = or i32 %51, 1000
  store i32 %52, ptr %49, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #8
  %53 = getelementptr inbounds %"class.agge::text_engine_base", ptr %21, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 56, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  call void @llvm.memset.p0.i64(ptr align 8 %15, i8 0, i64 16, i1 false)
  call void @_ZNSt8weak_ptrIN4agge4font8accessorEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #8
  invoke void @_ZSt9make_pairIRN4agge15font_descriptorESt8weak_ptrINS0_4font8accessorEEESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS8_INS9_IT0_E4typeEE6__typeEEOSA_OSF_(ptr dead_on_unwind writable sret(%"struct.std::pair.76") align 8 %14, ptr noundef nonnull align 8 dereferenceable(36) %2, ptr noundef nonnull align 8 dereferenceable(16) %15)
          to label %54 unwind label %86

54:                                               ; preds = %38
  %55 = invoke { ptr, i8 } @_ZNSt13unordered_mapIN4agge15font_descriptorESt8weak_ptrINS0_4font8accessorEENS0_16text_engine_base15font_key_hasherESt8equal_toIS1_ESaISt4pairIKS1_S5_EEE6insertISA_IS1_S5_EEENSt9enable_ifIXsr16is_constructibleISC_OT_EE5valueESA_INSt8__detail14_Node_iteratorISC_Lb0ELb1EEEbEE4typeESJ_(ptr noundef nonnull align 8 dereferenceable(56) %53, ptr noundef nonnull align 8 dereferenceable(56) %14)
          to label %56 unwind label %90

56:                                               ; preds = %54
  store { ptr, i8 } %55, ptr %16, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %16, i64 9, i1 false)
  call void @_ZNSt4pairIN4agge15font_descriptorESt8weak_ptrINS0_4font8accessorEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #8
  call void @_ZNSt10__weak_ptrIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %14) #8
  %57 = getelementptr inbounds %"struct.std::pair.71", ptr %13, i32 0, i32 1
  %58 = load i8, ptr %57, align 8, !tbaa !27, !range !32, !noundef !33
  %59 = trunc i8 %58 to i1
  br i1 %59, label %65, label %60

60:                                               ; preds = %56
  %61 = getelementptr inbounds %"struct.std::pair.71", ptr %13, i32 0, i32 0
  %62 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKN4agge15font_descriptorESt8weak_ptrINS2_4font8accessorEEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %61) #8
  %63 = getelementptr inbounds %"struct.std::pair.78", ptr %62, i32 0, i32 1
  %64 = call noundef zeroext i1 @_ZNKSt10__weak_ptrIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2EE7expiredEv(ptr noundef nonnull align 8 dereferenceable(16) %63) #8
  br i1 %64, label %65, label %108

65:                                               ; preds = %60, %56
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #8
  %66 = getelementptr inbounds %"class.agge::text_engine_base", ptr %21, i32 0, i32 1
  %67 = load ptr, ptr %66, align 8, !tbaa !9
  %68 = load ptr, ptr %67, align 8, !tbaa !23
  %69 = getelementptr inbounds ptr, ptr %68, i64 0
  %70 = load ptr, ptr %69, align 8
  call void %70(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.24") align 8 %17, ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef nonnull align 8 dereferenceable(36) %2)
  %71 = load i32, ptr %12, align 4, !tbaa !26
  %72 = getelementptr inbounds %"struct.agge::font_descriptor", ptr %2, i32 0, i32 1
  %73 = load i32, ptr %72, align 8
  %74 = and i32 %71, 1048575
  %75 = and i32 %73, -1048576
  %76 = or i32 %75, %74
  store i32 %76, ptr %72, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #8
  %77 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 120) #9
          to label %78 unwind label %95

78:                                               ; preds = %65
  invoke void @_ZN4agge16text_engine_base23cached_outline_accessorC2ERKNS_15font_descriptorERKSt10shared_ptrINS_4font8accessorEE(ptr noundef nonnull align 8 dereferenceable(120) %77, ptr noundef nonnull align 8 dereferenceable(36) %2, ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %79 unwind label %99

79:                                               ; preds = %78
  invoke void @_ZNSt10shared_ptrIN4agge4font8accessorEEC2INS0_16text_engine_base23cached_outline_accessorEvEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef %77)
          to label %80 unwind label %95

80:                                               ; preds = %79
  %81 = getelementptr inbounds %"struct.std::pair.71", ptr %13, i32 0, i32 0
  %82 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKN4agge15font_descriptorESt8weak_ptrINS2_4font8accessorEEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %81) #8
  %83 = getelementptr inbounds %"struct.std::pair.78", ptr %82, i32 0, i32 1
  %84 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8weak_ptrIN4agge4font8accessorEEaSIS2_EENSt9enable_ifIXsr13is_assignableIRSt10__weak_ptrIS2_LN9__gnu_cxx12_Lock_policyE2EERKSt10shared_ptrIT_EEE5valueERS3_E4typeESF_(ptr noundef nonnull align 8 dereferenceable(16) %83, ptr noundef nonnull align 8 dereferenceable(16) %18) #8
  invoke void @_ZSt9make_pairIRSt10shared_ptrIN4agge4font8accessorEERKfESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS9_INSA_IT0_E4typeEE6__typeEEOSB_OSG_(ptr dead_on_unwind writable sret(%"struct.std::pair.22") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %85 unwind label %103

85:                                               ; preds = %80
  store i32 1, ptr %19, align 4
  call void @_ZNSt12__shared_ptrIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  call void @_ZNSt12__shared_ptrIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  br label %117

86:                                               ; preds = %38
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %9, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %10, align 4
  br label %94

90:                                               ; preds = %54
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %9, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %10, align 4
  call void @_ZNSt4pairIN4agge15font_descriptorESt8weak_ptrINS0_4font8accessorEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %14) #8
  br label %94

94:                                               ; preds = %90, %86
  call void @_ZNSt10__weak_ptrIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %14) #8
  br label %118

95:                                               ; preds = %79, %65
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %9, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %10, align 4
  br label %107

99:                                               ; preds = %78
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %9, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %77, i64 noundef 120) #10
  br label %107

103:                                              ; preds = %80
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %9, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %10, align 4
  call void @_ZNSt12__shared_ptrIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #8
  br label %107

107:                                              ; preds = %103, %99, %95
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #8
  call void @_ZNSt12__shared_ptrIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  br label %118

108:                                              ; preds = %60
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  %109 = getelementptr inbounds %"struct.std::pair.71", ptr %13, i32 0, i32 0
  %110 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKN4agge15font_descriptorESt8weak_ptrINS2_4font8accessorEEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %109) #8
  %111 = getelementptr inbounds %"struct.std::pair.78", ptr %110, i32 0, i32 1
  call void @_ZNKSt8weak_ptrIN4agge4font8accessorEE4lockEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.24") align 8 %20, ptr noundef nonnull align 8 dereferenceable(16) %111) #8
  invoke void @_ZSt9make_pairISt10shared_ptrIN4agge4font8accessorEERKfESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS8_INS9_IT0_E4typeEE6__typeEEOSA_OSF_(ptr dead_on_unwind writable sret(%"struct.std::pair.22") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %112 unwind label %113

112:                                              ; preds = %108
  call void @_ZNSt12__shared_ptrIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  store i32 1, ptr %19, align 4
  br label %117

113:                                              ; preds = %108
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %9, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %10, align 4
  call void @_ZNSt12__shared_ptrIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  br label %118

117:                                              ; preds = %112, %85
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %119

118:                                              ; preds = %113, %107, %94
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %120

119:                                              ; preds = %117, %33
  ret void

120:                                              ; preds = %118, %34
  %121 = load ptr, ptr %9, align 8
  %122 = load i32, ptr %10, align 4
  %123 = insertvalue { ptr, i32 } poison, ptr %121, 0
  %124 = insertvalue { ptr, i32 } %123, i32 %122, 1
  resume { ptr, i32 } %124
}

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) #3

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIN4agge15font_descriptorESt8weak_ptrINS0_4font8accessorEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #7 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4agge16text_engine_base23cached_outline_accessorC2ERKNS_15font_descriptorERKSt10shared_ptrINS_4font8accessorEE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt8weak_ptrIN4agge4font8accessorEE4lockEv(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.24") align 8, ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

attributes #0 = { 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 #1 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_ZTSN4agge16text_engine_baseE", !11, i64 0, !6, i64 8, !12, i64 16, !13, i64 24, !20, i64 80}
!11 = !{!"_ZTSN4agge12font_factoryE"}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSN4agge8hash_mapINS_15font_descriptorESt4pairISt10shared_ptrINS_4fontEEjENS_16text_engine_base15font_key_hasherEEE", !14, i64 0}
!14 = !{!"_ZTSSt13unordered_mapIN4agge15font_descriptorESt4pairISt10shared_ptrINS0_4fontEEjENS0_16text_engine_base15font_key_hasherESt8equal_toIS1_ESaIS2_IKS1_S6_EEE", !15, i64 0}
!15 = !{!"_ZTSSt10_HashtableIN4agge15font_descriptorESt4pairIKS1_S2_ISt10shared_ptrINS0_4fontEEjEESaIS8_ENSt8__detail10_Select1stESt8equal_toIS1_ENS0_16text_engine_base15font_key_hasherENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !16, i64 8, !17, i64 16, !16, i64 24, !18, i64 32, !6, i64 48}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!18 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !19, i64 0, !16, i64 8}
!19 = !{!"float", !7, i64 0}
!20 = !{!"_ZTSN4agge8hash_mapINS_15font_descriptorESt8weak_ptrINS_4font8accessorEENS_16text_engine_base15font_key_hasherEEE", !21, i64 0}
!21 = !{!"_ZTSSt13unordered_mapIN4agge15font_descriptorESt8weak_ptrINS0_4font8accessorEENS0_16text_engine_base15font_key_hasherESt8equal_toIS1_ESaISt4pairIKS1_S5_EEE", !22, i64 0}
!22 = !{!"_ZTSSt10_HashtableIN4agge15font_descriptorESt4pairIKS1_St8weak_ptrINS0_4font8accessorEEESaIS8_ENSt8__detail10_Select1stESt8equal_toIS1_ENS0_16text_engine_base15font_key_hasherENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !16, i64 8, !17, i64 16, !16, i64 24, !18, i64 32, !6, i64 48}
!23 = !{!24, !24, i64 0}
!24 = !{!"vtable pointer", !8, i64 0}
!25 = !{!19, !19, i64 0}
!26 = !{!12, !12, i64 0}
!27 = !{!28, !31, i64 8}
!28 = !{!"_ZTSSt4pairINSt8__detail14_Node_iteratorIS_IKN4agge15font_descriptorESt8weak_ptrINS2_4font8accessorEEELb0ELb1EEEbE", !29, i64 0, !31, i64 8}
!29 = !{!"_ZTSNSt8__detail14_Node_iteratorISt4pairIKN4agge15font_descriptorESt8weak_ptrINS2_4font8accessorEEELb0ELb1EEE", !30, i64 0}
!30 = !{!"_ZTSNSt8__detail19_Node_iterator_baseISt4pairIKN4agge15font_descriptorESt8weak_ptrINS2_4font8accessorEEELb1EEE", !6, i64 0}
!31 = !{!"bool", !7, i64 0}
!32 = !{i8 0, i8 2}
!33 = !{}


; 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::pair.22" = type <{ %"class.std::shared_ptr.24", float, [4 x i8] }>
%"class.std::shared_ptr.24" = type { %"class.std::__shared_ptr.25" }
%"class.std::__shared_ptr.25" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"struct.std::pair.71" = type <{ %"struct.std::__detail::_Node_iterator.73", i8, [7 x i8] }>
%"struct.std::__detail::_Node_iterator.73" = type { %"struct.std::__detail::_Node_iterator_base.74" }
%"struct.std::__detail::_Node_iterator_base.74" = type { ptr }
%"struct.std::pair.76" = type { %"struct.agge::font_descriptor", %"class.std::weak_ptr" }
%"struct.agge::font_descriptor" = type <{ %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::weak_ptr" = type { %"class.std::__weak_ptr" }
%"class.std::__weak_ptr" = type { ptr, %"class.std::__weak_count" }
%"class.std::__weak_count" = type { ptr }

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

; 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 void @_ZN4agge16text_engine_base20create_font_accessorENS_15font_descriptorE(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.22") align 8 %0, ptr noundef nonnull align 8 dereferenceable(136) %1, ptr noundef %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::shared_ptr.24", align 8
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca %"struct.std::pair.71", align 8
  %8 = alloca %"struct.std::pair.76", align 8
  %9 = alloca %"class.std::weak_ptr", align 8
  %10 = alloca %"class.std::shared_ptr.24", align 8
  %11 = alloca %"class.std::shared_ptr.24", align 8
  %12 = alloca %"class.std::shared_ptr.24", align 8
  %13 = getelementptr inbounds i8, ptr %2, i64 32
  %14 = load i32, ptr %13, align 8
  %15 = and i32 %14, 100663296
  %.not = icmp eq i32 %15, 0
  br i1 %.not, label %24, label %16

16:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  %17 = getelementptr inbounds i8, ptr %1, i64 8
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %19 = load ptr, ptr %18, align 8, !tbaa !22
  %20 = load ptr, ptr %19, align 8
  call void %20(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.24") align 8 %4, ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(36) %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  store float 1.000000e+00, ptr %5, align 4, !tbaa !24
  invoke void @_ZSt9make_pairISt10shared_ptrIN4agge4font8accessorEEfESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS6_INS7_IT0_E4typeEE6__typeEEOS8_OSD_(ptr dead_on_unwind writable sret(%"struct.std::pair.22") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %21 unwind label %22

21:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @_ZNSt12__shared_ptrIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  br label %77

22:                                               ; preds = %16
  %23 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @_ZNSt12__shared_ptrIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  br label %78

24:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  %25 = shl i32 %14, 12
  %26 = ashr exact i32 %25, 12
  %27 = sitofp i32 %26 to float
  %28 = fdiv float %27, 1.000000e+03
  store float %28, ptr %6, align 4, !tbaa !24
  %29 = and i32 %14, 1048575
  %30 = and i32 %14, -101711872
  %31 = or disjoint i32 %30, 1000
  store i32 %31, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %9, i8 0, i64 16, i1 false)
  call void @_ZNSt8weak_ptrIN4agge4font8accessorEEC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  invoke void @_ZSt9make_pairIRN4agge15font_descriptorESt8weak_ptrINS0_4font8accessorEEESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS8_INS9_IT0_E4typeEE6__typeEEOSA_OSF_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.76") align 8 %8, ptr noundef nonnull align 8 dereferenceable(36) %2, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %32 unwind label %57

32:                                               ; preds = %24
  %33 = getelementptr inbounds i8, ptr %1, i64 80
  %34 = invoke { ptr, i8 } @_ZNSt13unordered_mapIN4agge15font_descriptorESt8weak_ptrINS0_4font8accessorEENS0_16text_engine_base15font_key_hasherESt8equal_toIS1_ESaISt4pairIKS1_S5_EEE6insertISA_IS1_S5_EEENSt9enable_ifIXsr16is_constructibleISC_OT_EE5valueESA_INSt8__detail14_Node_iteratorISC_Lb0ELb1EEEbEE4typeESJ_(ptr noundef nonnull align 8 dereferenceable(56) %33, ptr noundef nonnull align 8 dereferenceable(56) %8)
          to label %35 unwind label %59

35:                                               ; preds = %32
  %.fca.0.extract = extractvalue { ptr, i8 } %34, 0
  %.fca.1.extract = extractvalue { ptr, i8 } %34, 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
  call void @_ZNSt4pairIN4agge15font_descriptorESt8weak_ptrINS0_4font8accessorEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #7
  call void @_ZNSt10__weak_ptrIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #7
  %36 = trunc nuw i8 %.fca.1.extract to i1
  br i1 %36, label %41, label %37

37:                                               ; preds = %35
  %38 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKN4agge15font_descriptorESt8weak_ptrINS2_4font8accessorEEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %39 = getelementptr inbounds i8, ptr %38, i64 40
  %40 = call noundef zeroext i1 @_ZNKSt10__weak_ptrIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2EE7expiredEv(ptr noundef nonnull align 8 dereferenceable(16) %39) #7
  br i1 %40, label %41, label %69

41:                                               ; preds = %37, %35
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  %42 = getelementptr inbounds i8, ptr %1, i64 8
  %43 = load ptr, ptr %42, align 8, !tbaa !5
  %44 = load ptr, ptr %43, align 8, !tbaa !22
  %45 = load ptr, ptr %44, align 8
  call void %45(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.24") align 8 %10, ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull align 8 dereferenceable(36) %2)
  %46 = load i32, ptr %13, align 8
  %47 = and i32 %46, -1048576
  %48 = or disjoint i32 %47, %29
  store i32 %48, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  %49 = invoke noalias noundef nonnull dereferenceable(120) ptr @_Znwm(i64 noundef 120) #8
          to label %50 unwind label %62

50:                                               ; preds = %41
  invoke void @_ZN4agge16text_engine_base23cached_outline_accessorC2ERKNS_15font_descriptorERKSt10shared_ptrINS_4font8accessorEE(ptr noundef nonnull align 8 dereferenceable(120) %49, ptr noundef nonnull align 8 dereferenceable(36) %2, ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %51 unwind label %64

51:                                               ; preds = %50
  invoke void @_ZNSt10shared_ptrIN4agge4font8accessorEEC2INS0_16text_engine_base23cached_outline_accessorEvEEPT_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull %49)
          to label %52 unwind label %62

52:                                               ; preds = %51
  %53 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKN4agge15font_descriptorESt8weak_ptrINS2_4font8accessorEEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %54 = getelementptr inbounds i8, ptr %53, i64 40
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8weak_ptrIN4agge4font8accessorEEaSIS2_EENSt9enable_ifIXsr13is_assignableIRSt10__weak_ptrIS2_LN9__gnu_cxx12_Lock_policyE2EERKSt10shared_ptrIT_EEE5valueERS3_E4typeESF_(ptr noundef nonnull align 8 dereferenceable(16) %54, ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  invoke void @_ZSt9make_pairIRSt10shared_ptrIN4agge4font8accessorEERKfESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS9_INSA_IT0_E4typeEE6__typeEEOSB_OSG_(ptr dead_on_unwind writable sret(%"struct.std::pair.22") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %56 unwind label %66

56:                                               ; preds = %52
  call void @_ZNSt12__shared_ptrIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  call void @_ZNSt12__shared_ptrIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  br label %75

57:                                               ; preds = %24
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %61

59:                                               ; preds = %32
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt4pairIN4agge15font_descriptorESt8weak_ptrINS0_4font8accessorEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %8) #7
  br label %61

61:                                               ; preds = %59, %57
  %.pn = phi { ptr, i32 } [ %60, %59 ], [ %58, %57 ]
  call void @_ZNSt10__weak_ptrIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %8) #7
  br label %76

62:                                               ; preds = %51, %41
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %68

64:                                               ; preds = %50
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %49, i64 noundef 120) #9
  br label %68

66:                                               ; preds = %52
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  br label %68

68:                                               ; preds = %66, %64, %62
  %.pn8 = phi { ptr, i32 } [ %67, %66 ], [ %63, %62 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  call void @_ZNSt12__shared_ptrIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  br label %76

69:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #7
  %70 = call noundef ptr @_ZNKSt8__detail14_Node_iteratorISt4pairIKN4agge15font_descriptorESt8weak_ptrINS2_4font8accessorEEELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %71 = getelementptr inbounds i8, ptr %70, i64 40
  call void @_ZNKSt8weak_ptrIN4agge4font8accessorEE4lockEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.24") align 8 %12, ptr noundef nonnull align 8 dereferenceable(16) %71) #7
  invoke void @_ZSt9make_pairISt10shared_ptrIN4agge4font8accessorEERKfESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS8_INS9_IT0_E4typeEE6__typeEEOSA_OSF_(ptr dead_on_unwind writable sret(%"struct.std::pair.22") align 8 %0, ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %72 unwind label %73

72:                                               ; preds = %69
  call void @_ZNSt12__shared_ptrIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  br label %75

73:                                               ; preds = %69
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN4agge4font8accessorELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #7
  br label %76

75:                                               ; preds = %72, %56
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  br label %77

76:                                               ; preds = %73, %68, %61
  %.pn8.pn = phi { ptr, i32 } [ %.pn8, %68 ], [ %74, %73 ], [ %.pn, %61 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  br label %78

77:                                               ; preds = %75, %21
  ret void

78:                                               ; preds = %76, %22
  %.pn11 = phi { ptr, i32 } [ %23, %22 ], [ %.pn8.pn, %76 ]
  resume { ptr, i32 } %.pn11
}

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIN4agge15font_descriptorESt8weak_ptrINS0_4font8accessorEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56)) unnamed_addr #6 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4agge16text_engine_base23cached_outline_accessorC2ERKNS_15font_descriptorERKSt10shared_ptrINS_4font8accessorEE(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt8weak_ptrIN4agge4font8accessorEE4lockEv(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.24") align 8, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4 align 2

attributes #0 = { 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 #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 = { 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 #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 #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, !8, i64 8}
!6 = !{!"_ZTSN4agge16text_engine_baseE", !7, i64 0, !8, i64 8, !11, i64 16, !12, i64 24, !19, i64 80}
!7 = !{!"_ZTSN4agge12font_factoryE"}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"_ZTSN4agge8hash_mapINS_15font_descriptorESt4pairISt10shared_ptrINS_4fontEEjENS_16text_engine_base15font_key_hasherEEE", !13, i64 0}
!13 = !{!"_ZTSSt13unordered_mapIN4agge15font_descriptorESt4pairISt10shared_ptrINS0_4fontEEjENS0_16text_engine_base15font_key_hasherESt8equal_toIS1_ESaIS2_IKS1_S6_EEE", !14, i64 0}
!14 = !{!"_ZTSSt10_HashtableIN4agge15font_descriptorESt4pairIKS1_S2_ISt10shared_ptrINS0_4fontEEjEESaIS8_ENSt8__detail10_Select1stESt8equal_toIS1_ENS0_16text_engine_base15font_key_hasherENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE", !8, i64 0, !15, i64 8, !16, i64 16, !15, i64 24, !17, i64 32, !8, i64 48}
!15 = !{!"long", !9, i64 0}
!16 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !8, i64 0}
!17 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !18, i64 0, !15, i64 8}
!18 = !{!"float", !9, i64 0}
!19 = !{!"_ZTSN4agge8hash_mapINS_15font_descriptorESt8weak_ptrINS_4font8accessorEENS_16text_engine_base15font_key_hasherEEE", !20, i64 0}
!20 = !{!"_ZTSSt13unordered_mapIN4agge15font_descriptorESt8weak_ptrINS0_4font8accessorEENS0_16text_engine_base15font_key_hasherESt8equal_toIS1_ESaISt4pairIKS1_S5_EEE", !21, i64 0}
!21 = !{!"_ZTSSt10_HashtableIN4agge15font_descriptorESt4pairIKS1_St8weak_ptrINS0_4font8accessorEEESaIS8_ENSt8__detail10_Select1stESt8equal_toIS1_ENS0_16text_engine_base15font_key_hasherENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE", !8, i64 0, !15, i64 8, !16, i64 16, !15, i64 24, !17, i64 32, !8, i64 48}
!22 = !{!23, !23, i64 0}
!23 = !{!"vtable pointer", !10, i64 0}
!24 = !{!18, !18, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass