// // GJGarageLayer::onBack from 0x1403819a0 to 0x140381b54 (436 bytes) // // 3 xrefs: // > GJGarageLayer::keyBackClicked @ 0x140381b69 // > GJGarageLayer::init @ 0x14037c3f5 // > @ 0x140922964 // // 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:05 +0000 // // Hidden C++ exception states: #wind=2 void __fastcall GJGarageLayer::onBack(cocos2d::CCObject *a1) { __int64 v2; // rax struct cocos2d::CCScene *v3; // rax struct cocos2d::CCScene *v4; // rbx __int64 v5; // rcx cocos2d::CCDirector *v6; // rax __int64 v7; // rcx cocos2d::CCDirector *v8; // rax __int64 v9; // rcx __int64 v10; // rcx struct cocos2d::CCScene *v11; // rbx cocos2d::CCDirector *v12; // rax __int64 v13; // rcx __int64 v14; // rax const struct cocos2d::CCPoint *v15; // rax struct cocos2d::CCActionInterval *v16; // rax struct cocos2d::CCFiniteTimeAction *v17; // rbx __int64 v18; // rax struct cocos2d::CCAction *v19; // rax void *v20; // [rsp+30h] [rbp+8h] BYREF char v21; // [rsp+40h] [rbp+18h] BYREF if ( !*((_BYTE *)a1 + 512) ) { (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0); v2 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v20 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v20); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v2 = qword_14090BFD0; } if ( *(_BYTE *)(v2 + 1112) ) { *(_BYTE *)(v2 + 1112) = 0; cocos2d::CCObject::retain(a1); (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a1 + 512LL))(a1); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::popScene(v8); v11 = *(struct cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(v9) + 280); if ( v11 ) { *((_BYTE *)a1 + 512) = 1; v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::willSwitchToScene(v12, v11); (*(void (__fastcall **)(struct cocos2d::CCScene *, cocos2d::CCObject *, __int64))(*(_QWORD *)v11 + 456LL))( v11, a1, 1000); cocos2d::CCObject::release(a1); v14 = cocos2d::CCDirector::sharedDirector(v13); cocos2d::CCDirector::getWinSize(v14, &v20); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, 0.0, *((float *)&v20 + 1)); v16 = cocos2d::CCMoveTo::create(0.30000001, v15); v17 = cocos2d::CCEaseIn::create(v16, 2.0); v18 = cocos2d::CCCallFunc::create(a1, sub_14003F5B0); v19 = cocos2d::CCSequence::create(v17, v18, 0); cocos2d::CCNode::runAction(a1, v19); } } else { *((_BYTE *)a1 + 512) = 1; v3 = (struct cocos2d::CCScene *)MenuLayer::scene(0); v4 = cocos2d::CCTransitionFade::create(0.5, v3); v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::replaceScene(v6, v4); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source