{"type": "func", "start": 5657604, "end": 5657888, "name": "CharacterColorPage::updateIconColors", "pseudocode": "// \n// CharacterColorPage::updateIconColors from 0x565404 to 0x565520 (284 bytes)\n// \n// 3 xrefs:\n// > CharacterColorPage::toggleGlow @ 0x565544\n// > CharacterColorPage::onPlayerColor @ 0x5656ba\n// > CharacterColorPage::init @ 0x565ca4\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::updateIconColors(CharacterColorPage *a1)\n{\n  unsigned int v2; // r8\n  bool m_playerGlow; // r5\n  GameManager *v4; // r7\n  GameManager *v5; // r0\n  int v6; // r0\n  GameManager *v7; // r7\n  GameManager *v8; // r0\n  GameManager *v9; // r0\n  int v10; // r7\n  GameManager *v11; // r0\n  SimplePlayer *v12; // r7\n  GameManager *v13; // r0\n  __int16 v14; // [sp+0h] [bp-8h] BYREF\n  char v15; // [sp+2h] [bp-6h]\n  cocos2d::ccColor3B v16; // [sp+4h] [bp-4h] BYREF\n  cocos2d::ccColor3B v17; // [sp+8h] [bp+0h] BYREF\n\n  v2 = 0;\n  m_playerGlow = GameManager::sharedState()->m_playerGlow;\n  v4 = GameManager::sharedState();\n  v5 = GameManager::sharedState();\n  *(cocos2d::ccColor3B *)&v6 = GameManager::colorForIdx(v4, v5->m_playerColor.random - v5->m_playerColor.seed);\n  v14 = v6;\n  v15 = BYTE2(v6);\n  v7 = GameManager::sharedState();\n  v8 = GameManager::sharedState();\n  v16 = GameManager::colorForIdx(v7, v8->m_playerColor2.random - v8->m_playerColor2.seed);\n  v9 = GameManager::sharedState();\n  v10 = v9->m_playerGlowColor.random - v9->m_playerGlowColor.seed;\n  v11 = GameManager::sharedState();\n  v17 = GameManager::colorForIdx(v11, v10);\n  while ( v2 < cocos2d::CCArray::count(a1->m_playerObjects) )\n  {\n    v12 = (SimplePlayer *)cocos2d::CCArray::objectAtIndex(a1->m_playerObjects, v2);\n    v12->setColor(v12, (const cocos2d::ccColor3B *)&v14);\n    SimplePlayer::setSecondColor(v12, &v16);\n    v12->m_hasGlowOutline = m_playerGlow;\n    v13 = GameManager::sharedState();\n    if ( v13->m_playerGlowColor.random - v13->m_playerGlowColor.seed < 0 )\n      SimplePlayer::disableCustomGlowColor(v12);\n    else\n      SimplePlayer::enableCustomGlowColor(v12, &v17);\n    ++v2;\n    SimplePlayer::updateColors(v12);\n  }\n}", "assembly": "; \n; CharacterColorPage::updateIconColors from 0x565404 to 0x565520 (284 bytes)\n; \n; 3 xrefs:\n; > CharacterColorPage::toggleGlow @ 0x565544\n; > CharacterColorPage::onPlayerColor @ 0x5656ba\n; > CharacterColorPage::init @ 0x565ca4\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, 0x565404\nSUB             SP, SP, #0x14                                          ; +0x4, 0x565408\nLDR             R6, =(__stack_chk_guard_ptr - 0x56541A)                ; +0x6, 0x56540a\nMOV             R4, R0                                                 ; +0x8, 0x56540c\nADD.W           R10, SP, #0x14+var_10                                  ; +0xa, 0x56540e\nADD.W           R11, SP, #8                                            ; +0xe, 0x565412\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0x12, 0x565416\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x14, 0x565418\nMOV.W           R8, #0                                                 ; +0x16, 0x56541a\nMOV             R9, SP                                                 ; +0x1a, 0x56541e\nLDR             R3, [R6]                                               ; +0x1c, 0x565420\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x1e, 0x565422\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x20, 0x565424\nLDRB.W          R5, [R0,#0x290]                                        ; +0x24, 0x565428\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x28, 0x56542c\nMOV             R7, R0                                                 ; +0x2c, 0x565430\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x2e, 0x565432\nLDR.W           R3, [R0,#0x230]                                        ; +0x32, 0x565436\nLDR.W           R1, [R0,#0x22C]                                        ; +0x36, 0x56543a\nMOV             R0, R7; this                                           ; +0x3a, 0x56543e\nSUBS            R1, R1, R3; int                                        ; +0x3c, 0x565440\nBL              _ZN11GameManager11colorForIdxEi; GameManager::colorForIdx(int) ; +0x3e, 0x565442\nUBFX.W          R3, R0, #8, #8                                         ; +0x42, 0x565446\nSTRB.W          R0, [SP,#0x14+var_14]                                  ; +0x46, 0x56544a\nSTRB.W          R3, [SP,#0x14+var_13]                                  ; +0x4a, 0x56544e\nUBFX.W          R0, R0, #0x10, #8; this                                ; +0x4e, 0x565452\nSTRB.W          R0, [SP,#0x14+var_12]                                  ; +0x52, 0x565456\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x56, 0x56545a\nMOV             R7, R0                                                 ; +0x5a, 0x56545e\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x5c, 0x565460\nLDR.W           R3, [R0,#0x23C]                                        ; +0x60, 0x565464\nLDR.W           R1, [R0,#0x238]                                        ; +0x64, 0x565468\nMOV             R0, R7; this                                           ; +0x68, 0x56546c\nSUBS            R1, R1, R3; int                                        ; +0x6a, 0x56546e\nBL              _ZN11GameManager11colorForIdxEi; GameManager::colorForIdx(int) ; +0x6c, 0x565470\nUBFX.W          R3, R0, #8, #8                                         ; +0x70, 0x565474\nSTRB.W          R0, [SP,#0x14+var_10]                                  ; +0x74, 0x565478\nSTRB.W          R3, [SP,#0x14+var_F]                                   ; +0x78, 0x56547c\nUBFX.W          R0, R0, #0x10, #8; this                                ; +0x7c, 0x565480\nSTRB.W          R0, [SP,#0x14+var_E]                                   ; +0x80, 0x565484\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x84, 0x565488\nLDR.W           R3, [R0,#0x244]                                        ; +0x88, 0x56548c\nLDR.W           R7, [R0,#0x248]                                        ; +0x8c, 0x565490\nSUBS            R7, R3, R7                                             ; +0x90, 0x565494\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x92, 0x565496\nMOV             R1, R7; int                                            ; +0x96, 0x56549a\nBL              _ZN11GameManager11colorForIdxEi; GameManager::colorForIdx(int) ; +0x98, 0x56549c\nUBFX.W          R3, R0, #8, #8                                         ; +0x9c, 0x5654a0\nSTRB.W          R0, [SP,#0x14+var_C]                                   ; +0xa0, 0x5654a4\nSTRB.W          R3, [SP,#0x14+var_B]                                   ; +0xa4, 0x5654a8\nUBFX.W          R0, R0, #0x10, #8                                      ; +0xa8, 0x5654ac\nSTRB.W          R0, [SP,#0x14+var_A]                                   ; +0xac, 0x5654b0\nLDR.W           R0, [R4,#0x1FC]; this                                  ; +0xb0, 0x5654b4\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xb4, 0x5654b8\nCMP             R8, R0                                                 ; +0xb8, 0x5654bc\nBCS             loc_56550E                                             ; +0xba, 0x5654be\nMOV             R1, R8; unsigned int                                   ; +0xbc, 0x5654c0\nLDR.W           R0, [R4,#0x1FC]; this                                  ; +0xbe, 0x5654c2\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xc2, 0x5654c6\nMOV             R1, R9                                                 ; +0xc6, 0x5654ca\nLDR             R3, [R0]                                               ; +0xc8, 0x5654cc\nMOV             R7, R0                                                 ; +0xca, 0x5654ce\nLDR.W           R3, [R3,#0x1D8]                                        ; +0xcc, 0x5654d0\nBLX             R3                                                     ; +0xd0, 0x5654d4\nMOV             R0, R7                                                 ; +0xd2, 0x5654d6\nMOV             R1, R10                                                ; +0xd4, 0x5654d8\nBL              _ZN12SimplePlayer14setSecondColorERKN7cocos2d10_ccColor3BE; SimplePlayer::setSecondColor(cocos2d::_ccColor3B const&) ; +0xd6, 0x5654da\nSTRB.W          R5, [R7,#0x21C]                                        ; +0xda, 0x5654de\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xde, 0x5654e2\nLDR.W           R3, [R0,#0x244]                                        ; +0xe2, 0x5654e6\nLDR.W           R2, [R0,#0x248]                                        ; +0xe6, 0x5654ea\nMOV             R0, R7; this                                           ; +0xea, 0x5654ee\nSUBS            R3, R3, R2                                             ; +0xec, 0x5654f0\nCMP             R3, #0                                                 ; +0xee, 0x5654f2\nBLT             loc_5654FE                                             ; +0xf0, 0x5654f4\nMOV             R1, R11                                                ; +0xf2, 0x5654f6\nBL              _ZN12SimplePlayer21enableCustomGlowColorERKN7cocos2d10_ccColor3BE; SimplePlayer::enableCustomGlowColor(cocos2d::_ccColor3B const&) ; +0xf4, 0x5654f8\nB               loc_565502                                             ; +0xf8, 0x5654fc\nBL              _ZN12SimplePlayer22disableCustomGlowColorEv; SimplePlayer::disableCustomGlowColor(void) ; +0xfa, 0x5654fe\nMOV             R0, R7; this                                           ; +0xfe, 0x565502\nADD.W           R8, R8, #1                                             ; +0x100, 0x565504\nBL              _ZN12SimplePlayer12updateColorsEv; SimplePlayer::updateColors(void) ; +0x104, 0x565508\nB               loc_5654B4                                             ; +0x108, 0x56550c\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x10a, 0x56550e\nLDR             R3, [R6]                                               ; +0x10c, 0x565510\nCMP             R2, R3                                                 ; +0x10e, 0x565512\nBEQ             loc_56551A                                             ; +0x110, 0x565514\nBLX             __stack_chk_fail                                       ; +0x112, 0x565516\nADD             SP, SP, #0x14                                          ; +0x116, 0x56551a\nPOP.W           {R4-R11,PC}                                            ; +0x118, 0x56551c", "xrefs": ["CharacterColorPage::toggleGlow @ 0x565544", "CharacterColorPage::onPlayerColor @ 0x5656ba", "CharacterColorPage::init @ 0x565ca4"], "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"}