//
// cocos2d::ccpSegmentIntersect from 0xd8fe6c to 0xd8fefc (144 bytes)
//
// 1 xrefs:
// > ??> @ 0xb7b20
//
// 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 13:08:18 +0000
//
__int64 __fastcall cocos2d::ccpSegmentIntersect(
cocos2d *this,
const cocos2d::CCPoint *a2,
const cocos2d::CCPoint *a3,
const cocos2d::CCPoint *a4,
const cocos2d::CCPoint *a5)
{
__int64 result; // x0
float v6; // [xsp+20h] [xbp+20h] BYREF
float v7; // [xsp+24h] [xbp+24h] BYREF
cocos2d::ccpLineIntersect(this, a2, a3, a4, (const cocos2d::CCPoint *)&v6, &v7, _stack_chk_guard);
result = (unsigned __int8)result;
if ( (_BYTE)result )
{
result = (v6 >= 0.0) & (unsigned __int8)(v6 <= 1.0);
if ( v6 >= 0.0 && v6 <= 1.0 )
return (v7 >= 0.0) & (unsigned __int8)(v7 <= 1.0);
}
return result;
}