//
// SimplePlayer::create from 0x1003031d8 to 0x100303274 (156 bytes)
//
// 10 xrefs:
// > CommentCell::loadFromComment @ 0x100105f1c
// > GJScoreCell::loadFromScore @ 0x10010786c
// > GJLevelScoreCell::loadFromScore @ 0x100108ca0
// > GJUserCell::loadFromScore @ 0x100109934
// > GJRequestCell::loadFromScore @ 0x10010a148
// > CharacterColorPage::init @ 0x1001290dc
// > ProfilePage::loadPageFromUserInfo @ 0x100198614
// > GJBaseGameLayer::playExitDualEffect @ 0x1001e9eac
// > GJGarageLayer::init @ 0x1003022d8
// > GJItemIcon::init @ 0x100307c58
//
// 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
//
SimplePlayer *__fastcall SimplePlayer::create(int a1)
{
char *v2; // x19
v2 = (char *)operator new(0x2A8u);
cocos2d::CCSprite::CCSprite((__int64)v2);
*(_QWORD *)v2 = off_1007EC258;
*((_QWORD *)v2 + 40) = off_1007EC730;
*((_QWORD *)v2 + 43) = off_1007EC7B0;
*((_DWORD *)v2 + 166) = 0;
v2[668] = 0;
v2[672] = 0;
*(_OWORD *)(v2 + 600) = 0u;
*(_OWORD *)(v2 + 616) = 0u;
*(_OWORD *)(v2 + 632) = 0u;
*(_OWORD *)(v2 + 645) = 0u;
if ( SimplePlayer::init((SimplePlayer *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (SimplePlayer *)v2;
}