// // BrowseSmartKeyLayer::onButton from 0xb168b0 to 0xb16950 (160 bytes) // // 6 xrefs: // > @ 0xfa528 // > BrowseSmartKeyLayer::init @ 0xb18318 // > BrowseSmartKeyLayer::init @ 0xb18384 // > BrowseSmartKeyLayer::init @ 0xb183ec // > BrowseSmartKeyLayer::init @ 0xb18454 // > @ 0x15479c0 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:01:32 +0000 // __int64 __fastcall BrowseSmartKeyLayer::onButton(BrowseSmartKeyLayer *this, cocos2d::CCObject *a2) { __int64 result; // x0 result = (*(unsigned int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2) - 1; switch ( (int)result ) { case 0: result = BrowseSmartKeyLayer::createTemplateObjects(this); break; case 1: result = BrowseSmartKeyLayer::deletedSelectedItems(this); break; case 2: result = BrowseSmartKeyLayer::addChanceToSelected(this, 0, 1u); break; case 3: result = BrowseSmartKeyLayer::addChanceToSelected(this, 10, 0); break; default: return result; } return result; }