//
// PlayerObject::create from 0x1404e4940 to 0x1404e49dd (157 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::createPlayer @ 0x14031149f
// > GJBaseGameLayer::createPlayer @ 0x14031178e
// > MenuGameLayer::init @ 0x14046fdbe
// > ??> @ 0x140929be8
//
// 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:33:10 +0000
//
// Hidden C++ exception states: #wind=1
cocos2d::CCObject *__fastcall PlayerObject::create(int a1, int a2, int a3, __int64 a4, char a5)
{
__int64 v9; // rax
cocos2d::CCObject *v10; // rbx
void *v12; // [rsp+30h] [rbp-18h]
v12 = operator new(0xC50u);
v9 = PlayerObject::PlayerObject((__int64)v12);
v10 = (cocos2d::CCObject *)v9;
if ( v9 )
{
if ( (unsigned __int8)PlayerObject::init(v9, a1, a2, a3, a4, a5) )
{
cocos2d::CCObject::autorelease(v10);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v10 + 8LL))(v10, 1);
return nullptr;
}
}
return v10;
}