// // GJBaseGameLayer::objectIntersectsCircle from 0x99c9ec to 0x99cbbc (464 bytes) // // 2 xrefs: // > GJBaseGameLayer::playerCircleCollision @ 0x99cc98 // > @ 0xc5e78 // // 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:05 +0000 // bool __fastcall GJBaseGameLayer::objectIntersectsCircle(GJBaseGameLayer *this, GameObject *a2, GameObject *a3) { const cocos2d::CCRect *v4; // x0 float ObjectRadius; // s8 float v6; // s0 float v7; // s9 float v8; // s0 float v9; // s12 float v10; // s0 float v11; // s10 float v12; // s0 float v13; // s11 _BOOL8 result; // x0 const cocos2d::CCPoint *v15; // x2 float v16; // s0 const cocos2d::CCPoint *v17; // x2 float v18; // s0 const cocos2d::CCPoint *v19; // x2 float v20; // s0 const cocos2d::CCPoint *v21; // x2 float v22; // s0 __int64 v23; // [xsp+60h] [xbp+60h] BYREF _BYTE v24[8]; // [xsp+68h] [xbp+68h] BYREF _BYTE v25[8]; // [xsp+70h] [xbp+70h] BYREF _BYTE v26[8]; // [xsp+78h] [xbp+78h] BYREF _BYTE v27[8]; // [xsp+80h] [xbp+80h] BYREF _BYTE v28[16]; // [xsp+88h] [xbp+88h] BYREF v4 = (const cocos2d::CCRect *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)a2 + 1328LL))(a2); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v28, v4); ObjectRadius = GameObject::getObjectRadius(a3); (*(void (__fastcall **)(__int64 *__return_ptr, GameObject *))(*(_QWORD *)a3 + 1360LL))(&v23, a3); cocos2d::CCRect::getMaxX((cocos2d::CCRect *)v28); v7 = v6; cocos2d::CCRect::getMinX((cocos2d::CCRect *)v28); v9 = v8; cocos2d::CCRect::getMaxY((cocos2d::CCRect *)v28); v11 = v10; cocos2d::CCRect::getMinY((cocos2d::CCRect *)v28); v13 = v12; if ( (unsigned __int8)cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v28, (const cocos2d::CCPoint *)&v23) ) return 1; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, v7, v11); cocos2d::ccpDistance((cocos2d *)v24, (const cocos2d::CCPoint *)&v23, v15); if ( ObjectRadius > fabsf(v16) ) return 1; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, v7, v13); cocos2d::ccpDistance((cocos2d *)v25, (const cocos2d::CCPoint *)&v23, v17); result = 1; if ( ObjectRadius <= fabsf(v18) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, v9, v13); cocos2d::ccpDistance((cocos2d *)v26, (const cocos2d::CCPoint *)&v23, v19); result = 1; if ( ObjectRadius <= fabsf(v20) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, v9, v11); cocos2d::ccpDistance((cocos2d *)v27, (const cocos2d::CCPoint *)&v23, v21); return ObjectRadius > fabsf(v22); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source