//
// sub_CFABD4 from 0xcfabd4 to 0xcfac44 (112 bytes)
//
// 104 xrefs:
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_unique_pos @ 0x5843d8
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos @ 0x58452c
// > FMODAudioEngine::updateChannel @ 0x5b43b8
// > std::_Rb_tree,std::less,std::allocator>::_M_insert_unique @ 0x5d8130
// > std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_get_insert_unique_pos @ 0x5ddbb0
// > std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_get_insert_hint_unique_pos @ 0x5ddc74
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_unique_pos @ 0x5f1918
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos @ 0x5f1980
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_unique_pos @ 0x5f1f9c
// > std::_Rb_tree>>,std::_Select1st>>>,std::less,std::allocator>>>>::_M_get_insert_unique_pos @ 0x5f204c
// > GameManager::addIconDelegate @ 0x5f216c
// > std::_Rb_tree,std::allocator>>>,std::_Select1st,std::allocator>>>>,std::less,std::allocator,std::allocator>>>>>::_M_get_insert_unique_pos @ 0x5f240c
// > GameManager::unloadIcon @ 0x5fc4d0
// > GameManager::unloadIcon @ 0x5fc610
// > GameManager::unloadIcons @ 0x5fcf34
// > GameManager::loadIcon @ 0x5fd62c
// > GameManager::loadIcon @ 0x5fd8b0
// > GameManager::finishedLoadingIconAsync @ 0x5fde6c
// > GameManager::finishedLoadingIconAsync @ 0x5fdf5c
// > GameManager::finishedLoadingIconAsync @ 0x5fe264
// > GameManager::finishedLoadingIconAsync @ 0x5fe310
// > GameManager::loadIconAsync @ 0x5fe710
// > GameManager::loadIconAsync @ 0x5fe8e0
// > LevelTools::timeForPos @ 0x606d60
// > LevelTools::timeForPos @ 0x6070c8
// > LevelTools::timeForPos @ 0x6072fc
// > LevelTools::timeForPos @ 0x60742c
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos @ 0x63a904
// > std::_Rb_tree,std::less,std::allocator>::_M_insert_unique @ 0x66cd04
// > EditorUI::updateObjectInfoLabel @ 0x6bae40
// > EditorUI::updateObjectInfoLabel @ 0x6bb37c
// > GJLevelList::hasMatchingLevels @ 0x71a950
// > std::_Rb_tree,std::less,std::allocator>::_M_insert_unique @ 0x71ac20
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_unique_pos @ 0x740968
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos @ 0x7409d0
// > CustomSongWidget::updateWithMultiAssets @ 0x74882c
// > CustomSongWidget::updateWithMultiAssets @ 0x748984
// > CustomSongWidget::downloadAssetFinished @ 0x748fbc
// > CustomSongWidget::downloadAssetFinished @ 0x7490b4
// > SpawnTriggerGameObject::changeRemap @ 0x7717bc
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_unique_pos @ 0x793b6c
// > GJGarageLayer::getItems @ 0x796d8c
// > GJGarageLayer::setupPage @ 0x797aac
// > GJGarageLayer::onArrow @ 0x797d80
// > GJGarageLayer::selectTab @ 0x798074
// > GJGarageLayer::setupIconSelect @ 0x7989a0
// > std::_Rb_tree,std::pair,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique> @ 0x7af8ec
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_unique_pos @ 0x7ef4f0
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos @ 0x7ef558
// > MusicDownloadManager::nameForTagID @ 0x833bc4
// > MusicDownloadManager::parseMusicLibrary @ 0x83884c
// > std::_Rb_tree,std::tuple,std::_Identity>,std::less>,std::allocator>>::_M_insert_unique const&> @ 0x87481c
// > std::_Rb_tree,std::pair const,SFXTriggerInstance>,std::_Select1st const,SFXTriggerInstance>>,std::less>,std::allocator const,SFXTriggerInstance>>>::_M_get_insert_unique_pos @ 0x87bf88
// > std::_Rb_tree,std::pair const,std::pair>,std::_Select1st const,std::pair>>,std::less>,std::allocator const,std::pair>>>::_M_get_insert_unique_pos @ 0x886c48
// > 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 @ 0x886d0c
// > std::_Rb_tree,std::pair const,int>,std::_Select1st const,int>>,std::less>,std::allocator const,int>>>::_M_get_insert_unique_pos @ 0x887348
// > std::_Rb_tree,std::pair const,int>,std::_Select1st const,int>>,std::less>,std::allocator const,int>>>::_M_get_insert_hint_unique_pos @ 0x88740c
// > std::_Rb_tree,std::pair const,int>,std::_Select1st const,int>>,std::less>,std::allocator const,int>>>::_M_get_insert_unique_pos @ 0x888ccc
// > std::_Rb_tree,std::pair const,int>,std::_Select1st const,int>>,std::less>,std::allocator const,int>>>::_M_get_insert_hint_unique_pos @ 0x888d90
// > std::_Rb_tree,std::pair const,std::vector>>,std::_Select1st const,std::vector>>>,std::less>,std::allocator const,std::vector>>>>::_M_get_insert_unique_pos @ 0x888f38
// > 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 @ 0x888ffc
// > std::_Rb_tree,std::pair const,SFXTriggerInstance>,std::_Select1st const,SFXTriggerInstance>>,std::less>,std::allocator const,SFXTriggerInstance>>>::_M_get_insert_hint_unique_pos @ 0x88e650
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_unique_pos @ 0x898064
// > GJEffectManager::storeTriggeredID @ 0x8a52c4
// > std::_Rb_tree,std::pair const,std::vector>>,std::_Select1st const,std::vector>>>,std::less>,std::allocator const,std::vector>>>>::_M_get_insert_unique_pos @ 0x8b49b4
// > 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 @ 0x8b4a78
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_unique_pos @ 0x9d7d4c
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos @ 0x9d7ea0
// > SetupTriggerPopup::shouldLimitValue @ 0x9eb508
// > SetupTriggerPopup::toggleLimitValue @ 0x9edab8
// > SelectEventLayer::addToggle @ 0xa546c4
// > SelectEventLayer::onInfo @ 0xa58230
// > EnterEffectInstance::animateValue @ 0xa6c288
// > std::_Rb_tree,std::pair const,int>,std::_Select1st const,int>>,std::less>,std::allocator const,int>>>::_M_get_insert_unique_pos @ 0xa81340
// > std::_Rb_tree,std::pair const,int>,std::_Select1st const,int>>,std::less>,std::allocator const,int>>>::_M_get_insert_hint_unique_pos @ 0xa81404
// > GameStatsManager::setupIconCredits @ 0xa89244
// > GameStatsManager::setupIconCredits @ 0xa893b0
// > GameStatsManager::setupIconCredits @ 0xa89544
// > GameStatsManager::setupIconCredits @ 0xa89774
// > GameStatsManager::setupIconCredits @ 0xa899a4
// > GameStatsManager::setupIconCredits @ 0xa89bd4
// > GameStatsManager::setupIconCredits @ 0xa89e04
// > GameStatsManager::setupIconCredits @ 0xa8a010
// > GameStatsManager::setupIconCredits @ 0xa8a12c
// > GameStatsManager::setupIconCredits @ 0xa8a478
// > GameStatsManager::setupIconCredits @ 0xa8a57c
// > GameStatsManager::setupIconCredits @ 0xa8a708
// > GameStatsManager::setupIconCredits @ 0xa8a89c
// > GameStatsManager::setupIconCredits @ 0xa8aacc
// > GameStatsManager::setupIconCredits @ 0xa8abcc
// > GameStatsManager::setupIconCredits @ 0xa8acc0
// > GameStatsManager::setupIconCredits @ 0xa8adb8
// > GameStatsManager::setupIconCredits @ 0xa8aeb0
// > cocos2d::extension::CCControl::addHandleOfControlEvent @ 0xa9a30c
// > cocos2d::extension::CCScrollView::registerScriptHandler @ 0xaa6d10
// > std::_Rb_tree,std::less,std::allocator>::_M_insert_unique @ 0xaa7df4
// > cocos2d::CCSet::addObject @ 0xad2cac
// > std::_Rb_tree,std::less,std::allocator>::_M_insert_unique @ 0xae4d80
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_insert_unique> @ 0xb06ed4
// > std::_Rb_tree,std::less,std::allocator>::_M_insert_unique @ 0xb1ba3c
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_unique_pos @ 0xb2b59c
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos @ 0xb2b6f0
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_unique_pos @ 0xb49664
// > std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos @ 0xb497b8
//
// 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_CFABD4(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x1
bool v4; // zf
if ( !*(_DWORD *)a1 && a1 == *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL) )
return *(_QWORD *)(a1 + 24);
result = *(_QWORD *)(a1 + 16);
if ( result )
{
while ( *(_QWORD *)(result + 24) )
result = *(_QWORD *)(result + 24);
}
else
{
v3 = *(_QWORD *)(a1 + 8);
if ( a1 == *(_QWORD *)(v3 + 16) )
{
do
{
result = *(_QWORD *)(v3 + 8);
v4 = *(_QWORD *)(result + 16) == v3;
v3 = result;
}
while ( v4 );
}
else
{
return *(_QWORD *)(a1 + 8);
}
}
return result;
}