//
// cocos2d::CCDrawNode::is_segment_on_screen from 0x1000467c8 to 0x100046864 (156 bytes)
//
// 1 xrefs:
// > cocos2d::CCDrawNode::drawSegmentEx @ 0x100046444
//
// 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 10:57:39 +0000
//
__int64 __fastcall cocos2d::CCDrawNode::is_segment_on_screen(float *a1, __int64 a2, float *a3, float *a4)
{
float v4; // s0
float v5; // s1
float v6; // s2
float v7; // s3
float v8; // s0
bool v9; // zf
bool v10; // nf
float v11; // s0
_BOOL4 v12; // w8
bool v13; // nf
float v14; // s1
bool v15; // zf
bool v16; // nf
float v17; // s1
v4 = *a3;
v5 = a3[1];
v6 = *a4;
v7 = a4[1];
if ( vabds_f32(*a3, *a4) >= vabds_f32(v5, v7) )
{
if ( v5 < a1[102] || v5 > a1[101] )
return 0;
v14 = a1[100];
if ( v4 > v14 )
{
v15 = v6 == v14;
v16 = v6 < v14;
}
else
{
v15 = 1;
v16 = 0;
}
if ( !v16 && !v15 )
return 0;
v17 = a1[99];
v12 = v4 >= v17;
v13 = v6 < v17;
}
else
{
if ( v4 < a1[99] || v4 > a1[100] )
return 0;
v8 = a1[101];
if ( v5 > v8 )
{
v9 = v7 == v8;
v10 = v7 < v8;
}
else
{
v9 = 1;
v10 = 0;
}
if ( !v10 && !v9 )
return 0;
v11 = a1[102];
v12 = v5 >= v11;
v13 = v7 < v11;
}
return !v13 || v12;
}