//
// OBB2D::getBoundingRect from 0x6af090 to 0x6af190 (256 bytes)
//
// 5 xrefs:
// > GameObject::getOuterObjectRect @ 0x771020
// > LevelEditorLayer::getObjectRect @ 0x789eb0
// > GJBaseGameLayer::preUpdateVisibility @ 0x9d9ee8
// > GJBaseGameLayer::preUpdateVisibility @ 0x9d9f48
// > ??> @ 0x91d20
//
// 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:50:50 +0000
//
cocos2d::CCRect *__usercall OBB2D::getBoundingRect@(OBB2D *this@, cocos2d::CCRect *a2@)
{
float v2; // s8
const cocos2d::CCPoint *v3; // x21
const cocos2d::CCPoint *v4; // x19
float v5; // s9
float v7; // s11
float v8; // s10
float v10; // [xsp+60h] [xbp+60h] BYREF
float v11; // [xsp+64h] [xbp+64h]
v2 = 0.0;
v3 = (OBB2D *)((char *)this + 348);
v4 = (OBB2D *)((char *)this + 316);
v5 = 0.0;
v7 = 0.0;
v8 = 0.0;
do
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, v4);
if ( v10 > v7 )
v7 = v10;
if ( v10 < v8 || v8 == 0.0 )
v8 = v10;
if ( v11 > v2 )
v2 = v11;
if ( v11 < v5 || v5 == 0.0 )
v5 = v11;
v4 = (const cocos2d::CCPoint *)((char *)v4 + 8);
}
while ( v4 != v3 );
cocos2d::CCRect::CCRect(a2, v8, v5, v7 - v8, v2 - v5);
return a2;
}