//
// GJBaseGameLayer::reparentObject from 0x10028d774 to 0x10028d820 (172 bytes)
//
// 12 xrefs:
// > GJBaseGameLayer::updateShaderLayer @ 0x10028d058
// > GJBaseGameLayer::updateShaderLayer @ 0x10028d0e8
// > GJBaseGameLayer::updateShaderLayer @ 0x10028d168
// > GJBaseGameLayer::updateShaderLayer @ 0x10028d188
// > GJBaseGameLayer::updateShaderLayer @ 0x10028d194
// > GJBaseGameLayer::updateShaderLayer @ 0x10028d1b0
// > GJBaseGameLayer::updateShaderLayer @ 0x10028d1cc
// > GJBaseGameLayer::updateShaderLayer @ 0x10028d1e8
// > GJBaseGameLayer::updateShaderLayer @ 0x10028d250
// > GJBaseGameLayer::updateShaderLayer @ 0x10028d260
// > GJBaseGameLayer::updateShaderLayer @ 0x10028d2b8
// > GJBaseGameLayer::updateShaderLayer @ 0x10028d450
//
// 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 11:02:01 +0000
//
_DWORD *__fastcall GJBaseGameLayer::reparentObject(__int64 a1, _DWORD *a2, _DWORD *a3)
{
_DWORD *result; // x0
__int64 v6; // x0
result = (_DWORD *)(*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a2 + 512LL))(a2);
if ( result != a3 )
{
result = (_DWORD *)(*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)result != -9999 )
{
cocos2d::CCObject::retain((__int64)a2);
(*(void (__fastcall **)(_DWORD *, _QWORD))(*(_QWORD *)a2 + 528LL))(a2, 0);
if ( a3 )
{
v6 = (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)a2 + 104LL))(a2);
(*(void (__fastcall **)(_DWORD *, _DWORD *, __int64))(*(_QWORD *)a3 + 464LL))(a3, a2, v6);
}
return cocos2d::CCObject::release(a2);
}
}
return result;
}