{"type": "func", "start": 6934520, "end": 6934564, "name": "CharacterColorPage::checkColor", "pseudocode": "// \n// CharacterColorPage::checkColor from 0x69cff8 to 0x69d024 (44 bytes)\n// \n// 1 xrefs:\n// > CharacterColorPage::onPlayerColor @ 0x69d250\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:56:20 +0000\n// \n\nint __fastcall CharacterColorPage::checkColor(GameManager *a1, int a2, int a3)\n{\n  int v6; // r0\n  int v7; // r3\n  int isColorUnlocked; // r4\n  int v9; // r0\n\n  v6 = GameManager::sharedState(a1);\n  isColorUnlocked = GameManager::isColorUnlocked(v6, a2, a3, v7);\n  if ( !isColorUnlocked )\n  {\n    v9 = *((_DWORD *)a1 + 137);\n    if ( v9 )\n      (*(void (__fastcall **)(int, int, int))(*(_DWORD *)v9 + 4))(v9, a2, a3);\n  }\n  return isColorUnlocked;\n}", "assembly": "; \n; CharacterColorPage::checkColor from 0x69cff8 to 0x69d024 (44 bytes)\n; \n; 1 xrefs:\n; > CharacterColorPage::onPlayerColor @ 0x69d250\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:56:20 +0000\n; \nPUSH            {R3-R7,LR}                                             ; +0x0, 0x69cff8\nMOV             R6, R1                                                 ; +0x2, 0x69cffa\nMOV             R5, R2                                                 ; +0x4, 0x69cffc\nMOV             R7, R0                                                 ; +0x6, 0x69cffe\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x8, 0x69d000\nMOV             R1, R6                                                 ; +0xc, 0x69d004\nMOV             R2, R5                                                 ; +0xe, 0x69d006\nBL              _ZN11GameManager15isColorUnlockedEi10UnlockType; GameManager::isColorUnlocked(int,UnlockType) ; +0x10, 0x69d008\nMOV             R4, R0                                                 ; +0x14, 0x69d00c\nCBNZ            R0, loc_69D020                                         ; +0x16, 0x69d00e\nLDR.W           R0, [R7,#0x224]                                        ; +0x18, 0x69d010\nCBZ             R0, loc_69D020                                         ; +0x1c, 0x69d014\nLDR             R3, [R0]                                               ; +0x1e, 0x69d016\nMOV             R1, R6                                                 ; +0x20, 0x69d018\nMOV             R2, R5                                                 ; +0x22, 0x69d01a\nLDR             R3, [R3,#4]                                            ; +0x24, 0x69d01c\nBLX             R3                                                     ; +0x26, 0x69d01e\nMOV             R0, R4                                                 ; +0x28, 0x69d020\nPOP             {R3-R7,PC}                                             ; +0x2a, 0x69d022", "xrefs": ["CharacterColorPage::onPlayerColor @ 0x69d250"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}