//
// OBB2D::init from 0x58d83c to 0x58d8e4 (168 bytes)
//
// 2 xrefs:
// > OBB2D::create @ 0x58d9c8
// > ??> @ 0x3cea0
//
// 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
//
bool OBB2D::init(OBB2D *a1, cocos2d::CCPoint a2, float a3, float a4, float a5)
{
cocos2d::CCPoint *v5; // x1
bool v7; // w20
float v8; // s0
float v9; // s3
float v10; // s4
cocos2d::CCPoint *v12; // [xsp+38h] [xbp+38h]
float x; // [xsp+40h] [xbp+40h]
float v14; // [xsp+40h] [xbp+40h]
float y; // [xsp+50h] [xbp+50h]
float v17; // [xsp+60h] [xbp+60h]
cocos2d::CCPoint v18; // [xsp+70h] [xbp+70h] BYREF
cocos2d::CCPoint v19; // 0:s0.4,4:s1.4
v12 = v5;
x = a2.x;
y = a2.y;
v7 = cocos2d::CCNode::init(a1);
v8 = x;
if ( v7 )
{
v14 = a3;
v17 = v8;
cocos2d::CCPoint::CCPoint(&v18, v12);
v19.x = v17;
v19.y = y;
OBB2D::calculateWithCenter(a1, v19, v14, v9, v10);
}
return v7;
}