// // GJShopLayer::onBack from 0x1403b30c0 to 0x1403b32e2 (546 bytes) // // 3 xrefs: // > GJShopLayer::keyBackClicked @ 0x1403b32f9 // > GJShopLayer::init @ 0x1403b0d8d // > @ 0x140923c24 // // This function is hookable on this platform (idp: pc, 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 11:31:23 +0000 // // Hidden C++ exception states: #wind=3 void __fastcall GJShopLayer::onBack(__int64 a1) { __int64 v2; // rax cocos2d::CCTouchDispatcher *v3; // rax __int64 v4; // rdx __int64 v5; // rcx __int64 v6; // r8 __int64 v7; // r9 __int64 v8; // rax __int64 v9; // rcx struct cocos2d::CCScene *v10; // rbx cocos2d::CCDirector *v11; // rax __int64 v12; // rcx __int64 v13; // rax const struct cocos2d::CCPoint *v14; // rax struct cocos2d::CCActionInterval *v15; // rax struct cocos2d::CCFiniteTimeAction *v16; // rbx __int64 v17; // rax struct cocos2d::CCAction *v18; // rax __int64 v19; // rcx __int64 v20; // rcx char v21[16]; // [rsp+20h] [rbp-28h] BYREF __int64 v22; // [rsp+30h] [rbp-18h] __int64 v23; // [rsp+38h] [rbp-10h] char v24; // [rsp+50h] [rbp+8h] BYREF float v25; // [rsp+54h] [rbp+Ch] char *v26; // [rsp+60h] [rbp+18h] BYREF void *v27; // [rsp+68h] [rbp+20h] if ( !*(_BYTE *)(a1 + 432) ) { *(_BYTE *)(a1 + 432) = 1; v2 = cocos2d::CCDirector::sharedDirector(a1); v3 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2); cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, (struct cocos2d::CCObject *)a1); cocos2d::CCObject::retain((cocos2d::CCObject *)a1); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1); if ( *(_DWORD *)(a1 + 456) ) { LOBYTE(v5) = 1; v8 = SecretRewardsLayer::scene(v5); } else { v8 = GJGarageLayer::scene(v5, v4, v6, v7); } v10 = (struct cocos2d::CCScene *)v8; if ( v8 ) { v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9); if ( cocos2d::CCDirector::replaceScene(v11, v10) ) { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0); (*(void (__fastcall **)(struct cocos2d::CCScene *, __int64, __int64))(*(_QWORD *)v10 + 456LL))(v10, a1, 1000); cocos2d::CCObject::release((cocos2d::CCObject *)a1); v13 = cocos2d::CCDirector::sharedDirector(v12); cocos2d::CCDirector::getWinSize(v13, &v24); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, 0.0, v25); v15 = cocos2d::CCMoveTo::create(0.30000001, v14); v16 = cocos2d::CCEaseIn::create(v15, 2.0); v17 = cocos2d::CCCallFunc::create(a1, sub_14003F5B0); v18 = cocos2d::CCSequence::create(v16, v17, 0); cocos2d::CCNode::runAction((cocos2d::CCNode *)a1, v18); if ( *(_DWORD *)(a1 + 456) ) { v26 = v21; v21[15] = 0; v22 = 14; v23 = 15; strcpy(v21, "secretLoop.mp3"); if ( !qword_14090BFD0 ) { v27 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v27); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); } GameManager::fadeInMusic(v19, (__int64)v21); } else { v20 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v26 = (char *)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v26); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v20 = qword_14090BFD0; } GameManager::fadeInMenuMusic(v20); } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source