//
// CharacterColorPage::toggleShip from 0x10065d7b0 to 0x10065d858 (168 bytes)
//
// 1 xrefs:
// > CharacterColorPage::init @ 0x10065d066
//
// 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 CharacterColorPage::toggleShip(CharacterColorPage *a1, cocos2d::CCObject *a2)
{
SimplePlayer *v3; // r14
int v4; // r15d
GameManager *v5; // rax
int v6; // esi
IconType v7; // r15d
float v8; // [rsp+0h] [rbp-1Ch]
v3 = (SimplePlayer *)((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].~CCObject_0)(a2);
v4 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
v5 = GameManager::sharedState();
if ( v4 == 1 )
{
v6 = v5->m_playerJetpack.random - v5->m_playerJetpack.seed;
v8 = 1.05;
v7 = Jetpack;
}
else
{
v6 = v5->m_playerShip.random - v5->m_playerShip.seed;
v8 = 1.15;
v7 = Ship;
}
SimplePlayer::updatePlayerFrame(v3, v6, v7);
((void (__fastcall *)(SimplePlayer *, float))v3->setScale)(v3, v8);
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))a2->setTag)(a2, (unsigned int)v7);
}