//
// sub_CFAB14 from 0xcfab14 to 0xcfab74 (96 bytes)
//
// 99 xrefs:
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos @ 0x5844b4
// > FMODAudioEngine::updateChannelTweens @ 0x5b36a4
// > FMODAudioEngine::updateChannelTweens @ 0x5b36d8
// > std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_get_insert_hint_unique_pos @ 0x5ddcd4
// > GameManager::removeIconDelegate @ 0x5eb9fc
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos @ 0x5f19d0
// > GameManager::addIconDelegate @ 0x5f2240
// > GameManager::unloadIcon @ 0x5fc8f0
// > GameManager::unloadIcon @ 0x5fc93c
// > GameManager::unloadIcons @ 0x5fd180
// > GameManager::loadIcon @ 0x5fda0c
// > GameManager::loadIcon @ 0x5fda60
// > GameManager::finishedLoadingIconAsync @ 0x5fe1d4
// > GameManager::finishedLoadingIconAsync @ 0x5fe20c
// > GameManager::finishedLoadingIconAsync @ 0x5fe4cc
// > GameManager::finishedLoadingIconAsync @ 0x5fe508
// > GameManager::loadIconAsync @ 0x5fe97c
// > GameManager::loadIconAsync @ 0x5fe9fc
// > LevelTools::timeForPos @ 0x607550
// > LevelTools::timeForPos @ 0x607590
// > LevelTools::timeForPos @ 0x607694
// > LevelTools::timeForPos @ 0x6077c8
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos @ 0x63a954
// > LevelEditorLayer::updateGameObjects @ 0x67bb64
// > EditorUI::updateObjectInfoLabel @ 0x6bb154
// > EditorUI::updateObjectInfoLabel @ 0x6bb1f8
// > EditorUI::updateObjectInfoLabel @ 0x6bba00
// > EditorUI::updateObjectInfoLabel @ 0x6bbc98
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos @ 0x740a20
// > CustomSongWidget::updateMultiAssetInfo @ 0x746da4
// > CustomSongWidget::updateMultiAssetInfo @ 0x746e34
// > CustomSongWidget::onInfo @ 0x747a64
// > CustomSongWidget::onInfo @ 0x747a94
// > CustomSongWidget::onInfo @ 0x747ad4
// > CustomSongWidget::onInfo @ 0x747b04
// > CustomSongWidget::startMultiAssetDownload @ 0x747f60
// > CustomSongWidget::startMultiAssetDownload @ 0x747fb4
// > CustomSongWidget::startMultiAssetDownload @ 0x747fec
// > CustomSongWidget::startMultiAssetDownload @ 0x748040
// > CustomSongWidget::updateWithMultiAssets @ 0x748cc0
// > CustomSongWidget::updateWithMultiAssets @ 0x748d14
// > CustomSongWidget::downloadAssetFinished @ 0x7491dc
// > CustomSongWidget::downloadAssetFinished @ 0x74924c
// > GJGarageLayer::getItems @ 0x796e74
// > GJGarageLayer::setupPage @ 0x797bb4
// > GJGarageLayer::onArrow @ 0x797ef4
// > GJGarageLayer::selectTab @ 0x798160
// > GJGarageLayer::setupIconSelect @ 0x798dc0
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos @ 0x7ef5a8
// > MusicDownloadManager::getAllMusicTags @ 0x82a968
// > MusicDownloadManager::getAllMusicTags @ 0x82a9f0
// > MusicDownloadManager::nameForTagID @ 0x833cb8
// > MusicDownloadManager::parseMusicLibrary @ 0x839394
// > GJGameState::processStateTriggers @ 0x8569d4
// > GJGameState::processStateTriggers @ 0x8569fc
// > GJBaseGameLayer::updateProximityVolumeEffects @ 0x868e30
// > GJBaseGameLayer::controlEventLink @ 0x876370
// > std::_Rb_tree,std::pair const,std::pair>,std::_Select1st const,std::pair>>,std::less>,std::allocator const,std::pair>>>::_M_get_insert_hint_unique_pos @ 0x886d6c
// > std::_Rb_tree,std::pair const,int>,std::_Select1st const,int>>,std::less>,std::allocator const,int>>>::_M_get_insert_hint_unique_pos @ 0x88746c
// > std::_Rb_tree,std::pair const,int>,std::_Select1st const,int>>,std::less>,std::allocator const,int>>>::_M_get_insert_hint_unique_pos @ 0x888df0
// > std::_Rb_tree,std::pair const,std::vector>>,std::_Select1st const,std::vector>>>,std::less>,std::allocator const,std::vector>>>>::_M_get_insert_hint_unique_pos @ 0x88905c
// > std::_Rb_tree,std::pair const,SFXTriggerInstance>,std::_Select1st const,SFXTriggerInstance>>,std::less>,std::allocator const,SFXTriggerInstance>>>::_M_get_insert_hint_unique_pos @ 0x88e6b0
// > std::_Rb_tree,std::pair const,std::vector>>,std::_Select1st const,std::vector>>>,std::less>,std::allocator const,std::vector>>>>::_M_get_insert_hint_unique_pos @ 0x8b4ad8
// > GJEffectManager::loadPersistentStateString @ 0x8b6968
// > GJEffectManager::loadPersistentStateString @ 0x8b6af8
// > GJEffectManager::loadPersistentStateString @ 0x8b6bdc
// > SetupSpawnPopup::updateRemapButtons @ 0x8eaa18
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos @ 0x9d7e28
// > SetupTriggerPopup::shouldLimitValue @ 0x9eb5f8
// > SetupTriggerPopup::toggleLimitValue @ 0x9edbac
// > SelectEventLayer::addToggle @ 0xa548f4
// > SelectEventLayer::onInfo @ 0xa5836c
// > EnterEffectInstance::updateTransitions @ 0xa6bde0
// > EnterEffectInstance::updateTransitions @ 0xa6be7c
// > std::_Rb_tree,std::pair const,int>,std::_Select1st const,int>>,std::less>,std::allocator const,int>>>::_M_get_insert_hint_unique_pos @ 0xa81464
// > GameStatsManager::setupIconCredits @ 0xa8cc30
// > GameStatsManager::setupIconCredits @ 0xa8ccc4
// > GameStatsManager::setupIconCredits @ 0xa8cda4
// > GameStatsManager::setupIconCredits @ 0xa8d6d0
// > GameStatsManager::setupIconCredits @ 0xa8d704
// > GameStatsManager::setupIconCredits @ 0xa8d740
// > GameStatsManager::setupIconCredits @ 0xa8d770
// > GameStatsManager::setupIconCredits @ 0xa8d7cc
// > GameStatsManager::setupIconCredits @ 0xa8d800
// > GameStatsManager::setupIconCredits @ 0xa8d830
// > GameStatsManager::setupIconCredits @ 0xa8d86c
// > GameStatsManager::setupIconCredits @ 0xa8d8c4
// > GameStatsManager::setupIconCredits @ 0xa8d900
// > GameStatsManager::setupIconCredits @ 0xa8d93c
// > GameStatsManager::setupIconCredits @ 0xa8d96c
// > GameStatsManager::setupIconCredits @ 0xa8d9a8
// > GameStatsManager::setupIconCredits @ 0xa8d9e4
// > GameStatsManager::setupIconCredits @ 0xa8da20
// > cocos2d::extension::CCControl::addHandleOfControlEvent @ 0xa9a404
// > cocos2d::extension::CCScrollView::registerScriptHandler @ 0xaa6df4
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos @ 0xb2b678
// > DS_Dictionary::setBoolMapForKey @ 0xb46354
// > DS_Dictionary::setBoolMapForKey @ 0xb463c8
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos @ 0xb49740
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_CFAB14(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x1
result = *(_QWORD *)(a1 + 24);
if ( result )
{
while ( *(_QWORD *)(result + 16) )
result = *(_QWORD *)(result + 16);
}
else
{
v3 = *(_QWORD *)(a1 + 8);
if ( a1 == *(_QWORD *)(v3 + 24) )
{
while ( 1 )
{
result = *(_QWORD *)(v3 + 8);
if ( *(_QWORD *)(result + 24) != v3 )
break;
v3 = *(_QWORD *)(v3 + 8);
}
if ( result == *(_QWORD *)(v3 + 24) )
return v3;
}
else
{
return *(_QWORD *)(a1 + 8);
}
}
return result;
}