// // PlayLayer::dtRebuildLiveMarkers from 0xc36d00 to 0xc36f5c (604 bytes) // // 4 xrefs: // > PlayLayer::resetLevel @ 0x7118f0 // > PlayLayer::dtLiveMarkersChanged @ 0xc36fcc // > PlayLayer::tryShowDeathMarkers @ 0xc37130 // > @ 0xd3048 // // 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 13:04:52 +0000 // __int64 __fastcall PlayLayer::dtRebuildLiveMarkers(PlayLayer *this) { __int64 v2; // x0 __int64 v3; // x0 GameManager *v5; // x0 GameManager *GameVariable; // x0 GameManager *v7; // x0 GameManager *v8; // x0 int v9; // w23 GameManager *v10; // x0 __int64 v11; // x0 GameManager *v12; // x0 GameManager *v13; // x0 DeathMarkerLayer *v14; // x0 DeathMarkerLayer *v15; // x0 int v16; // w24 _BYTE v17[16]; // [xsp+50h] [xbp+40h] BYREF void *v18; // [xsp+60h] [xbp+50h] BYREF char *v19; // [xsp+68h] [xbp+58h] __int64 v20; // [xsp+70h] [xbp+60h] v2 = *((_QWORD *)this + 244); if ( v2 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 520LL))(v2); *((_QWORD *)this + 244) = 0; } v3 = *((_QWORD *)this + 243); if ( v3 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 520LL))(v3); *((_QWORD *)this + 243) = 0; } if ( *((_BYTE *)this + 14524) ) { v5 = (GameManager *)GameManager::sharedState((GameManager *)*((unsigned __int8 *)this + 14524)); GameVariable = (GameManager *)(unsigned __int8)GameManager::getGameVariable(v5, "0207"); if ( !(_BYTE)GameVariable ) { v7 = (GameManager *)GameManager::sharedState(GameVariable); v8 = (GameManager *)GameManager::getGameVariable(v7, "0200"); v9 = (unsigned __int8)v8; v10 = (GameManager *)GameManager::sharedState(v8); if ( (unsigned __int8)GameManager::getGameVariable(v10, "0202") ) { PlayLayer::dtMarkerVisibleRect(this, (cocos2d::CCRect *)v17); v18 = nullptr; v19 = nullptr; v20 = 0; if ( !v9 ) { LABEL_10: v11 = GJBaseGameLayer::addDeathMarkerLayer( (__int64)this, *((_QWORD *)this + 492), 1u, (_QWORD *)this + 1802, 0, (int)v17, 0x80000000, 0x80000000, 0); LABEL_11: *((_QWORD *)this + 244) = v11; if ( v9 ) v12 = (GameManager *)GJBaseGameLayer::addDeathMarkerLayer( (__int64)this, *((_QWORD *)this + 492), 0, &v18, 0, (int)v17, 0x80000000, 0x80000000, 0); else v12 = nullptr; *((_QWORD *)this + 243) = v12; v13 = (GameManager *)GameManager::sharedState(v12); if ( (unsigned __int8)GameManager::getGameVariable(v13, "0208") ) { v14 = *((DeathMarkerLayer **)this + 244); if ( v14 ) DeathMarkerLayer::setLabelsVisible(v14, 0); v15 = *((DeathMarkerLayer **)this + 243); if ( v15 ) DeathMarkerLayer::setLabelsVisible(v15, 0); } if ( v18 ) { if ( v18 != v19 ) v19 += 4 * ~((unsigned __int64)(v19 - 4 - (_BYTE *)v18) >> 2); operator delete(v18); } return _stack_chk_guard; } v16 = 1; } else { if ( !(_BYTE)v9 ) return _stack_chk_guard; v16 = 0; PlayLayer::dtMarkerVisibleRect(this, (cocos2d::CCRect *)v17); v18 = nullptr; v19 = nullptr; v20 = 0; } PlayLayer::dtLocalCellTriples((__int64)this, (__int64 *)&v18); v11 = 0; if ( !v16 ) goto LABEL_11; goto LABEL_10; } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source