//
// SimplePlayer::create from 0x140381d40 to 0x140381e35 (245 bytes)
//
// 15 xrefs:
// > CharacterColorPage::init @ 0x1400a0e9b
// > ThreadViewPopup::mountVirtualRow @ 0x1400e1f7d
// > ThreadViewPopup::mountVirtualRow @ 0x1400e20f0
// > ThreadViewPopup::mountVirtualRow @ 0x1400e2256
// > sub_1400F78D0 @ 0x1400f78ef
// > CommentCell::loadFromComment @ 0x1401522f7
// > GJScoreCell::loadFromScore @ 0x1401553c4
// > GJLevelScoreCell::loadFromScore @ 0x1401570ea
// > GJCompactUserCell::buildUserRow @ 0x140157f12
// > GJThreadCell::loadFromThread @ 0x140159b25
// > GJBaseGameLayer::playExitDualEffect @ 0x14031e4a9
// > GJGarageLayer::init @ 0x14037c160
// > GJItemIcon::init @ 0x140383855
// > ProfilePage::loadPageFromUserInfo @ 0x140553ae8
// > ??> @ 0x14092297c
//
// 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:31:05 +0000
//
// Hidden C++ exception states: #wind=1
cocos2d::CCSprite *__fastcall SimplePlayer::create(unsigned int a1)
{
cocos2d::CCSprite *v2; // rdi
v2 = (cocos2d::CCSprite *)operator new(0x2A8u);
cocos2d::CCSprite::CCSprite(v2);
*(_QWORD *)v2 = &SimplePlayer::`vftable';
*((_QWORD *)v2 + 40) = &SimplePlayer::`vftable';
*((_QWORD *)v2 + 43) = &SimplePlayer::`vftable';
*((_QWORD *)v2 + 75) = 0;
*((_QWORD *)v2 + 76) = 0;
*((_QWORD *)v2 + 77) = 0;
*((_QWORD *)v2 + 78) = 0;
*((_QWORD *)v2 + 79) = 0;
*((_QWORD *)v2 + 80) = 0;
*((_QWORD *)v2 + 81) = 0;
*((_DWORD *)v2 + 164) = 0;
*((_BYTE *)v2 + 660) = 0;
*((_DWORD *)v2 + 166) = 0;
*((_BYTE *)v2 + 668) = 0;
*((_BYTE *)v2 + 672) = 0;
if ( (unsigned __int8)SimplePlayer::init(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
return v2;
}
else
{
(*(void (__fastcall **)(cocos2d::CCSprite *, __int64))(*(_QWORD *)v2 + 8LL))(v2, 1);
return nullptr;
}
}