// // DeathMarkerLayer::updateVisibility from 0xca19b4 to 0xca1c98 (740 bytes) // // 8 xrefs: // > LevelEditorLayer::postUpdate @ 0x79b028 // > LevelEditorLayer::postUpdate @ 0x79b038 // > LevelEditorLayer::updateEditor @ 0x7a8f4c // > LevelEditorLayer::updateEditor @ 0x7a8f5c // > PlayLayer::dtUpdateLiveMarkers @ 0xc36804 // > PlayLayer::dtUpdateLiveMarkers @ 0xc36814 // > DeathMarkerLayer::init @ 0xca3f68 // > @ 0x54280 // // 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:05:59 +0000 // __int64 __fastcall DeathMarkerLayer::updateVisibility(DeathMarkerLayer *this, const cocos2d::CCRect *a2) { float v4; // s0 float v5; // s9 float v6; // s0 float v7; // s11 float v8; // s0 float v9; // s8 float v10; // s0 float v11; // s10 __int64 result; // x0 int v13; // w27 float v14; // s11 float v15; // s10 int v16; // w25 int v17; // w23 int v18; // w24 int v19; // w22 int v20; // w2 int k; // w20 int m; // w21 int v23; // w20 int v24; // w22 int v25; // w0 int v26; // w2 int v27; // w20 unsigned int v28; // w1 __int64 *i; // x20 __int64 *j; // x25 if ( *((float *)a2 + 2) <= 0.0 || *((float *)a2 + 3) <= 0.0 ) { result = *((unsigned __int8 *)this + 400); if ( !*((_BYTE *)this + 400) ) { v24 = *((_DWORD *)this + 96); v25 = *((_DWORD *)this + 97); if ( v24 <= v25 ) { v26 = *((_DWORD *)this + 99); do { v27 = *((_DWORD *)this + 98); if ( v27 <= v26 ) { do { v28 = v27++ | (v24 << 16); DeathMarkerLayer::unmountSection(this, v28); v26 = *((_DWORD *)this + 99); } while ( v26 >= v27 ); v25 = *((_DWORD *)this + 97); } ++v24; } while ( v25 >= v24 ); } for ( i = *((__int64 **)this + 45); i; i = (__int64 *)*i ) DeathMarkerLayer::mountSection(this, *((_DWORD *)i + 4)); *((_DWORD *)this + 96) = 0; *((_BYTE *)this + 400) = 1; *(_QWORD *)((char *)this + 388) = 0xFFFFFFFFLL; *((_DWORD *)this + 99) = -1; return 0xFFFFFFFFLL; } } else { cocos2d::CCRect::getMinX(a2); v5 = v4; cocos2d::CCRect::getMaxX(a2); v7 = v6; cocos2d::CCRect::getMinY(a2); v9 = v8; cocos2d::CCRect::getMaxY(a2); v11 = v10; if ( *((_BYTE *)this + 400) ) { for ( j = *((__int64 **)this + 45); j; j = (__int64 *)*j ) DeathMarkerLayer::unmountSection(this, *((_DWORD *)j + 4)); *((_BYTE *)this + 400) = 0; *((_DWORD *)this + 96) = 0; result = 0xFFFFFFFFLL; *((_DWORD *)this + 97) = -1; v13 = 0; *((_DWORD *)this + 98) = 0; *((_DWORD *)this + 99) = -1; } else { result = *((unsigned int *)this + 97); v13 = *((_DWORD *)this + 96); } v14 = v7 / 240.0; v15 = v11 / 240.0; v16 = (int)(float)(v5 / 240.0) - 1; if ( v16 < 0 ) v16 = 0; if ( (int)(float)(v9 / 240.0) - 1 < 0 ) v17 = 0; else v17 = (int)(float)(v9 / 240.0) - 1; v18 = (int)v14 + 1; v19 = (int)v15 + 1; if ( v13 != v16 || v18 != (_DWORD)result || *((_DWORD *)this + 98) != v17 || *((_DWORD *)this + 99) != v19 ) { if ( v13 <= (int)result ) { v20 = *((_DWORD *)this + 99); do { for ( k = *((_DWORD *)this + 98); v20 >= k; v20 = *((_DWORD *)this + 99) ) { while ( v18 >= v13 && v13 >= v16 && k >= v17 && k <= v19 ) { if ( v20 < ++k ) goto LABEL_20; } DeathMarkerLayer::unmountSection(this, k++ | (v13 << 16)); } LABEL_20: result = *((unsigned int *)this + 97); ++v13; } while ( (int)result >= v13 ); } for ( m = v16; v18 >= m; ++m ) { if ( v19 >= v17 ) { v23 = v17; do { result = (__int64)this; if ( *((_DWORD *)this + 96) > m || *((_DWORD *)this + 97) < m || *((_DWORD *)this + 98) > v23 || *((_DWORD *)this + 99) < v23 ) { result = DeathMarkerLayer::mountSection(this, v23 | (unsigned int)(m << 16)); } ++v23; } while ( v19 >= v23 ); } } *((_DWORD *)this + 96) = v16; *((_DWORD *)this + 97) = v18; *((_DWORD *)this + 98) = v17; *((_DWORD *)this + 99) = v19; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source