//
// GJBaseGameLayer::prepareTransformParent from 0x4747a0 to 0x4747e0 (64 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::rotateObjects @ 0x4748e0
// > GJBaseGameLayer::transformAreaObjects @ 0x47d0c0
// > GJBaseGameLayer::rotateAreaObjects @ 0x47d764
// > GJBaseGameLayer::processRotationActions @ 0x47f672
// > GJBaseGameLayer::processTransformActions @ 0x47fce2
//
// 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::prepareTransformParent(GJBaseGameLayer *a1, bool a2)
{
_BOOL4 v3; // r5
cocos2d::CCNode *m_areaRotateNode; // r0
v3 = a2;
cocos2d::CCObject::retain(a1->m_areaTransformNode2);
a1->m_areaTransformNode2->removeFromParentAndCleanup(a1->m_areaTransformNode2, 0);
if ( v3 )
m_areaRotateNode = a1->m_areaRotateNode;
else
m_areaRotateNode = a1->m_areaTransformNode;
m_areaRotateNode->addChild(m_areaRotateNode, a1->m_areaTransformNode2);
cocos2d::CCObject::release(a1->m_areaTransformNode2);
}