{"type": "func", "start": 4301645808, "end": 4301645886, "name": "CharacterColorPage::checkColor", "pseudocode": "// \n// CharacterColorPage::checkColor from 0x10065e7f0 to 0x10065e83e (78 bytes)\n// \n// 0 xrefs:\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 __fastcall CharacterColorPage::checkColor(CharacterColorPage *a1, int a2, UnlockType a3)\n{\n  GameManager *v4; // rax\n  bool result; // al\n  CharacterColorDelegate *m_delegate; // rdi\n  __int64 v7; // rdx\n  bool v8; // bl\n\n  v4 = GameManager::sharedState();\n  result = GameManager::isColorUnlocked(v4, a2, a3);\n  if ( !result )\n  {\n    m_delegate = a1->m_delegate;\n    if ( m_delegate )\n    {\n      v7 = (unsigned int)a3;\n      v8 = result;\n      ((void (__fastcall *)(CharacterColorDelegate *, _QWORD, __int64))m_delegate->showUnlockPopup)(\n        m_delegate,\n        (unsigned int)a2,\n        v7);\n      return v8;\n    }\n  }\n  return result;\n}", "assembly": "; \n; CharacterColorPage::checkColor from 0x10065e7f0 to 0x10065e83e (78 bytes)\n; \n; 0 xrefs:\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    rbp                                                            ; +0x0, 0x10065e7f0\nmov     rbp, rsp                                                       ; +0x1, 0x10065e7f1\npush    r15                                                            ; +0x4, 0x10065e7f4\npush    r14                                                            ; +0x6, 0x10065e7f6\npush    rbx                                                            ; +0x8, 0x10065e7f8\npush    rax                                                            ; +0x9, 0x10065e7f9\nmov     ebx, edx                                                       ; +0xa, 0x10065e7fa\nmov     r14d, esi                                                      ; +0xc, 0x10065e7fc\nmov     r15, rdi                                                       ; +0xf, 0x10065e7ff\ncall    GameManager__sharedState                                       ; +0x12, 0x10065e802\nmov     rdi, rax                                                       ; +0x17, 0x10065e807\nmov     esi, r14d                                                      ; +0x1a, 0x10065e80a\nmov     edx, ebx                                                       ; +0x1d, 0x10065e80d\ncall    GameManager__isColorUnlocked                                   ; +0x1f, 0x10065e80f\ntest    al, al                                                         ; +0x24, 0x10065e814\njnz     short loc_10065E833                                            ; +0x26, 0x10065e816\nmov     rdi, [r15+2A8h]                                                ; +0x28, 0x10065e818\ntest    rdi, rdi                                                       ; +0x2f, 0x10065e81f\njz      short loc_10065E833                                            ; +0x32, 0x10065e822\nmov     rcx, [rdi]                                                     ; +0x34, 0x10065e824\nmov     esi, r14d                                                      ; +0x37, 0x10065e827\nmov     edx, ebx                                                       ; +0x3a, 0x10065e82a\nmov     ebx, eax                                                       ; +0x3c, 0x10065e82c\ncall    qword ptr [rcx+8]                                              ; +0x3e, 0x10065e82e\nmov     eax, ebx                                                       ; +0x41, 0x10065e831\nadd     rsp, 8                                                         ; +0x43, 0x10065e833\npop     rbx                                                            ; +0x47, 0x10065e837\npop     r14                                                            ; +0x48, 0x10065e838\npop     r15                                                            ; +0x4a, 0x10065e83a\npop     rbp                                                            ; +0x4c, 0x10065e83c\nretn                                                                   ; +0x4d, 0x10065e83d", "xrefs": [], "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"}