// // GJGarageLayer::onBack from 0x140279030 to 0x1402791cc (412 bytes) // // 3 xrefs: // > GJGarageLayer::keyBackClicked @ 0x1402791d9 // > GJGarageLayer::init @ 0x140273c5b // > @ 0x1406d104c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=2 void GJGarageLayer::onBack(GJGarageLayer *a1, cocos2d::CCObject *a2) { float v2; // xmm0_4 float v3; // xmm3_4 __int64 v5; // rax struct cocos2d::CCScene *v6; // rax struct cocos2d::CCTransitionFade *v7; // rbx __int64 v8; // rcx cocos2d::CCDirector *v9; // rax __int64 v10; // rcx cocos2d::CCDirector *v11; // rax __int64 v12; // rcx __int64 v13; // rcx __int64 v14; // rcx cocos2d::CCDirector *v15; // rax const struct cocos2d::CCPoint *v16; // rax struct cocos2d::CCMoveTo *v17; // rax struct cocos2d::CCEaseIn *v18; // rbx __int64 v19; // rax struct cocos2d::CCSequence *v20; // rax cocos2d::ccColor3B *v21; // r8 float v22; // [rsp+20h] [rbp-8h] void *v23; // [rsp+30h] [rbp+8h] if ( !a1->m_hasClosed ) { a1->setKeypadEnabled(a1, 0); v5 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v23 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v23); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v5 = qword_1406C2ED8; } if ( *(_BYTE *)(v5 + 1048) ) { *(_BYTE *)(v5 + 1048) = 0; cocos2d::CCObject::retain(a1); a1->removeFromParent(a1); a1->setKeypadEnabled(a1, 0); v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::popScene(v11); v13 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v12) + 272); if ( v13 ) { a1->m_hasClosed = 1; (*(void (__fastcall **)(__int64, GJGarageLayer *, __int64))(*(_QWORD *)v13 + 440LL))(v13, a1, 1000); cocos2d::CCObject::release(a1); v15 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v14); cocos2d::CCDirector::getWinSize(v15); cocos2d::CCPoint::CCPoint(v2, 0.0); v17 = cocos2d::CCMoveTo::create(0.30000001, v16); v18 = cocos2d::CCEaseIn::create(v17, 2.0); v19 = cocos2d::CCCallFunc::create(a1, sub_14003BE70); v20 = cocos2d::CCSequence::create(v18, v19, 0); cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v20, v21, v3, v22); } } else { a1->m_hasClosed = 1; v6 = MenuLayer::scene(0); v7 = cocos2d::CCTransitionFade::create(0.5, v6); v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8); cocos2d::CCDirector::replaceScene(v9, v7); } } }