//
// DrawGridLayer::init from 0x1000d6d00 to 0x1000d6e66 (358 bytes)
//
// 1 xrefs:
// > DrawGridLayer::create @ 0x1000abb2f
//
// This function is hookable on this platform (idp: pc, 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:20:55 +0000
//
__int64 __fastcall DrawGridLayer::init(__int64 a1, __int64 a2, __int64 a3)
{
__int64 result; // rax
unsigned int v6; // r12d
__int64 v7; // rax
__int64 v8; // rdi
__int64 v9; // rax
__int64 v10; // rdi
__int64 v11; // rax
char *v12; // r14
__int64 i; // r15
char *v14; // r14
__int64 j; // r15
char *v16; // r14
__int64 k; // r15
result = cocos2d::CCLayer::init();
if ( (_BYTE)result )
{
v6 = result;
*(_QWORD *)(a1 + 528) = a2;
*(_QWORD *)(a1 + 496) = a3;
*(_QWORD *)(a1 + 536) = 0;
v7 = sub_1007FE900(a1);
*(_QWORD *)(a1 + 544) = v7;
v8 = v7;
cocos2d::CCObject::retain(v7);
v9 = sub_1007FE900(v8);
*(_QWORD *)(a1 + 552) = v9;
v10 = v9;
cocos2d::CCObject::retain(v9);
v11 = sub_1007FE900(v10);
*(_QWORD *)(a1 + 560) = v11;
cocos2d::CCObject::retain(v11);
*(_QWORD *)(a1 + 592) = 0x4410000343EA0005LL;
*(_OWORD *)(a1 + 576) = xmmword_100A04A10;
v12 = (char *)operator new[](0x2580u);
for ( i = 0; i != 9600; i += 8 )
sub_1002782A0(&v12[i]);
*(_QWORD *)(a1 + 408) = v12;
__bzero(v12, 9600);
v14 = (char *)operator new[](0x2580u);
for ( j = 0; j != 9600; j += 8 )
sub_1002782A0(&v14[j]);
*(_QWORD *)(a1 + 416) = v14;
__bzero(v14, 9600);
v16 = (char *)operator new[](0x2580u);
for ( k = 0; k != 9600; k += 8 )
sub_1002782A0(&v16[k]);
*(_QWORD *)(a1 + 424) = v16;
__bzero(v16, 9600);
return v6;
}
return result;
}