// // cocos2d::CCDrawNode::drawCircle from 0x100612ea0 to 0x100613035 (405 bytes) // // 4 xrefs: // > LevelEditorLayer::updateDebugDraw @ 0x1000ffc7d // > LevelEditorLayer::updateDebugDraw @ 0x1000fff11 // > LevelEditorLayer::updateDebugDraw @ 0x10010017e // > GJBaseGameLayer::updateDebugDraw @ 0x100121ba9 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool __fastcall cocos2d::CCDrawNode::drawCircle( cocos2d::CCDrawNode *a1, const cocos2d::CCPoint *a2, float a3, const cocos2d::ccColor4F *a4, float a5, const cocos2d::ccColor4F *a6, unsigned int a7) { __int64 v8; // r14 size_t v9; // rbx __int64 v11; // r15 _QWORD *v12; // r13 __int64 v13; // r15 __m128 v14; // xmm0 void *v15; // rbx double v16; // [rsp+8h] [rbp-68h] BYREF double v17; // [rsp+10h] [rbp-60h] cocos2d::CCDrawNode *v18; // [rsp+18h] [rbp-58h] unsigned __int64 *v19; // [rsp+20h] [rbp-50h] unsigned __int64 *v20; // [rsp+28h] [rbp-48h] void *__p; // [rsp+30h] [rbp-40h] float v22; // [rsp+3Ch] [rbp-34h] float v23; // [rsp+40h] [rbp-30h] unsigned int v24; // [rsp+44h] [rbp-2Ch] if ( a1->m_bUseArea && (a1->m_fMinAreaX > (float)(a2->x + a3) || (float)(a2->x - a3) > a1->m_fMaxAreaX || a1->m_fMinAreaY > (float)(a2->y + a3) || (float)(a2->y - a3) > a1->m_fMaxAreaY) ) { return 0; } v20 = (unsigned __int64 *)a4; v23 = a5; v19 = (unsigned __int64 *)a6; v18 = a1; v8 = a7; v9 = 8LL * a7; v22 = a3; __p = operator new[](v9); v24 = a7; if ( a7 ) { v11 = 0; v12 = __p; do { sub_10028CC30((char *)__p + v11); v11 += 8; } while ( v9 != v11 ); v17 = 6.283185307179586 / (double)(int)v8; v13 = 0; do { v14 = 0; v14.f32[0] = (double)(int)v13 * v17; *(__float2 *)v14.f32 = __sincosf_stret(v14.f32[0]); sub_10028CBE0( (float *)&v16, (float)(_mm_movehdup_ps(v14).f32[0] * v22) + a2->x, (float)(v14.f32[0] * v22) + a2->y); sub_10028CC90(v12, &v16); ++v13; ++v12; } while ( v8 != v13 ); } v15 = __p; cocos2d::CCDrawNode::drawPolygon((__int64)v18, (unsigned __int64 *)__p, v24, v20, v19, 0, (__m128)LODWORD(v23)); operator delete[](v15); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source