//
// LevelEditorLayer::updateGridLayerParent from 0x45fd48 to 0x45fdb0 (104 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::updateArt @ 0x45fdb4
// > LevelEditorLayer::updateEditor @ 0x47325a
//
// 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:48:52 +0000
//
int __fastcall LevelEditorLayer::updateGridLayerParent(LevelEditorLayer *this)
{
int v2; // r3
int v3; // r6
int result; // r0
int v5; // r7
void (__fastcall *v6)(int, int, int); // r8
int v7; // r0
v2 = *((_DWORD *)this + 2678);
if ( v2 && *(_BYTE *)(v2 + 950) )
v3 = *((_DWORD *)this + 611);
else
v3 = *((_DWORD *)this + 609);
result = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 2970) + 256))(*((_DWORD *)this + 2970));
if ( v3 != result )
{
cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 2970));
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 2970) + 264))(*((_DWORD *)this + 2970), 0);
v5 = *((_DWORD *)this + 2970);
v6 = *(void (__fastcall **)(int, int, int))(*(_DWORD *)v3 + 232);
v7 = (*(int (__fastcall **)(int))(*(_DWORD *)v5 + 52))(v5);
v6(v3, v5, v7);
return cocos2d::CCObject::release(*((cocos2d::CCObject **)this + 2970));
}
return result;
}