{"type": "func", "start": 6933060, "end": 6933160, "name": "CharacterColorPage::toggleShip", "pseudocode": "// \n// CharacterColorPage::toggleShip from 0x69ca44 to 0x69caa8 (100 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:56:19 +0000\n// \n\nint __fastcall CharacterColorPage::toggleShip(CharacterColorPage *this, cocos2d::CCObject *a2)\n{\n  int v3; // r6\n  GameManager *v4; // r0\n  int v5; // r0\n  int v6; // r7\n  int v7; // r5\n  int v8; // r1\n  int v9; // r0\n\n  v3 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 536))(a2);\n  v4 = (GameManager *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);\n  if ( v4 == (GameManager *)((char *)&dword_0 + 1) )\n  {\n    v5 = GameManager::sharedState((GameManager *)((char *)&dword_0 + 1));\n    v6 = 1065772646;\n    v7 = 8;\n    v8 = *(_DWORD *)(v5 + 684) - *(_DWORD *)(v5 + 688);\n  }\n  else\n  {\n    v9 = GameManager::sharedState(v4);\n    v6 = 1066611507;\n    v7 = 1;\n    v8 = *(_DWORD *)(v9 + 528) - *(_DWORD *)(v9 + 532);\n  }\n  SimplePlayer::updatePlayerFrame(v3, v8, v7);\n  (*(void (__fastcall **)(int, int))(*(_DWORD *)v3 + 80))(v3, v6);\n  return (*(int (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)a2 + 36))(a2, v7);\n}", "assembly": "; \n; CharacterColorPage::toggleShip from 0x69ca44 to 0x69caa8 (100 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:56:19 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x69ca44\nMOV             R0, R1                                                 ; +0x4, 0x69ca48\nLDR             R3, [R1]                                               ; +0x6, 0x69ca4a\nMOV             R4, R1                                                 ; +0x8, 0x69ca4c\nLDR.W           R3, [R3,#0x218]                                        ; +0xa, 0x69ca4e\nBLX             R3                                                     ; +0xe, 0x69ca52\nLDR             R3, [R4]                                               ; +0x10, 0x69ca54\nLDR             R3, [R3,#0x20]                                         ; +0x12, 0x69ca56\nMOV             R6, R0                                                 ; +0x14, 0x69ca58\nMOV             R0, R4                                                 ; +0x16, 0x69ca5a\nBLX             R3                                                     ; +0x18, 0x69ca5c\nCMP             R0, #1                                                 ; +0x1a, 0x69ca5e\nBNE             loc_69CA76                                             ; +0x1c, 0x69ca60\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1e, 0x69ca62\nLDR             R7, =0x3F866666                                        ; +0x22, 0x69ca66\nMOVS            R5, #8                                                 ; +0x24, 0x69ca68\nLDR.W           R3, [R0,#0x2AC]                                        ; +0x26, 0x69ca6a\nLDR.W           R1, [R0,#0x2B0]                                        ; +0x2a, 0x69ca6e\nSUBS            R1, R3, R1                                             ; +0x2e, 0x69ca72\nB               loc_69CA88                                             ; +0x30, 0x69ca74\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x32, 0x69ca76\nLDR             R7, =0x3F933333                                        ; +0x36, 0x69ca7a\nMOVS            R5, #1                                                 ; +0x38, 0x69ca7c\nLDR.W           R3, [R0,#0x210]                                        ; +0x3a, 0x69ca7e\nLDR.W           R1, [R0,#0x214]                                        ; +0x3e, 0x69ca82\nSUBS            R1, R3, R1                                             ; +0x42, 0x69ca86\nMOV             R0, R6                                                 ; +0x44, 0x69ca88\nMOV             R2, R5                                                 ; +0x46, 0x69ca8a\nBL              _ZN12SimplePlayer17updatePlayerFrameEi8IconType; SimplePlayer::updatePlayerFrame(int,IconType) ; +0x48, 0x69ca8c\nLDR             R3, [R6]                                               ; +0x4c, 0x69ca90\nMOV             R0, R6                                                 ; +0x4e, 0x69ca92\nMOV             R1, R7                                                 ; +0x50, 0x69ca94\nLDR             R3, [R3,#0x50]                                         ; +0x52, 0x69ca96\nBLX             R3                                                     ; +0x54, 0x69ca98\nLDR             R3, [R4]                                               ; +0x56, 0x69ca9a\nMOV             R0, R4                                                 ; +0x58, 0x69ca9c\nMOV             R1, R5                                                 ; +0x5a, 0x69ca9e\nPOP.W           {R4-R8,LR}                                             ; +0x5c, 0x69caa0\nLDR             R3, [R3,#0x24]                                         ; +0x60, 0x69caa4\nBX              R3                                                     ; +0x62, 0x69caa6", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}