//
// ProfilePage::toggleShip from 0x10019a1dc to 0x10019a290 (180 bytes)
//
// 1 xrefs:
// > ProfilePage::loadPageFromUserInfo @ 0x10019856c
//
// 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 __fastcall ProfilePage::toggleShip(ProfilePage *a1, cocos2d::CCObject *a2)
{
SimplePlayer *v4; // x21
int v5; // w0
GJUserScore *m_score; // x9
__int64 v7; // x10
__int64 v8; // x20
float v9; // s8
v4 = (SimplePlayer *)((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].~CCObject_0)(a2);
v5 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
m_score = a1->m_score;
v7 = 620;
if ( v5 == 1 )
{
v7 = 648;
v8 = 8;
}
else
{
v8 = 1;
}
v9 = flt_1006393F0[v5 == 1];
SimplePlayer::updatePlayerFrame(v4, *(_DWORD *)((char *)&m_score->__vftable + v7), (IconType)v8);
((void (__fastcall *)(SimplePlayer *, float))v4->setScale)(v4, v9);
((void (__fastcall *)(cocos2d::CCObject *, __int64))a2->setTag)(a2, v8);
}