// // GJBaseGameLayer::checkCollisionBlocks from 0x99f3a8 to 0x99f58c (484 bytes) // // 4 xrefs: // > GJBaseGameLayer::updateCollisionBlocks @ 0x9a4758 // > GJBaseGameLayer::updateCollisionBlocks @ 0x9a4794 // > GJBaseGameLayer::updateCollisionBlocks @ 0x9a47e0 // > @ 0xd1a88 // // 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:06 +0000 // __int64 __fastcall GJBaseGameLayer::checkCollisionBlocks(_DWORD *a1, __int64 a2, _QWORD *a3, int a4) { int v7; // w24 const cocos2d::CCRect *v8; // x0 float v9; // s0 float v10; // s8 float v11; // s0 float v12; // s9 float v13; // s0 float v14; // s10 float v15; // s0 float v16; // s11 float *v17; // x25 __int64 v18; // x19 __int64 v19; // x20 float *ObjectRectPointer; // x0 float v21; // s0 float *v22; // x28 _BYTE v25[16]; // [xsp+98h] [xbp+98h] BYREF v7 = *(_DWORD *)(a2 + 916); v8 = (const cocos2d::CCRect *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1328LL))(a2); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v25, v8); cocos2d::CCRect::getMaxX((cocos2d::CCRect *)v25); v10 = v9; cocos2d::CCRect::getMinX((cocos2d::CCRect *)v25); v12 = v11; cocos2d::CCRect::getMaxY((cocos2d::CCRect *)v25); v14 = v13; cocos2d::CCRect::getMinY((cocos2d::CCRect *)v25); v16 = v15; v17 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1560LL))(a2); if ( a4 > 0 ) { v18 = 0; do { v19 = *(_QWORD *)(*a3 + v18); if ( !*(_BYTE *)(v19 + 650) && *(_DWORD *)(v19 + 1836) != a1[824] ) { ObjectRectPointer = (float *)GameObject::getObjectRectPointer(*(GameObject **)(*a3 + v18)); if ( v10 >= *ObjectRectPointer && v12 <= (float)(*ObjectRectPointer + ObjectRectPointer[2]) ) { v21 = ObjectRectPointer[1]; if ( v14 >= v21 && v16 <= (float)(v21 + ObjectRectPointer[3]) && v7 != *(_DWORD *)(v19 + 916) ) { if ( !*(_BYTE *)(a2 + 744) && !*(_BYTE *)(v19 + 744) || (v22 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v19 + 1560LL))(v19), OBB2D::overlaps1Way((__int64)v17, v22)) && OBB2D::overlaps1Way((__int64)v22, v17) ) { (*(void (__fastcall **)(_DWORD *, _QWORD, _QWORD))(*(_QWORD *)a1 + 1224LL))( a1, *(unsigned int *)(a2 + 1680), *(unsigned int *)(v19 + 1680)); } } } } v18 += 8; } while ( v18 != 8 * ((unsigned int)(a4 - 1) + 1LL) ); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source