// // cocos2d::CCDrawNode::drawCircle from 0x1800122c0 to 0x1800124c7 (519 bytes) // // 2 xrefs: // > @ 0x1801438a8 // > @ 0x1801ae3a4 // // 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 // // Hidden C++ exception states: #wind=1 char __fastcall cocos2d::CCDrawNode::drawCircle( cocos2d::CCDrawNode *this, const struct cocos2d::CCPoint *a2, float a3, const struct cocos2d::_ccColor4F *a4, float a5, const struct cocos2d::_ccColor4F *a6, unsigned int a7) { float *p_y; // rsi float v12; // xmm2_4 unsigned int v14; // r15d __int64 v15; // rbx cocos2d::CCSize *v16; // rax cocos2d::CCSize *v17; // r14 cocos2d::CCSize *v18; // rdi int v19; // ebx cocos2d::CCSize *v20; // rdi float v21; // xmm6_4 float v22; // xmm7_4 float v23; // xmm0_4 float *v24; // rax __int64 v25; // [rsp+C0h] [rbp+8h] BYREF p_y = &a2->y; if ( this->m_bUseArea ) { v12 = *p_y; if ( this->m_fMinAreaX > (float)(a2->x + a3) || (float)(a2->x - a3) > this->m_fMaxAreaX || this->m_fMinAreaY > (float)(v12 + a3) || (float)(v12 - a3) > this->m_fMaxAreaY ) { return 0; } } v14 = a7; v15 = a7; v25 = a7; v16 = (cocos2d::CCSize *)operator new(saturated_mul(a7, 8u)); v17 = v16; if ( v16 ) { v18 = v16; if ( v14 ) { do { cocos2d::CCSize::CCSize(v18++); --v15; } while ( v15 ); p_y = &a2->y; } } else { v17 = nullptr; } v19 = 0; if ( v14 ) { v20 = v17; do { v21 = (double)v19 * (6.283185307179586 / (double)(int)v14); v22 = (float)(cosf(v21) * a3) + a2->x; v23 = (float)(sinf(v21) * a3) + *p_y; v24 = kmVec2Fill((float *)&v25, v22, v23); cocos2d::CCSize::operator=(v20, v24); ++v19; ++v20; } while ( v19 < v14 ); } cocos2d::CCDrawNode::drawPolygon(this, v17, v14, a4, LODWORD(a5), a6, 0); j_j_free_0(v17); return 1; }