{"type": "func", "start": 10906044, "end": 10906380, "name": "ColorSelectLiveOverlay::onSelectTab", "pseudocode": "// \n// ColorSelectLiveOverlay::onSelectTab from 0xa669bc to 0xa66b0c (336 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0xd62d0\n// > ColorSelectLiveOverlay::init @ 0xa6653c\n// > ColorSelectLiveOverlay::init @ 0xa665e8\n// > <???> @ 0x15465f0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:00:17 +0000\n// \n\n__int64 __fastcall ColorSelectLiveOverlay::onSelectTab(ColorSelectLiveOverlay *this, cocos2d::CCObject *a2)\n{\n  __int64 result; // x0\n  int v5; // w2\n  __int64 v6; // x3\n  __int64 v7; // x1\n  unsigned int v8; // w19\n  ButtonSprite *v9; // x20\n  int v10; // w23\n  const char *v11; // x1\n  bool v12; // cf\n  unsigned int v13; // w1\n  char *v14; // x1\n  __int64 v15; // [xsp+58h] [xbp+58h]\n\n  result = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);\n  v5 = result != 1;\n  if ( *((unsigned __int8 *)this + 856) != v5 )\n  {\n    v6 = *((_QWORD *)this + 86);\n    v7 = *((_QWORD *)this + 87);\n    *((_BYTE *)this + 856) = v5;\n    if ( (_DWORD)result == 1 )\n      v7 = v6;\n    v8 = 0;\n    *((_DWORD *)this + 182) = *(_DWORD *)(v7 + 96);\n    LOWORD(v15) = *(_WORD *)(v7 + 72);\n    BYTE2(v15) = *(_BYTE *)(v7 + 74);\n    ColorSelectLiveOverlay::selectColor((__int64)this, v15);\n    while ( 1 )\n    {\n      v12 = v8 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 85));\n      v13 = v8++;\n      if ( v12 )\n        break;\n      v9 = (ButtonSprite *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 85), v13);\n      v10 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);\n      if ( v10 == (*(unsigned int (__fastcall **)(ButtonSprite *))(*(_QWORD *)v9 + 64LL))(v9) )\n        v11 = \"GJ_button_01.png\";\n      else\n        v11 = \"GJ_button_04.png\";\n      ButtonSprite::updateBGImage(v9, v11);\n    }\n    v14 = (char *)this + 707;\n    if ( !*((_BYTE *)this + 856) )\n      v14 = (char *)this + 704;\n    (*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 99) + 960LL))(*((_QWORD *)this + 99), v14);\n    return ColorSelectLiveOverlay::updateColorLabel(this);\n  }\n  return result;\n}", "assembly": "; \n; ColorSelectLiveOverlay::onSelectTab from 0xa669bc to 0xa66b0c (336 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0xd62d0\n; > ColorSelectLiveOverlay::init @ 0xa6653c\n; > ColorSelectLiveOverlay::init @ 0xa665e8\n; > <???> @ 0x15465f0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:00:17 +0000\n; \nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0xa669bc\nMOV             X29, SP                                                ; +0x4, 0xa669c0\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x8, 0xa669c4\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0xc, 0xa669c8\nSTP             X23, X24, [SP,#0x60+var_30]                            ; +0x10, 0xa669cc\nSTR             X25, [SP,#0x60+var_20]                                 ; +0x14, 0xa669d0\nMOV             X21, X0                                                ; +0x18, 0xa669d4\nMOV             X22, X1                                                ; +0x1c, 0xa669d8\nMOV             X0, X1                                                 ; +0x20, 0xa669dc\nLDR             X1, [X1]                                               ; +0x24, 0xa669e0\nLDR             X1, [X1,#0x40]                                         ; +0x28, 0xa669e4\nBLR             X1                                                     ; +0x2c, 0xa669e8\nCMP             W0, #1                                                 ; +0x30, 0xa669ec\nLDRB            W1, [X21,#0x358]                                       ; +0x34, 0xa669f0\nCSET            W2, NE                                                 ; +0x38, 0xa669f4\nCMP             W1, W2                                                 ; +0x3c, 0xa669f8\nB.EQ            loc_A66AF4                                             ; +0x40, 0xa669fc\nLDR             X3, [X21,#0x2B0]                                       ; +0x44, 0xa66a00\nCMP             W2, WZR                                                ; +0x48, 0xa66a04\nLDR             X1, [X21,#0x2B8]                                       ; +0x4c, 0xa66a08\nMOV             X0, X21                                                ; +0x50, 0xa66a0c\nSTRB            W2, [X21,#0x358]                                       ; +0x54, 0xa66a10\nADRP            X25, #aGjButton01Png@PAGE; \"GJ_button_01.png\"          ; +0x58, 0xa66a14\nCSEL            X1, X1, X3, NE                                         ; +0x5c, 0xa66a18\nADRP            X24, #aGjButton04Png@PAGE; \"GJ_button_04.png\"          ; +0x60, 0xa66a1c\nMOV             W19, #0                                                ; +0x64, 0xa66a20\nADD             X25, X25, #aGjButton01Png@PAGEOFF; \"GJ_button_01.png\"  ; +0x68, 0xa66a24\nLDR             W2, [X1,#0x60]                                         ; +0x6c, 0xa66a28\nADD             X24, X24, #aGjButton04Png@PAGEOFF; \"GJ_button_04.png\"  ; +0x70, 0xa66a2c\nSTR             W2, [X21,#0x2D8]                                       ; +0x74, 0xa66a30\nLDRB            W3, [X1,#0x49]                                         ; +0x78, 0xa66a34\nLDRB            W2, [X1,#0x4A]                                         ; +0x7c, 0xa66a38\nLDRB            W1, [X1,#0x48]                                         ; +0x80, 0xa66a3c\nSTRB            W1, [X29,#0x60+var_8]                                  ; +0x84, 0xa66a40\nSTRB            W3, [X29,#0x60+var_8+1]                                ; +0x88, 0xa66a44\nSTRB            W2, [X29,#0x60+var_8+2]                                ; +0x8c, 0xa66a48\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x90, 0xa66a4c\nBL              _ZN22ColorSelectLiveOverlay11selectColorEN7cocos2d10_ccColor3BE; ColorSelectLiveOverlay::selectColor(cocos2d::_ccColor3B) ; +0x94, 0xa66a50\nB               loc_A66A98                                             ; +0x98, 0xa66a54\nLDR             X0, [X21,#0x2A8]; this                                 ; +0x9c, 0xa66a58\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xa0, 0xa66a5c\nMOV             X20, X0                                                ; +0xa4, 0xa66a60\nLDR             X1, [X22]                                              ; +0xa8, 0xa66a64\nMOV             X0, X22                                                ; +0xac, 0xa66a68\nLDR             X1, [X1,#0x40]                                         ; +0xb0, 0xa66a6c\nBLR             X1                                                     ; +0xb4, 0xa66a70\nMOV             W23, W0                                                ; +0xb8, 0xa66a74\nLDR             X1, [X20]                                              ; +0xbc, 0xa66a78\nMOV             X0, X20                                                ; +0xc0, 0xa66a7c\nLDR             X1, [X1,#0x40]                                         ; +0xc4, 0xa66a80\nBLR             X1                                                     ; +0xc8, 0xa66a84\nCMP             W23, W0                                                ; +0xcc, 0xa66a88\nCSEL            X1, X25, X24, EQ; char *                               ; +0xd0, 0xa66a8c\nMOV             X0, X20; this                                          ; +0xd4, 0xa66a90\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0xd8, 0xa66a94\nLDR             X0, [X21,#0x2A8]; this                                 ; +0xdc, 0xa66a98\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xe0, 0xa66a9c\nCMP             W19, W0                                                ; +0xe4, 0xa66aa0\nMOV             W1, W19; unsigned int                                  ; +0xe8, 0xa66aa4\nADD             W19, W19, #1                                           ; +0xec, 0xa66aa8\nB.CC            loc_A66A58                                             ; +0xf0, 0xa66aac\nLDR             X2, [X21,#0x318]                                       ; +0xf4, 0xa66ab0\nADD             X3, X21, #0x2C0                                        ; +0xf8, 0xa66ab4\nLDRB            W4, [X21,#0x358]                                       ; +0xfc, 0xa66ab8\nADD             X1, X21, #0x2C3                                        ; +0x100, 0xa66abc\nMOV             X0, X2                                                 ; +0x104, 0xa66ac0\nLDR             X2, [X2]                                               ; +0x108, 0xa66ac4\nCMP             W4, WZR                                                ; +0x10c, 0xa66ac8\nCSEL            X1, X3, X1, EQ                                         ; +0x110, 0xa66acc\nLDR             X2, [X2,#0x3C0]                                        ; +0x114, 0xa66ad0\nBLR             X2                                                     ; +0x118, 0xa66ad4\nLDR             X25, [SP,#0x60+var_20]                                 ; +0x11c, 0xa66ad8\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x120, 0xa66adc\nLDP             X23, X24, [SP,#0x60+var_30]                            ; +0x124, 0xa66ae0\nMOV             X0, X21; this                                          ; +0x128, 0xa66ae4\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x12c, 0xa66ae8\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x130, 0xa66aec\nB               _ZN22ColorSelectLiveOverlay16updateColorLabelEv; ColorSelectLiveOverlay::updateColorLabel(void) ; +0x134, 0xa66af0\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x138, 0xa66af4\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x13c, 0xa66af8\nLDP             X23, X24, [SP,#0x60+var_30]                            ; +0x140, 0xa66afc\nLDR             X25, [SP,#0x60+var_20]                                 ; +0x144, 0xa66b00\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x148, 0xa66b04\nRET                                                                    ; +0x14c, 0xa66b08", "xrefs": ["<???> @ 0xd62d0", "ColorSelectLiveOverlay::init @ 0xa6653c", "ColorSelectLiveOverlay::init @ 0xa665e8", "<???> @ 0x15465f0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}