// // cocos2d::CCDrawNode::is_segment_on_screen from 0x1800153d0 to 0x180015499 (201 bytes) // // 3 xrefs: // > cocos2d::CCDrawNode::drawSegmentEx @ 0x180014516 // > @ 0x18014cf68 // > @ 0x1801b8560 // // 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:21:23 +0000 // char __fastcall cocos2d::CCDrawNode::is_segment_on_screen( cocos2d::CCDrawNode *this, const struct cocos2d::CCRect *a2, const struct cocos2d::CCPoint *a3, const struct cocos2d::CCPoint *a4) { float v4; // xmm3_4 float v5; // xmm4_4 float v6; // xmm5_4 float v7; // xmm6_4 float v8; // xmm0_4 float v9; // xmm0_4 float v11; // xmm0_4 float v12; // xmm0_4 v4 = *((float *)a3 + 1); v5 = *(float *)a3; v6 = *((float *)a4 + 1); v7 = *(float *)a4; if ( fabs(v4 - v6) <= fabs(*(float *)a3 - *(float *)a4) ) { if ( *((float *)this + 102) <= v4 && v4 <= *((float *)this + 101) ) { v11 = *((float *)this + 100); if ( v5 <= v11 || v7 <= v11 ) { v12 = *((float *)this + 99); if ( v12 <= v5 || v12 <= v7 ) return 1; } } } else if ( *((float *)this + 99) <= v5 && v5 <= *((float *)this + 100) ) { v8 = *((float *)this + 101); if ( v4 <= v8 || v6 <= v8 ) { v9 = *((float *)this + 102); if ( v9 <= v4 || v9 <= v6 ) return 1; } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source