//
// cocos2d::ccpIntersectPoint from 0x180097670 to 0x18009771c (172 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c090c
//
// This function is hookable on this platform (idp: pc, 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:22:10 +0000
//
_DWORD *__fastcall cocos2d::ccpIntersectPoint(
_DWORD *a1,
float *a2,
float *a3,
const struct cocos2d::CCPoint *a4,
struct cocos2d::CCPoint *a5)
{
float *v8; // rdx
float *v10; // [rsp+30h] [rbp-18h] BYREF
float v11[4]; // [rsp+38h] [rbp-10h] BYREF
if ( cocos2d::ccpLineIntersect(
(cocos2d *)a2,
(const struct cocos2d::CCPoint *)a3,
a4,
a5,
(const struct cocos2d::CCPoint *)&v10,
v11,
v10) )
{
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v11);
v8 = v11;
v11[0] = (float)((float)(*a3 - *a2) * *(float *)&v10) + *a2;
v11[1] = (float)((float)(a3[1] - a2[1]) * *(float *)&v10) + a2[1];
}
else
{
v8 = (float *)&unk_1801B2A68;
}
cocos2d::cc_timeval::operator=(a1, v8);
return a1;
}