//
// GameObject::getBoxOffset from 0x770bc8 to 0x770cec (292 bytes)
//
// 4 xrefs:
// > GameObject::getObjectRect @ 0x770d74
// > GameObject::updateOrientedBox @ 0x770e98
// > GameObject::updateOrientedBox @ 0x770f64
// > ??> @ 0xa51c0
//
// 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:53:12 +0000
//
const cocos2d::CCPoint *__fastcall GameObject::getBoxOffset(cocos2d::CCNode **this)
{
const cocos2d::CCPoint *v1; // x20
int v3; // w1
const cocos2d::CCPoint *result; // x0
long double v5; // q0
cocos2d::CCNode *v6; // x0
__int64 v7; // [xsp+40h] [xbp+40h] BYREF
__int64 v8; // [xsp+48h] [xbp+48h] BYREF
__int64 v9; // [xsp+50h] [xbp+50h] BYREF
v1 = (const cocos2d::CCPoint *)(this + 89);
v3 = (unsigned __int8)cocos2d::CCPoint::equals(
(cocos2d::CCPoint *)(this + 89),
(const cocos2d::CCPoint *)&unk_155C668);
result = v1;
if ( !v3 )
{
if ( *(_BYTE *)(GameManager::sharedState(v1) + 706) || *((_BYTE *)this + 720) )
{
cocos2d::CCNode::convertToWorldSpace(&v7, (cocos2d::CCNode *)this, v1);
cocos2d::CCNode::convertToWorldSpace(&v8, (cocos2d::CCNode *)this, (const cocos2d::CCPoint *)&unk_155C668);
v6 = *(this + 27);
if ( v6 )
{
cocos2d::CCNode::convertToNodeSpace(&v9, v6, (const cocos2d::CCPoint *)&v7);
cocos2d::CCPoint::operator=(&v7, &v9);
cocos2d::CCNode::convertToNodeSpace(&v9, *(this + 27), (const cocos2d::CCPoint *)&v8);
*(__n128 *)&v5 = cocos2d::CCPoint::operator=(&v8, &v9);
}
cocos2d::CCPoint::operator-(&v9, &v7, &v8, v5);
*((_BYTE *)this + 720) = 0;
cocos2d::CCPoint::operator=((char *)this + 724, &v9);
return (const cocos2d::CCPoint *)((char *)this + 724);
}
else
{
return (const cocos2d::CCPoint *)((char *)this + 724);
}
}
return result;
}