// // GJBaseGameLayer::resetPlayer from 0x9a307c to 0x9a31fc (384 bytes) // // 4 xrefs: // > PlayLayer::setupHasCompleted @ 0x707ba4 // > LevelEditorLayer::onPlaytest @ 0x7965e8 // > GJBaseGameLayer::resetLevelVariables @ 0x9e79d8 // > @ 0x854b0 // // This function is hookable on this platform (idp: arm, 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:58:08 +0000 // __int64 __fastcall GJBaseGameLayer::resetPlayer(GJBaseGameLayer *this) { __int64 v2; // x0 __int64 v3; // x0 __int64 v4; // x23 void (__fastcall *v5)(__int64, __int64 *); // x24 __int64 v6; // x23 void (__fastcall *v7)(__int64, __int64 *); // x22 int v9; // w1 __int64 Object; // x0 int v11; // [xsp+48h] [xbp+48h] BYREF __int64 v12; // [xsp+50h] [xbp+50h] BYREF cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, 0.0, 105.0); v2 = *((_QWORD *)this + 1554); if ( v2 ) { v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 192LL))(v2); cocos2d::CCPoint::operator=(&v11, v3); } else { v9 = *(_DWORD *)(*((_QWORD *)this + 409) + 444LL); if ( v9 > 0 ) { Object = GJBaseGameLayer::tryGetObject((cocos2d::CCDictionary **)this, v9); if ( Object ) { (*(void (__fastcall **)(__int64 *__return_ptr))(*(_QWORD *)Object + 1360LL))(&v12); cocos2d::CCPoint::operator=(&v11, &v12); if ( !*(_BYTE *)(*((_QWORD *)this + 409) + 341LL) ) v11 = 0; } } } v4 = *((_QWORD *)this + 407); v5 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v4 + 1368LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, (const cocos2d::CCPoint *)&v11); v5(v4, &v12); (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 407) + 1288LL))(*((_QWORD *)this + 407)); v6 = *((_QWORD *)this + 408); v7 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v6 + 1368LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, (const cocos2d::CCPoint *)&v11); v7(v6, &v12); (*(void (__fastcall **)(_QWORD))(**((_QWORD **)this + 408) + 1288LL))(*((_QWORD *)this + 408)); *(_BYTE *)(*((_QWORD *)this + 407) + 2528LL) = *(_BYTE *)(*((_QWORD *)this + 409) + 461LL) ^ 1; *(_BYTE *)(*((_QWORD *)this + 408) + 2528LL) = *(_BYTE *)(*((_QWORD *)this + 409) + 461LL) ^ 1; return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source