//
// GameObject::updateOrientedBox from 0x770e40 to 0x770fec (428 bytes)
//
// 49 xrefs:
// > ??> @ 0xcb170
// > ??> @ 0x14338c0
// > ??> @ 0x14346b0
// > ??> @ 0x1434e90
// > ??> @ 0x14356a0
// > ??> @ 0x1443a00
// > ??> @ 0x1444210
// > ??> @ 0x1444a20
// > ??> @ 0x1445230
// > ??> @ 0x1445a40
// > ??> @ 0x1446250
// > ??> @ 0x1446a60
// > ??> @ 0x1447270
// > ??> @ 0x1447a50
// > ??> @ 0x1448260
// > ??> @ 0x1448a70
// > ??> @ 0x1449280
// > ??> @ 0x1449a90
// > ??> @ 0x144a2e0
// > ??> @ 0x144aaf0
// > ??> @ 0x144b300
// > ??> @ 0x144bb10
// > ??> @ 0x144c320
// > ??> @ 0x144cb40
// > ??> @ 0x144d350
// > ??> @ 0x144db60
// > ??> @ 0x144e370
// > ??> @ 0x144eb80
// > ??> @ 0x144f390
// > ??> @ 0x144fba0
// > ??> @ 0x14503b0
// > ??> @ 0x1450bc0
// > ??> @ 0x14513d0
// > ??> @ 0x1451be0
// > ??> @ 0x14523f0
// > ??> @ 0x1452c00
// > ??> @ 0x1453410
// > ??> @ 0x1453c20
// > ??> @ 0x1454430
// > ??> @ 0x1454c40
// > ??> @ 0x1455450
// > ??> @ 0x1455c60
// > ??> @ 0x1456470
// > ??> @ 0x1456c80
// > ??> @ 0x1457490
// > ??> @ 0x1457ca0
// > ??> @ 0x14584b0
// > ??> @ 0x1458cc0
// > ??> @ 0x14594f0
//
// 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:13 +0000
//
__int64 __fastcall GameObject::updateOrientedBox(cocos2d::CCNode **this)
{
OBB2D *v2; // x23
float v3; // s8
float v4; // s0
float v6; // s8
float v7; // s0
__int64 *v8; // x0
float v9; // [xsp+40h] [xbp+40h]
float v10; // [xsp+40h] [xbp+40h]
__int64 v11; // [xsp+58h] [xbp+58h] BYREF
__int64 v12; // [xsp+60h] [xbp+60h] BYREF
if ( *(this + 92) )
{
if ( *((_BYTE *)this + 865) )
{
(*((void (__fastcall **)(__int64 *__return_ptr))*this + 170))(&v12);
GameObject::getBoxOffset(this);
cocos2d::CCPoint::operator+(&v11, &v12);
v2 = *(this + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, (const cocos2d::CCPoint *)&v11);
v3 = (float)(*((float *)this + 191) * *((float *)this + 227)) * *((float *)this + 288);
v9 = (float)(*((float *)this + 192) * *((float *)this + 228)) * *((float *)this + 289);
v4 = (*((float (__fastcall **)(cocos2d::CCNode **))*this + 197))(this);
OBB2D::calculateWithCenter(v2, (__int64)&v12, v3, v9, (float)-v4 * 0.017453);
*((_BYTE *)this + 865) = 0;
}
}
else
{
(*((void (__fastcall **)(__int64 *__return_ptr))*this + 170))(&v12);
GameObject::getBoxOffset(this);
cocos2d::CCPoint::operator+(&v11, &v12);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, (const cocos2d::CCPoint *)&v11);
v6 = (float)(*((float *)this + 191) * *((float *)this + 227)) * *((float *)this + 288);
v10 = (float)(*((float *)this + 192) * *((float *)this + 228)) * *((float *)this + 289);
v7 = (*((float (__fastcall **)(cocos2d::CCNode **))*this + 197))(this);
v8 = OBB2D::create((const cocos2d::CCPoint *)&v12, v6, v10, (float)-v7 * 0.017453);
*(this + 92) = (cocos2d::CCNode *)v8;
cocos2d::CCObject::retain((cocos2d::CCObject *)v8);
}
return _stack_chk_guard;
}