{"type": "func", "start": 10636884, "end": 10636988, "name": "CharacterColorPage::checkColor", "pseudocode": "// \n// CharacterColorPage::checkColor from 0xa24e54 to 0xa24ebc (104 bytes)\n// \n// 2 xrefs:\n// > CharacterColorPage::onPlayerColor @ 0xa255e4\n// > <???> @ 0x561c0\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\nbool CharacterColorPage::checkColor(CharacterColorPage *a1, int a2, UnlockType a3)\n{\n  GameManager *v6; // x0\n  bool isColorUnlocked; // w19\n  CharacterColorDelegate *m_delegate; // x0\n\n  v6 = GameManager::sharedState();\n  isColorUnlocked = GameManager::isColorUnlocked(v6, a2, a3);\n  if ( !isColorUnlocked )\n  {\n    m_delegate = a1->m_delegate;\n    if ( m_delegate )\n      m_delegate->showUnlockPopup(m_delegate, a2, a3);\n  }\n  return isColorUnlocked;\n}", "assembly": "; \n; CharacterColorPage::checkColor from 0xa24e54 to 0xa24ebc (104 bytes)\n; \n; 2 xrefs:\n; > CharacterColorPage::onPlayerColor @ 0xa255e4\n; > <???> @ 0x561c0\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,#-0x30+var_s0]!                          ; +0x0, 0xa24e54\nMOV             X29, SP                                                ; +0x4, 0xa24e58\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0xa24e5c\nSTP             X21, X22, [SP,#var_s20]                                ; +0xc, 0xa24e60\nMOV             W20, W2                                                ; +0x10, 0xa24e64\nMOV             W21, W1                                                ; +0x14, 0xa24e68\nMOV             X22, X0                                                ; +0x18, 0xa24e6c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1c, 0xa24e70\nMOV             W1, W21                                                ; +0x20, 0xa24e74\nMOV             W2, W20                                                ; +0x24, 0xa24e78\nBL              _ZN11GameManager15isColorUnlockedEi10UnlockType; GameManager::isColorUnlocked(int,UnlockType) ; +0x28, 0xa24e7c\nUXTB            W0, W0                                                 ; +0x2c, 0xa24e80\nMOV             W19, W0                                                ; +0x30, 0xa24e84\nCBNZ            W0, loc_A24EA8                                         ; +0x34, 0xa24e88\nLDR             X0, [X22,#0x2A8]                                       ; +0x38, 0xa24e8c\nCBZ             X0, loc_A24EA8                                         ; +0x3c, 0xa24e90\nLDR             X3, [X0]                                               ; +0x40, 0xa24e94\nMOV             W1, W21                                                ; +0x44, 0xa24e98\nMOV             W2, W20                                                ; +0x48, 0xa24e9c\nLDR             X3, [X3,#8]                                            ; +0x4c, 0xa24ea0\nBLR             X3                                                     ; +0x50, 0xa24ea4\nMOV             W0, W19                                                ; +0x54, 0xa24ea8\nLDP             X19, X20, [SP,#var_s10]                                ; +0x58, 0xa24eac\nLDP             X21, X22, [SP,#var_s20]                                ; +0x5c, 0xa24eb0\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0x60, 0xa24eb4\nRET                                                                    ; +0x64, 0xa24eb8", "xrefs": ["CharacterColorPage::onPlayerColor @ 0xa255e4", "<???> @ 0x561c0"], "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"}