//
// GJBaseGameLayer::prepareTransformParent from 0x862884 to 0x8628ec (104 bytes)
//
// 6 xrefs:
// > GJBaseGameLayer::rotateObjects @ 0x862ae8
// > GJBaseGameLayer::processRotationActions @ 0x86e674
// > GJBaseGameLayer::processTransformActions @ 0x86eedc
// > GJBaseGameLayer::rotateAreaObjects @ 0x871ba8
// > GJBaseGameLayer::transformAreaObjects @ 0x872d78
// > ??> @ 0x5f460
//
// 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; // w20
cocos2d::CCNode *m_areaRotateNode; // x2
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);
}