// // cocos2d::ccpLineIntersect from 0x100243b5c to 0x100243c28 (204 bytes) // // 2 xrefs: // > cocos2d::ccpIntersectPoint @ 0x100243c50 // > cocos2d::CCProgressTimer::updateRadial @ 0x10047e558 // // 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:25 +0000 // bool __fastcall cocos2d::ccpLineIntersect(float *a1, float *a2, float *a3, float *a4, float *a5, float *a6) { float v6; // s0 float v7; // s2 float v8; // s4 float v9; // s5 float v11; // s1 float v12; // s7 float v13; // s6 float v14; // s3 float v15; // s5 float v16; // s2 float v17; // s4 float v18; // s0 float v19; // s1 float v20; // s2 v6 = *a1; if ( *a1 == *a2 && a1[1] == a2[1] ) return 0; v7 = *a3; if ( *a3 == *a4 ) { v8 = a3[1]; v9 = a4[1]; if ( v8 == v9 ) return 0; } else { v9 = a4[1]; v8 = a3[1]; } v11 = *a2 - v6; v12 = a1[1]; v13 = a2[1] - v12; v14 = *a4 - v7; v15 = v9 - v8; v16 = v6 - v7; v17 = v12 - v8; v18 = (float)(v15 * v11) - (float)(v14 * v13); *a5 = (float)(v14 * v17) - (float)(v15 * v16); v19 = (float)(v11 * v17) - (float)(v13 * v16); *a6 = v19; v20 = *a5; if ( v18 == 0.0 ) { return v19 == 0.0 || v20 == 0.0; } else { *a5 = v20 / v18; *a6 = *a6 / v18; return 1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source