//
// SimplePlayer::create from 0x50d358 to 0x50d3e4 (140 bytes)
//
// 13 xrefs:
// > GJThreadCell::loadFromThread @ 0x42ae60
// > GJScoreCell::loadFromScore @ 0x42d368
// > GJCompactUserCell::buildUserRow @ 0x42e15e
// > GJLevelScoreCell::loadFromScore @ 0x4315b4
// > CommentCell::loadFromComment @ 0x432894
// > GJItemIcon::init @ 0x50d508
// > GJGarageLayer::init @ 0x5104a0
// > GJBaseGameLayer::playExitDualEffect @ 0x58f350
// > ProfilePage::loadPageFromUserInfo @ 0x5f94e2
// > MapSelectLayer::init @ 0x640c02
// > CharacterColorPage::init @ 0x69d9b2
// > sub_745C90 @ 0x745ca8
// > ThreadViewPopup::mountVirtualRow @ 0x75f34c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:29 +0000
//
cocos2d::CCSprite *__fastcall SimplePlayer::create(SimplePlayer *this, int a2)
{
cocos2d::CCSprite *v3; // r4
int v4; // r3
int *v5; // r0
v3 = (cocos2d::CCSprite *)operator new(0x22Cu);
cocos2d::CCSprite::CCSprite(v3);
*(_DWORD *)v3 = &off_CA72D0;
*((_DWORD *)v3 + 66) = &off_CA7544;
*((_DWORD *)v3 + 70) = &off_CA7584;
*((_DWORD *)v3 + 127) = 0;
*((_DWORD *)v3 + 128) = 0;
*((_DWORD *)v3 + 129) = 0;
*((_DWORD *)v3 + 130) = 0;
*((_DWORD *)v3 + 131) = 0;
*((_DWORD *)v3 + 132) = 0;
*((_DWORD *)v3 + 133) = 0;
*((_DWORD *)v3 + 134) = 0;
*((_BYTE *)v3 + 540) = 0;
*((_DWORD *)v3 + 136) = 0;
*((_BYTE *)v3 + 548) = 0;
*((_BYTE *)v3 + 552) = 0;
if ( SimplePlayer::init(v3, (int)this) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
v4 = *(_DWORD *)v3;
v5 = (int *)v3;
v3 = nullptr;
(*(void (__fastcall **)(int *))(v4 + 8))(v5);
}
return v3;
}