//
// ProfilePage::toggleShip from 0x1403c3030 to 0x1403c30d4 (164 bytes)
//
// 2 xrefs:
// > ProfilePage::loadPageFromUserInfo @ 0x1403c0ab7
// > ??> @ 0x1406d7748
//
// 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
//
void ProfilePage::toggleShip(ProfilePage *a1, cocos2d::CCObject *a2)
{
SimplePlayer *v4; // rsi
int v5; // eax
GJUserScore *m_score; // rcx
int m_playerJetpack; // edx
IconType v8; // ebx
v4 = (SimplePlayer *)((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].copyWithZone)(a2);
v5 = a2->getTag(a2);
m_score = a1->m_score;
if ( v5 == 1 )
m_playerJetpack = m_score->m_playerJetpack;
else
m_playerJetpack = m_score->m_playerShip;
v8 = Jetpack;
if ( v5 != 1 )
v8 = Ship;
SimplePlayer::updatePlayerFrame(v4, m_playerJetpack, v8);
((void (__fastcall *)(SimplePlayer *))v4->setScale_0)(v4);
a2->setTag(a2, v8);
}