//
// OBB2D::create from 0x1006c6240 to 0x1006c62e2 (162 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::init @ 0x1000aa9c1
// > GJBaseGameLayer::init @ 0x1000ec1c6
// > GJBaseGameLayer::init @ 0x1000ec1f6
// > GameObject::updateOrientedBox @ 0x10069b40b
//
// This function is hookable on this platform (idp: pc, 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:35:34 +0000
//
void *__fastcall OBB2D::create(_QWORD *a1, float a2, float a3, float a4)
{
void *v4; // rbx
__int64 v6; // [rsp+4h] [rbp-2Ch] BYREF
__int64 v7; // [rsp+Ch] [rbp-24h] BYREF
float v8; // [rsp+14h] [rbp-1Ch]
float v9; // [rsp+18h] [rbp-18h]
float v10; // [rsp+1Ch] [rbp-14h]
v8 = a4;
v9 = a3;
v10 = a2;
v4 = operator new(0x1B8u);
__bzero(v4, 440);
sub_1006C6DD0(v4);
sub_1002782D0(&v7, a1);
if ( cocos2d::CCNode::init() )
{
sub_1002782D0(&v6, &v7);
OBB2D::calculateWithCenter(v4, &v6, v10, v9, v8);
cocos2d::CCObject::autorelease((__int64)v4);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return v4;
}