{"type": "func", "start": 5655132, "end": 5655232, "name": "CharacterColorPage::toggleShip", "pseudocode": "// \n// CharacterColorPage::toggleShip from 0x564a5c to 0x564ac0 (100 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid CharacterColorPage::toggleShip(CharacterColorPage *a1, cocos2d::CCObject *a2)\n{\n  SimplePlayer *v3; // r6\n  GameManager *v4; // r0\n  int v5; // r7\n  IconType v6; // r5\n  int v7; // r1\n  GameManager *v8; // r0\n\n  v3 = (SimplePlayer *)((int (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].~CCObject_0)(a2);\n  if ( a2->getTag(a2) == 1 )\n  {\n    v4 = GameManager::sharedState();\n    v5 = 1065772646;\n    v6 = Jetpack;\n    v7 = v4->m_playerJetpack.random - v4->m_playerJetpack.seed;\n  }\n  else\n  {\n    v8 = GameManager::sharedState();\n    v5 = 1066611507;\n    v6 = Ship;\n    v7 = v8->m_playerShip.random - v8->m_playerShip.seed;\n  }\n  SimplePlayer::updatePlayerFrame(v3, v7, v6);\n  ((void (__fastcall *)(SimplePlayer *, int))v3->setScale)(v3, v5);\n  a2->setTag(a2, v6);\n}", "assembly": "; \n; CharacterColorPage::toggleShip from 0x564a5c to 0x564ac0 (100 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nLDR             R3, [R1]                                               ; +0x0, 0x564a5c\nMOV             R0, R1                                                 ; +0x2, 0x564a5e\nPUSH.W          {R4-R8,LR}                                             ; +0x4, 0x564a60\nMOV             R4, R1                                                 ; +0x8, 0x564a64\nLDR.W           R3, [R3,#0x210]                                        ; +0xa, 0x564a66\nBLX             R3                                                     ; +0xe, 0x564a6a\nLDR             R3, [R4]                                               ; +0x10, 0x564a6c\nLDR             R3, [R3,#0x20]                                         ; +0x12, 0x564a6e\nMOV             R6, R0                                                 ; +0x14, 0x564a70\nMOV             R0, R4                                                 ; +0x16, 0x564a72\nBLX             R3                                                     ; +0x18, 0x564a74\nCMP             R0, #1                                                 ; +0x1a, 0x564a76\nBNE             loc_564A8E                                             ; +0x1c, 0x564a78\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1e, 0x564a7a\nLDR             R7, =0x3F866666                                        ; +0x22, 0x564a7e\nMOVS            R5, #8                                                 ; +0x24, 0x564a80\nLDR.W           R3, [R0,#0x274]                                        ; +0x26, 0x564a82\nLDR.W           R1, [R0,#0x278]                                        ; +0x2a, 0x564a86\nSUBS            R1, R3, R1                                             ; +0x2e, 0x564a8a\nB               loc_564AA0                                             ; +0x30, 0x564a8c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x32, 0x564a8e\nLDR             R7, =0x3F933333                                        ; +0x36, 0x564a92\nMOVS            R5, #1                                                 ; +0x38, 0x564a94\nLDR.W           R3, [R0,#0x1D8]                                        ; +0x3a, 0x564a96\nLDR.W           R1, [R0,#0x1DC]                                        ; +0x3e, 0x564a9a\nSUBS            R1, R3, R1                                             ; +0x42, 0x564a9e\nMOV             R0, R6                                                 ; +0x44, 0x564aa0\nMOV             R2, R5                                                 ; +0x46, 0x564aa2\nBL              _ZN12SimplePlayer17updatePlayerFrameEi8IconType; SimplePlayer::updatePlayerFrame(int,IconType) ; +0x48, 0x564aa4\nLDR             R3, [R6]                                               ; +0x4c, 0x564aa8\nMOV             R0, R6                                                 ; +0x4e, 0x564aaa\nMOV             R1, R7                                                 ; +0x50, 0x564aac\nLDR             R3, [R3,#0x50]                                         ; +0x52, 0x564aae\nBLX             R3                                                     ; +0x54, 0x564ab0\nLDR             R3, [R4]                                               ; +0x56, 0x564ab2\nMOV             R0, R4                                                 ; +0x58, 0x564ab4\nMOV             R1, R5                                                 ; +0x5a, 0x564ab6\nPOP.W           {R4-R8,LR}                                             ; +0x5c, 0x564ab8\nLDR             R3, [R3,#0x24]                                         ; +0x60, 0x564abc\nBX              R3                                                     ; +0x62, 0x564abe", "xrefs": [], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}