// // GJShopLayer::onBack from 0xa7cd24 to 0xa7cefc (472 bytes) // // 4 xrefs: // > GJShopLayer::keyBackClicked @ 0xa7cf04 // > @ 0x80740 // > GJShopLayer::init @ 0xa7f43c // > @ 0x1543560 // // 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:00:29 +0000 // __int64 __fastcall GJShopLayer::onBack(GJShopLayer *this, cocos2d::CCObject *a2) { cocos2d::CCDirector *v3; // x0 __int64 v5; // x0 cocos2d::CCTouchDispatcher *v6; // x0 bool v7; // w1 GJGarageLayer *v8; // x0 cocos2d::CCDirector *v9; // x0 cocos2d::CCScene *v10; // x21 cocos2d::CCDirector *v11; // x0 cocos2d::CCDirector *v12; // x0 cocos2d::CCDirector *v13; // x0 const cocos2d::CCPoint *v14; // x1 cocos2d::CCEaseIn *v15; // x0 cocos2d::CCActionInterval *v16; // x1 cocos2d::CCSequence *v17; // x21 cocos2d::CCFiniteTimeAction *v18; // x0 cocos2d::CCAction *v19; // x0 GameManager *v20; // x0 __int64 v21; // x21 GameManager *v22; // x0 __int64 v23; // [xsp+30h] [xbp+30h] BYREF _BYTE v24[8]; // [xsp+38h] [xbp+38h] BYREF __int64 v25[2]; // [xsp+40h] [xbp+40h] BYREF void *v26; // [xsp+50h] [xbp+50h] v3 = (cocos2d::CCDirector *)*((unsigned __int8 *)this + 432); if ( !(_DWORD)v3 ) { *((_BYTE *)this + 432) = 1; v5 = cocos2d::CCDirector::sharedDirector(v3); v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5); cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, this); cocos2d::CCObject::retain(this); (*(void (__fastcall **)(GJShopLayer *))(*(_QWORD *)this + 520LL))(this); v8 = (GJGarageLayer *)*((unsigned int *)this + 114); v9 = (_DWORD)v8 ? (cocos2d::CCDirector *)SecretRewardsLayer::scene((SecretRewardsLayer *)((char *)&dword_0 + 1), v7) : GJGarageLayer::scene(v8); v10 = v9; if ( v9 ) { v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9); if ( (unsigned __int8)cocos2d::CCDirector::replaceScene(v11, v10) ) { (*(void (__fastcall **)(GJShopLayer *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0); (*(void (__fastcall **)(cocos2d::CCScene *, GJShopLayer *, __int64))(*(_QWORD *)v10 + 464LL))(v10, this, 1000); v12 = (cocos2d::CCDirector *)cocos2d::CCObject::release(this); v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v12); cocos2d::CCDirector::getWinSize(&v23, v13); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 0.0, *((float *)&v23 + 1)); v15 = (cocos2d::CCEaseIn *)cocos2d::CCMoveTo::create((cocos2d::CCMoveTo *)v24, 0.3, v14); v17 = (cocos2d::CCSequence *)cocos2d::CCEaseIn::create(v15, v16, 2.0); v18 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, 536, 1); v19 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v17, v18, 0); cocos2d::CCNode::runAction(this, v19); v20 = (GameManager *)*((unsigned int *)this + 114); if ( (_DWORD)v20 ) { v21 = GameManager::sharedState(v20); v25[0] = 0; v25[1] = 0; v26 = nullptr; std::string::__init(v25, "secretLoop.mp3", 0xEu); GameManager::fadeInMusic(v21, (unsigned __int8 *)v25); if ( (v25[0] & 1) != 0 ) operator delete(v26); } else { v22 = (GameManager *)GameManager::sharedState(v20); GameManager::fadeInMenuMusic(v22); } } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source