{"type": "func", "start": 10638248, "end": 10638664, "name": "CharacterColorPage::updateIconColors", "pseudocode": "// \n// CharacterColorPage::updateIconColors from 0xa253a8 to 0xa25548 (416 bytes)\n// \n// 4 xrefs:\n// > CharacterColorPage::toggleGlow @ 0xa2557c\n// > CharacterColorPage::onPlayerColor @ 0xa256d8\n// > CharacterColorPage::init @ 0xa25ddc\n// > <???> @ 0x74658\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; // w20\n  bool m_playerGlow; // w22\n  GameManager *v4; // x19\n  GameManager *v5; // x0\n  GameManager *v6; // x19\n  GameManager *v7; // x0\n  GameManager *v8; // x0\n  GameManager *v9; // x0\n  SimplePlayer *v10; // x19\n  GameManager *v11; // x0\n  int v12; // [xsp+58h] [xbp+58h]\n  cocos2d::ccColor3B v13; // [xsp+60h] [xbp+60h] BYREF\n  cocos2d::ccColor3B v14; // [xsp+68h] [xbp+68h] BYREF\n  cocos2d::ccColor3B v15; // [xsp+70h] [xbp+70h] BYREF\n\n  v2 = 0;\n  m_playerGlow = GameManager::sharedState()->m_playerGlow;\n  v4 = GameManager::sharedState();\n  v5 = GameManager::sharedState();\n  v13 = GameManager::colorForIdx(v4, v5->m_playerColor.random - v5->m_playerColor.seed);\n  v6 = GameManager::sharedState();\n  v7 = GameManager::sharedState();\n  v14 = GameManager::colorForIdx(v6, v7->m_playerColor2.random - v7->m_playerColor2.seed);\n  v8 = GameManager::sharedState();\n  v12 = v8->m_playerGlowColor.random - v8->m_playerGlowColor.seed;\n  v9 = GameManager::sharedState();\n  v15 = GameManager::colorForIdx(v9, v12);\n  while ( v2 < (unsigned int)cocos2d::CCArray::count(a1->m_playerObjects) )\n  {\n    v10 = (SimplePlayer *)cocos2d::CCArray::objectAtIndex(a1->m_playerObjects, v2);\n    v10->setColor(v10, &v13);\n    SimplePlayer::setSecondColor(v10, &v14);\n    v10->m_hasGlowOutline = m_playerGlow;\n    v11 = GameManager::sharedState();\n    if ( v11->m_playerGlowColor.random - v11->m_playerGlowColor.seed < 0 )\n      SimplePlayer::disableCustomGlowColor(v10);\n    else\n      SimplePlayer::enableCustomGlowColor(v10, &v15);\n    ++v2;\n    SimplePlayer::updateColors(v10);\n  }\n}", "assembly": "; \n; CharacterColorPage::updateIconColors from 0xa253a8 to 0xa25548 (416 bytes)\n; \n; 4 xrefs:\n; > CharacterColorPage::toggleGlow @ 0xa2557c\n; > CharacterColorPage::onPlayerColor @ 0xa256d8\n; > CharacterColorPage::init @ 0xa25ddc\n; > <???> @ 0x74658\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\nSTP             X29, X30, [SP,#var_80]!                                ; +0x0, 0xa253a8\nMOV             X29, SP                                                ; +0x4, 0xa253ac\nSTP             X25, X26, [SP,#0x80+var_40]                            ; +0x8, 0xa253b0\nADRP            X26, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xa253b4\nADD             X25, X29, #0x80+var_10                                 ; +0x10, 0xa253b8\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0x14, 0xa253bc\nMOV             X21, X0                                                ; +0x18, 0xa253c0\nLDR             X0, [X26,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0xa253c4\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0x20, 0xa253c8\nSTP             X23, X24, [SP,#0x80+var_50]                            ; +0x24, 0xa253cc\nLDR             X0, [X0]; this                                         ; +0x28, 0xa253d0\nMOV             W20, #0                                                ; +0x2c, 0xa253d4\nSTR             X0, [X29,#0x80+var_8]                                  ; +0x30, 0xa253d8\nADD             X24, X29, #0x80+var_20                                 ; +0x34, 0xa253dc\nADD             X23, X29, #0x80+var_18                                 ; +0x38, 0xa253e0\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x3c, 0xa253e4\nLDRB            W22, [X0,#0x328]                                       ; +0x40, 0xa253e8\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x44, 0xa253ec\nMOV             X19, X0                                                ; +0x48, 0xa253f0\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x4c, 0xa253f4\nMOV             X2, X0                                                 ; +0x50, 0xa253f8\nMOV             X0, X19; this                                          ; +0x54, 0xa253fc\nLDR             W3, [X2,#0x2C4]                                        ; +0x58, 0xa25400\nLDR             W1, [X2,#0x2C8]                                        ; +0x5c, 0xa25404\nSUB             W1, W3, W1; int                                        ; +0x60, 0xa25408\nBL              _ZN11GameManager11colorForIdxEi; GameManager::colorForIdx(int) ; +0x64, 0xa2540c\nSXTW            X0, W0; this                                           ; +0x68, 0xa25410\nUBFX            X2, X0, #8, #8                                         ; +0x6c, 0xa25414\nUBFX            X1, X0, #0x10, #8                                      ; +0x70, 0xa25418\nSTRB            W2, [X29,#0x80+var_1F]                                 ; +0x74, 0xa2541c\nSTRB            W1, [X29,#0x80+var_1E]                                 ; +0x78, 0xa25420\nSTRB            W0, [X29,#0x80+var_20]                                 ; +0x7c, 0xa25424\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x80, 0xa25428\nMOV             X19, X0                                                ; +0x84, 0xa2542c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x88, 0xa25430\nMOV             X2, X0                                                 ; +0x8c, 0xa25434\nMOV             X0, X19; this                                          ; +0x90, 0xa25438\nLDR             W3, [X2,#0x2D0]                                        ; +0x94, 0xa2543c\nLDR             W1, [X2,#0x2D4]                                        ; +0x98, 0xa25440\nSUB             W1, W3, W1; int                                        ; +0x9c, 0xa25444\nBL              _ZN11GameManager11colorForIdxEi; GameManager::colorForIdx(int) ; +0xa0, 0xa25448\nSXTW            X0, W0; this                                           ; +0xa4, 0xa2544c\nUBFX            X2, X0, #8, #8                                         ; +0xa8, 0xa25450\nUBFX            X1, X0, #0x10, #8                                      ; +0xac, 0xa25454\nSTRB            W2, [X29,#0x80+var_17]                                 ; +0xb0, 0xa25458\nSTRB            W1, [X29,#0x80+var_16]                                 ; +0xb4, 0xa2545c\nSTRB            W0, [X29,#0x80+var_18]                                 ; +0xb8, 0xa25460\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xbc, 0xa25464\nLDR             W1, [X0,#0x2DC]                                        ; +0xc0, 0xa25468\nLDR             W0, [X0,#0x2E0]; this                                  ; +0xc4, 0xa2546c\nSUB             W1, W1, W0                                             ; +0xc8, 0xa25470\nSTR             X1, [X29,#0x80+var_28]                                 ; +0xcc, 0xa25474\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xd0, 0xa25478\nLDR             X1, [X29,#0x80+var_28]; int                            ; +0xd4, 0xa2547c\nBL              _ZN11GameManager11colorForIdxEi; GameManager::colorForIdx(int) ; +0xd8, 0xa25480\nSXTW            X0, W0                                                 ; +0xdc, 0xa25484\nUBFX            X2, X0, #8, #8                                         ; +0xe0, 0xa25488\nUBFX            X1, X0, #0x10, #8                                      ; +0xe4, 0xa2548c\nSTRB            W0, [X29,#0x80+var_10]                                 ; +0xe8, 0xa25490\nSTRB            W2, [X29,#0x80+var_F]                                  ; +0xec, 0xa25494\nSTRB            W1, [X29,#0x80+var_E]                                  ; +0xf0, 0xa25498\nB               loc_A254B8                                             ; +0xf4, 0xa2549c\nMOV             X0, X19                                                ; +0xf8, 0xa254a0\nMOV             X1, X25                                                ; +0xfc, 0xa254a4\nBL              _ZN12SimplePlayer21enableCustomGlowColorERKN7cocos2d10_ccColor3BE; SimplePlayer::enableCustomGlowColor(cocos2d::_ccColor3B const&) ; +0x100, 0xa254a8\nMOV             X0, X19; this                                          ; +0x104, 0xa254ac\nADD             W20, W20, #1                                           ; +0x108, 0xa254b0\nBL              _ZN12SimplePlayer12updateColorsEv; SimplePlayer::updateColors(void) ; +0x10c, 0xa254b4\nLDR             X0, [X21,#0x288]; this                                 ; +0x110, 0xa254b8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x114, 0xa254bc\nCMP             W20, W0                                                ; +0x118, 0xa254c0\nB.CS            loc_A25518                                             ; +0x11c, 0xa254c4\nLDR             X0, [X21,#0x288]; this                                 ; +0x120, 0xa254c8\nMOV             W1, W20; unsigned int                                  ; +0x124, 0xa254cc\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x128, 0xa254d0\nLDR             X2, [X0]                                               ; +0x12c, 0xa254d4\nMOV             X1, X24                                                ; +0x130, 0xa254d8\nMOV             X19, X0                                                ; +0x134, 0xa254dc\nLDR             X2, [X2,#0x3B0]                                        ; +0x138, 0xa254e0\nBLR             X2                                                     ; +0x13c, 0xa254e4\nMOV             X1, X23                                                ; +0x140, 0xa254e8\nMOV             X0, X19                                                ; +0x144, 0xa254ec\nBL              _ZN12SimplePlayer14setSecondColorERKN7cocos2d10_ccColor3BE; SimplePlayer::setSecondColor(cocos2d::_ccColor3B const&) ; +0x148, 0xa254f0\nSTRB            W22, [X19,#0x294]                                      ; +0x14c, 0xa254f4\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x150, 0xa254f8\nLDR             W1, [X0,#0x2DC]                                        ; +0x154, 0xa254fc\nLDR             W0, [X0,#0x2E0]                                        ; +0x158, 0xa25500\nSUB             W0, W1, W0                                             ; +0x15c, 0xa25504\nTBZ             W0, #0x1F, loc_A254A0                                  ; +0x160, 0xa25508\nMOV             X0, X19; this                                          ; +0x164, 0xa2550c\nBL              _ZN12SimplePlayer22disableCustomGlowColorEv; SimplePlayer::disableCustomGlowColor(void) ; +0x168, 0xa25510\nB               loc_A254AC                                             ; +0x16c, 0xa25514\nLDR             X26, [X26,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x170, 0xa25518\nLDR             X1, [X29,#0x80+var_8]                                  ; +0x174, 0xa2551c\nLDR             X0, [X26]                                              ; +0x178, 0xa25520\nCMP             X1, X0                                                 ; +0x17c, 0xa25524\nB.NE            loc_A25544                                             ; +0x180, 0xa25528\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x184, 0xa2552c\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0x188, 0xa25530\nLDP             X23, X24, [SP,#0x80+var_50]                            ; +0x18c, 0xa25534\nLDP             X25, X26, [SP,#0x80+var_40]                            ; +0x190, 0xa25538\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x194, 0xa2553c\nRET                                                                    ; +0x198, 0xa25540\nBL              .__stack_chk_fail                                      ; +0x19c, 0xa25544", "xrefs": ["CharacterColorPage::toggleGlow @ 0xa2557c", "CharacterColorPage::onPlayerColor @ 0xa256d8", "CharacterColorPage::init @ 0xa25ddc", "<???> @ 0x74658"], "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"}