//
// GJBaseGameLayer::updateOBB2 from 0x58e4dc to 0x58e544 (104 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::objectAtPosition @ 0x460750
// > LevelEditorLayer::objectsAtPosition @ 0x460946
// > LevelEditorLayer::objectsInRect @ 0x460bf6
// > GJBaseGameLayer::damagingObjectsInRect @ 0x58e56e
//
// 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:53:04 +0000
//
int __fastcall GJBaseGameLayer::updateOBB2(int a1, int a2)
{
OBB2D *v2; // r8
_BYTE v5[8]; // [sp+Ch] [bp-8h] BYREF
_BYTE v6[8]; // [sp+14h] [bp+0h] BYREF
v2 = *(OBB2D **)(a1 + 1488);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v5, *(float *)(a2 + 8) * 0.5, *(float *)(a2 + 12) * 0.5);
cocos2d::CCPoint::operator+(v6, a2, v5);
return OBB2D::calculateWithCenter(v2, (int)v6, *(float *)(a2 + 8), *(float *)(a2 + 12), 0.0);
}