//
// LevelEditorLayer::updateGridLayerParent from 0x1403ef7a0 to 0x1403ef856 (182 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::updateEditor @ 0x1403f60cb
// > ??> @ 0x1408c581c
// > ??> @ 0x1408c582c
// > ??> @ 0x1409252c8
//
// 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 11:31:47 +0000
//
void __fastcall LevelEditorLayer::updateGridLayerParent(__int64 a1)
{
__int64 v1; // rax
__int64 *v3; // r14
__int64 v4; // rdi
__int64 v5; // rbx
unsigned int v6; // eax
v1 = *(_QWORD *)(a1 + 12896);
if ( v1 && *(_BYTE *)(v1 + 1126) )
v3 = *(__int64 **)(a1 + 4312);
else
v3 = *(__int64 **)(a1 + 4296);
if ( (__int64 *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 14944) + 504LL))(*(_QWORD *)(a1 + 14944)) != v3 )
{
cocos2d::CCObject::retain(*(cocos2d::CCObject **)(a1 + 14944));
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 14944) + 520LL))(*(_QWORD *)(a1 + 14944), 0);
v4 = *v3;
v5 = *(_QWORD *)(a1 + 14944);
v6 = (*(__int64 (**)(void))(*(_QWORD *)v5 + 96LL))();
(*(void (__fastcall **)(__int64 *, __int64, _QWORD))(v4 + 456))(v3, v5, v6);
cocos2d::CCObject::release(*(cocos2d::CCObject **)(a1 + 14944));
}
}