//
// SimplePlayer::create from 0x1003540a0 to 0x100354148 (168 bytes)
//
// 11 xrefs:
// > GJBaseGameLayer::playExitDualEffect @ 0x1001072b8
// > CommentCell::loadFromComment @ 0x10022d750
// > GJScoreCell::loadFromScore @ 0x10022f908
// > GJLevelScoreCell::loadFromScore @ 0x100230e98
// > GJThreadCell::loadFromThread @ 0x100232c10
// > GJCompactUserCell::buildUserRow @ 0x10023f436
// > MapSelectLayer::init @ 0x10025210d
// > CharacterColorPage::init @ 0x10073c64c
// > ProfilePage::loadPageFromUserInfo @ 0x1008a0269
// > ThreadViewPopup::mountVirtualRow @ 0x1009388e7
// > sub_10094E620 @ 0x10094e640
//
// 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:28:51 +0000
//
char *__fastcall SimplePlayer::create(unsigned int a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x2A8u);
cocos2d::CCSprite::CCSprite((__int64)v1);
*(_QWORD *)v1 = off_100B23EF0;
*((_QWORD *)v1 + 40) = off_100B243D8;
*((_QWORD *)v1 + 43) = off_100B24458;
*((_DWORD *)v1 + 166) = 0;
v1[668] = 0;
v1[672] = 0;
*(_OWORD *)(v1 + 600) = 0;
*(_OWORD *)(v1 + 616) = 0;
*(_OWORD *)(v1 + 632) = 0;
*(_OWORD *)(v1 + 645) = 0;
if ( (unsigned __int8)SimplePlayer::init(v1, a1) )
{
cocos2d::CCObject::autorelease(v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return v1;
}