// // GJGarageLayer::onBack from 0x100355330 to 0x10035549e (366 bytes) // // 3 xrefs: // > GJGarageLayer::keyBackClicked @ 0x100359345 // > sub_100359350 @ 0x10035935c // > GJGarageLayer::init @ 0x100353355 // // 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 12:28:51 +0000 // void __fastcall GJGarageLayer::onBack(_BYTE *a1) { __int64 v2; // rdx __int64 v3; // rdx __int64 v4; // rax double v5; // xmm0_8 __int64 v6; // rax __int64 v7; // rdi __int64 v8; // r14 __int64 v9; // rax __int64 v10; // rax __int64 v11; // rax int v12; // r14d int v13; // eax int v14; // ecx int v15; // r8d int v16; // r9d __int64 v17; // rax __int64 v18; // rbx __int64 v19; // rax char *v20; // rax float v21; // [rsp+0h] [rbp-20h] BYREF _BYTE v22[4]; // [rsp+8h] [rbp-18h] BYREF float v23; // [rsp+Ch] [rbp-14h] if ( !a1[512] ) { (*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0); GameManager::sharedState(a1, 0, v2); if ( *(_BYTE *)(v4 + 1080) ) { *(_QWORD *)&v5 = GameManager::sharedState(a1, 0, v3).u64[0]; *(_BYTE *)(v6 + 1080) = 0; cocos2d::CCObject::retain(a1); (*(void (__fastcall **)(_BYTE *, double))(*(_QWORD *)a1 + 520LL))(a1, v5); (*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0); v7 = cocos2d::CCDirector::sharedDirector(a1, 0); cocos2d::CCDirector::popScene(v7); v8 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v7, 0) + 280); if ( v8 ) { a1[512] = 1; v9 = cocos2d::CCDirector::sharedDirector(v7, 0); cocos2d::CCDirector::willSwitchToScene(v9, v8); (*(void (__fastcall **)(__int64, _BYTE *, __int64))(*(_QWORD *)v8 + 464LL))(v8, a1, 1000); cocos2d::CCObject::release(a1); v10 = cocos2d::CCDirector::sharedDirector(a1, a1); cocos2d::CCDirector::getWinSize(v22, v10); sub_100278250(&v21, 0.0, v23); v11 = cocos2d::CCMoveTo::create(&v21, 0.30000001); v12 = cocos2d::CCEaseIn::create(v11, 2.0); v13 = cocos2d::CCCallFunc::create(a1, 537, 0); v17 = sub_10039EB60(v12, v13, 0, v14, v15, v16); cocos2d::CCNode::runAction((__int64)a1, v17); } } else { a1[512] = 1; v18 = cocos2d::CCDirector::sharedDirector(a1, 0); v19 = MenuLayer::scene(0); v20 = cocos2d::CCTransitionFade::create_1(v19, 0.5); cocos2d::CCDirector::replaceScene(v18, v20); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source