//
// OBB2D::create from 0x14007b2b0 to 0x14007b43f (399 bytes)
//
// 5 xrefs:
// > GameObject::updateOrientedBox @ 0x14029e537
// > GJBaseGameLayer::init @ 0x14030d417
// > GJBaseGameLayer::init @ 0x14030d44d
// > LevelEditorLayer::init @ 0x1403ee641
// > ??> @ 0x140911d8c
//
// 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 11:25:53 +0000
//
// Hidden C++ exception states: #wind=2
char *__fastcall OBB2D::create(const struct cocos2d::CCPoint *a1, __int64 a2, __int64 a3, float X)
{
char *v5; // rsi
const struct cocos2d::CCPoint *v6; // rax
const struct cocos2d::CCPoint *v7; // rbx
int v8; // eax
int v9; // r8d
int v10; // r9d
char *v12; // [rsp+30h] [rbp-48h] BYREF
char v13[8]; // [rsp+38h] [rbp-40h] BYREF
v5 = (char *)operator new(0x1B8u);
v12 = v5;
memset(v5, 0, 0x1B8u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v5);
*(_QWORD *)v5 = &OBB2D::`vftable';
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 320));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 328));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 336));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 344));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 352));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 360));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 368));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 376));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 384));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 392));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 400));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 408));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v5 + 432));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, a1);
v7 = v6;
if ( cocos2d::CCNode::init((cocos2d::CCNode *)v5) )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, v7);
OBB2D::calculateWithCenter((int)v5, v8, v9, v10, X);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);
return v5;
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1);
return nullptr;
}
}