//
// PlayerObject::create from 0x10021776c to 0x1002177fc (144 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::createPlayer @ 0x1001dd908
// > GJBaseGameLayer::createPlayer @ 0x1001ddaac
// > MenuGameLayer::init @ 0x10039a7ac
//
// 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 *v10; // x19
v10 = (PlayerObject *)operator new(0xBF0u);
PlayerObject::PlayerObject(v10);
if ( PlayerObject::init(v10, a1, a2, a3, a4, a5) )
{
cocos2d::CCObject::autorelease(v10);
}
else
{
((void (__fastcall *)(PlayerObject *))v10->~PlayerObject_0)(v10);
return nullptr;
}
return v10;
}