//
// GJBaseGameLayer::prepareTransformParent from 0x1001f6c60 to 0x1001f6cc4 (100 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::transformAreaObjects @ 0x1001f68a4
// > GJBaseGameLayer::rotateAreaObjects @ 0x1001f6db0
// > GJBaseGameLayer::processTransformActions @ 0x1001f7924
// > GJBaseGameLayer::processRotationActions @ 0x1001f8194
// > GJBaseGameLayer::rotateObjects @ 0x1001f8f84
//
// 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 __fastcall GJBaseGameLayer::prepareTransformParent(GJBaseGameLayer *a1, bool a2)
{
_BOOL4 v2; // w19
__int64 v4; // x8
v2 = a2;
cocos2d::CCObject::retain(a1->m_areaTransformNode2);
((void (__fastcall *)(cocos2d::CCNode *, _QWORD))a1->m_areaTransformNode2->removeFromParentAndCleanup)(
a1->m_areaTransformNode2,
0);
v4 = 2016;
if ( v2 )
v4 = 2040;
(*(void (__fastcall **)(_QWORD, cocos2d::CCNode *))(**(_QWORD **)((char *)&a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ v4)
+ 440LL))(
*(GJBaseGameLayer_vtbl **)((char *)&a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ v4),
a1->m_areaTransformNode2);
cocos2d::CCObject::release(a1->m_areaTransformNode2);
}