{"type": "func", "start": 5369272384, "end": 5369273767, "name": "CharacterColorPage::updateColorMode", "pseudocode": "// \n// CharacterColorPage::updateColorMode from 0x140089840 to 0x140089da7 (1383 bytes)\n// \n// 4 xrefs:\n// > CharacterColorPage::init @ 0x140088c49\n// > CharacterColorPage::onMode @ 0x140089817\n// > <???> @ 0x1406c6d08\n// > <???> @ 0x1406c6d14\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// Hidden C++ exception states: #wind=11\nvoid CharacterColorPage::updateColorMode(CharacterColorPage *a1, int a2)\n{\n  _DWORD *v3; // rax\n  int v4; // ebx\n  int v5; // r13d\n  int v6; // r12d\n  cocos2d::CCDictionary *m_colorButtons; // rax\n  cocos2d::CCDictElement *m_pElements; // rax\n  cocos2d::CCDictElement *next; // rsi\n  cocos2d::CCObject *m_pObject; // r15\n  __int64 v11; // rax\n  int v12; // r14d\n  __int64 v13; // rax\n  struct cocos2d::CCObject *v14; // rax\n  struct cocos2d::CCObject *v15; // rax\n  struct cocos2d::CCObject *v16; // rax\n  GameManager *v17; // rcx\n  bool isColorUnlocked; // bl\n  void (__fastcall ***v19)(_QWORD, _QWORD); // r15\n  GameStatsManager *v20; // rcx\n  __int16 *v21; // rdx\n  struct cocos2d::CCObject *v22; // rbx\n  ButtonSprite *v23; // rsi\n  void (__fastcall *v24)(int *, void **); // r9\n  const char *v25; // r14\n  int *p_m_unknown2; // rcx\n  __int64 v27; // rax\n  const char *v28; // rdx\n  __int64 v29; // rax\n  struct cocos2d::CCObject *v30; // rbx\n  ButtonSprite *v31; // rsi\n  int *v32; // rcx\n  void (__fastcall *v33)(int *, __int16 *); // r8\n  __int64 v34; // rax\n  const char *v35; // rdx\n  __int64 v36; // rax\n  struct cocos2d::CCObject *v37; // rbx\n  ButtonSprite *v38; // rsi\n  int *v39; // rcx\n  void (__fastcall *v40)(int *, __int16 *); // r9\n  __int64 v41; // rax\n  __int64 v42; // rax\n  bool v43; // bl\n  int v44; // [rsp+20h] [rbp-38h]\n  struct cocos2d::CCPoint v45; // [rsp+28h] [rbp-30h] BYREF\n  struct cocos2d::CCPoint v46; // [rsp+30h] [rbp-28h] BYREF\n  void *v47; // [rsp+38h] [rbp-20h]\n  void *v48; // [rsp+40h] [rbp-18h]\n  void *v49; // [rsp+A0h] [rbp+48h] BYREF\n  __int16 v50; // [rsp+A8h] [rbp+50h]\n  __int16 v51; // [rsp+B0h] [rbp+58h]\n  __int16 v52; // [rsp+B8h] [rbp+60h] BYREF\n  char v53; // [rsp+BAh] [rbp+62h]\n\n  a1->m_colorMode = a2;\n  v3 = (_DWORD *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v49 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v49);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v3 = (_DWORD *)qword_1406C2ED8;\n  }\n  v4 = v3[201] - v3[202];\n  v44 = v4;\n  v5 = v3[204] - v3[205];\n  v6 = v3[207] - v3[208];\n  m_colorButtons = a1->m_colorButtons;\n  if ( m_colorButtons )\n  {\n    m_pElements = m_colorButtons->m_pElements;\n    if ( m_pElements )\n    {\n      next = (cocos2d::CCDictElement *)m_pElements->hh.next;\n      while ( 1 )\n      {\n        m_pObject = m_pElements->m_pObject;\n        v11 = ((__int64 (__fastcall *)(cocos2d::CCObject *))m_pObject->__vftable[6].getTag)(m_pObject);\n        v12 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 56LL))(v11);\n        v13 = ((__int64 (__fastcall *)(cocos2d::CCObject *))m_pObject->__vftable[6].getTag)(m_pObject);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)v13 + 200LL))(v13);\n        cocos2d::CCNode::convertToWorldSpace(a1->m_buttonMenu, &v46);\n        cocos2d::CCNode::convertToNodeSpace(a1->m_mainLayer, &v45);\n        if ( v12 == v4 )\n        {\n          v14 = cocos2d::CCArray::objectAtIndex(a1->m_cursors, 0);\n          v14->__vftable[2].encodeWithCoder(v14, (DS_Dictionary *)&v45);\n        }\n        if ( v12 == v5 )\n        {\n          v15 = cocos2d::CCArray::objectAtIndex(a1->m_cursors, 1u);\n          v15->__vftable[2].encodeWithCoder(v15, (DS_Dictionary *)&v45);\n        }\n        if ( v12 == v6 )\n        {\n          v16 = cocos2d::CCArray::objectAtIndex(a1->m_cursors, 2u);\n          v16->__vftable[2].encodeWithCoder(v16, (DS_Dictionary *)&v45);\n        }\n        v17 = (GameManager *)qword_1406C2ED8;\n        if ( !qword_1406C2ED8 )\n        {\n          v47 = operator new(0x668u);\n          qword_1406C2ED8 = sub_14017AB00(v47);\n          (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n          v17 = (GameManager *)qword_1406C2ED8;\n        }\n        isColorUnlocked = GameManager::isColorUnlocked(v17, v12, (UnlockType)((a1->m_colorMode != 0) + 2));\n        v19 = (void (__fastcall ***)(_QWORD, _QWORD))((__int64 (__fastcall *)(cocos2d::CCObject *, __int64))m_pObject->__vftable[6].acceptVisitor)(\n                                                       m_pObject,\n                                                       100);\n        ((void (__fastcall **)(_QWORD, bool))*v19)[40](v19, !isColorUnlocked);\n        if ( isColorUnlocked )\n          goto LABEL_19;\n        v20 = (GameStatsManager *)qword_1406C2EE8;\n        if ( !qword_1406C2EE8 )\n        {\n          v48 = operator new(0x3E0u);\n          qword_1406C2EE8 = sub_1401D0AE0(v48);\n          (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8);\n          v20 = (GameStatsManager *)qword_1406C2EE8;\n        }\n        if ( GameStatsManager::getItemUnlockState(v20, v12, (UnlockType)((a1->m_colorMode != 0) + 2)) )\n        {\nLABEL_19:\n          v51 = -1;\n          v52 = -1;\n          v53 = -1;\n          v21 = &v52;\n        }\n        else\n        {\n          v50 = -256;\n          LOWORD(v49) = -256;\n          BYTE2(v49) = 0;\n          v21 = (__int16 *)&v49;\n        }\n        (*v19[40])(v19 + 40, v21);\n        m_pElements = next;\n        if ( !next )\n          break;\n        next = (cocos2d::CCDictElement *)next->hh.next;\n        v4 = v44;\n      }\n    }\n  }\n  v22 = cocos2d::CCArray::objectAtIndex(a1->m_cursors, 0);\n  v23 = (ButtonSprite *)cocos2d::CCArray::objectAtIndex(a1->m_modeButtons, 0);\n  v24 = **(void (__fastcall ***)(int *, void **))&v22[5].m_unknown2;\n  v25 = \"GJ_button_04.png\";\n  p_m_unknown2 = &v22[5].m_unknown2;\n  if ( a1->m_colorMode )\n  {\n    v50 = 12850;\n    memset(&v49, 50, 3);\n    v24(p_m_unknown2, &v49);\n    v27 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v22->__vftable[6].getTag)(v22);\n    (*(void (__fastcall **)(__int64, struct cocos2d::CCObject *, __int64))(*(_QWORD *)v27 + 568LL))(v27, v22, 1);\n    v28 = \"GJ_button_04.png\";\n  }\n  else\n  {\n    v51 = -1;\n    v52 = -1;\n    v53 = -1;\n    v24(p_m_unknown2, (void **)&v52);\n    v29 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v22->__vftable[6].getTag)(v22);\n    (*(void (__fastcall **)(__int64, struct cocos2d::CCObject *, __int64))(*(_QWORD *)v29 + 568LL))(v29, v22, 11);\n    v28 = \"GJ_button_01.png\";\n  }\n  ButtonSprite::updateBGImage(v23, v28);\n  v30 = cocos2d::CCArray::objectAtIndex(a1->m_cursors, 1u);\n  v31 = (ButtonSprite *)cocos2d::CCArray::objectAtIndex(a1->m_modeButtons, 1u);\n  v32 = &v30[5].m_unknown2;\n  v33 = **(void (__fastcall ***)(int *, __int16 *))&v30[5].m_unknown2;\n  if ( a1->m_colorMode == 1 )\n  {\n    v51 = -1;\n    v52 = -1;\n    v53 = -1;\n    v33(v32, &v52);\n    v36 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v30->__vftable[6].getTag)(v30);\n    (*(void (__fastcall **)(__int64, struct cocos2d::CCObject *, __int64))(*(_QWORD *)v36 + 568LL))(v36, v30, 11);\n    v35 = \"GJ_button_01.png\";\n  }\n  else\n  {\n    v50 = 12850;\n    memset(&v49, 50, 3);\n    v33(v32, (__int16 *)&v49);\n    v34 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v30->__vftable[6].getTag)(v30);\n    (*(void (__fastcall **)(__int64, struct cocos2d::CCObject *, __int64))(*(_QWORD *)v34 + 568LL))(v34, v30, 1);\n    v35 = \"GJ_button_04.png\";\n  }\n  ButtonSprite::updateBGImage(v31, v35);\n  v37 = cocos2d::CCArray::objectAtIndex(a1->m_cursors, 2u);\n  v38 = (ButtonSprite *)cocos2d::CCArray::objectAtIndex(a1->m_modeButtons, 2u);\n  v39 = &v37[5].m_unknown2;\n  v40 = **(void (__fastcall ***)(int *, __int16 *))&v37[5].m_unknown2;\n  if ( a1->m_colorMode == 2 )\n  {\n    v51 = -1;\n    v52 = -1;\n    v53 = -1;\n    v40(v39, &v52);\n    v42 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v37->__vftable[6].getTag)(v37);\n    (*(void (__fastcall **)(__int64, struct cocos2d::CCObject *, __int64))(*(_QWORD *)v42 + 568LL))(v42, v37, 11);\n    v25 = \"GJ_button_01.png\";\n  }\n  else\n  {\n    v50 = 12850;\n    memset(&v49, 50, 3);\n    v40(v39, (__int16 *)&v49);\n    v41 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v37->__vftable[6].getTag)(v37);\n    (*(void (__fastcall **)(__int64, struct cocos2d::CCObject *, __int64))(*(_QWORD *)v41 + 568LL))(v41, v37, 1);\n  }\n  ButtonSprite::updateBGImage(v38, v25);\n  v43 = a1->m_colorMode == 2;\n  a1->m_glowToggler->setEnabled(a1->m_glowToggler, v43);\n  a1->m_glowToggler->setVisible(a1->m_glowToggler, v43);\n  a1->m_glowLabel->setVisible(a1->m_glowLabel, v43);\n}", "assembly": "; \n; CharacterColorPage::updateColorMode from 0x140089840 to 0x140089da7 (1383 bytes)\n; \n; 4 xrefs:\n; > CharacterColorPage::init @ 0x140088c49\n; > CharacterColorPage::onMode @ 0x140089817\n; > <???> @ 0x1406c6d08\n; > <???> @ 0x1406c6d14\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, 0x140089840\npush    rbx                                                            ; +0x2, 0x140089842\npush    rsi                                                            ; +0x3, 0x140089843\npush    rdi                                                            ; +0x4, 0x140089844\npush    r12                                                            ; +0x5, 0x140089845\npush    r13                                                            ; +0x7, 0x140089847\npush    r14                                                            ; +0x9, 0x140089849\npush    r15                                                            ; +0xb, 0x14008984b\nmov     rbp, rsp                                                       ; +0xd, 0x14008984d\nsub     rsp, 58h                                                       ; +0x10, 0x140089850\nmov     rdi, rcx                                                       ; +0x14, 0x140089854\nmov     [rcx+278h], edx                                                ; +0x17, 0x140089857\nmov     rax, cs:qword_1406C2ED8                                        ; +0x1d, 0x14008985d\ntest    rax, rax                                                       ; +0x24, 0x140089864\njnz     short loc_140089897                                            ; +0x27, 0x140089867\nmov     ecx, 668h; Size                                                ; +0x29, 0x140089869\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2e, 0x14008986e\nmov     [rbp+arg_0], rax                                               ; +0x33, 0x140089873\nmov     rcx, rax                                                       ; +0x37, 0x140089877\ncall    sub_14017AB00                                                  ; +0x3a, 0x14008987a\nnop                                                                    ; +0x3f, 0x14008987f\nmov     cs:qword_1406C2ED8, rax                                        ; +0x40, 0x140089880\nmov     rdx, [rax]                                                     ; +0x47, 0x140089887\nmov     rcx, rax                                                       ; +0x4a, 0x14008988a\ncall    qword ptr [rdx+48h]                                            ; +0x4d, 0x14008988d\nmov     rax, cs:qword_1406C2ED8                                        ; +0x50, 0x140089890\nmov     ebx, [rax+324h]                                                ; +0x57, 0x140089897\nsub     ebx, [rax+328h]                                                ; +0x5d, 0x14008989d\nmov     [rbp+var_38], ebx                                              ; +0x63, 0x1400898a3\nmov     r13d, [rax+330h]                                               ; +0x66, 0x1400898a6\nsub     r13d, [rax+334h]                                               ; +0x6d, 0x1400898ad\nmov     r12d, [rax+33Ch]                                               ; +0x74, 0x1400898b4\nsub     r12d, [rax+340h]                                               ; +0x7b, 0x1400898bb\nmov     rax, [rdi+298h]                                                ; +0x82, 0x1400898c2\ntest    rax, rax                                                       ; +0x89, 0x1400898c9\njz      loc_140089AF0                                                  ; +0x8c, 0x1400898cc\nmov     rax, [rax+38h]                                                 ; +0x92, 0x1400898d2\ntest    rax, rax                                                       ; +0x96, 0x1400898d6\njz      loc_140089AF0                                                  ; +0x99, 0x1400898d9\nmov     rsi, [rax+120h]                                                ; +0x9f, 0x1400898df\nnop     word ptr [rax+rax+00000000h]                                   ; +0xa6, 0x1400898e6\nmov     r15, [rax+108h]                                                ; +0xb0, 0x1400898f0\nmov     rax, [r15]                                                     ; +0xb7, 0x1400898f7\nmov     rcx, r15                                                       ; +0xba, 0x1400898fa\ncall    qword ptr [rax+1E8h]                                           ; +0xbd, 0x1400898fd\nmov     rdx, [rax]                                                     ; +0xc3, 0x140089903\nmov     rcx, rax                                                       ; +0xc6, 0x140089906\ncall    qword ptr [rdx+38h]                                            ; +0xc9, 0x140089909\nmov     r14d, eax                                                      ; +0xcc, 0x14008990c\nmov     rdx, [r15]                                                     ; +0xcf, 0x14008990f\nmov     rcx, r15                                                       ; +0xd2, 0x140089912\ncall    qword ptr [rdx+1E8h]                                           ; +0xd5, 0x140089915\nmov     rdx, [rax]                                                     ; +0xdb, 0x14008991b\nmov     rcx, rax                                                       ; +0xde, 0x14008991e\ncall    qword ptr [rdx+0C8h]                                           ; +0xe1, 0x140089921\nmov     r8, rax                                                        ; +0xe7, 0x140089927\nlea     rdx, [rbp+var_28]                                              ; +0xea, 0x14008992a\nmov     rcx, [rdi+220h]                                                ; +0xee, 0x14008992e\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0xf5, 0x140089935\nmov     r8, rax                                                        ; +0xfb, 0x14008993b\nlea     rdx, [rbp+var_30]                                              ; +0xfe, 0x14008993e\nmov     rcx, [rdi+240h]                                                ; +0x102, 0x140089942\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x109, 0x140089949\ncmp     r14d, ebx                                                      ; +0x10f, 0x14008994f\njnz     short loc_140089974                                            ; +0x112, 0x140089952\nxor     edx, edx                                                       ; +0x114, 0x140089954\nmov     rcx, [rdi+2A0h]                                                ; +0x116, 0x140089956\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x11d, 0x14008995d\nmov     r8, [rax]                                                      ; +0x123, 0x140089963\nlea     rdx, [rbp+var_30]                                              ; +0x126, 0x140089966\nmov     rcx, rax                                                       ; +0x12a, 0x14008996a\ncall    qword ptr [r8+0B8h]                                            ; +0x12d, 0x14008996d\ncmp     r14d, r13d                                                     ; +0x134, 0x140089974\njnz     short loc_14008999C                                            ; +0x137, 0x140089977\nmov     edx, 1                                                         ; +0x139, 0x140089979\nmov     rcx, [rdi+2A0h]                                                ; +0x13e, 0x14008997e\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x145, 0x140089985\nmov     r8, [rax]                                                      ; +0x14b, 0x14008998b\nlea     rdx, [rbp+var_30]                                              ; +0x14e, 0x14008998e\nmov     rcx, rax                                                       ; +0x152, 0x140089992\ncall    qword ptr [r8+0B8h]                                            ; +0x155, 0x140089995\ncmp     r14d, r12d                                                     ; +0x15c, 0x14008999c\njnz     short loc_1400899C4                                            ; +0x15f, 0x14008999f\nmov     edx, 2                                                         ; +0x161, 0x1400899a1\nmov     rcx, [rdi+2A0h]                                                ; +0x166, 0x1400899a6\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x16d, 0x1400899ad\nmov     r8, [rax]                                                      ; +0x173, 0x1400899b3\nlea     rdx, [rbp+var_30]                                              ; +0x176, 0x1400899b6\nmov     rcx, rax                                                       ; +0x17a, 0x1400899ba\ncall    qword ptr [r8+0B8h]                                            ; +0x17d, 0x1400899bd\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x184, 0x1400899c4\ntest    rcx, rcx                                                       ; +0x18b, 0x1400899cb\njnz     short loc_1400899FE                                            ; +0x18e, 0x1400899ce\nmov     ecx, 668h; Size                                                ; +0x190, 0x1400899d0\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x195, 0x1400899d5\nmov     [rbp+var_20], rax                                              ; +0x19a, 0x1400899da\nmov     rcx, rax                                                       ; +0x19e, 0x1400899de\ncall    sub_14017AB00                                                  ; +0x1a1, 0x1400899e1\nnop                                                                    ; +0x1a6, 0x1400899e6\nmov     cs:qword_1406C2ED8, rax                                        ; +0x1a7, 0x1400899e7\nmov     rdx, [rax]                                                     ; +0x1ae, 0x1400899ee\nmov     rcx, rax                                                       ; +0x1b1, 0x1400899f1\ncall    qword ptr [rdx+48h]                                            ; +0x1b4, 0x1400899f4\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x1b7, 0x1400899f7\nxor     r8d, r8d                                                       ; +0x1be, 0x1400899fe\ncmp     [rdi+278h], r8d                                                ; +0x1c1, 0x140089a01\nsetnz   r8b                                                            ; +0x1c8, 0x140089a08\nadd     r8d, 2                                                         ; +0x1cc, 0x140089a0c\nmov     edx, r14d                                                      ; +0x1d0, 0x140089a10\ncall    GameManager__isColorUnlocked                                   ; +0x1d3, 0x140089a13\nmovzx   ebx, al                                                        ; +0x1d8, 0x140089a18\nmov     r8, [r15]                                                      ; +0x1db, 0x140089a1b\nmov     edx, 64h ; 'd'                                                 ; +0x1de, 0x140089a1e\nmov     rcx, r15                                                       ; +0x1e3, 0x140089a23\ncall    qword ptr [r8+1C8h]                                            ; +0x1e6, 0x140089a26\nmov     r15, rax                                                       ; +0x1ed, 0x140089a2d\nmov     r8, [rax]                                                      ; +0x1f0, 0x140089a30\nmovzx   edx, bl                                                        ; +0x1f3, 0x140089a33\nxor     dl, 1                                                          ; +0x1f6, 0x140089a36\nmov     rcx, rax                                                       ; +0x1f9, 0x140089a39\ncall    qword ptr [r8+140h]                                            ; +0x1fc, 0x140089a3c\ntest    bl, bl                                                         ; +0x203, 0x140089a43\njnz     short loc_140089AB7                                            ; +0x205, 0x140089a45\nmov     rcx, cs:qword_1406C2EE8                                        ; +0x207, 0x140089a47\ntest    rcx, rcx                                                       ; +0x20e, 0x140089a4e\njnz     short loc_140089A81                                            ; +0x211, 0x140089a51\nmov     ecx, 3E0h; Size                                                ; +0x213, 0x140089a53\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x218, 0x140089a58\nmov     [rbp+var_18], rax                                              ; +0x21d, 0x140089a5d\nmov     rcx, rax                                                       ; +0x221, 0x140089a61\ncall    sub_1401D0AE0                                                  ; +0x224, 0x140089a64\nnop                                                                    ; +0x229, 0x140089a69\nmov     cs:qword_1406C2EE8, rax                                        ; +0x22a, 0x140089a6a\nmov     rdx, [rax]                                                     ; +0x231, 0x140089a71\nmov     rcx, rax                                                       ; +0x234, 0x140089a74\ncall    qword ptr [rdx+48h]                                            ; +0x237, 0x140089a77\nmov     rcx, cs:qword_1406C2EE8                                        ; +0x23a, 0x140089a7a\nxor     r8d, r8d                                                       ; +0x241, 0x140089a81\ncmp     [rdi+278h], r8d                                                ; +0x244, 0x140089a84\nsetnz   r8b                                                            ; +0x24b, 0x140089a8b\nadd     r8d, 2                                                         ; +0x24f, 0x140089a8f\nmov     edx, r14d                                                      ; +0x253, 0x140089a93\ncall    GameStatsManager__getItemUnlockState                           ; +0x256, 0x140089a96\ntest    eax, eax                                                       ; +0x25b, 0x140089a9b\njnz     short loc_140089AB7                                            ; +0x25d, 0x140089a9d\nmov     [rbp+arg_8], 0FF00h                                            ; +0x25f, 0x140089a9f\nmovzx   eax, [rbp+arg_8]                                               ; +0x265, 0x140089aa5\nmov     word ptr [rbp+arg_0], ax                                       ; +0x269, 0x140089aa9\nmov     byte ptr [rbp+arg_0+2], 0                                      ; +0x26d, 0x140089aad\nlea     rdx, [rbp+arg_0]                                               ; +0x271, 0x140089ab1\njmp     short loc_140089ACD                                            ; +0x275, 0x140089ab5\nmov     [rbp+arg_10], 0FFFFh                                           ; +0x277, 0x140089ab7\nmovzx   eax, [rbp+arg_10]                                              ; +0x27d, 0x140089abd\nmov     [rbp+arg_18], ax                                               ; +0x281, 0x140089ac1\nmov     [rbp+arg_1A], 0FFh                                             ; +0x285, 0x140089ac5\nlea     rdx, [rbp+arg_18]                                              ; +0x289, 0x140089ac9\nlea     rcx, [r15+140h]                                                ; +0x28d, 0x140089acd\nmov     rax, [rcx]                                                     ; +0x294, 0x140089ad4\ncall    qword ptr [rax]                                                ; +0x297, 0x140089ad7\nmov     rax, rsi                                                       ; +0x299, 0x140089ad9\ntest    rsi, rsi                                                       ; +0x29c, 0x140089adc\njz      short loc_140089AF0                                            ; +0x29f, 0x140089adf\nmov     rsi, [rsi+120h]                                                ; +0x2a1, 0x140089ae1\nmov     ebx, [rbp+var_38]                                              ; +0x2a8, 0x140089ae8\njmp     loc_1400898F0                                                  ; +0x2ab, 0x140089aeb\nxor     edx, edx                                                       ; +0x2b0, 0x140089af0\nmov     rcx, [rdi+2A0h]                                                ; +0x2b2, 0x140089af2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x2b9, 0x140089af9\nmov     rbx, rax                                                       ; +0x2bf, 0x140089aff\nxor     edx, edx                                                       ; +0x2c2, 0x140089b02\nmov     rcx, [rdi+290h]                                                ; +0x2c4, 0x140089b04\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x2cb, 0x140089b0b\nmov     rsi, rax                                                       ; +0x2d1, 0x140089b11\nmov     rcx, [rbx+140h]                                                ; +0x2d4, 0x140089b14\nmov     r9, [rcx]                                                      ; +0x2db, 0x140089b1b\nlea     r14, aGjButton04Png; \"GJ_button_04.png\"                        ; +0x2de, 0x140089b1e\nlea     rcx, [rbx+140h]                                                ; +0x2e5, 0x140089b25\ncmp     dword ptr [rdi+278h], 0                                        ; +0x2ec, 0x140089b2c\njz      short loc_140089B75                                            ; +0x2f3, 0x140089b33\nmov     [rbp+arg_8], 3232h                                             ; +0x2f5, 0x140089b35\nmovzx   eax, [rbp+arg_8]                                               ; +0x2fb, 0x140089b3b\nmov     word ptr [rbp+arg_0], ax                                       ; +0x2ff, 0x140089b3f\nmov     byte ptr [rbp+arg_0+2], 32h ; '2'                              ; +0x303, 0x140089b43\nlea     rdx, [rbp+arg_0]                                               ; +0x307, 0x140089b47\ncall    r9                                                             ; +0x30b, 0x140089b4b\nmov     rax, [rbx]                                                     ; +0x30e, 0x140089b4e\nmov     rcx, rbx                                                       ; +0x311, 0x140089b51\ncall    qword ptr [rax+1E8h]                                           ; +0x314, 0x140089b54\nmov     r9, [rax]                                                      ; +0x31a, 0x140089b5a\nmov     r8d, 1                                                         ; +0x31d, 0x140089b5d\nmov     rdx, rbx                                                       ; +0x323, 0x140089b63\nmov     rcx, rax                                                       ; +0x326, 0x140089b66\ncall    qword ptr [r9+238h]                                            ; +0x329, 0x140089b69\nmov     rdx, r14                                                       ; +0x330, 0x140089b70\njmp     short loc_140089BB7                                            ; +0x333, 0x140089b73\nmov     [rbp+arg_10], 0FFFFh                                           ; +0x335, 0x140089b75\nmovzx   eax, [rbp+arg_10]                                              ; +0x33b, 0x140089b7b\nmov     [rbp+arg_18], ax                                               ; +0x33f, 0x140089b7f\nmov     [rbp+arg_1A], 0FFh                                             ; +0x343, 0x140089b83\nlea     rdx, [rbp+arg_18]                                              ; +0x347, 0x140089b87\ncall    r9                                                             ; +0x34b, 0x140089b8b\nmov     rax, [rbx]                                                     ; +0x34e, 0x140089b8e\nmov     rcx, rbx                                                       ; +0x351, 0x140089b91\ncall    qword ptr [rax+1E8h]                                           ; +0x354, 0x140089b94\nmov     r9, [rax]                                                      ; +0x35a, 0x140089b9a\nmov     r8d, 0Bh                                                       ; +0x35d, 0x140089b9d\nmov     rdx, rbx                                                       ; +0x363, 0x140089ba3\nmov     rcx, rax                                                       ; +0x366, 0x140089ba6\ncall    qword ptr [r9+238h]                                            ; +0x369, 0x140089ba9\nlea     rdx, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x370, 0x140089bb0\nmov     rcx, rsi                                                       ; +0x377, 0x140089bb7\ncall    ButtonSprite__updateBGImage                                    ; +0x37a, 0x140089bba\nmov     edx, 1                                                         ; +0x37f, 0x140089bbf\nmov     rcx, [rdi+2A0h]                                                ; +0x384, 0x140089bc4\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x38b, 0x140089bcb\nmov     rbx, rax                                                       ; +0x391, 0x140089bd1\nmov     edx, 1                                                         ; +0x394, 0x140089bd4\nmov     rcx, [rdi+290h]                                                ; +0x399, 0x140089bd9\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x3a0, 0x140089be0\nmov     rsi, rax                                                       ; +0x3a6, 0x140089be6\nlea     rcx, [rbx+140h]                                                ; +0x3a9, 0x140089be9\nmov     rdx, [rcx]                                                     ; +0x3b0, 0x140089bf0\nmov     r8, [rdx]                                                      ; +0x3b3, 0x140089bf3\ncmp     dword ptr [rdi+278h], 1                                        ; +0x3b6, 0x140089bf6\njz      short loc_140089C3F                                            ; +0x3bd, 0x140089bfd\nmov     [rbp+arg_8], 3232h                                             ; +0x3bf, 0x140089bff\nmovzx   eax, [rbp+arg_8]                                               ; +0x3c5, 0x140089c05\nmov     word ptr [rbp+arg_0], ax                                       ; +0x3c9, 0x140089c09\nmov     byte ptr [rbp+arg_0+2], 32h ; '2'                              ; +0x3cd, 0x140089c0d\nlea     rdx, [rbp+arg_0]                                               ; +0x3d1, 0x140089c11\ncall    r8                                                             ; +0x3d5, 0x140089c15\nmov     rax, [rbx]                                                     ; +0x3d8, 0x140089c18\nmov     rcx, rbx                                                       ; +0x3db, 0x140089c1b\ncall    qword ptr [rax+1E8h]                                           ; +0x3de, 0x140089c1e\nmov     r9, [rax]                                                      ; +0x3e4, 0x140089c24\nmov     r8d, 1                                                         ; +0x3e7, 0x140089c27\nmov     rdx, rbx                                                       ; +0x3ed, 0x140089c2d\nmov     rcx, rax                                                       ; +0x3f0, 0x140089c30\ncall    qword ptr [r9+238h]                                            ; +0x3f3, 0x140089c33\nmov     rdx, r14                                                       ; +0x3fa, 0x140089c3a\njmp     short loc_140089C81                                            ; +0x3fd, 0x140089c3d\nmov     [rbp+arg_10], 0FFFFh                                           ; +0x3ff, 0x140089c3f\nmovzx   eax, [rbp+arg_10]                                              ; +0x405, 0x140089c45\nmov     [rbp+arg_18], ax                                               ; +0x409, 0x140089c49\nmov     [rbp+arg_1A], 0FFh                                             ; +0x40d, 0x140089c4d\nlea     rdx, [rbp+arg_18]                                              ; +0x411, 0x140089c51\ncall    r8                                                             ; +0x415, 0x140089c55\nmov     rax, [rbx]                                                     ; +0x418, 0x140089c58\nmov     rcx, rbx                                                       ; +0x41b, 0x140089c5b\ncall    qword ptr [rax+1E8h]                                           ; +0x41e, 0x140089c5e\nmov     r9, [rax]                                                      ; +0x424, 0x140089c64\nmov     r8d, 0Bh                                                       ; +0x427, 0x140089c67\nmov     rdx, rbx                                                       ; +0x42d, 0x140089c6d\nmov     rcx, rax                                                       ; +0x430, 0x140089c70\ncall    qword ptr [r9+238h]                                            ; +0x433, 0x140089c73\nlea     rdx, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x43a, 0x140089c7a\nmov     rcx, rsi                                                       ; +0x441, 0x140089c81\ncall    ButtonSprite__updateBGImage                                    ; +0x444, 0x140089c84\nmov     edx, 2                                                         ; +0x449, 0x140089c89\nmov     rcx, [rdi+2A0h]                                                ; +0x44e, 0x140089c8e\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x455, 0x140089c95\nmov     rbx, rax                                                       ; +0x45b, 0x140089c9b\nmov     edx, 2                                                         ; +0x45e, 0x140089c9e\nmov     rcx, [rdi+290h]                                                ; +0x463, 0x140089ca3\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x46a, 0x140089caa\nmov     rsi, rax                                                       ; +0x470, 0x140089cb0\nlea     rcx, [rbx+140h]                                                ; +0x473, 0x140089cb3\nmov     rdx, [rcx]                                                     ; +0x47a, 0x140089cba\nmov     r9, [rdx]                                                      ; +0x47d, 0x140089cbd\ncmp     dword ptr [rdi+278h], 2                                        ; +0x480, 0x140089cc0\njz      short loc_140089D06                                            ; +0x487, 0x140089cc7\nmov     [rbp+arg_8], 3232h                                             ; +0x489, 0x140089cc9\nmovzx   eax, [rbp+arg_8]                                               ; +0x48f, 0x140089ccf\nmov     word ptr [rbp+arg_0], ax                                       ; +0x493, 0x140089cd3\nmov     byte ptr [rbp+arg_0+2], 32h ; '2'                              ; +0x497, 0x140089cd7\nlea     rdx, [rbp+arg_0]                                               ; +0x49b, 0x140089cdb\ncall    r9                                                             ; +0x49f, 0x140089cdf\nmov     rax, [rbx]                                                     ; +0x4a2, 0x140089ce2\nmov     rcx, rbx                                                       ; +0x4a5, 0x140089ce5\ncall    qword ptr [rax+1E8h]                                           ; +0x4a8, 0x140089ce8\nmov     r9, [rax]                                                      ; +0x4ae, 0x140089cee\nmov     r8d, 1                                                         ; +0x4b1, 0x140089cf1\nmov     rdx, rbx                                                       ; +0x4b7, 0x140089cf7\nmov     rcx, rax                                                       ; +0x4ba, 0x140089cfa\ncall    qword ptr [r9+238h]                                            ; +0x4bd, 0x140089cfd\njmp     short loc_140089D48                                            ; +0x4c4, 0x140089d04\nmov     [rbp+arg_10], 0FFFFh                                           ; +0x4c6, 0x140089d06\nmovzx   eax, [rbp+arg_10]                                              ; +0x4cc, 0x140089d0c\nmov     [rbp+arg_18], ax                                               ; +0x4d0, 0x140089d10\nmov     [rbp+arg_1A], 0FFh                                             ; +0x4d4, 0x140089d14\nlea     rdx, [rbp+arg_18]                                              ; +0x4d8, 0x140089d18\ncall    r9                                                             ; +0x4dc, 0x140089d1c\nmov     rax, [rbx]                                                     ; +0x4df, 0x140089d1f\nmov     rcx, rbx                                                       ; +0x4e2, 0x140089d22\ncall    qword ptr [rax+1E8h]                                           ; +0x4e5, 0x140089d25\nmov     r9, [rax]                                                      ; +0x4eb, 0x140089d2b\nmov     r8d, 0Bh                                                       ; +0x4ee, 0x140089d2e\nmov     rdx, rbx                                                       ; +0x4f4, 0x140089d34\nmov     rcx, rax                                                       ; +0x4f7, 0x140089d37\ncall    qword ptr [r9+238h]                                            ; +0x4fa, 0x140089d3a\nlea     r14, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x501, 0x140089d41\nmov     rdx, r14                                                       ; +0x508, 0x140089d48\nmov     rcx, rsi                                                       ; +0x50b, 0x140089d4b\ncall    ButtonSprite__updateBGImage                                    ; +0x50e, 0x140089d4e\ncmp     dword ptr [rdi+278h], 2                                        ; +0x513, 0x140089d53\nsetz    bl                                                             ; +0x51a, 0x140089d5a\nmov     rcx, [rdi+2B0h]                                                ; +0x51d, 0x140089d5d\nmov     rax, [rcx]                                                     ; +0x524, 0x140089d64\nmovzx   edx, bl                                                        ; +0x527, 0x140089d67\ncall    qword ptr [rax+398h]                                           ; +0x52a, 0x140089d6a\nmov     rcx, [rdi+2B0h]                                                ; +0x530, 0x140089d70\nmov     rax, [rcx]                                                     ; +0x537, 0x140089d77\nmovzx   edx, bl                                                        ; +0x53a, 0x140089d7a\ncall    qword ptr [rax+140h]                                           ; +0x53d, 0x140089d7d\nmov     rcx, [rdi+2B8h]                                                ; +0x543, 0x140089d83\nmov     rax, [rcx]                                                     ; +0x54a, 0x140089d8a\nmovzx   edx, bl                                                        ; +0x54d, 0x140089d8d\nadd     rsp, 58h                                                       ; +0x550, 0x140089d90\npop     r15                                                            ; +0x554, 0x140089d94\npop     r14                                                            ; +0x556, 0x140089d96\npop     r13                                                            ; +0x558, 0x140089d98\npop     r12                                                            ; +0x55a, 0x140089d9a\npop     rdi                                                            ; +0x55c, 0x140089d9c\npop     rsi                                                            ; +0x55d, 0x140089d9d\npop     rbx                                                            ; +0x55e, 0x140089d9e\npop     rbp                                                            ; +0x55f, 0x140089d9f\njmp     qword ptr [rax+140h]                                           ; +0x560, 0x140089da0", "xrefs": ["CharacterColorPage::init @ 0x140088c49", "CharacterColorPage::onMode @ 0x140089817", "<???> @ 0x1406c6d08", "<???> @ 0x1406c6d14"], "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"}