//
// LevelEditorLayer::updateGridLayerParent from 0x7897cc to 0x7898a4 (216 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::updateArt @ 0x7898b8
// > LevelEditorLayer::updateEditor @ 0x7a8e88
// > ??> @ 0xee540
//
// 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:26 +0000
//
__int64 __fastcall LevelEditorLayer::updateGridLayerParent(LevelEditorLayer *this)
{
__int64 v2; // x0
__int64 v3; // x20
__int64 result; // x0
void (__fastcall *v5)(__int64, __int64, _QWORD); // x21
unsigned int v6; // w0
__int64 v7; // [xsp+38h] [xbp+38h]
v2 = *((_QWORD *)this + 1552);
if ( !v2 || !*(_BYTE *)(v2 + 1078) )
{
v3 = *((_QWORD *)this + 490);
result = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 1786) + 512LL))(*((_QWORD *)this + 1786));
if ( v3 == result )
return result;
goto LABEL_4;
}
v3 = *((_QWORD *)this + 492);
result = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 1786) + 512LL))(*((_QWORD *)this + 1786));
if ( v3 != result )
{
LABEL_4:
cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 1786));
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 1786) + 528LL))(*((_QWORD *)this + 1786), 0);
v7 = *((_QWORD *)this + 1786);
v5 = *(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v3 + 464LL);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 104LL))(v7);
v5(v3, v7, v6);
return cocos2d::CCObject::release(*((cocos2d::CCObject **)this + 1786));
}
return result;
}