//
// OBB2D::getBoundingRect from 0x3d7a0c to 0x3d7ae2 (214 bytes)
//
// 4 xrefs:
// > GameObject::getOuterObjectRect @ 0x44e7f8
// > LevelEditorLayer::getObjectRect @ 0x4601c2
// > GJBaseGameLayer::preUpdateVisibility @ 0x5ae74c
// > GJBaseGameLayer::preUpdateVisibility @ 0x5ae7b2
//
// 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:46:45 +0000
//
OBB2D *__fastcall OBB2D::getBoundingRect(OBB2D *this, int a2)
{
const cocos2d::CCPoint *v2; // r6
const cocos2d::CCPoint *v3; // r5
float v5; // s16
float v6; // s18
float v7; // s17
float i; // s19
float v9; // s14
float v10; // s15
float v12; // [sp+Ch] [bp-Ch] BYREF
float v13; // [sp+10h] [bp-8h]
v2 = (const cocos2d::CCPoint *)(a2 + 264);
v3 = (const cocos2d::CCPoint *)(a2 + 296);
v5 = 0.0;
v6 = 0.0;
v7 = 0.0;
for ( i = 0.0; ; i = v9 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, v2);
v9 = v12;
if ( v12 > v7 )
v7 = v12;
if ( v12 >= i && i != 0.0 )
v9 = i;
v10 = v13;
if ( v13 > v5 )
v5 = v13;
if ( v13 >= v6 && v6 != 0.0 )
v10 = v6;
v2 = (const cocos2d::CCPoint *)((char *)v2 + 8);
if ( v2 == v3 )
break;
v6 = v10;
}
cocos2d::CCRect::CCRect(this, v9, v10, v7 - v9, v5 - v10);
return this;
}