//
// SimplePlayer::create from 0x10036ac90 to 0x10036ad38 (168 bytes)
//
// 9 xrefs:
// > GJBaseGameLayer::playExitDualEffect @ 0x100129888
// > CommentCell::loadFromComment @ 0x100247ab2
// > GJScoreCell::loadFromScore @ 0x1002497a8
// > GJLevelScoreCell::loadFromScore @ 0x10024ad38
// > GJUserCell::loadFromScore @ 0x10024ba90
// > GJRequestCell::loadFromScore @ 0x10024c2a3
// > MapSelectLayer::init @ 0x10026810d
// > CharacterColorPage::init @ 0x10065cffc
// > ProfilePage::loadPageFromUserInfo @ 0x1007ba982
//
// 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)
{
__int64 v1; // rsi
char *v2; // rbx
v2 = (char *)operator new(0x2A8u);
cocos2d::CCSprite::CCSprite((__int64)v2, v1);
*(_QWORD *)v2 = off_10091BD20;
*((_QWORD *)v2 + 40) = off_10091C1F8;
*((_QWORD *)v2 + 43) = off_10091C278;
*((_DWORD *)v2 + 166) = 0;
v2[668] = 0;
v2[672] = 0;
*(_OWORD *)(v2 + 600) = 0;
*(_OWORD *)(v2 + 616) = 0;
*(_OWORD *)(v2 + 632) = 0;
*(_OWORD *)(v2 + 645) = 0;
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;
}