// // cocos2d::CCDrawNode::drawCircle from 0xd4dc00 to 0xd4dd84 (388 bytes) // // 5 xrefs: // > LevelEditorLayer::updateDebugDraw @ 0x7bfca4 // > LevelEditorLayer::updateDebugDraw @ 0x7bfdd0 // > LevelEditorLayer::updateDebugDraw @ 0x7bfefc // > GJBaseGameLayer::updateDebugDraw @ 0x99bc8c // > @ 0x104890 // // 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:39 +0000 // __int64 __fastcall cocos2d::CCDrawNode::drawCircle( _BYTE *a1, cocos2d::CCPoint *a2, float *a3, float *a4, unsigned int a5, float a6, float a7) { __int64 v14; // x19 __int64 v15; // x0 float *v16; // x24 cocos2d::CCPoint *v17; // x21 cocos2d::CCPoint *v18; // x0 float *v19; // x19 unsigned int v20; // w28 double v21; // d8 float v22; // s12 float v23; // s0 float *v24; // x0 __int64 result; // x0 float v26; // [xsp+90h] [xbp+90h] BYREF if ( !a1[377] || (result = (unsigned __int8)cocos2d::CCDrawNode::is_circle_on_screen( (cocos2d::CCDrawNode *)a1, (const cocos2d::CCRect *)(a1 + 380), a2, a6), (_BYTE)result) ) { v14 = a5 - 1LL; v15 = operator new[](8LL * a5); v16 = (float *)v15; if ( a5 ) { v17 = (cocos2d::CCPoint *)v15; do { v18 = v17; --v14; v17 = (cocos2d::CCPoint *)((char *)v17 + 8); cocos2d::CCPoint::CCPoint(v18); } while ( v14 != -1 ); } if ( a5 ) { v19 = v16; v20 = 0; do { v21 = (double)v20++; *(float *)&v21 = v21 * (6.28318531 / (double)a5); v22 = cosf(*(float *)&v21); v23 = sinf(*(float *)&v21); cocos2d::CCPoint::CCPoint(&v26, *(float *)a2 + (float)(v22 * a6), *((float *)a2 + 1) + (float)(v23 * a6)); v24 = v19; v19 += 2; cocos2d::CCPoint::operator=(v24, &v26); } while ( v20 != a5 ); } cocos2d::CCDrawNode::drawPolygon((__int64)a1, v16, a5, a3, a4, 0, a7); operator delete[](v16); return (__int64)&dword_0 + 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source