//
// GameObject::getBoxOffset from 0x44e4d8 to 0x44e58e (182 bytes)
//
// 3 xrefs:
// > GameObject::getObjectRect @ 0x44e610
// > GameObject::updateOrientedBox @ 0x44e6c2
// > GameObject::updateOrientedBox @ 0x44e74c
//
// 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:48:36 +0000
//
const cocos2d::CCPoint **__fastcall GameObject::getBoxOffset(const cocos2d::CCPoint **this)
{
char *v1; // r5
const cocos2d::CCPoint *v4; // r1
_BYTE v5[8]; // [sp+4h] [bp-20h] BYREF
_BYTE v6[8]; // [sp+Ch] [bp-18h] BYREF
_BYTE v7[8]; // [sp+14h] [bp-10h] BYREF
v1 = (char *)(this + 153);
if ( cocos2d::CCPoint::equals((cocos2d::CCPoint *)(this + 153), (const cocos2d::CCPoint *)&unk_D2B868) )
return (const cocos2d::CCPoint **)v1;
if ( *(_BYTE *)(GameManager::sharedState(nullptr) + 506) || *((_BYTE *)this + 620) )
{
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v5, (const cocos2d::CCPoint *)this);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v6, (const cocos2d::CCPoint *)this);
v4 = *(this + 49);
if ( v4 )
{
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v7, v4);
cocos2d::CCPoint::operator=(v5, v7);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v7, *(this + 49));
cocos2d::CCPoint::operator=(v6, v7);
}
cocos2d::CCPoint::operator-(v7, v5, v6);
*((_BYTE *)this + 620) = 0;
cocos2d::CCPoint::operator=(this + 156, v7);
}
return this + 156;
}