//
// cocos2d::ccpIntersectPoint from 0x7f6610 to 0x7f6696 (134 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::updateGroundShadows @ 0x58bfaa
// > GJBaseGameLayer::updateGroundShadows @ 0x58bfc4
// > GJBaseGameLayer::updateGroundShadows @ 0x58bfde
// > GJBaseGameLayer::updateGroundShadows @ 0x58bff4
//
// 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 12:01:10 +0000
//
cocos2d *__fastcall cocos2d::ccpIntersectPoint(
cocos2d *this,
const cocos2d::CCPoint *a2,
const cocos2d::CCPoint *a3,
const cocos2d::CCPoint *a4,
const cocos2d::CCPoint *a5)
{
cocos2d *v8; // r0
const cocos2d::CCPoint *v9; // r1
float v10; // s14
float *v12; // [sp+8h] [bp-18h]
float v13; // [sp+Ch] [bp-14h] BYREF
float v14; // [sp+10h] [bp-10h] BYREF
float v15[2]; // [sp+14h] [bp-Ch] BYREF
if ( cocos2d::ccpLineIntersect(a2, a3, a4, a5, (const cocos2d::CCPoint *)&v13, &v14, v12) )
{
cocos2d::CCPoint::CCPoint(v15);
v8 = this;
v9 = (const cocos2d::CCPoint *)v15;
v10 = *((float *)a3 + 1);
v15[0] = *(float *)a2 + (float)(v13 * (float)(*(float *)a3 - *(float *)a2));
v15[1] = *((float *)a2 + 1) + (float)(v13 * (float)(v10 - *((float *)a2 + 1)));
}
else
{
v8 = this;
v9 = (const cocos2d::CCPoint *)&unk_D2FD38;
}
cocos2d::CCPoint::CCPoint(v8, v9);
return this;
}