{"type": "func", "start": 4296188712, "end": 4296188812, "name": "CharacterColorPage::checkColor", "pseudocode": "// \n// CharacterColorPage::checkColor from 0x10012a328 to 0x10012a38c (100 bytes)\n// \n// 1 xrefs:\n// > CharacterColorPage::onPlayerColor @ 0x10012a0f8\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\n// local variable allocation has failed, the output may be wrong!\nbool __fastcall CharacterColorPage::checkColor(CharacterColorPage *a1, int a2, UnlockType a3)\n{\n  __int64 v3; // x19\n  __int64 v4; // x20\n  GameManager *v6; // x0\n  bool isColorUnlocked; // w21\n  CharacterColorDelegate *m_delegate; // x0\n\n  v3 = *(_QWORD *)&a3;\n  v4 = *(_QWORD *)&a2;\n  v6 = GameManager::sharedState();\n  isColorUnlocked = GameManager::isColorUnlocked(v6, v4, (UnlockType)v3);\n  if ( !isColorUnlocked )\n  {\n    m_delegate = a1->m_delegate;\n    if ( m_delegate )\n      ((void (__fastcall *)(CharacterColorDelegate *, __int64, __int64))m_delegate->showUnlockPopup)(m_delegate, v4, v3);\n  }\n  return isColorUnlocked;\n}", "assembly": "; \n; CharacterColorPage::checkColor from 0x10012a328 to 0x10012a38c (100 bytes)\n; \n; 1 xrefs:\n; > CharacterColorPage::onPlayerColor @ 0x10012a0f8\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x10012a328\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10012a32c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10012a330\nADD             X29, SP, #0x20                                         ; +0xc, 0x10012a334\nMOV             X19, X2                                                ; +0x10, 0x10012a338\nMOV             X20, X1                                                ; +0x14, 0x10012a33c\nMOV             X22, X0                                                ; +0x18, 0x10012a340\nBL              GameManager__sharedState                               ; +0x1c, 0x10012a344\nMOV             X1, X20                                                ; +0x20, 0x10012a348\nMOV             X2, X19                                                ; +0x24, 0x10012a34c\nBL              GameManager__isColorUnlocked                           ; +0x28, 0x10012a350\nMOV             X21, X0                                                ; +0x2c, 0x10012a354\nTBNZ            W0, #0, loc_10012A378                                  ; +0x30, 0x10012a358\nLDR             X0, [X22,#0x2A8]                                       ; +0x34, 0x10012a35c\nCBZ             X0, loc_10012A378                                      ; +0x38, 0x10012a360\nLDR             X8, [X0]                                               ; +0x3c, 0x10012a364\nLDR             X8, [X8,#8]                                            ; +0x40, 0x10012a368\nMOV             X1, X20                                                ; +0x44, 0x10012a36c\nMOV             X2, X19                                                ; +0x48, 0x10012a370\nBLR             X8                                                     ; +0x4c, 0x10012a374\nMOV             X0, X21                                                ; +0x50, 0x10012a378\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x54, 0x10012a37c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x58, 0x10012a380\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x5c, 0x10012a384\nRET                                                                    ; +0x60, 0x10012a388", "xrefs": ["CharacterColorPage::onPlayerColor @ 0x10012a0f8"], "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"}