//
// KeybindingsLayer::onToggle from 0x853e78 to 0x853edc (100 bytes)
//
// 1 xrefs:
// > ??> @ 0x710a0
//
// 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 KeybindingsLayer::onToggle(KeybindingsLayer *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);
}
}