{"type": "func", "start": 5656708, "end": 5656752, "name": "CharacterColorPage::checkColor", "pseudocode": "// \n// CharacterColorPage::checkColor from 0x565084 to 0x5650b0 (44 bytes)\n// \n// 1 xrefs:\n// > CharacterColorPage::onPlayerColor @ 0x56557c\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; // r0\n  _BOOL4 isColorUnlocked; // r4\n  CharacterColorDelegate *m_delegate; // r0\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 0x565084 to 0x5650b0 (44 bytes)\n; \n; 1 xrefs:\n; > CharacterColorPage::onPlayerColor @ 0x56557c\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            {R3-R7,LR}                                             ; +0x0, 0x565084\nMOV             R6, R1                                                 ; +0x2, 0x565086\nMOV             R5, R2                                                 ; +0x4, 0x565088\nMOV             R7, R0                                                 ; +0x6, 0x56508a\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x8, 0x56508c\nMOV             R1, R6                                                 ; +0xc, 0x565090\nMOV             R2, R5                                                 ; +0xe, 0x565092\nBL              _ZN11GameManager15isColorUnlockedEi10UnlockType; GameManager::isColorUnlocked(int,UnlockType) ; +0x10, 0x565094\nMOV             R4, R0                                                 ; +0x14, 0x565098\nCBNZ            R0, loc_5650AC                                         ; +0x16, 0x56509a\nLDR.W           R0, [R7,#0x20C]                                        ; +0x18, 0x56509c\nCBZ             R0, loc_5650AC                                         ; +0x1c, 0x5650a0\nLDR             R3, [R0]                                               ; +0x1e, 0x5650a2\nMOV             R1, R6                                                 ; +0x20, 0x5650a4\nMOV             R2, R5                                                 ; +0x22, 0x5650a6\nLDR             R3, [R3,#4]                                            ; +0x24, 0x5650a8\nBLX             R3                                                     ; +0x26, 0x5650aa\nMOV             R0, R4                                                 ; +0x28, 0x5650ac\nPOP             {R3-R7,PC}                                             ; +0x2a, 0x5650ae", "xrefs": ["CharacterColorPage::onPlayerColor @ 0x56557c"], "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"}