//
// ShareListLayer::onUnlisted from 0x1002490c8 to 0x100249138 (112 bytes)
//
// 2 xrefs:
// > ShareListLayer::init @ 0x1002488d4
// > ShareListLayer::init @ 0x100248a74
//
// 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 ShareListLayer::onUnlisted(ShareListLayer *a1, cocos2d::CCObject *a2)
{
int v3; // w0
GJLevelList *m_list; // x8
bool m_unlisted; // w9
v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
m_list = a1->m_list;
if ( v3 == 1 )
{
m_list->m_friendsOnly ^= 1u;
}
else
{
m_unlisted = m_list->m_unlisted;
m_list->m_unlisted = !m_unlisted;
if ( m_unlisted )
m_list->m_friendsOnly = 0;
ShareListLayer::updateUnlistedF(a1);
}
}