// // GJBaseGameLayer::objectIntersectsCircle from 0x58e158 to 0x58e29e (326 bytes) // // 1 xrefs: // > GJBaseGameLayer::playerCircleCollision @ 0x58e336 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:53:04 +0000 // bool __fastcall GJBaseGameLayer::objectIntersectsCircle(GJBaseGameLayer *this, GameObject *a2, GameObject *a3) { const cocos2d::CCRect *v4; // r0 float v5; // s16 float v6; // r10 float v7; // r8 float v8; // r7 float v9; // r9 const cocos2d::CCPoint *v10; // r2 const cocos2d::CCPoint *v11; // r2 const cocos2d::CCPoint *v12; // r2 const cocos2d::CCPoint *v13; // r2 _BYTE v15[8]; // [sp+4h] [bp-3Ch] BYREF _BYTE v16[8]; // [sp+Ch] [bp-34h] BYREF _BYTE v17[8]; // [sp+14h] [bp-2Ch] BYREF _BYTE v18[8]; // [sp+1Ch] [bp-24h] BYREF _BYTE v19[8]; // [sp+24h] [bp-1Ch] BYREF _BYTE v20[16]; // [sp+2Ch] [bp-14h] BYREF v4 = (const cocos2d::CCRect *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 664))(a2); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v20, v4); v5 = COERCE_FLOAT(GameObject::getObjectRadius(a3)); (*(void (__fastcall **)(_BYTE *, GameObject *))(*(_DWORD *)a3 + 680))(v15, a3); v6 = COERCE_FLOAT(cocos2d::CCRect::getMaxX((cocos2d::CCRect *)v20)); v7 = COERCE_FLOAT(cocos2d::CCRect::getMinX((cocos2d::CCRect *)v20)); v8 = COERCE_FLOAT(cocos2d::CCRect::getMaxY((cocos2d::CCRect *)v20)); v9 = COERCE_FLOAT(cocos2d::CCRect::getMinY((cocos2d::CCRect *)v20)); if ( cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v20, (const cocos2d::CCPoint *)v15) ) return 1; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, v6, v8); if ( fabsf(COERCE_FLOAT(cocos2d::ccpDistance((cocos2d *)v16, (const cocos2d::CCPoint *)v15, v10))) < v5 ) return 1; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, v6, v9); if ( fabsf(COERCE_FLOAT(cocos2d::ccpDistance((cocos2d *)v17, (const cocos2d::CCPoint *)v15, v11))) < v5 ) return 1; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, v7, v9); if ( fabsf(COERCE_FLOAT(cocos2d::ccpDistance((cocos2d *)v18, (const cocos2d::CCPoint *)v15, v12))) < v5 ) return 1; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, v7, v8); return fabsf(COERCE_FLOAT(cocos2d::ccpDistance((cocos2d *)v19, (const cocos2d::CCPoint *)v15, v13))) < v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source