//
// ParentalOptionsLayer::onToggle from 0x7c7070 to 0x7c70d4 (100 bytes)
//
// 3 xrefs:
// > ??> @ 0x7cfc8
// > ParentalOptionsLayer::addToggle @ 0x7d1c28
// > ??> @ 0x122c338
//
// 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 ParentalOptionsLayer::onToggle(ParentalOptionsLayer *a1, cocos2d::CCObject *a2)
{
int v3; // w0
cocos2d::CCString *v4; // x19
GameManager *v5; // x20
const char *CString; // x0
v3 = a2->getTag(a2);
v4 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(a1->m_variables, v3);
if ( v4 )
{
v5 = GameManager::sharedState();
CString = cocos2d::CCString::getCString(v4);
GameManager::toggleGameVariable(v5, CString);
}
}