//
// ProfilePage::toggleShip from 0x1007bca90 to 0x1007bcb34 (164 bytes)
//
// 1 xrefs:
// > ProfilePage::loadPageFromUserInfo @ 0x1007baa57
//
// 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 *v2; // r14
int v3; // eax
__int64 v4; // rdx
IconType v5; // r12d
float v6; // [rsp+Ch] [rbp-24h]
v2 = (SimplePlayer *)((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].~CCObject_0)(a2);
v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
v4 = 620;
if ( v3 == 1 )
v4 = 648;
v5 = Ship;
if ( v3 == 1 )
v5 = Jetpack;
v6 = flt_100823B00[v3 == 1];
SimplePlayer::updatePlayerFrame(v2, *(_DWORD *)((char *)&a1->m_score->__vftable + v4), v5);
((void (__fastcall *)(SimplePlayer *, float))v2->setScale)(v2, v6);
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))a2->setTag)(a2, (unsigned int)v5);
}