//
// CharacterColorPage::toggleShip from 0x69ca44 to 0x69caa8 (100 bytes)
//
// 0 xrefs:
//
// 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:56:19 +0000
//
int __fastcall CharacterColorPage::toggleShip(CharacterColorPage *this, cocos2d::CCObject *a2)
{
int v3; // r6
GameManager *v4; // r0
int v5; // r0
int v6; // r7
int v7; // r5
int v8; // r1
int v9; // r0
v3 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 536))(a2);
v4 = (GameManager *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
if ( v4 == (GameManager *)((char *)&dword_0 + 1) )
{
v5 = GameManager::sharedState((GameManager *)((char *)&dword_0 + 1));
v6 = 1065772646;
v7 = 8;
v8 = *(_DWORD *)(v5 + 684) - *(_DWORD *)(v5 + 688);
}
else
{
v9 = GameManager::sharedState(v4);
v6 = 1066611507;
v7 = 1;
v8 = *(_DWORD *)(v9 + 528) - *(_DWORD *)(v9 + 532);
}
SimplePlayer::updatePlayerFrame(v3, v8, v7);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v3 + 80))(v3, v6);
return (*(int (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)a2 + 36))(a2, v7);
}