//
// PlayerObject::create from 0x1003fa640 to 0x1003fa6b7 (119 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::createPlayer @ 0x10011407a
// > GJBaseGameLayer::createPlayer @ 0x10011423c
// > MenuGameLayer::init @ 0x1004f9c54
//
// 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
//
PlayerObject *__fastcall PlayerObject::create(int a1, int a2, GJBaseGameLayer *a3, cocos2d::CCLayer *a4, bool a5)
{
PlayerObject *v7; // rbx
v7 = (PlayerObject *)operator new(0xBE8u);
PlayerObject::PlayerObject(v7);
if ( PlayerObject::init(v7, a1, a2, a3, a4, a5) )
{
cocos2d::CCObject::autorelease(v7);
}
else
{
((void (__fastcall *)(PlayerObject *))v7->~PlayerObject_0)(v7);
return nullptr;
}
return v7;
}