//
// GridSettingsLayer::create from 0x78e468 to 0x78e7a4 (828 bytes)
//
// 1 xrefs:
// > EditorUI::toggleWindow @ 0x488f2c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:59:39 +0000
//
int *__fastcall GridSettingsLayer::create(GridSettingsLayer *this, EditorUI *a2)
{
int *v3; // r4
int v4; // r3
int *v5; // r0
v3 = (int *)operator new(0x348u);
memset(v3, 0, 0x348u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v3);
v3[111] = 0;
v3[112] = 0;
v3[113] = 0;
*v3 = (int)&off_C86768;
*((_BYTE *)v3 + 456) = 0;
v3[66] = (int)&off_C86A10;
v3[115] = 0;
v3[67] = (int)&off_C86A48;
v3[116] = 0;
v3[68] = (int)&off_C86A54;
*((_BYTE *)v3 + 468) = 0;
v3[69] = (int)&off_C86A64;
*((_BYTE *)v3 + 469) = 0;
v3[70] = (int)&off_C86A78;
*((_BYTE *)v3 + 470) = 0;
v3[79] = (int)&off_C86A90;
*((_BYTE *)v3 + 471) = 0;
v3[83] = (int)&off_C86AD0;
v3[110] = (int)&off_C86AE0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v3 + 118));
v3[120] = 0;
v3[121] = 0;
v3[122] = 0;
v3[123] = -1;
*((_BYTE *)v3 + 496) = 0;
*((_BYTE *)v3 + 497) = 0;
v3[125] = -1;
*((_BYTE *)v3 + 504) = 0;
*((_BYTE *)v3 + 516) = 0;
v3[132] = 0;
v3[133] = 0;
*((_BYTE *)v3 + 536) = 0;
*((_BYTE *)v3 + 537) = 0;
v3[135] = 0;
v3[136] = 0;
v3[137] = 0;
*((_BYTE *)v3 + 552) = 0;
*((_BYTE *)v3 + 568) = 0;
v3[143] = 0;
v3[144] = 0;
v3[145] = 0;
v3[146] = 0;
v3[147] = 0;
v3[148] = 0;
v3[149] = 0;
v3[150] = 0;
v3[151] = 0;
v3[127] = 0;
v3[128] = 0;
v3[139] = 0;
v3[140] = 0;
v3[141] = 0;
v3[152] = 0;
v3[153] = 0;
v3[157] = (int)(v3 + 158);
v3[160] = (int)(v3 + 161);
v3[177] = 10;
v3[154] = 0;
v3[155] = 0;
v3[156] = 0;
v3[158] = 0;
v3[159] = 0;
v3[161] = 0;
v3[162] = 0;
*((_BYTE *)v3 + 652) = 0;
*((_BYTE *)v3 + 653) = 0;
v3[164] = 0;
v3[165] = 0;
v3[167] = 0;
v3[168] = 0;
v3[169] = 0;
v3[170] = 0;
v3[171] = 0;
v3[172] = 0;
v3[173] = 0;
v3[174] = 0;
*((_BYTE *)v3 + 700) = 0;
v3[176] = 0;
*v3 = (int)&off_CFA738;
v3[166] = 1065353216;
v3[66] = (int)&unk_CFAA40;
v3[67] = (int)&off_CFAA78;
v3[68] = (int)&off_CFAA84;
v3[69] = (int)&off_CFAA94;
v3[70] = (int)&off_CFAAA8;
v3[79] = (int)&off_CFAAC0;
v3[83] = (int)&off_CFAB00;
v3[178] = 0;
v3[110] = (int)&off_CFAB10;
v3[179] = 0;
v3[130] = (int)&off_CFAB34;
v3[180] = 0;
v3[181] = 0;
v3[182] = 0;
v3[131] = (int)&off_CFAB40;
v3[183] = 0;
v3[184] = 0;
v3[185] = 1065353216;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v3 + 186));
v3[188] = -1;
*((_BYTE *)v3 + 756) = 0;
*((_BYTE *)v3 + 757) = 0;
*((_BYTE *)v3 + 758) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v3 + 190));
*((_BYTE *)v3 + 768) = 0;
*((_BYTE *)v3 + 769) = 0;
*((_BYTE *)v3 + 770) = 0;
*((_BYTE *)v3 + 771) = 0;
v3[193] = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v3 + 194));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v3 + 196));
v3[198] = 1;
v3[201] = 1120403456;
*((_BYTE *)v3 + 796) = 0;
v3[207] = 0;
v3[202] = 1114636288;
v3[208] = 1;
*((_BYTE *)v3 + 836) = 0;
v3[203] = 1203982208;
v3[204] = 1203982208;
*v3 = (int)&off_CFAD38;
v3[205] = 1056964608;
v3[66] = (int)&off_CFB040;
v3[206] = 0x40000000;
v3[67] = (int)&off_CFB078;
v3[200] = 1065353216;
v3[68] = (int)&off_CFB084;
v3[69] = (int)&off_CFB094;
v3[70] = (int)&off_CFB0A8;
v3[79] = (int)&off_CFB0C0;
v3[83] = (int)&off_CFB100;
v3[110] = (int)&off_CFB110;
v3[130] = (int)&off_CFB134;
v3[131] = (int)&off_CFB140;
if ( GridSettingsLayer::init((GridSettingsLayer *)v3, this) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
}
else
{
v4 = *v3;
v5 = v3;
v3 = nullptr;
(*(void (__fastcall **)(int *))(v4 + 8))(v5);
}
return v3;
}