// // FRequestProfilePage::onToggleAllObjects from 0x100790c40 to 0x100790ceb (171 bytes) // // 1 xrefs: // > FRequestProfilePage::init @ 0x1007903e4 // // 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 // void __fastcall FRequestProfilePage::onToggleAllObjects(FRequestProfilePage *a1, cocos2d::CCObject *a2) { GameLevelManager *v2; // rax cocos2d::CCArray *StoredOnlineLevels; // rax cocos2d::CCArray *v4; // r14 cocos2d::ccArray *data; // rax __int64 num; // rcx unsigned __int64 arr; // rax unsigned __int64 v8; // rcx a1->m_toggledAll ^= 1u; v2 = GameLevelManager::sharedState(); if ( (a1->m_key.m_data.m_short.sizex2 & 1) != 0 ) { StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v2, a1->m_key.m_data.m_long.longStorage); if ( !StoredOnlineLevels ) return; } else { StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v2, a1->m_key.m_data.m_short.shortStorage.__elems_); if ( !StoredOnlineLevels ) return; } v4 = StoredOnlineLevels; if ( (unsigned int)sub_100720070((__int64)StoredOnlineLevels) ) { data = v4->data; num = data->num; if ( data->num ) { arr = (unsigned __int64)data->arr; v8 = arr + 8 * num - 8; do { if ( !*(_QWORD *)arr ) break; *(_BYTE *)(*(_QWORD *)arr + 689LL) = a1->m_toggledAll; arr += 8LL; } while ( arr <= v8 ); } CustomListView::reloadAll((CustomListView *)a1->m_listLayer->m_list); } }