//
// cocos2d::CCDrawNode::drawSegmentEx from 0xd4c848 to 0xd4c8dc (148 bytes)
//
// 5 xrefs:
// > drawTrace @ 0x7b6734
// > cocos2d::CCDrawNode::drawCubicBezier @ 0xd4ca7c
// > cocos2d::CCDrawNode::drawCubicBezierDashed @ 0xd4cfb0
// > cocos2d::CCDrawNode::drawSegment @ 0xd4d224
// > ??> @ 0xb3e30
//
// 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:07:38 +0000
//
__int64 __fastcall cocos2d::CCDrawNode::drawSegmentEx(
cocos2d::CCDrawNode *this,
cocos2d::CCPoint *a2,
cocos2d::CCPoint *a3,
float *a4,
unsigned __int8 a5,
unsigned __int8 a6,
float a7)
{
bool is_segment_on_screen; // w0
unsigned __int8 v13; // [xsp+30h] [xbp+30h]
unsigned __int8 v14; // [xsp+38h] [xbp+38h]
float v15; // [xsp+40h] [xbp+40h]
if ( !*((_BYTE *)this + 377) )
return sub_D4BE18((__int64)this, (float *)a2, (float *)a3, a4, a5, a6, a7);
v13 = a6;
v14 = a5;
v15 = a7;
is_segment_on_screen = cocos2d::CCDrawNode::is_segment_on_screen(
this,
(cocos2d::CCDrawNode *)((char *)this + 380),
a2,
a3);
a5 = v14;
a7 = v15;
a6 = v13;
if ( is_segment_on_screen )
return sub_D4BE18((__int64)this, (float *)a2, (float *)a3, a4, a5, a6, a7);
else
return 0;
}