//
// GJBaseGameLayer::prepareTransformParent from 0x594288 to 0x5942c8 (64 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::rotateObjects @ 0x5943ce
// > GJBaseGameLayer::transformAreaObjects @ 0x59e232
// > GJBaseGameLayer::rotateAreaObjects @ 0x59e8da
// > GJBaseGameLayer::processRotationActions @ 0x5a33ce
// > GJBaseGameLayer::processTransformActions @ 0x5a3a60
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:53:08 +0000
//
int __fastcall GJBaseGameLayer::prepareTransformParent(cocos2d::CCObject **this, int a2)
{
int v4; // r0
cocos2d::CCObject::retain(*(this + 371));
(*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)*(this + 371) + 264))(*(this + 371), 0);
if ( a2 )
v4 = (int)*(this + 370);
else
v4 = (int)*(this + 367);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v4 + 228))(v4, *(this + 371));
return cocos2d::CCObject::release(*(this + 371));
}