//
// GameObject::getObjectRect2 from 0x140197850 to 0x1401978eb (155 bytes)
//
// 47 xrefs:
// > ??> @ 0x140556848
// > ??> @ 0x140556fb8
// > ??> @ 0x14055dff0
// > ??> @ 0x14055e670
// > ??> @ 0x1405c8708
// > ??> @ 0x14060d898
// > ??> @ 0x14060e1e8
// > ??> @ 0x14060e908
// > ??> @ 0x14060f140
// > ??> @ 0x14060f7e8
// > ??> @ 0x14060feb8
// > ??> @ 0x140610570
// > ??> @ 0x140610cb8
// > ??> @ 0x140611518
// > ??> @ 0x140611c50
// > ??> @ 0x140612438
// > ??> @ 0x140612ae0
// > ??> @ 0x140613188
// > ??> @ 0x1406138f8
// > ??> @ 0x140613fa0
// > ??> @ 0x140614788
// > ??> @ 0x140614fc0
// > ??> @ 0x140615708
// > ??> @ 0x140615db0
// > ??> @ 0x1406164f8
// > ??> @ 0x140616cb8
// > ??> @ 0x140617360
// > ??> @ 0x140617a08
// > ??> @ 0x140618178
// > ??> @ 0x140618820
// > ??> @ 0x140618f68
// > ??> @ 0x140619a08
// > ??> @ 0x14061a0b0
// > ??> @ 0x14061a758
// > ??> @ 0x14061ae78
// > ??> @ 0x14061b520
// > ??> @ 0x14061bc68
// > ??> @ 0x14061c400
// > ??> @ 0x14061caa8
// > ??> @ 0x14061d150
// > ??> @ 0x14061d7f8
// > ??> @ 0x14061dea0
// > ??> @ 0x14061e548
// > ??> @ 0x14061ebf0
// > ??> @ 0x14061f400
// > ??> @ 0x14061fb98
// > ??> @ 0x1406cba6c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
const cocos2d::CCRect *GameObject::getObjectRect2(GameObject *a1, float a2, float a3)
{
bool v5; // zf
_BYTE *v6; // rdx
cocos2d::CCRect *p_m_objectRect; // rdi
_BYTE v8[24]; // [rsp+20h] [rbp-18h] BYREF
if ( !a1->m_isObjectRectDirty )
return &a1->m_objectRect;
v5 = !a1->m_shouldUseOuterOb;
a1->m_isObjectRectDirty = 0;
if ( v5 )
{
p_m_objectRect = &a1->m_objectRect;
v6 = (_BYTE *)((__int64 (__fastcall *)(GameObject *, _BYTE *))a1->getObjectRect)(a1, v8);
}
else
{
if ( a1->m_isOrientedBoxDirty )
a1->updateOrientedBox(a1);
OBB2D::getBoundingRect((cocos2d::CCRect *)a1->m_orientedBox, (OBB2D *)v8);
v6 = v8;
p_m_objectRect = &a1->m_objectRect;
}
cocos2d::CCRect::operator=(p_m_objectRect, v6);
return p_m_objectRect;
}