//
// ParentalOptionsLayer::onToggle from 0x53030c to 0x530350 (68 bytes)
//
// 1 xrefs:
// > ParentalOptionsLayer::onMasterToggle @ 0x53035a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:52:03 +0000
//
int __fastcall ParentalOptionsLayer::onToggle(cocos2d::CCDictionary **this, cocos2d::CCObject *a2)
{
int v3; // r0
GameManager *v4; // r5
GameManager *v5; // r0
GameManager *v6; // r0
int v7; // r6
GameManager *v8; // r7
char *CString; // r0
v3 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
v4 = (GameManager *)cocos2d::CCDictionary::objectForKey(*(this + 135), v3);
v5 = (GameManager *)GameManager::sharedState(v4);
v6 = (GameManager *)GameManager::privacyPushWanted(v5);
v7 = (int)v6;
if ( v4 )
{
v8 = (GameManager *)GameManager::sharedState(v6);
CString = (char *)cocos2d::CCString::getCString(v4);
GameManager::toggleGameVariable(v8, CString);
}
return ParentalOptionsLayer::applyPrivacyPushEdge((ParentalOptionsLayer *)this, v7);
}