//
// GJBaseGameLayer::prepareTransformParent from 0x9a5e10 to 0x9a5e78 (104 bytes)
//
// 6 xrefs:
// > GJBaseGameLayer::rotateObjects @ 0x9a606c
// > GJBaseGameLayer::rotateAreaObjects @ 0x9b4ec8
// > GJBaseGameLayer::transformAreaObjects @ 0x9b60c8
// > GJBaseGameLayer::processRotationActions @ 0x9bff98
// > GJBaseGameLayer::processTransformActions @ 0x9c08d8
// > ??> @ 0x821e0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:58:10 +0000
//
__int64 __fastcall GJBaseGameLayer::prepareTransformParent(cocos2d::CCObject **this, unsigned __int8 a2)
{
int v3; // w20
__int64 v4; // x2
v3 = a2;
cocos2d::CCObject::retain(*(this + 259));
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 259) + 528LL))(*(this + 259), 0);
if ( v3 )
v4 = (__int64)*(this + 258);
else
v4 = (__int64)*(this + 255);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 456LL))(v4, *(this + 259));
return cocos2d::CCObject::release(*(this + 259));
}