//
// GJBaseGameLayer::reparentObject from 0x470c5c to 0x470cb6 (90 bytes)
//
// 11 xrefs:
// > GJBaseGameLayer::updateShaderLayer @ 0x472726
// > GJBaseGameLayer::updateShaderLayer @ 0x472732
// > GJBaseGameLayer::updateShaderLayer @ 0x47277e
// > GJBaseGameLayer::updateShaderLayer @ 0x4727aa
// > GJBaseGameLayer::updateShaderLayer @ 0x4727bc
// > GJBaseGameLayer::updateShaderLayer @ 0x4727ea
// > GJBaseGameLayer::updateShaderLayer @ 0x4727f8
// > GJBaseGameLayer::updateShaderLayer @ 0x47281a
// > GJBaseGameLayer::updateShaderLayer @ 0x4729e6
// > GJBaseGameLayer::updateShaderLayer @ 0x472a96
// > GJBaseGameLayer::updateShaderLayer @ 0x472aa8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJBaseGameLayer::reparentObject(GJBaseGameLayer *a1, cocos2d::CCNode *a2, cocos2d::CCNode *a3)
{
void (__fastcall *addChild_0)(cocos2d::CCNode *__hidden, cocos2d::CCNode *, int); // r6
int v6; // r0
if ( a3 != a2->getParent(a2) && a2->getTag(a2) != -9999 )
{
cocos2d::CCObject::retain(a2);
a2->removeFromParentAndCleanup(a2, 0);
if ( a3 )
{
addChild_0 = a3->addChild_0;
v6 = a2->getZOrder(a2);
addChild_0(a3, a2, v6);
}
cocos2d::CCObject::release(a2);
}
}