//
// OBB2D::calculateWithCenter from 0x14007b480 to 0x14007b78a (778 bytes)
//
// 11 xrefs:
// > OBB2D::create @ 0x14007b3fb
// > GameObject::updateOrientedBox @ 0x14029e607
// > GJBaseGameLayer::updateGroundShadows @ 0x140311fe4
// > GJBaseGameLayer::damagingObjectsInRect @ 0x1403185a9
// > GJBaseGameLayer::preUpdateVisibility @ 0x14033f39f
// > GJBaseGameLayer::preUpdateVisibility @ 0x14033f41c
// > LevelEditorLayer::objectAtPosition @ 0x1403f128a
// > LevelEditorLayer::objectsAtPosition @ 0x1403f163d
// > LevelEditorLayer::getObjectRect @ 0x1403f1c9d
// > LevelEditorLayer::objectsInRect @ 0x1403f1e3e
// > ??> @ 0x140911da4
//
// This function is hookable on this platform (idp: pc, 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 11:25:53 +0000
//
__int64 __fastcall OBB2D::calculateWithCenter(__int64 a1, __int64 a2, __int64 a3, __int64 a4, float X)
{
float v7; // xmm6_4
float v8; // xmm7_4
float v9; // xmm6_4
_BYTE v11[8]; // [rsp+20h] [rbp-60h] BYREF
_BYTE v12[8]; // [rsp+28h] [rbp-58h] BYREF
_BYTE v13[16]; // [rsp+30h] [rbp-50h] BYREF
char v14; // [rsp+A0h] [rbp+20h] BYREF
cocos2d::CCPoint::operator=(a1 + 432, a2);
v7 = X;
v8 = sinf(X);
v9 = cosf(v7);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v14, v9, v8);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, -v8, v9);
cocos2d::CCPoint::operator*(&v14, v12);
cocos2d::CCPoint::operator=(&v14, v12);
cocos2d::CCPoint::operator*(v11, v12);
cocos2d::CCPoint::operator=(v11, v12);
cocos2d::CCPoint::operator-(a2, v12, &v14);
cocos2d::CCPoint::operator-(v12, v13, v11);
cocos2d::CCPoint::operator=(a1 + 320, v13);
cocos2d::CCPoint::operator+(a2, v13, &v14);
cocos2d::CCPoint::operator-(v13, v12, v11);
cocos2d::CCPoint::operator=(a1 + 328, v12);
cocos2d::CCPoint::operator+(a2, v13, &v14);
cocos2d::CCPoint::operator+(v13, v12, v11);
cocos2d::CCPoint::operator=(a1 + 336, v12);
cocos2d::CCPoint::operator-(a2, v13, &v14);
cocos2d::CCPoint::operator+(v13, v12, v11);
cocos2d::CCPoint::operator=(a1 + 344, v12);
cocos2d::CCPoint::operator-(a1 + 328, v13, a1 + 320);
cocos2d::CCPoint::operator=(a1 + 384, v13);
cocos2d::CCPoint::operator-(a1 + 344, v13, a1 + 320);
cocos2d::CCPoint::operator=(a1 + 392, v13);
cocos2d::CCPoint::operator*(a1 + 384, v12);
cocos2d::CCPoint::operator=(a1 + 384, v12);
*(double *)(a1 + 416) = (float)((float)(*(float *)(a1 + 384) * *(float *)(a1 + 320))
+ (float)(*(float *)(a1 + 388) * *(float *)(a1 + 324)));
cocos2d::CCPoint::operator*(a1 + 392, v12);
cocos2d::CCPoint::operator=(a1 + 392, v12);
*(double *)(a1 + 424) = (float)((float)(*(float *)(a1 + 392) * *(float *)(a1 + 320))
+ (float)(*(float *)(a1 + 396) * *(float *)(a1 + 324)));
return OBB2D::orderCorners(a1);
}