// // GJBaseGameLayer::rectIntersectsCircle from 0x99cca0 to 0x99ce8c (492 bytes) // // 2 xrefs: // > GJBaseGameLayer::damagingObjectsInRect @ 0x99d320 // > @ 0x44890 // // 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::rectIntersectsCircle( float a1, __int64 a2, cocos2d::CCRect *a3, const cocos2d::CCPoint *a4) { float v7; // s0 float v8; // s8 float v9; // s0 float v10; // s12 float v11; // s0 float v12; // s10 float v13; // s0 float v14; // s9 const cocos2d::CCPoint *v16; // x2 float v17; // s0 const cocos2d::CCPoint *v18; // x2 float v19; // s0 const cocos2d::CCPoint *v20; // x2 float v21; // s0 const cocos2d::CCPoint *v22; // x2 float v23; // s0 const cocos2d::CCPoint *v24; // x2 float v25; // s0 float v26; // s0 float v27; // s0 _BYTE v28[8]; // [xsp+58h] [xbp+58h] BYREF _BYTE v29[8]; // [xsp+60h] [xbp+60h] BYREF _BYTE v30[8]; // [xsp+68h] [xbp+68h] BYREF float v31; // [xsp+70h] [xbp+70h] BYREF float v32; // [xsp+74h] [xbp+74h] cocos2d::CCRect::getMaxX(a3); v8 = v7; cocos2d::CCRect::getMinX(a3); v10 = v9; cocos2d::CCRect::getMaxY(a3); v12 = v11; cocos2d::CCRect::getMinY(a3); v14 = v13; if ( (unsigned __int8)cocos2d::CCRect::containsPoint(a3, a4) ) return 1; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v28, v8, v12); cocos2d::ccpDistance((cocos2d *)v28, a4, v16); if ( a1 > fabsf(v17) ) return 1; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v29, v8, v14); cocos2d::ccpDistance((cocos2d *)v29, a4, v18); if ( a1 > fabsf(v19) ) return 1; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, v10, v14); cocos2d::ccpDistance((cocos2d *)v30, a4, v20); if ( a1 > fabsf(v21) ) return 1; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, v10, v12); cocos2d::ccpDistance((cocos2d *)&v31, a4, v22); if ( a1 > fabsf(v23) ) return 1; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, a4); v25 = v31; if ( v8 < v31 ) { v25 = v8; v31 = v8; } if ( v10 > v25 ) v31 = v10; v26 = v32; if ( v14 > v32 ) { v26 = v14; v32 = v14; } if ( v12 < v26 ) v32 = v12; cocos2d::ccpDistance((cocos2d *)&v31, a4, v24); return a1 > v27; }
GD Web Decomp Icon

GD Web Decomp

Raw Source