{"type": "func", "start": 9486972, "end": 9487308, "name": "ColorSelectLiveOverlay::onSelectTab", "pseudocode": "// \n// ColorSelectLiveOverlay::onSelectTab from 0x90c27c to 0x90c3cc (336 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0xa2e70\n// > ColorSelectLiveOverlay::init @ 0x90be84\n// > ColorSelectLiveOverlay::init @ 0x90bf30\n// > <???> @ 0x122d9c0\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\nvoid ColorSelectLiveOverlay::onSelectTab(ColorSelectLiveOverlay *a1, cocos2d::CCObject *a2)\n{\n  _BOOL4 v4; // w2\n  ColorAction *m_baseColorAction; // x3\n  ColorAction *m_detailColorAction; // x1\n  unsigned int v7; // w19\n  ButtonSprite *v8; // x20\n  int v9; // w23\n  const char *v10; // x1\n  bool v11; // cf\n  unsigned int v12; // w1\n  cocos2d::ccColor3B *p_m_detailColor; // x1\n\n  v4 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) != 1;\n  if ( a1->m_detailColorSelected != v4 )\n  {\n    m_baseColorAction = a1->m_baseColorAction;\n    m_detailColorAction = a1->m_detailColorAction;\n    a1->m_detailColorSelected = v4;\n    if ( !v4 )\n      m_detailColorAction = m_baseColorAction;\n    v7 = 0;\n    a1->m_opacity = m_detailColorAction->m_fromOpacity;\n    ColorSelectLiveOverlay::selectColor(a1, m_detailColorAction->m_fromColor);\n    while ( 1 )\n    {\n      v11 = v7 >= (unsigned int)cocos2d::CCArray::count(a1->m_12buttons);\n      v12 = v7++;\n      if ( v11 )\n        break;\n      v8 = (ButtonSprite *)cocos2d::CCArray::objectAtIndex(a1->m_12buttons, v12);\n      v9 = a2->getTag(a2);\n      if ( v9 == v8->getTag(v8) )\n        v10 = \"GJ_button_01.png\";\n      else\n        v10 = \"GJ_button_04.png\";\n      ButtonSprite::updateBGImage(v8, v10);\n    }\n    p_m_detailColor = &a1->m_detailColor;\n    if ( !a1->m_detailColorSelected )\n      p_m_detailColor = &a1->m_mainColor;\n    a1->m_oldColorSprite->setColor(a1->m_oldColorSprite, p_m_detailColor);\n    ColorSelectLiveOverlay::updateColorLabel(a1);\n  }\n}", "assembly": "; \n; ColorSelectLiveOverlay::onSelectTab from 0x90c27c to 0x90c3cc (336 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0xa2e70\n; > ColorSelectLiveOverlay::init @ 0x90be84\n; > ColorSelectLiveOverlay::init @ 0x90bf30\n; > <???> @ 0x122d9c0\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             X29, X30, [SP,#var_60]!                                ; +0x0, 0x90c27c\nMOV             X29, SP                                                ; +0x4, 0x90c280\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x8, 0x90c284\nMOV             X21, X0                                                ; +0xc, 0x90c288\nMOV             X22, X1                                                ; +0x10, 0x90c28c\nMOV             X0, X1                                                 ; +0x14, 0x90c290\nLDR             X1, [X1]                                               ; +0x18, 0x90c294\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x1c, 0x90c298\nSTP             X23, X24, [SP,#0x60+var_30]                            ; +0x20, 0x90c29c\nLDR             X1, [X1,#0x40]                                         ; +0x24, 0x90c2a0\nSTR             X25, [SP,#0x60+var_20]                                 ; +0x28, 0x90c2a4\nBLR             X1                                                     ; +0x2c, 0x90c2a8\nCMP             W0, #1                                                 ; +0x30, 0x90c2ac\nLDRB            W1, [X21,#0x338]                                       ; +0x34, 0x90c2b0\nCSET            W2, NE                                                 ; +0x38, 0x90c2b4\nCMP             W1, W2                                                 ; +0x3c, 0x90c2b8\nB.EQ            loc_90C3B4                                             ; +0x40, 0x90c2bc\nLDR             X3, [X21,#0x290]                                       ; +0x44, 0x90c2c0\nCMP             W2, WZR                                                ; +0x48, 0x90c2c4\nLDR             X1, [X21,#0x298]                                       ; +0x4c, 0x90c2c8\nMOV             X0, X21                                                ; +0x50, 0x90c2cc\nSTRB            W2, [X21,#0x338]                                       ; +0x54, 0x90c2d0\nADRP            X25, #aGjButton01Png@PAGE; \"GJ_button_01.png\"          ; +0x58, 0x90c2d4\nCSEL            X1, X1, X3, NE                                         ; +0x5c, 0x90c2d8\nADRP            X24, #aGjButton04Png@PAGE; \"GJ_button_04.png\"          ; +0x60, 0x90c2dc\nMOV             W19, #0                                                ; +0x64, 0x90c2e0\nADD             X25, X25, #aGjButton01Png@PAGEOFF; \"GJ_button_01.png\"  ; +0x68, 0x90c2e4\nLDR             W2, [X1,#0x60]                                         ; +0x6c, 0x90c2e8\nADD             X24, X24, #aGjButton04Png@PAGEOFF; \"GJ_button_04.png\"  ; +0x70, 0x90c2ec\nSTR             W2, [X21,#0x2B8]                                       ; +0x74, 0x90c2f0\nLDRB            W3, [X1,#0x49]                                         ; +0x78, 0x90c2f4\nLDRB            W2, [X1,#0x4A]                                         ; +0x7c, 0x90c2f8\nLDRB            W1, [X1,#0x48]                                         ; +0x80, 0x90c2fc\nSTRB            W1, [X29,#0x60+var_8]                                  ; +0x84, 0x90c300\nSTRB            W3, [X29,#0x60+var_8+1]                                ; +0x88, 0x90c304\nSTRB            W2, [X29,#0x60+var_8+2]                                ; +0x8c, 0x90c308\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x90, 0x90c30c\nBL              _ZN22ColorSelectLiveOverlay11selectColorEN7cocos2d10_ccColor3BE; ColorSelectLiveOverlay::selectColor(cocos2d::_ccColor3B) ; +0x94, 0x90c310\nB               loc_90C358                                             ; +0x98, 0x90c314\nLDR             X0, [X21,#0x288]; this                                 ; +0x9c, 0x90c318\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xa0, 0x90c31c\nMOV             X20, X0                                                ; +0xa4, 0x90c320\nLDR             X1, [X22]                                              ; +0xa8, 0x90c324\nMOV             X0, X22                                                ; +0xac, 0x90c328\nLDR             X1, [X1,#0x40]                                         ; +0xb0, 0x90c32c\nBLR             X1                                                     ; +0xb4, 0x90c330\nMOV             W23, W0                                                ; +0xb8, 0x90c334\nLDR             X1, [X20]                                              ; +0xbc, 0x90c338\nMOV             X0, X20                                                ; +0xc0, 0x90c33c\nLDR             X1, [X1,#0x40]                                         ; +0xc4, 0x90c340\nBLR             X1                                                     ; +0xc8, 0x90c344\nCMP             W23, W0                                                ; +0xcc, 0x90c348\nCSEL            X1, X25, X24, EQ; char *                               ; +0xd0, 0x90c34c\nMOV             X0, X20; this                                          ; +0xd4, 0x90c350\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0xd8, 0x90c354\nLDR             X0, [X21,#0x288]; this                                 ; +0xdc, 0x90c358\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xe0, 0x90c35c\nCMP             W19, W0                                                ; +0xe4, 0x90c360\nMOV             W1, W19; unsigned int                                  ; +0xe8, 0x90c364\nADD             W19, W19, #1                                           ; +0xec, 0x90c368\nB.CC            loc_90C318                                             ; +0xf0, 0x90c36c\nLDR             X2, [X21,#0x2F8]                                       ; +0xf4, 0x90c370\nADD             X3, X21, #0x2A0                                        ; +0xf8, 0x90c374\nLDRB            W4, [X21,#0x338]                                       ; +0xfc, 0x90c378\nADD             X1, X21, #0x2A3                                        ; +0x100, 0x90c37c\nMOV             X0, X2                                                 ; +0x104, 0x90c380\nLDR             X2, [X2]                                               ; +0x108, 0x90c384\nCMP             W4, WZR                                                ; +0x10c, 0x90c388\nCSEL            X1, X3, X1, EQ                                         ; +0x110, 0x90c38c\nLDR             X2, [X2,#0x3B0]                                        ; +0x114, 0x90c390\nBLR             X2                                                     ; +0x118, 0x90c394\nLDR             X25, [SP,#0x60+var_20]                                 ; +0x11c, 0x90c398\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x120, 0x90c39c\nLDP             X23, X24, [SP,#0x60+var_30]                            ; +0x124, 0x90c3a0\nMOV             X0, X21; this                                          ; +0x128, 0x90c3a4\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x12c, 0x90c3a8\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x130, 0x90c3ac\nB               _ZN22ColorSelectLiveOverlay16updateColorLabelEv; ColorSelectLiveOverlay::updateColorLabel(void) ; +0x134, 0x90c3b0\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x138, 0x90c3b4\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x13c, 0x90c3b8\nLDP             X23, X24, [SP,#0x60+var_30]                            ; +0x140, 0x90c3bc\nLDR             X25, [SP,#0x60+var_20]                                 ; +0x144, 0x90c3c0\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x148, 0x90c3c4\nRET                                                                    ; +0x14c, 0x90c3c8", "xrefs": ["<???> @ 0xa2e70", "ColorSelectLiveOverlay::init @ 0x90be84", "ColorSelectLiveOverlay::init @ 0x90bf30", "<???> @ 0x122d9c0"], "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"}