{"type": "func", "start": 4295975588, "end": 4295975920, "name": "ColorSelectLiveOverlay::onSelectTab", "pseudocode": "// \n// ColorSelectLiveOverlay::onSelectTab from 0x1000f62a4 to 0x1000f63f0 (332 bytes)\n// \n// 1 xrefs:\n// > ColorSelectLiveOverlay::init @ 0x1000f5bec\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 __fastcall ColorSelectLiveOverlay::onSelectTab(ColorSelectLiveOverlay *a1, cocos2d::CCObject *a2)\n{\n  int v4; // w0\n  _BOOL4 v5; // w8\n  __int64 v6; // x9\n  __int64 v7; // x9\n  __int64 v8; // x21\n  ButtonSprite *v9; // x22\n  int v10; // w23\n  const char *v11; // x1\n  __int64 v12; // x8\n\n  v4 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);\n  v5 = v4 != 1;\n  if ( a1->m_detailColorSelected != v5 )\n  {\n    v6 = 656;\n    if ( v4 != 1 )\n      v6 = 664;\n    v7 = *(__int64 *)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                    + v6);\n    a1->m_detailColorSelected = v5;\n    a1->m_opacity = *(float *)(v7 + 96);\n    ColorSelectLiveOverlay::selectColor(\n      a1,\n      (cocos2d::ccColor3B)(*(unsigned __int16 *)(v7 + 72) | (*(unsigned __int8 *)(v7 + 74) << 16)));\n    if ( (unsigned int)sub_10024A36C(a1->m_12buttons) )\n    {\n      v8 = 0;\n      do\n      {\n        v9 = (ButtonSprite *)sub_10024A388(a1->m_12buttons, v8);\n        v10 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);\n        if ( v10 == ((unsigned int (__fastcall *)(ButtonSprite *))v9->getTag)(v9) )\n          v11 = \"GJ_button_01.png\";\n        else\n          v11 = \"GJ_button_04.png\";\n        ButtonSprite::updateBGImage(v9, v11);\n        v8 = (unsigned int)(v8 + 1);\n      }\n      while ( (unsigned int)v8 < (unsigned int)sub_10024A36C(a1->m_12buttons) );\n    }\n    v12 = 672;\n    if ( a1->m_detailColorSelected )\n      v12 = 675;\n    ((void (__fastcall *)(cocos2d::CCSprite *, char *))a1->m_oldColorSprite->setColor)(\n      a1->m_oldColorSprite,\n      (char *)a1 + v12);\n    ColorSelectLiveOverlay::updateColorLabel(a1);\n  }\n}", "assembly": "; \n; ColorSelectLiveOverlay::onSelectTab from 0x1000f62a4 to 0x1000f63f0 (332 bytes)\n; \n; 1 xrefs:\n; > ColorSelectLiveOverlay::init @ 0x1000f5bec\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             X26, X25, [SP,#-0x10+var_40]!                          ; +0x0, 0x1000f62a4\nSTP             X24, X23, [SP,#0x40+var_30]                            ; +0x4, 0x1000f62a8\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x1000f62ac\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x1000f62b0\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x1000f62b4\nADD             X29, SP, #0x40                                         ; +0x14, 0x1000f62b8\nMOV             X20, X1                                                ; +0x18, 0x1000f62bc\nMOV             X19, X0                                                ; +0x1c, 0x1000f62c0\nLDR             X8, [X1]                                               ; +0x20, 0x1000f62c4\nLDR             X8, [X8,#0x40]                                         ; +0x24, 0x1000f62c8\nMOV             X0, X1                                                 ; +0x28, 0x1000f62cc\nBLR             X8                                                     ; +0x2c, 0x1000f62d0\nCMP             W0, #1                                                 ; +0x30, 0x1000f62d4\nCSET            W8, NE                                                 ; +0x34, 0x1000f62d8\nLDRB            W9, [X19,#0x338]                                       ; +0x38, 0x1000f62dc\nCMP             W9, W8                                                 ; +0x3c, 0x1000f62e0\nB.NE            loc_1000F6300                                          ; +0x40, 0x1000f62e4\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x44, 0x1000f62e8\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x48, 0x1000f62ec\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x4c, 0x1000f62f0\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0x50, 0x1000f62f4\nLDP             X26, X25, [SP+0x40+var_40],#0x50                       ; +0x54, 0x1000f62f8\nRET                                                                    ; +0x58, 0x1000f62fc\nCMP             W0, #1                                                 ; +0x5c, 0x1000f6300\nMOV             W9, #0x290                                             ; +0x60, 0x1000f6304\nMOV             W10, #0x298                                            ; +0x64, 0x1000f6308\nCSEL            X9, X10, X9, NE                                        ; +0x68, 0x1000f630c\nLDR             X9, [X19,X9]                                           ; +0x6c, 0x1000f6310\nSTRB            W8, [X19,#0x338]                                       ; +0x70, 0x1000f6314\nLDR             S0, [X9,#0x60]                                         ; +0x74, 0x1000f6318\nSTR             S0, [X19,#0x2B8]                                       ; +0x78, 0x1000f631c\nLDRB            W8, [X9,#0x4A]                                         ; +0x7c, 0x1000f6320\nLDRH            W9, [X9,#0x48]                                         ; +0x80, 0x1000f6324\nORR             X1, X9, X8,LSL#16                                      ; +0x84, 0x1000f6328\nMOV             X0, X19                                                ; +0x88, 0x1000f632c\nBL              ColorSelectLiveOverlay__selectColor                    ; +0x8c, 0x1000f6330\nLDR             X0, [X19,#0x288]                                       ; +0x90, 0x1000f6334\nBL              sub_10024A36C                                          ; +0x94, 0x1000f6338\nCBZ             W0, loc_1000F63AC                                      ; +0x98, 0x1000f633c\nMOV             W21, #0                                                ; +0x9c, 0x1000f6340\nADRL            X24, aGjButton04Png; \"GJ_button_04.png\"                ; +0xa0, 0x1000f6344\nADRL            X25, aGjButton01Png; \"GJ_button_01.png\"                ; +0xa8, 0x1000f634c\nLDR             X0, [X19,#0x288]                                       ; +0xb0, 0x1000f6354\nMOV             X1, X21                                                ; +0xb4, 0x1000f6358\nBL              sub_10024A388                                          ; +0xb8, 0x1000f635c\nMOV             X22, X0                                                ; +0xbc, 0x1000f6360\nLDR             X8, [X20]                                              ; +0xc0, 0x1000f6364\nLDR             X8, [X8,#0x40]                                         ; +0xc4, 0x1000f6368\nMOV             X0, X20                                                ; +0xc8, 0x1000f636c\nBLR             X8                                                     ; +0xcc, 0x1000f6370\nMOV             X23, X0                                                ; +0xd0, 0x1000f6374\nLDR             X8, [X22]                                              ; +0xd4, 0x1000f6378\nLDR             X8, [X8,#0x40]                                         ; +0xd8, 0x1000f637c\nMOV             X0, X22                                                ; +0xdc, 0x1000f6380\nBLR             X8                                                     ; +0xe0, 0x1000f6384\nCMP             W23, W0                                                ; +0xe4, 0x1000f6388\nCSEL            X1, X25, X24, EQ                                       ; +0xe8, 0x1000f638c\nMOV             X0, X22                                                ; +0xec, 0x1000f6390\nBL              ButtonSprite__updateBGImage                            ; +0xf0, 0x1000f6394\nADD             W21, W21, #1                                           ; +0xf4, 0x1000f6398\nLDR             X0, [X19,#0x288]                                       ; +0xf8, 0x1000f639c\nBL              sub_10024A36C                                          ; +0xfc, 0x1000f63a0\nCMP             W21, W0                                                ; +0x100, 0x1000f63a4\nB.CC            loc_1000F6354                                          ; +0x104, 0x1000f63a8\nLDR             X0, [X19,#0x2F8]                                       ; +0x108, 0x1000f63ac\nLDRB            W8, [X19,#0x338]                                       ; +0x10c, 0x1000f63b0\nCMP             W8, #0                                                 ; +0x110, 0x1000f63b4\nMOV             W8, #0x2A0                                             ; +0x114, 0x1000f63b8\nMOV             W9, #0x2A3                                             ; +0x118, 0x1000f63bc\nCSEL            X8, X9, X8, NE                                         ; +0x11c, 0x1000f63c0\nLDR             X9, [X0]                                               ; +0x120, 0x1000f63c4\nLDR             X9, [X9,#0x3B0]                                        ; +0x124, 0x1000f63c8\nADD             X1, X19, X8                                            ; +0x128, 0x1000f63cc\nBLR             X9                                                     ; +0x12c, 0x1000f63d0\nMOV             X0, X19                                                ; +0x130, 0x1000f63d4\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x134, 0x1000f63d8\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x138, 0x1000f63dc\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x13c, 0x1000f63e0\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0x140, 0x1000f63e4\nLDP             X26, X25, [SP+0x40+var_40],#0x50                       ; +0x144, 0x1000f63e8\nB               ColorSelectLiveOverlay__updateColorLabel               ; +0x148, 0x1000f63ec", "xrefs": ["ColorSelectLiveOverlay::init @ 0x1000f5bec"], "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"}