//
// GameObject::updateOrientedBox from 0x44e690 to 0x44e7d4 (324 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall GameObject::updateOrientedBox(int this)
{
int v1; // r4
const cocos2d::CCPoint **v2; // r0
float v3; // s17
float v4; // s16
float v5; // r0
int *v6; // r0
const cocos2d::CCPoint **BoxOffset; // r0
OBB2D *v8; // r8
float v9; // s17
float v10; // s16
float v11; // r0
_BYTE v12[8]; // [sp+Ch] [bp-14h] BYREF
_BYTE v13[8]; // [sp+14h] [bp-Ch] BYREF
v1 = this;
if ( *(_DWORD *)(this + 632) )
{
if ( *(_BYTE *)(this + 733) )
{
(*(void (__fastcall **)(_BYTE *, int))(*(_DWORD *)this + 680))(v13, this);
BoxOffset = GameObject::getBoxOffset((const cocos2d::CCPoint **)v1);
cocos2d::CCPoint::operator+(v12, v13, BoxOffset);
v8 = *(OBB2D **)(v1 + 632);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, (const cocos2d::CCPoint *)v12);
v9 = (float)(*(float *)(v1 + 648) * *(float *)(v1 + 772)) * *(float *)(v1 + 1008);
v10 = (float)(*(float *)(v1 + 652) * *(float *)(v1 + 776)) * *(float *)(v1 + 1012);
v11 = (*(float (__fastcall **)(int))(*(_DWORD *)v1 + 788))(v1);
this = OBB2D::calculateWithCenter(v8, (int)v13, v9, v10, -(float)(v11 * 0.017453));
*(_BYTE *)(v1 + 733) = 0;
}
}
else
{
(*(void (__fastcall **)(_BYTE *, int))(*(_DWORD *)this + 680))(v13, this);
v2 = GameObject::getBoxOffset((const cocos2d::CCPoint **)v1);
cocos2d::CCPoint::operator+(v12, v13, v2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, (const cocos2d::CCPoint *)v12);
v3 = (float)(*(float *)(v1 + 648) * *(float *)(v1 + 772)) * *(float *)(v1 + 1008);
v4 = (float)(*(float *)(v1 + 652) * *(float *)(v1 + 776)) * *(float *)(v1 + 1012);
v5 = (*(float (__fastcall **)(int))(*(_DWORD *)v1 + 788))(v1);
v6 = OBB2D::create((const cocos2d::CCPoint *)v13, v3, v4, -(float)(v5 * 0.017453));
*(_DWORD *)(v1 + 632) = v6;
return cocos2d::CCObject::retain((cocos2d::CCObject *)v6);
}
return this;
}