//
// OBB2D::computeAxes from 0x58d340 to 0x58d44c (268 bytes)
//
// 2 xrefs:
// > OBB2D::calculateWithCenter @ 0x58d7f8
// > ??> @ 0x65358
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void OBB2D::computeAxes(OBB2D *a1)
{
std::array *p_m_corners; // x24
cocos2d::CCPoint *v3; // x23
std::array *p_m_edges; // x19
float v5; // s0
float v6; // s1
float v7; // s0
float v8; // s1
std::array *v9; // x0
float v10; // s0
float v11; // s1
__int64 v12; // [xsp+50h] [xbp+50h] BYREF
p_m_corners = &a1->m_corners;
v3 = &a1->m_edges.__elems_[2];
cocos2d::CCPoint::operator-(&v12, &a1->m_corners.__elems_[1], &a1->m_corners);
p_m_edges = &a1->m_edges;
cocos2d::CCPoint::operator=(&a1->m_edges, v5, v6);
cocos2d::CCPoint::operator-(&v12, &a1->m_corners.__elems_[3], p_m_corners);
cocos2d::CCPoint::operator=(&a1->m_edges.__elems_[1], v7, v8);
do
{
cocos2d::CCPoint::operator*(
p_m_edges,
1.0
/ (float)((float)(p_m_edges->__elems_[0].y * p_m_edges->__elems_[0].y)
+ (float)(p_m_edges->__elems_[0].x * p_m_edges->__elems_[0].x)));
v9 = p_m_edges;
p_m_edges = (std::array *)((char *)p_m_edges + 8);
cocos2d::CCPoint::operator=(v9, v10, v11);
*(double *)&p_m_edges->__elems_[3].y = (float)((float)(p_m_corners->__elems_[0].y * p_m_edges[-1].__elems_[3].y)
+ (float)(p_m_corners->__elems_[0].x * p_m_edges[-1].__elems_[3].x));
}
while ( p_m_edges != (std::array *)v3 );
}