//
// GJBaseGameLayer::updateOBB2 from 0x99ce8c to 0x99cf28 (156 bytes)
//
// 5 xrefs:
// > LevelEditorLayer::objectAtPosition @ 0x78a728
// > LevelEditorLayer::objectsAtPosition @ 0x78aac0
// > LevelEditorLayer::objectsInRect @ 0x78af98
// > GJBaseGameLayer::damagingObjectsInRect @ 0x99cf7c
// > ??> @ 0xdccf0
//
// 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:58:05 +0000
//
__int64 __fastcall GJBaseGameLayer::updateOBB2(__int64 a1, __int64 a2)
{
OBB2D *v3; // x22
_BYTE v5[8]; // [xsp+48h] [xbp+48h] BYREF
__int64 v6; // [xsp+50h] [xbp+50h] BYREF
v3 = *(OBB2D **)(a1 + 2080);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v5, *(float *)(a2 + 8) * 0.5, *(float *)(a2 + 12) * 0.5);
cocos2d::CCPoint::operator+(&v6, a2);
OBB2D::calculateWithCenter(v3, (__int64)&v6, *(float *)(a2 + 8), *(float *)(a2 + 12), 0.0);
return _stack_chk_guard;
}