//
// DrawGridLayer::init from 0x664d10 to 0x664ea4 (404 bytes)
//
// 2 xrefs:
// > DrawGridLayer::create @ 0x664fe4
// > ??> @ 0x79380
//
// 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 DrawGridLayer::init(DrawGridLayer *a1, cocos2d::CCNode *a2, LevelEditorLayer *a3)
{
_BOOL8 v4; // x0
bool v5; // w22
cocos2d::CCArray *v7; // x0
cocos2d::CCArray *v8; // x0
cocos2d::CCArray *v9; // x0
cocos2d::CCArray *v10; // x0
cocos2d::CCArray *v11; // x0
std::array *v12; // x23
cocos2d::CCPoint *v13; // x19
std::array *v14; // x23
cocos2d::CCPoint *v15; // x19
std::array *v16; // x23
cocos2d::CCPoint *v17; // x19
v4 = cocos2d::CCLayer::init(a1);
v5 = v4;
if ( !v4 )
return 0;
a1->m_objectLayer = a2;
a1->m_editorLayer = a3;
a1->m_timeMarkers = nullptr;
v7 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)v4);
a1->m_effectGameObjects = v7;
cocos2d::CCObject::retain(v7);
v9 = (cocos2d::CCArray *)cocos2d::CCArray::create(v8);
a1->m_guideObjects = v9;
cocos2d::CCObject::retain(v9);
v11 = (cocos2d::CCArray *)cocos2d::CCArray::create(v10);
a1->m_speedObjects = v11;
cocos2d::CCObject::retain(v11);
a1->m_slowSpeed = 251.16;
a1->m_normalSpeed = 311.58;
a1->m_currentSpeed = 311.58;
a1->m_fastSpeed = 387.42;
a1->m_fasterSpeed = 468.0;
a1->m_fastestSpeed = 576.0;
v12 = (std::array *)operator new[](0xC80u);
v13 = (cocos2d::CCPoint *)v12;
do
cocos2d::CCPoint::CCPoint(v13++);
while ( v13 != (cocos2d::CCPoint *)&v12[1] );
a1->m_pointArray1 = v12;
memset(v12, 0, sizeof(std::array));
v14 = (std::array *)operator new[](0xC80u);
v15 = (cocos2d::CCPoint *)v14;
do
cocos2d::CCPoint::CCPoint(v15++);
while ( v15 != (cocos2d::CCPoint *)&v14[1] );
a1->m_pointArray2 = v14;
memset(v14, 0, sizeof(std::array));
v16 = (std::array *)operator new[](0xC80u);
v17 = (cocos2d::CCPoint *)v16;
do
cocos2d::CCPoint::CCPoint(v17++);
while ( v17 != (cocos2d::CCPoint *)&v16[1] );
a1->m_pointArray3 = v16;
memset(v16, 0, sizeof(std::array));
return v5;
}