//
// PlayerObject::create from 0x1003e7820 to 0x1003e7897 (119 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::createPlayer @ 0x1000f02b1
// > GJBaseGameLayer::createPlayer @ 0x1000f04ad
// > MenuGameLayer::init @ 0x1004f8ae4
//
// 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:29:48 +0000
//
void *__fastcall PlayerObject::create(unsigned int a1, unsigned int a2, __int64 a3, __int64 a4, unsigned __int8 a5)
{
void *v7; // rbx
v7 = operator new(0xBF0u);
PlayerObject::PlayerObject(v7);
if ( (unsigned __int8)PlayerObject::init(v7, a1, a2, a3, a4, a5) )
{
cocos2d::CCObject::autorelease(v7);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v7 + 16LL))(v7);
return nullptr;
}
return v7;
}