{"type": "func", "start": 6933874, "end": 6933934, "name": "CharacterColorPage::activeColorForMode", "pseudocode": "// \n// CharacterColorPage::activeColorForMode from 0x69cd72 to 0x69cdae (60 bytes)\n// \n// 4 xrefs:\n// > CharacterColorPage::updateColorMode @ 0x69cdc8\n// > CharacterColorPage::updateColorMode @ 0x69cdd2\n// > CharacterColorPage::updateColorMode @ 0x69cddc\n// > CharacterColorPage::onPlayerColor @ 0x69d260\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:20 +0000\n// \n\nint __fastcall CharacterColorPage::activeColorForMode(CharacterColorPage *this, int a2)\n{\n  int v2; // r0\n  int v3; // r3\n  int v4; // r0\n  int v5; // r0\n  int v6; // r0\n\n  switch ( a2 )\n  {\n    case 1:\n      v5 = GameManager::sharedState(this);\n      v3 = *(_DWORD *)(v5 + 624);\n      v4 = *(_DWORD *)(v5 + 628);\n      return v3 - v4;\n    case 2:\n      v6 = GameManager::sharedState(this);\n      v3 = *(_DWORD *)(v6 + 636);\n      v4 = *(_DWORD *)(v6 + 640);\n      return v3 - v4;\n    case 0:\n      v2 = GameManager::sharedState(this);\n      v3 = *(_DWORD *)(v2 + 612);\n      v4 = *(_DWORD *)(v2 + 616);\n      return v3 - v4;\n  }\n  return 0;\n}", "assembly": "; \n; CharacterColorPage::activeColorForMode from 0x69cd72 to 0x69cdae (60 bytes)\n; \n; 4 xrefs:\n; > CharacterColorPage::updateColorMode @ 0x69cdc8\n; > CharacterColorPage::updateColorMode @ 0x69cdd2\n; > CharacterColorPage::updateColorMode @ 0x69cddc\n; > CharacterColorPage::onPlayerColor @ 0x69d260\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:20 +0000\n; \nCMP             R1, #1                                                 ; +0x0, 0x69cd72\nPUSH            {R3,LR}                                                ; +0x2, 0x69cd74\nBEQ             loc_69CD8C                                             ; +0x4, 0x69cd76\nCMP             R1, #2                                                 ; +0x6, 0x69cd78\nBEQ             loc_69CD9A                                             ; +0x8, 0x69cd7a\nCBNZ            R1, loc_69CDAA                                         ; +0xa, 0x69cd7c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xc, 0x69cd7e\nLDR.W           R3, [R0,#0x264]                                        ; +0x10, 0x69cd82\nLDR.W           R0, [R0,#0x268]; this                                  ; +0x14, 0x69cd86\nB               loc_69CDA6                                             ; +0x18, 0x69cd8a\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1a, 0x69cd8c\nLDR.W           R3, [R0,#0x270]                                        ; +0x1e, 0x69cd90\nLDR.W           R0, [R0,#0x274]; this                                  ; +0x22, 0x69cd94\nB               loc_69CDA6                                             ; +0x26, 0x69cd98\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x28, 0x69cd9a\nLDR.W           R3, [R0,#0x27C]                                        ; +0x2c, 0x69cd9e\nLDR.W           R0, [R0,#0x280]                                        ; +0x30, 0x69cda2\nSUBS            R0, R3, R0                                             ; +0x34, 0x69cda6\nPOP             {R3,PC}                                                ; +0x36, 0x69cda8\nMOVS            R0, #0                                                 ; +0x38, 0x69cdaa\nPOP             {R3,PC}                                                ; +0x3a, 0x69cdac", "xrefs": ["CharacterColorPage::updateColorMode @ 0x69cdc8", "CharacterColorPage::updateColorMode @ 0x69cdd2", "CharacterColorPage::updateColorMode @ 0x69cddc", "CharacterColorPage::onPlayerColor @ 0x69d260"], "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"}