//
// OBB2D::calculateWithCenter from 0x1006c6370 to 0x1006c6512 (418 bytes)
//
// 9 xrefs:
// > LevelEditorLayer::getObjectRect @ 0x1000b106e
// > GJBaseGameLayer::updateGroundShadows @ 0x1000f1044
// > GJBaseGameLayer::damagingObjectsInRect @ 0x1000ff94b
// > GJBaseGameLayer::updateOBB2 @ 0x1000ffe32
// > GJBaseGameLayer::preUpdateVisibility @ 0x10012d569
// > GJBaseGameLayer::preUpdateVisibility @ 0x10012d5fc
// > GameObject::updateOrientedBox @ 0x10069b361
// > OBB2D::create @ 0x1006c62bc
// > OBB2D::init @ 0x1006c6352
//
// 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 12:35:34 +0000
//
__int64 __fastcall OBB2D::calculateWithCenter(_QWORD *a1, unsigned __int64 *a2, float a3, float a4, float a5)
{
__m128 v5; // xmm0
__m128 v6; // xmm0
__m128 v7; // xmm0
unsigned __int64 v9; // [rsp+18h] [rbp-68h] BYREF
__m128 v10; // [rsp+20h] [rbp-60h]
unsigned __int64 v11; // [rsp+38h] [rbp-48h] BYREF
unsigned __int64 v12; // [rsp+40h] [rbp-40h] BYREF
float v13; // [rsp+48h] [rbp-38h]
float v14; // [rsp+4Ch] [rbp-34h]
double v15[6]; // [rsp+50h] [rbp-30h] BYREF
v13 = a4;
v14 = a3;
sub_100278300(a1 + 54, a2);
v5 = (__m128)LODWORD(a5);
*(__float2 *)v5.f32 = __sincosf_stret(a5);
v10 = _mm_movehdup_ps(v5);
sub_100278250((float *)&v9, v10.f32[0], v5.f32[0]);
sub_100278250((float *)&v11, -v5.f32[0], v10.f32[0]);
v6 = (__m128)LODWORD(v14);
v6.f32[0] = v14 * 0.5;
sub_1002783B0(v15, &v9, v6);
sub_100278300(&v9, v15);
v7 = (__m128)LODWORD(v13);
v7.f32[0] = v13 * 0.5;
sub_1002783B0(v15, &v11, v7);
sub_100278300(&v11, v15);
sub_100278370((double *)&v12, a2, &v9);
sub_100278370(v15, &v12, &v11);
sub_100278300((_QWORD *)((char *)a1 + 316), v15);
sub_100278350((double *)&v12, a2, &v9);
sub_100278370(v15, &v12, &v11);
sub_100278300((_QWORD *)((char *)a1 + 324), v15);
sub_100278350((double *)&v12, a2, &v9);
sub_100278350(v15, &v12, &v11);
sub_100278300((_QWORD *)((char *)a1 + 332), v15);
sub_100278370((double *)&v12, a2, &v9);
sub_100278350(v15, &v12, &v11);
sub_100278300((_QWORD *)((char *)a1 + 340), v15);
OBB2D::computeAxes(a1);
return OBB2D::orderCorners(a1);
}