// // PlayLayer::processCheckpoints from 0x710b0c to 0x710ddc (720 bytes) // // 2 xrefs: // > @ 0x6bc68 // > @ 0x1428a80 // // 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:52:13 +0000 // __int64 __fastcall PlayLayer::processCheckpoints(PlayLayer *this) { PlayLayer *v1; // x19 unsigned int *v2; // x5 __int64 v3; // x1 void (__fastcall *v4)(PlayLayer *, __int64, _QWORD, void **, _QWORD, _QWORD, double); // x6 GameManager *v5; // x0 unsigned int *v6; // x5 __int64 v7; // x1 void (__fastcall *v8)(PlayLayer *, __int64, _QWORD, void **, _QWORD, _QWORD, double); // x6 CheckpointObject *v10; // x21 __int64 v11; // x0 int v12; // w1 __int64 MainObject; // x0 __int64 Object; // x24 void (__fastcall *v15)(__int64, void **); // x25 GameObject *v16; // x0 __int64 v17; // x0 __int64 v18; // [xsp+58h] [xbp+58h] BYREF void *v19; // [xsp+60h] [xbp+60h] BYREF char *v20; // [xsp+68h] [xbp+68h] __int64 v21; // [xsp+70h] [xbp+70h] v1 = this; if ( *((_BYTE *)this + 14868) ) { *((_BYTE *)this + 14868) = 0; this = PlayLayer::markCheckpoint(this); } v2 = *((unsigned int **)v1 + 1859); if ( v2 ) { v3 = v2[462]; if ( (int)v3 > 0 ) { v4 = *(void (__fastcall **)(PlayLayer *, __int64, _QWORD, void **, _QWORD, _QWORD, double))(*(_QWORD *)v1 + 1256LL); v19 = nullptr; v20 = nullptr; v21 = 0; v4(v1, v3, 0, &v19, v2[229], v2[418], 0.0); this = (PlayLayer *)v19; if ( v19 ) { if ( v19 != v20 ) v20 += 4 * ~((unsigned __int64)(v20 - 4 - (_BYTE *)v19) >> 2); operator delete(v19); } } v5 = (GameManager *)GameManager::sharedState(this); if ( !(unsigned __int8)GameManager::getGameVariable(v5, "0146") ) { v10 = PlayLayer::markCheckpoint(v1); if ( v10 ) { (*(void (__fastcall **)(__int64 *__return_ptr, _QWORD))(**((_QWORD **)v1 + 1859) + 1360LL))( &v18, *((_QWORD *)v1 + 1859)); v11 = *((_QWORD *)v1 + 1859); if ( *(_BYTE *)(v11 + 1684) ) { v17 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)v1 + 407) + 192LL))(*((_QWORD *)v1 + 407)); cocos2d::CCPoint::operator=(&v18, v17); } else { v12 = *(_DWORD *)(v11 + 1468); if ( v12 > 0 ) { MainObject = GJBaseGameLayer::tryGetMainObject(v1, v12); if ( MainObject ) { (*(void (__fastcall **)(void **__return_ptr))(*(_QWORD *)MainObject + 1360LL))(&v19); cocos2d::CCPoint::operator=(&v18, &v19); } } } Object = CheckpointObject::getObject(v10); v15 = *(void (__fastcall **)(__int64, void **))(*(_QWORD *)Object + 1368LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v19, (const cocos2d::CCPoint *)&v18); v15(Object, &v19); cocos2d::CCPoint::operator=(*((_QWORD *)v10 + 390) + 316LL, &v18); *(_BYTE *)(*((_QWORD *)v10 + 390) + 432LL) = 1; v16 = (GameObject *)CheckpointObject::getObject(v10); GameObject::makeInvisible(v16); *((_DWORD *)v10 + 785) = *(_DWORD *)(*((_QWORD *)v1 + 1859) + 916LL); *((_DWORD *)v10 + 786) = *(_DWORD *)(*((_QWORD *)v1 + 1859) + 1844LL); PlayLayer::savePersistentCheckpoint((__int64)v1, v10); } } v6 = *((unsigned int **)v1 + 1859); v7 = v6[366]; if ( (int)v7 > 0 ) { v8 = *(void (__fastcall **)(PlayLayer *, __int64, _QWORD, void **, _QWORD, _QWORD, double))(*(_QWORD *)v1 + 1256LL); v19 = nullptr; v20 = nullptr; v21 = 0; v8(v1, v7, 0, &v19, v6[229], v6[418], 0.0); if ( v19 ) { if ( v20 != v19 ) v20 += 4 * ~((unsigned __int64)(v20 - 4 - (_BYTE *)v19) >> 2); operator delete(v19); } } GJBaseGameLayer::gameEventTriggered(v1, 60, 0, 0); *((_QWORD *)v1 + 1859) = 0; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source