// // GJBaseGameLayer::rectIntersectsCircle from 0x1001e57c0 to 0x1001e5954 (404 bytes) // // 1 xrefs: // > GJBaseGameLayer::damagingObjectsInRect @ 0x1001e5690 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool __fastcall GJBaseGameLayer::rectIntersectsCircle( GJBaseGameLayer *a1, cocos2d::CCRect a2, cocos2d::CCPoint a3, float a4) { float *v4; // x1 cocos2d::CCPoint *v5; // x2 float x; // s8 cocos2d::CCPoint *v7; // x19 float *v8; // x20 float v9; // s11 float v10; // s10 float v11; // s9 float v12; // s12 __n128 v13; // q0 __n128 v14; // q1 __n128 v15; // q0 __n128 v16; // q1 __n128 v17; // q0 __n128 v18; // q1 __n128 v19; // q0 __n128 v20; // q1 float v22; // s0 float y; // s0 cocos2d::CCPoint v24; // [xsp+0h] [xbp-60h] BYREF cocos2d::CCPoint v25; // [xsp+8h] [xbp-58h] BYREF cocos2d::CCPoint v26; // [xsp+10h] [xbp-50h] BYREF cocos2d::CCPoint v27; // [xsp+18h] [xbp-48h] BYREF x = a2.origin.x; v7 = v5; v8 = v4; v9 = sub_100022C30(v4); v10 = sub_100022C40((__int64)v8); v11 = sub_100022C48((__int64)v8); v12 = sub_100022C58((__int64)v8); if ( sub_100022C60(v8, (float *)v7) ) return 1; v13.n128_f32[0] = v9; v14.n128_f32[0] = v11; sub_100022980(v13, v14, &v27); if ( fabsf(cocos2d::ccpDistance(&v27, v7)) < x ) return 1; v15.n128_f32[0] = v9; v16.n128_f32[0] = v12; sub_100022980(v15, v16, &v26); if ( fabsf(cocos2d::ccpDistance(&v26, v7)) < x ) return 1; v17.n128_f32[0] = v10; v18.n128_f32[0] = v12; sub_100022980(v17, v18, &v25); if ( fabsf(cocos2d::ccpDistance(&v25, v7)) < x ) return 1; v19.n128_f32[0] = v10; v20.n128_f32[0] = v11; sub_100022980(v19, v20, &v24); if ( fabsf(cocos2d::ccpDistance(&v24, v7)) < x ) return 1; sub_1000229B8((__int64 *)&v27, (__int64 *)v7); v22 = v27.x; if ( v27.x <= v9 ) { if ( v27.x >= v10 ) goto LABEL_13; } else { v22 = v9; } if ( v22 < v10 ) v22 = v10; v27.x = v22; LABEL_13: y = v27.y; if ( v27.y < v12 ) { y = v12; LABEL_16: if ( y > v11 ) y = v11; v27.y = y; return cocos2d::ccpDistance(&v27, v7) < x; } if ( v27.y > v11 ) goto LABEL_16; return cocos2d::ccpDistance(&v27, v7) < x; }
GD Web Decomp Icon

GD Web Decomp

Raw Source