//
// OBB2D::init from 0x6aec38 to 0x6aece0 (168 bytes)
//
// 2 xrefs:
// > OBB2D::create @ 0x6aedc4
// > ??> @ 0x58348
//
// 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::init(cocos2d::CCNode *a1, const cocos2d::CCPoint *a2, float a3, float a4, float a5)
{
unsigned __int8 v6; // w0
unsigned int v7; // w20
float v8; // s0
float v12; // [xsp+40h] [xbp+40h]
float v15; // [xsp+60h] [xbp+60h]
_BYTE v16[8]; // [xsp+70h] [xbp+70h] BYREF
v6 = cocos2d::CCNode::init(a1);
v7 = v6;
v8 = a3;
if ( v6 )
{
v12 = a5;
v15 = v8;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, a2);
OBB2D::calculateWithCenter(a1, (__int64)v16, v15, a4, v12);
}
return v7;
}