//
// DrawGridLayer::init from 0x78fc70 to 0x78fe10 (416 bytes)
//
// 2 xrefs:
// > DrawGridLayer::create @ 0x78ff00
// > ??> @ 0xa2208
//
// 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 12:53:28 +0000
//
unsigned __int64 __fastcall DrawGridLayer::init(DrawGridLayer *this, cocos2d::CCNode *a2, LevelEditorLayer *a3)
{
unsigned __int64 result; // x0
unsigned int v5; // w22
cocos2d::CCObject *v6; // x0
cocos2d::CCArray *v7; // x0
cocos2d::CCObject *v8; // x0
cocos2d::CCArray *v9; // x0
cocos2d::CCObject *v10; // x0
cocos2d::CCPoint *v11; // x23
cocos2d::CCPoint *v12; // x19
cocos2d::CCPoint *v13; // x23
cocos2d::CCPoint *v14; // x19
cocos2d::CCPoint *v15; // x23
cocos2d::CCPoint *v16; // x19
result = (unsigned __int8)cocos2d::CCLayer::init(this);
v5 = (unsigned __int8)result;
if ( !(_BYTE)result )
return (unsigned __int8)result;
*((_QWORD *)this + 66) = a2;
*((_QWORD *)this + 62) = a3;
*((_QWORD *)this + 67) = 0;
v6 = (cocos2d::CCObject *)cocos2d::CCArray::create((cocos2d::CCArray *)result);
*((_QWORD *)this + 68) = v6;
v7 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v6);
v8 = (cocos2d::CCObject *)cocos2d::CCArray::create(v7);
*((_QWORD *)this + 69) = v8;
v9 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v8);
v10 = (cocos2d::CCObject *)cocos2d::CCArray::create(v9);
*((_QWORD *)this + 70) = v10;
cocos2d::CCObject::retain(v10);
*((_DWORD *)this + 145) = 1132144891;
*((_DWORD *)this + 146) = 1134283329;
*((_DWORD *)this + 144) = 1134283329;
*((_DWORD *)this + 147) = 1136768455;
*((_DWORD *)this + 148) = 1139408901;
*((_DWORD *)this + 149) = 1141899267;
v11 = (cocos2d::CCPoint *)operator new[](0x2580u);
v12 = v11;
do
{
cocos2d::CCPoint::CCPoint(v12);
v12 = (cocos2d::CCPoint *)((char *)v12 + 8);
}
while ( v12 != (cocos2d::CCPoint *)((char *)v11 + 9600) );
*((_QWORD *)this + 51) = v11;
memset(v11, 0, 0x2580u);
v13 = (cocos2d::CCPoint *)operator new[](0x2580u);
v14 = v13;
do
{
cocos2d::CCPoint::CCPoint(v14);
v14 = (cocos2d::CCPoint *)((char *)v14 + 8);
}
while ( v14 != (cocos2d::CCPoint *)((char *)v13 + 9600) );
*((_QWORD *)this + 52) = v13;
memset(v13, 0, 0x2580u);
v15 = (cocos2d::CCPoint *)operator new[](0x2580u);
v16 = v15;
do
{
cocos2d::CCPoint::CCPoint(v16);
v16 = (cocos2d::CCPoint *)((char *)v16 + 8);
}
while ( v16 != (cocos2d::CCPoint *)((char *)v15 + 9600) );
*((_QWORD *)this + 53) = v15;
memset(v15, 0, 0x2580u);
return v5;
}