//
// OBB2D::init from 0x10012ccc0 to 0x10012cd40 (128 bytes)
//
// 1 xrefs:
// > OBB2D::create @ 0x10012cc48
//
// 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 __fastcall OBB2D::init(OBB2D *a1, cocos2d::CCPoint a2, float a3, float a4, float a5)
{
__int64 *v5; // x1
float y; // s9
float x; // s10
__int64 *v9; // x21
_BOOL4 v11; // w19
float v12; // s3
float v13; // s4
__int64 v15; // [xsp+8h] [xbp-48h] BYREF
cocos2d::CCPoint v16; // 0:s0.4,4:s1.4
y = a2.y;
x = a2.x;
v9 = v5;
v11 = cocos2d::CCNode::init(a1);
if ( v11 )
{
sub_1000229B8(&v15, v9);
v16.x = x;
v16.y = y;
OBB2D::calculateWithCenter(a1, v16, a3, v12, v13);
}
return v11;
}