//
// GJBaseGameLayer::reparentObject from 0x100119b30 to 0x100119ba4 (116 bytes)
//
// 0 xrefs:
//
// 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 12:24:35 +0000
//
__int64 __fastcall GJBaseGameLayer::reparentObject(__int64 a1, __int64 a2, __int64 a3)
{
__int64 result; // rax
unsigned int v5; // eax
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 512LL))(a2);
if ( result != a3 )
{
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)result != -9999 )
{
cocos2d::CCObject::retain(a2);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a2 + 528LL))(a2, 0);
if ( a3 )
{
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 104LL))(a2);
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a3 + 464LL))(a3, a2, v5);
}
return cocos2d::CCObject::release(a2);
}
}
return result;
}