//
// PlayerObject::create from 0x1002b422c to 0x1002b42bc (144 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::createPlayer @ 0x100277dbc
// > GJBaseGameLayer::createPlayer @ 0x100277f94
// > MenuGameLayer::init @ 0x100441d84
//
// This function is hookable on this platform (idp: arm, 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:02:21 +0000
//
void *__fastcall PlayerObject::create(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)
{
void *v10; // x19
v10 = operator new(0xBF0u);
PlayerObject::PlayerObject();
if ( (unsigned int)PlayerObject::init(v10, a1, a2, a3, a4, a5) )
{
cocos2d::CCObject::autorelease((__int64)v10);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v10 + 16LL))(v10);
return nullptr;
}
return v10;
}