// // GJBaseGameLayer::rectIntersectsCircle from 0x100280984 to 0x100280b18 (404 bytes) // // 1 xrefs: // > GJBaseGameLayer::damagingObjectsInRect @ 0x100280854 // // 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 11:01:55 +0000 // bool __fastcall GJBaseGameLayer::rectIntersectsCircle(float a1, __int64 a2, float *a3, float32x2_t *a4) { float v7; // s11 float v8; // s10 float v9; // s9 float v10; // s12 float v12; // s0 float v13; // s0 float32x2_t v14; // [xsp+0h] [xbp-60h] BYREF float32x2_t v15; // [xsp+8h] [xbp-58h] BYREF float32x2_t v16; // [xsp+10h] [xbp-50h] BYREF float32x2_t v17; // [xsp+18h] [xbp-48h] BYREF v7 = sub_10002656C(a3); v8 = sub_1000265A0((__int64)a3); v9 = sub_1000265A8((__int64)a3); v10 = sub_1000265DC((__int64)a3); if ( sub_1000265E4(a3, (float *)a4) ) return 1; sub_1000262BC((float *)&v17, v7, v9); if ( fabsf(cocos2d::ccpDistance(&v17, a4)) < a1 ) return 1; sub_1000262BC((float *)&v16, v7, v10); if ( fabsf(cocos2d::ccpDistance(&v16, a4)) < a1 ) return 1; sub_1000262BC((float *)&v15, v8, v10); if ( fabsf(cocos2d::ccpDistance(&v15, a4)) < a1 ) return 1; sub_1000262BC((float *)&v14, v8, v9); if ( fabsf(cocos2d::ccpDistance(&v14, a4)) < a1 ) return 1; sub_1000262F4(&v17, (double *)a4); v12 = v17.f32[0]; if ( v17.f32[0] <= v7 ) { if ( v17.f32[0] >= v8 ) goto LABEL_13; } else { v12 = v7; } if ( v12 < v8 ) v12 = v8; v17.f32[0] = v12; LABEL_13: v13 = v17.f32[1]; if ( v17.f32[1] < v10 ) { v13 = v10; LABEL_16: if ( v13 > v9 ) v13 = v9; v17.f32[1] = v13; return cocos2d::ccpDistance(&v17, a4) < a1; } if ( v17.f32[1] > v9 ) goto LABEL_16; return cocos2d::ccpDistance(&v17, a4) < a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source