// // DeathMarkerLayer::resolveBadgeCollisions from 0xca13dc to 0xca1884 (1192 bytes) // // 2 xrefs: // > DeathMarkerLayer::mountSection @ 0xca199c // > @ 0x455e0 // // 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::resolveBadgeCollisions(DeathMarkerLayer *this) { DeathMarkerLayer *v2; // x0 DeathMarkerLayer *v3; // x19 __int64 *v4; // x20 __int64 v5; // x21 unsigned __int64 v6; // x21 __int64 i; // x19 char v8; // w0 __int64 *v9; // x22 __int64 v10; // x28 unsigned __int64 j; // x19 char *v12; // x3 __int64 v13; // x1 unsigned __int64 v14; // x24 unsigned __int64 v15; // x0 int v16; // w28 __int64 v17; // x26 unsigned __int64 v18; // x19 unsigned __int64 v19; // x23 unsigned __int64 v20; // x20 __int64 v21; // x0 __int64 v22; // x20 char *v23; // x0 __int64 v24; // x1 __int64 v25; // x20 void (__fastcall *v26)(__int64, float); // x23 float v27; // s9 float v28; // s0 float v29; // s8 float v30; // s0 int v31; // w0 char *v32; // x0 int v34; // [xsp+84h] [xbp+84h] unsigned __int64 v35; // [xsp+88h] [xbp+88h] _BYTE v36[16]; // [xsp+98h] [xbp+98h] BYREF _QWORD v37[2]; // [xsp+A8h] [xbp+A8h] BYREF void *v38; // [xsp+B8h] [xbp+B8h] BYREF char *v39; // [xsp+C0h] [xbp+C0h] unsigned __int64 v40; // [xsp+C8h] [xbp+C8h] void *v41[3]; // [xsp+D0h] [xbp+D0h] BYREF v2 = (DeathMarkerLayer *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 52) + 512LL))(*((_QWORD *)this + 52)); v3 = v2; if ( v2 != this && v2 && (*(__int64 (__fastcall **)(DeathMarkerLayer *))(*(_QWORD *)v2 + 488LL))(v2) ) { v38 = nullptr; v39 = nullptr; v40 = 0; memset(v41, 0, sizeof(v41)); if ( (*(__int64 (__fastcall **)(DeathMarkerLayer *))(*(_QWORD *)v3 + 488LL))(v3) ) { if ( **(_DWORD **)((*(__int64 (__fastcall **)(DeathMarkerLayer *))(*(_QWORD *)v3 + 488LL))(v3) + 56) ) { v4 = *(__int64 **)(*(_QWORD *)((*(__int64 (__fastcall **)(DeathMarkerLayer *))(*(_QWORD *)v3 + 488LL))(v3) + 56) + 16LL); v5 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(DeathMarkerLayer *))(*(_QWORD *)v3 + 488LL))(v3) + 56) + 16LL); v6 = v5 + 8LL * **(unsigned int **)((*(__int64 (__fastcall **)(DeathMarkerLayer *))(*(_QWORD *)v3 + 488LL))(v3) + 56) - 8; if ( (unsigned __int64)v4 <= v6 ) { for ( i = *v4; *v4; i = *v4 ) { if ( (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)i + 488LL))(i) ) { v8 = *((_BYTE *)this + 424); if ( i != *((_QWORD *)this + 52) ) v8 ^= 1u; v36[0] = v8; if ( (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)i + 488LL))(i) ) { if ( **(_DWORD **)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)i + 488LL))(i) + 56) ) { v9 = *(__int64 **)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)i + 488LL))(i) + 56) + 16LL); v10 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)i + 488LL))(i) + 56) + 16LL); for ( j = v10 + 8LL * **(unsigned int **)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)i + 488LL))(i) + 56) - 8; j >= (unsigned __int64)v9; ++v9 ) { v24 = *v9; if ( !*v9 ) break; v23 = v39; v37[0] = *v9; if ( v40 > (unsigned __int64)v39 ) { if ( v39 ) { *(_QWORD *)v39 = v24; v23 = v39; } v39 = v23 + 8; } else { std::vector::__push_back_slow_path((__int64)&v38, v37); } std::vector::push_back((const void **)v41, v36); } } } } if ( v6 < (unsigned __int64)++v4 ) break; } } } } v12 = (char *)v38; v34 = 0; v13 = v39 - (_BYTE *)v38; do { v14 = 0; v15 = v13 >> 3; v16 = 0; if ( v13 >> 3 ) { do { v35 = v14 + 1; if ( v15 > v14 + 1 ) { v18 = v14 + 1; do { while ( 1 ) { v17 = 1LL << (v14 & 0x3F); if ( (((1LL << (v18 & 0x3F)) & *((_QWORD *)v41[0] + (v18 >> 6))) != 0) == ((v17 & *((_QWORD *)v41[0] + (v14 >> 6))) != 0) ) { v19 = v14; v20 = v18; } else if ( (v17 & *((_QWORD *)v41[0] + (v14 >> 6))) != 0 || (v19 = v14, v20 = v18, v14 == v18) ) { v20 = v14; v19 = v18; } v21 = *(_QWORD *)&v12[8 * v20]; v22 = 8 * v20; sub_C9D338(v21, (cocos2d::CCRect *)v36); sub_C9D338(*((_QWORD *)v38 + v19), (cocos2d::CCRect *)v37); if ( (unsigned __int8)cocos2d::CCRect::intersectsRect( (cocos2d::CCRect *)v36, (const cocos2d::CCRect *)v37) ) break; v12 = (char *)v38; ++v18; v13 = v39 - (_BYTE *)v38; if ( v18 >= (v39 - (_BYTE *)v38) >> 3 ) goto LABEL_35; } v25 = *(_QWORD *)((char *)v38 + v22); v26 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v25 + 232LL); v27 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v25 + 240LL))(v25); cocos2d::CCRect::getMaxY((cocos2d::CCRect *)v37); v29 = v28 + 2.0; cocos2d::CCRect::getMinY((cocos2d::CCRect *)v36); v26(v25, v27 + (float)(v29 - v30)); v12 = (char *)v38; ++v18; v16 = 1; v13 = v39 - (_BYTE *)v38; } while ( v18 < (v39 - (_BYTE *)v38) >> 3 ); } LABEL_35: ++v14; v15 = v13 >> 3; } while ( v35 < v13 >> 3 ); } v31 = ++v34; } while ( v16 && v31 <= 7 ); if ( v41[0] ) { operator delete(v41[0]); v32 = (char *)v38; } else { v32 = v12; } if ( v32 ) { if ( v39 != v32 ) v39 += 8 * ~((unsigned __int64)(v39 - 8 - v32) >> 3); operator delete(v32); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source