{"type": "func", "start": 5655876, "end": 5656448, "name": "CharacterColorPage::updateColorMode", "pseudocode": "// \n// CharacterColorPage::updateColorMode from 0x564d44 to 0x564f80 (572 bytes)\n// \n// 2 xrefs:\n// > CharacterColorPage::onMode @ 0x564fbe\n// > CharacterColorPage::init @ 0x565df6\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::updateColorMode(CharacterColorPage *a1, int a2)\n{\n  int v3; // r0\n  cocos2d::CCDictionary *m_colorButtons; // r3\n  int v5; // r11\n  unsigned int i; // r6\n  cocos2d::CCDictElement *m_pElements; // r3\n  cocos2d::CCDictElement *next; // r5\n  cocos2d::CCObject *m_pObject; // r6\n  int v10; // r0\n  int v11; // r0\n  cocos2d::CCLayer *m_mainLayer; // r10\n  int v13; // r7\n  int v14; // r0\n  const cocos2d::CCPoint *v15; // r0\n  int v16; // r0\n  int v17; // r0\n  int v18; // r0\n  GameManager *v19; // r0\n  UnlockType v20; // r2\n  _BOOL4 isColorUnlocked; // r10\n  int v22; // r6\n  GameStatsManager *v23; // r0\n  UnlockType v24; // r2\n  int v25; // r0\n  ButtonSprite *v26; // r0\n  const char *v27; // r1\n  int v28; // r5\n  ButtonSprite *v29; // r0\n  void (__fastcall *v30)(int, cocos2d::CCPoint *); // r2\n  ButtonSprite *v31; // r8\n  int v32; // r0\n  void (__fastcall *v33)(int, cocos2d::CCPoint *); // r2\n  cocos2d::CCDictElement *v34; // r2\n  void (__fastcall *v35)(int, cocos2d::CCPoint *); // r3\n  int active; // [sp+0h] [bp-2Ch]\n  int v37; // [sp+4h] [bp-28h]\n  cocos2d::CCMenu *m_buttonMenu; // [sp+Ch] [bp-20h]\n  cocos2d::CCPoint v39; // [sp+14h] [bp-18h] BYREF\n  cocos2d::CCPoint v40; // [sp+1Ch] [bp-10h] BYREF\n\n  a1->m_colorMode = a2;\n  active = CharacterColorPage::activeColorForMode(a1, 0);\n  v37 = CharacterColorPage::activeColorForMode(a1, 1);\n  v3 = CharacterColorPage::activeColorForMode(a1, 2);\n  m_colorButtons = a1->m_colorButtons;\n  v5 = v3;\n  if ( m_colorButtons )\n  {\n    m_pElements = m_colorButtons->m_pElements;\n    if ( m_pElements )\n      next = (cocos2d::CCDictElement *)m_pElements->hh.next;\n    else\n      next = nullptr;\n    while ( m_pElements )\n    {\n      m_pObject = m_pElements->m_pObject;\n      v10 = ((int (__fastcall *)(cocos2d::CCObject *))m_pObject->__vftable[6].~CCObject_0)(m_pObject);\n      v11 = (*(int (__fastcall **)(int))(*(_DWORD *)v10 + 32))(v10);\n      m_mainLayer = a1->m_mainLayer;\n      m_buttonMenu = a1->m_buttonMenu;\n      v13 = v11;\n      v14 = ((int (__fastcall *)(cocos2d::CCObject *))m_pObject->__vftable[6].~CCObject_0)(m_pObject);\n      v15 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v14 + 96))(v14);\n      cocos2d::CCNode::convertToWorldSpace(&v40, m_buttonMenu, v15);\n      cocos2d::CCNode::convertToNodeSpace(&v39, m_mainLayer, &v40);\n      if ( v13 == active )\n      {\n        v16 = cocos2d::CCArray::objectAtIndex(a1->m_cursors, 0);\n        (*(void (__fastcall **)(int, cocos2d::CCPoint *))(*(_DWORD *)v16 + 92))(v16, &v39);\n      }\n      if ( v13 == v37 )\n      {\n        v17 = cocos2d::CCArray::objectAtIndex(a1->m_cursors, 1u);\n        (*(void (__fastcall **)(int, cocos2d::CCPoint *))(*(_DWORD *)v17 + 92))(v17, &v39);\n      }\n      if ( v13 == v5 )\n      {\n        v18 = cocos2d::CCArray::objectAtIndex(a1->m_cursors, 2u);\n        (*(void (__fastcall **)(int, cocos2d::CCPoint *))(*(_DWORD *)v18 + 92))(v18, &v39);\n      }\n      v19 = GameManager::sharedState();\n      if ( a1->m_colorMode )\n        v20 = Col2;\n      else\n        v20 = Col1;\n      isColorUnlocked = GameManager::isColorUnlocked(v19, v13, v20);\n      v22 = ((int (__fastcall *)(cocos2d::CCObject *, int))m_pObject->__vftable[5].getTag)(m_pObject, 100);\n      (*(void (__fastcall **)(int, bool))(*(_DWORD *)v22 + 164))(v22, !isColorUnlocked);\n      if ( isColorUnlocked\n        || ((v23 = GameStatsManager::sharedState(), a1->m_colorMode) ? (v24 = Col2) : (v24 = Col1),\n            GameStatsManager::getItemUnlockState(v23, v13, v24)) )\n      {\n        v33 = *(void (__fastcall **)(int, cocos2d::CCPoint *))(*(_DWORD *)v22 + 472);\n        LOWORD(v40.x) = -1;\n        BYTE2(v40.x) = -1;\n        v33(v22, &v40);\n      }\n      else\n      {\n        v35 = *(void (__fastcall **)(int, cocos2d::CCPoint *))(*(_DWORD *)v22 + 472);\n        LOBYTE(v40.x) = 0;\n        *(_WORD *)((char *)&v40.x + 1) = 255;\n        v35(v22, &v40);\n      }\n      if ( next )\n        v34 = (cocos2d::CCDictElement *)next->hh.next;\n      else\n        v34 = nullptr;\n      m_pElements = next;\n      next = v34;\n    }\n  }\n  for ( i = 0; i != 3; ++i )\n  {\n    v28 = cocos2d::CCArray::objectAtIndex(a1->m_cursors, i);\n    v29 = (ButtonSprite *)cocos2d::CCArray::objectAtIndex(a1->m_modeButtons, i);\n    v30 = *(void (__fastcall **)(int, cocos2d::CCPoint *))(*(_DWORD *)v28 + 472);\n    v31 = v29;\n    if ( i == a1->m_colorMode )\n    {\n      LOWORD(v40.x) = -1;\n      BYTE2(v40.x) = -1;\n      v30(v28, &v40);\n      v25 = (*(int (__fastcall **)(int))(*(_DWORD *)v28 + 248))(v28);\n      (*(void (__fastcall **)(int, int, int))(*(_DWORD *)v25 + 288))(v25, v28, 11);\n      v26 = v31;\n      v27 = \"GJ_button_01.png\";\n    }\n    else\n    {\n      memset(&v40, 50, 3);\n      v30(v28, &v40);\n      v32 = (*(int (__fastcall **)(int))(*(_DWORD *)v28 + 248))(v28);\n      (*(void (__fastcall **)(int, int, int))(*(_DWORD *)v32 + 288))(v32, v28, 1);\n      v26 = v31;\n      v27 = \"GJ_button_04.png\";\n    }\n    ButtonSprite::updateBGImage(v26, v27);\n  }\n  CharacterColorPage::toggleGlowItems(a1, a1->m_colorMode == 2);\n}", "assembly": "; \n; CharacterColorPage::updateColorMode from 0x564d44 to 0x564f80 (572 bytes)\n; \n; 2 xrefs:\n; > CharacterColorPage::onMode @ 0x564fbe\n; > CharacterColorPage::init @ 0x565df6\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\nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x564d44\nSUB             SP, SP, #0x2C                                          ; +0x4, 0x564d48\nLDR             R5, =(__stack_chk_guard_ptr - 0x564D58)                ; +0x6, 0x564d4a\nMOV             R4, R0                                                 ; +0x8, 0x564d4c\nSTR.W           R1, [R0,#0x1F0]                                        ; +0xa, 0x564d4e\nMOVS            R1, #0; int                                            ; +0xe, 0x564d52\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x10, 0x564d54\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x12, 0x564d56\nLDR             R3, [R5]                                               ; +0x14, 0x564d58\nSTR             R3, [SP,#0x2C+var_8]                                   ; +0x16, 0x564d5a\nBL              _ZN18CharacterColorPage18activeColorForModeEi; CharacterColorPage::activeColorForMode(int) ; +0x18, 0x564d5c\nMOVS            R1, #1; int                                            ; +0x1c, 0x564d60\nSTR             R0, [SP,#0x2C+var_2C]                                  ; +0x1e, 0x564d62\nMOV             R0, R4; this                                           ; +0x20, 0x564d64\nBL              _ZN18CharacterColorPage18activeColorForModeEi; CharacterColorPage::activeColorForMode(int) ; +0x22, 0x564d66\nMOVS            R1, #2; int                                            ; +0x26, 0x564d6a\nSTR             R0, [SP,#0x2C+var_28]                                  ; +0x28, 0x564d6c\nMOV             R0, R4; this                                           ; +0x2a, 0x564d6e\nBL              _ZN18CharacterColorPage18activeColorForModeEi; CharacterColorPage::activeColorForMode(int) ; +0x2c, 0x564d70\nLDR.W           R3, [R4,#0x204]                                        ; +0x30, 0x564d74\nSTR             R5, [SP,#0x2C+var_24]                                  ; +0x34, 0x564d78\nMOV             R11, R0                                                ; +0x36, 0x564d7a\nCBNZ            R3, loc_564D90                                         ; +0x38, 0x564d7c\nLDR.W           R9, =(aGjButton01Png - 0x564D8E); \"GJ_button_01.png\"   ; +0x3a, 0x564d7e\nMOVS            R6, #0                                                 ; +0x3e, 0x564d82\nLDR.W           R10, =(aGjButton04Png - 0x564D90); \"GJ_button_04.png\"  ; +0x40, 0x564d84\nADD             R7, SP, #0x2C+var_10                                   ; +0x44, 0x564d88\nADD             R9, PC; \"GJ_button_01.png\"                             ; +0x46, 0x564d8a\nADD             R10, PC; \"GJ_button_04.png\"                            ; +0x48, 0x564d8c\nB               loc_564EC0                                             ; +0x4a, 0x564d8e\nLDR             R3, [R3,#0x34]                                         ; +0x4c, 0x564d90\nCBZ             R3, loc_564D9A                                         ; +0x4e, 0x564d92\nLDR.W           R5, [R3,#0x110]                                        ; +0x50, 0x564d94\nB               loc_564D9C                                             ; +0x54, 0x564d98\nMOV             R5, R3                                                 ; +0x56, 0x564d9a\nADD.W           R8, SP, #0x2C+var_10                                   ; +0x58, 0x564d9c\nADD.W           R9, SP, #0x2C+var_18                                   ; +0x5c, 0x564da0\nCMP             R3, #0                                                 ; +0x60, 0x564da4\nBEQ             loc_564D7E                                             ; +0x62, 0x564da6\nLDR.W           R6, [R3,#0x104]                                        ; +0x64, 0x564da8\nLDR             R3, [R6]                                               ; +0x68, 0x564dac\nMOV             R0, R6                                                 ; +0x6a, 0x564dae\nLDR.W           R3, [R3,#0xF8]                                         ; +0x6c, 0x564db0\nBLX             R3                                                     ; +0x70, 0x564db4\nLDR             R3, [R0]                                               ; +0x72, 0x564db6\nLDR             R3, [R3,#0x20]                                         ; +0x74, 0x564db8\nBLX             R3                                                     ; +0x76, 0x564dba\nLDR.W           R1, [R4,#0x1B8]                                        ; +0x78, 0x564dbc\nLDR             R3, [R6]                                               ; +0x7c, 0x564dc0\nLDR.W           R10, [R4,#0x1C8]                                       ; +0x7e, 0x564dc2\nSTR             R1, [SP,#0x2C+var_20]                                  ; +0x82, 0x564dc6\nLDR.W           R3, [R3,#0xF8]                                         ; +0x84, 0x564dc8\nMOV             R7, R0                                                 ; +0x88, 0x564dcc\nMOV             R0, R6                                                 ; +0x8a, 0x564dce\nBLX             R3                                                     ; +0x8c, 0x564dd0\nLDR             R3, [R0]                                               ; +0x8e, 0x564dd2\nLDR             R3, [R3,#0x60]                                         ; +0x90, 0x564dd4\nBLX             R3                                                     ; +0x92, 0x564dd6\nLDR             R1, [SP,#0x2C+var_20]; cocos2d::CCPoint *              ; +0x94, 0x564dd8\nMOV             R2, R0                                                 ; +0x96, 0x564dda\nMOV             R0, R8; this                                           ; +0x98, 0x564ddc\nBL              _ZN7cocos2d6CCNode19convertToWorldSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const&) ; +0x9a, 0x564dde\nMOV             R0, R9; this                                           ; +0x9e, 0x564de2\nMOV             R1, R10; cocos2d::CCPoint *                            ; +0xa0, 0x564de4\nMOV             R2, R8                                                 ; +0xa2, 0x564de6\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0xa4, 0x564de8\nLDR             R3, [SP,#0x2C+var_2C]                                  ; +0xa8, 0x564dec\nCMP             R7, R3                                                 ; +0xaa, 0x564dee\nBNE             loc_564E04                                             ; +0xac, 0x564df0\nMOVS            R1, #0; unsigned int                                   ; +0xae, 0x564df2\nLDR.W           R0, [R4,#0x208]; this                                  ; +0xb0, 0x564df4\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xb4, 0x564df8\nMOV             R1, R9                                                 ; +0xb8, 0x564dfc\nLDR             R3, [R0]                                               ; +0xba, 0x564dfe\nLDR             R3, [R3,#0x5C]                                         ; +0xbc, 0x564e00\nBLX             R3                                                     ; +0xbe, 0x564e02\nLDR             R3, [SP,#0x2C+var_28]                                  ; +0xc0, 0x564e04\nCMP             R7, R3                                                 ; +0xc2, 0x564e06\nBNE             loc_564E1C                                             ; +0xc4, 0x564e08\nMOVS            R1, #1; unsigned int                                   ; +0xc6, 0x564e0a\nLDR.W           R0, [R4,#0x208]; this                                  ; +0xc8, 0x564e0c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xcc, 0x564e10\nMOV             R1, R9                                                 ; +0xd0, 0x564e14\nLDR             R3, [R0]                                               ; +0xd2, 0x564e16\nLDR             R3, [R3,#0x5C]                                         ; +0xd4, 0x564e18\nBLX             R3                                                     ; +0xd6, 0x564e1a\nCMP             R7, R11                                                ; +0xd8, 0x564e1c\nBNE             loc_564E32                                             ; +0xda, 0x564e1e\nMOVS            R1, #2; unsigned int                                   ; +0xdc, 0x564e20\nLDR.W           R0, [R4,#0x208]; this                                  ; +0xde, 0x564e22\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xe2, 0x564e26\nMOV             R1, R9                                                 ; +0xe6, 0x564e2a\nLDR             R3, [R0]                                               ; +0xe8, 0x564e2c\nLDR             R3, [R3,#0x5C]                                         ; +0xea, 0x564e2e\nBLX             R3                                                     ; +0xec, 0x564e30\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xee, 0x564e32\nLDR.W           R3, [R4,#0x1F0]                                        ; +0xf2, 0x564e36\nMOV             R1, R7                                                 ; +0xf6, 0x564e3a\nCMP             R3, #0                                                 ; +0xf8, 0x564e3c\nITE EQ                                                                 ; +0xfa, 0x564e3e\nMOVEQ           R2, #2                                                 ; +0xfc, 0x564e40\nMOVNE           R2, #3                                                 ; +0xfe, 0x564e42\nBL              _ZN11GameManager15isColorUnlockedEi10UnlockType; GameManager::isColorUnlocked(int,UnlockType) ; +0x100, 0x564e44\nLDR             R3, [R6]                                               ; +0x104, 0x564e48\nMOVS            R1, #0x64 ; 'd'                                        ; +0x106, 0x564e4a\nLDR.W           R3, [R3,#0xE8]                                         ; +0x108, 0x564e4c\nMOV             R10, R0                                                ; +0x10c, 0x564e50\nMOV             R0, R6                                                 ; +0x10e, 0x564e52\nBLX             R3                                                     ; +0x110, 0x564e54\nEOR.W           R1, R10, #1                                            ; +0x112, 0x564e56\nUXTB            R1, R1                                                 ; +0x116, 0x564e5a\nLDR             R3, [R0]                                               ; +0x118, 0x564e5c\nMOV             R6, R0                                                 ; +0x11a, 0x564e5e\nLDR.W           R3, [R3,#0xA4]                                         ; +0x11c, 0x564e60\nBLX             R3                                                     ; +0x120, 0x564e64\nCMP.W           R10, #0                                                ; +0x122, 0x564e66\nBNE             loc_564F34                                             ; +0x126, 0x564e6a\nBL              _ZN16GameStatsManager11sharedStateEv; GameStatsManager::sharedState(void) ; +0x128, 0x564e6c\nLDR.W           R3, [R4,#0x1F0]                                        ; +0x12c, 0x564e70\nMOV             R1, R7; int                                            ; +0x130, 0x564e74\nCMP             R3, #0                                                 ; +0x132, 0x564e76\nITE EQ                                                                 ; +0x134, 0x564e78\nMOVEQ           R2, #2                                                 ; +0x136, 0x564e7a\nMOVNE           R2, #3                                                 ; +0x138, 0x564e7c\nBL              _ZN16GameStatsManager18getItemUnlockStateEi10UnlockType; GameStatsManager::getItemUnlockState(int,UnlockType) ; +0x13a, 0x564e7e\nCMP             R0, #0                                                 ; +0x13e, 0x564e82\nBEQ             loc_564F5E                                             ; +0x140, 0x564e84\nB               loc_564F34                                             ; +0x142, 0x564e86\nMOVS            R3, #0xFF                                              ; +0x144, 0x564e88\nMOV             R1, R7                                                 ; +0x146, 0x564e8a\nSTRB.W          R3, [SP,#0x2C+var_10]                                  ; +0x148, 0x564e8c\nMOV             R0, R5                                                 ; +0x14c, 0x564e90\nSTRB.W          R3, [SP,#0x2C+var_F]                                   ; +0x14e, 0x564e92\nSTRB.W          R3, [SP,#0x2C+var_E]                                   ; +0x152, 0x564e96\nBLX             R2                                                     ; +0x156, 0x564e9a\nLDR             R3, [R5]                                               ; +0x158, 0x564e9c\nMOV             R0, R5                                                 ; +0x15a, 0x564e9e\nLDR.W           R3, [R3,#0xF8]                                         ; +0x15c, 0x564ea0\nBLX             R3                                                     ; +0x160, 0x564ea4\nMOV             R1, R5                                                 ; +0x162, 0x564ea6\nMOVS            R2, #0xB                                               ; +0x164, 0x564ea8\nLDR             R3, [R0]                                               ; +0x166, 0x564eaa\nLDR.W           R3, [R3,#0x120]                                        ; +0x168, 0x564eac\nBLX             R3                                                     ; +0x16c, 0x564eb0\nMOV             R0, R8; this                                           ; +0x16e, 0x564eb2\nMOV             R1, R9; char *                                         ; +0x170, 0x564eb4\nADDS            R6, #1                                                 ; +0x172, 0x564eb6\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x174, 0x564eb8\nCMP             R6, #3                                                 ; +0x178, 0x564ebc\nBEQ             loc_564F16                                             ; +0x17a, 0x564ebe\nMOV             R1, R6; unsigned int                                   ; +0x17c, 0x564ec0\nLDR.W           R0, [R4,#0x208]; this                                  ; +0x17e, 0x564ec2\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x182, 0x564ec6\nMOV             R1, R6; unsigned int                                   ; +0x186, 0x564eca\nMOV             R5, R0                                                 ; +0x188, 0x564ecc\nLDR.W           R0, [R4,#0x200]; this                                  ; +0x18a, 0x564ece\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x18e, 0x564ed2\nLDR.W           R3, [R4,#0x1F0]                                        ; +0x192, 0x564ed6\nCMP             R6, R3                                                 ; +0x196, 0x564eda\nLDR             R3, [R5]                                               ; +0x198, 0x564edc\nLDR.W           R2, [R3,#0x1D8]                                        ; +0x19a, 0x564ede\nMOV             R8, R0                                                 ; +0x19e, 0x564ee2\nBEQ             loc_564E88                                             ; +0x1a0, 0x564ee4\nMOVS            R3, #0x32 ; '2'                                        ; +0x1a2, 0x564ee6\nMOV             R1, R7                                                 ; +0x1a4, 0x564ee8\nSTRB.W          R3, [SP,#0x2C+var_10]                                  ; +0x1a6, 0x564eea\nMOV             R0, R5                                                 ; +0x1aa, 0x564eee\nSTRB.W          R3, [SP,#0x2C+var_F]                                   ; +0x1ac, 0x564ef0\nSTRB.W          R3, [SP,#0x2C+var_E]                                   ; +0x1b0, 0x564ef4\nBLX             R2                                                     ; +0x1b4, 0x564ef8\nLDR             R3, [R5]                                               ; +0x1b6, 0x564efa\nMOV             R0, R5                                                 ; +0x1b8, 0x564efc\nLDR.W           R3, [R3,#0xF8]                                         ; +0x1ba, 0x564efe\nBLX             R3                                                     ; +0x1be, 0x564f02\nMOV             R1, R5                                                 ; +0x1c0, 0x564f04\nMOVS            R2, #1                                                 ; +0x1c2, 0x564f06\nLDR             R3, [R0]                                               ; +0x1c4, 0x564f08\nLDR.W           R3, [R3,#0x120]                                        ; +0x1c6, 0x564f0a\nBLX             R3                                                     ; +0x1ca, 0x564f0e\nMOV             R0, R8                                                 ; +0x1cc, 0x564f10\nMOV             R1, R10                                                ; +0x1ce, 0x564f12\nB               loc_564EB6                                             ; +0x1d0, 0x564f14\nLDR.W           R1, [R4,#0x1F0]                                        ; +0x1d2, 0x564f16\nMOV             R0, R4; this                                           ; +0x1d6, 0x564f1a\nSUBS            R3, R1, #2                                             ; +0x1d8, 0x564f1c\nNEGS            R1, R3                                                 ; +0x1da, 0x564f1e\nADCS            R1, R3; bool                                           ; +0x1dc, 0x564f20\nBL              _ZN18CharacterColorPage15toggleGlowItemsEb; CharacterColorPage::toggleGlowItems(bool) ; +0x1de, 0x564f22\nLDR             R3, [SP,#0x2C+var_24]                                  ; +0x1e2, 0x564f26\nLDR             R2, [SP,#0x2C+var_8]                                   ; +0x1e4, 0x564f28\nLDR             R3, [R3]                                               ; +0x1e6, 0x564f2a\nCMP             R2, R3                                                 ; +0x1e8, 0x564f2c\nBEQ             loc_564F7A                                             ; +0x1ea, 0x564f2e\nBLX             __stack_chk_fail                                       ; +0x1ec, 0x564f30\nLDR             R3, [R6]                                               ; +0x1f0, 0x564f34\nMOV             R0, R6                                                 ; +0x1f2, 0x564f36\nMOV             R1, R8                                                 ; +0x1f4, 0x564f38\nLDR.W           R2, [R3,#0x1D8]                                        ; +0x1f6, 0x564f3a\nMOVS            R3, #0xFF                                              ; +0x1fa, 0x564f3e\nSTRB.W          R3, [SP,#0x2C+var_10]                                  ; +0x1fc, 0x564f40\nSTRB.W          R3, [SP,#0x2C+var_F]                                   ; +0x200, 0x564f44\nSTRB.W          R3, [SP,#0x2C+var_E]                                   ; +0x204, 0x564f48\nBLX             R2                                                     ; +0x208, 0x564f4c\nCBZ             R5, loc_564F56                                         ; +0x20a, 0x564f4e\nLDR.W           R2, [R5,#0x110]                                        ; +0x20c, 0x564f50\nB               loc_564F58                                             ; +0x210, 0x564f54\nMOV             R2, R5                                                 ; +0x212, 0x564f56\nMOV             R3, R5                                                 ; +0x214, 0x564f58\nMOV             R5, R2                                                 ; +0x216, 0x564f5a\nB               loc_564DA4                                             ; +0x218, 0x564f5c\nLDR             R3, [R6]                                               ; +0x21a, 0x564f5e\nMOVS            R2, #0xFF                                              ; +0x21c, 0x564f60\nMOV             R1, R8                                                 ; +0x21e, 0x564f62\nLDR.W           R3, [R3,#0x1D8]                                        ; +0x220, 0x564f64\nSTRB.W          R0, [SP,#0x2C+var_10]                                  ; +0x224, 0x564f68\nSTRB.W          R0, [SP,#0x2C+var_E]                                   ; +0x228, 0x564f6c\nMOV             R0, R6                                                 ; +0x22c, 0x564f70\nSTRB.W          R2, [SP,#0x2C+var_F]                                   ; +0x22e, 0x564f72\nBLX             R3                                                     ; +0x232, 0x564f76\nB               loc_564F4E                                             ; +0x234, 0x564f78\nADD             SP, SP, #0x2C ; ','                                    ; +0x236, 0x564f7a\nPOP.W           {R4-R11,PC}                                            ; +0x238, 0x564f7c", "xrefs": ["CharacterColorPage::onMode @ 0x564fbe", "CharacterColorPage::init @ 0x565df6"], "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"}