//
// OBB2D::computeAxes from 0x6ae73c to 0x6ae848 (268 bytes)
//
// 2 xrefs:
// > OBB2D::calculateWithCenter @ 0x6aebf4
// > ??> @ 0x89800
//
// 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:50:49 +0000
//
__int64 __fastcall OBB2D::computeAxes(OBB2D *this, long double a2)
{
float *v2; // x24
char *v4; // x23
char *v5; // x19
long double v6; // q0
char *v7; // x0
__int64 v9; // [xsp+50h] [xbp+50h] BYREF
v2 = (float *)((char *)this + 316);
v4 = (char *)this + 396;
cocos2d::CCPoint::operator-(&v9, (char *)this + 324, (char *)this + 316, a2);
v5 = (char *)this + 380;
*(__n128 *)&v6 = cocos2d::CCPoint::operator=((char *)this + 380, &v9);
cocos2d::CCPoint::operator-(&v9, (char *)this + 340, v2, v6);
cocos2d::CCPoint::operator=((char *)this + 388, &v9);
do
{
cocos2d::CCPoint::operator*(
v5,
1.0 / (float)((float)(*((float *)v5 + 1) * *((float *)v5 + 1)) + (float)(*(float *)v5 * *(float *)v5)));
v7 = v5;
v5 += 8;
cocos2d::CCPoint::operator=(v7, &v9);
*(double *)(v5 + 28) = (float)((float)(v2[1] * *((float *)v5 - 1)) + (float)(*v2 * *((float *)v5 - 2)));
}
while ( v5 != v4 );
return _stack_chk_guard;
}