//
// ParentalOptionsLayer::onToggle from 0x1000f3544 to 0x1000f35ac (104 bytes)
//
// 1 xrefs:
// > ParentalOptionsLayer::addToggle @ 0x1000f2e08
//
// 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 ParentalOptionsLayer::onToggle(ParentalOptionsLayer *a1, cocos2d::CCObject *a2)
{
int v3; // w0
cocos2d::CCObject *v4; // x0
cocos2d::CCString *v5; // x19
GameManager *v6; // x20
const char *CString; // x1
v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
v4 = cocos2d::CCDictionary::objectForKey(a1->m_variables, v3);
if ( v4 )
{
v5 = (cocos2d::CCString *)v4;
v6 = GameManager::sharedState();
CString = cocos2d::CCString::getCString(v5);
GameManager::toggleGameVariable(v6, CString);
}
}