// // GJShopLayer::onBack from 0x6113f8 to 0x61152a (306 bytes) // // 1 xrefs: // > GJShopLayer::keyBackClicked @ 0x61153e // // 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:54:52 +0000 // char **__fastcall GJShopLayer::onBack(char **this, cocos2d::CCObject *a2) { char **v2; // r4 int v3; // r0 cocos2d::CCTouchDispatcher *v4; // r0 GJGarageLayer *v5; // r0 bool v6; // r1 cocos2d::CCScene *v7; // r5 cocos2d::CCDirector *v8; // r0 cocos2d::CCDirector *v9; // r0 const cocos2d::CCPoint *v10; // r2 cocos2d::CCEaseIn *v11; // r0 float v12; // r2 cocos2d::CCSequence *v13; // r7 cocos2d::CCFiniteTimeAction *v14; // r0 cocos2d::CCAction *v15; // r0 GameManager *v16; // r0 int v17; // r0 FMODAudioEngine *v18; // r4 GameManager *v19; // r0 int v20; // r1 int v21; // r2 int v22; // r3 float v23[2]; // [sp+0h] [bp-24h] BYREF _DWORD v24[2]; // [sp+8h] [bp-1Ch] BYREF int v25[3]; // [sp+10h] [bp-14h] BYREF v2 = this; if ( !*((_BYTE *)this + 328) ) { *((_BYTE *)this + 328) = 1; v3 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this); v4 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v3 + 80))(v3); cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, (cocos2d::CCObject *)v2); cocos2d::CCObject::retain((cocos2d::CCObject *)v2); v5 = (GJGarageLayer *)(*((int (__fastcall **)(char **))*v2 + 65))(v2); if ( v2[85] ) this = (char **)SecretRewardsLayer::scene((SecretRewardsLayer *)((char *)&dword_0 + 1), v6); else this = (char **)GJGarageLayer::scene(v5); v7 = (cocos2d::CCScene *)this; if ( this ) { v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this); this = (char **)cocos2d::CCDirector::replaceScene(v8, v7); if ( this ) { (*((void (__fastcall **)(char **, _DWORD))*v2 + 134))(v2, 0); (*(void (__fastcall **)(cocos2d::CCScene *, char **, int))(*(_DWORD *)v7 + 232))(v7, v2, 1000); v9 = (cocos2d::CCDirector *)cocos2d::CCObject::release((cocos2d::CCObject *)v2); cocos2d::CCDirector::sharedDirector(v9); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v23); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 0.0, v23[1]); v11 = (cocos2d::CCEaseIn *)cocos2d::CCMoveTo::create((cocos2d::CCMoveTo *)0x3E99999A, COERCE_FLOAT(v24), v10); v13 = (cocos2d::CCSequence *)cocos2d::CCEaseIn::create(v11, (cocos2d::CCActionInterval *)0x40000000, v12); v24[0] = 268; v24[1] = 1; v14 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v2, 268, 1); v15 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v13, v14, 0); v16 = (GameManager *)cocos2d::CCNode::runAction((cocos2d::CCNode *)v2, v15); if ( v2[85] ) { v17 = GameManager::sharedState(v16); memset(v25, 0, sizeof(v25)); v18 = (FMODAudioEngine *)v17; std::string::__init(v25, "secretLoop.mp3", 0xEu); GameManager::fadeInMusic(v18, (unsigned __int8 *)v25); return (char **)std::string::~string((int)v25); } else { v19 = (GameManager *)GameManager::sharedState(v16); return GameManager::fadeInMenuMusic(v19, v20, v21, v22); } } } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source