// // cocos2d::CCDrawNode::drawCircle from 0x100046f5c to 0x1000470dc (384 bytes) // // 4 xrefs: // > GJBaseGameLayer::updateDebugDraw @ 0x10027f2e4 // > LevelEditorLayer::updateDebugDraw @ 0x10040aca0 // > LevelEditorLayer::updateDebugDraw @ 0x10040ae30 // > LevelEditorLayer::updateDebugDraw @ 0x10040afc0 // // 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 10:57:39 +0000 // __int64 __fastcall cocos2d::CCDrawNode::drawCircle( __int64 a1, float *a2, float32x2_t *a3, float32x2_t *a4, unsigned int a5, float a6, float a7) { float v14; // s0 float32x2_t *v16; // x0 float32x2_t *v17; // x24 __int64 v18; // x25 __int64 v19; // x27 float32x2_t *v20; // x25 float v21; // s0 float v22; // s11 double v23; // [xsp+8h] [xbp-78h] BYREF __float2 v24; // 0:kr00_8.8 if ( *(_BYTE *)(a1 + 377) == 1 ) { if ( (float)(*a2 + a6) < *(float *)(a1 + 396) ) return 0; if ( (float)(*a2 - a6) > *(float *)(a1 + 400) ) return 0; v14 = a2[1]; if ( (float)(v14 + a6) < *(float *)(a1 + 408) || (float)(v14 - a6) > *(float *)(a1 + 404) ) return 0; } v16 = (float32x2_t *)operator new[](8LL * a5); v17 = v16; if ( a5 ) { v18 = 8LL * a5; do { v16 = (float32x2_t *)(sub_1000262EC(v16) + 1); v18 -= 8; } while ( v18 ); v19 = 0; v20 = v17; do { v21 = 6.28318531 / (double)a5 * (double)(unsigned int)v19; v22 = *a2; v24 = __sincosf_stret(v21); sub_1000262BC((float *)&v23, v22 + (float)(a6 * v24.__cosval), a2[1] + (float)(a6 * v24.__sinval)); sub_10002630C(v20, &v23); ++v19; ++v20; } while ( a5 != v19 ); } cocos2d::CCDrawNode::drawPolygon(a1, v17, a5, a3, a4, 0, a7); operator delete[](v17); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source