{"type": "func", "start": 10901560, "end": 10901952, "name": "ColorSelectLiveOverlay::updateColorLabel", "pseudocode": "// \n// ColorSelectLiveOverlay::updateColorLabel from 0xa65838 to 0xa659c0 (392 bytes)\n// \n// 3 xrefs:\n// > ColorSelectLiveOverlay::init @ 0xa66710\n// > ColorSelectLiveOverlay::onSelectTab @ 0xa66af0\n// > <???> @ 0xd02e8\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::updateColorLabel(ColorSelectLiveOverlay *this)\n{\n  int v2; // w2\n  __int64 v3; // x20\n  __int64 v4; // x0\n  int v5; // w22\n  char *CString; // x0\n  size_t v7; // x0\n  char *v8; // x1\n  cocos2d::CCString *v10; // x0\n  __int64 v11; // x0\n  char *v12; // [xsp+48h] [xbp+48h]\n  __int64 v13[2]; // [xsp+50h] [xbp+50h] BYREF\n  void *v14; // [xsp+60h] [xbp+60h]\n\n  v2 = *((unsigned __int8 *)this + 856);\n  v3 = *((_QWORD *)this + 87);\n  v4 = *((_QWORD *)this + 86);\n  if ( !v2 )\n    v3 = v4;\n  if ( v3 )\n  {\n    v5 = *(_DWORD *)(v3 + 92);\n  }\n  else\n  {\n    v11 = *((_QWORD *)this + 83);\n    if ( !v11 )\n      goto LABEL_22;\n    v5 = *(_DWORD *)(v11 + 1024);\n  }\n  if ( v5 <= 0 )\n  {\nLABEL_22:\n    (*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 106) + 928LL))(*((_QWORD *)this + 106), &byte_11E1A70);\n    return _stack_chk_guard;\n  }\n  v13[0] = 0;\n  v13[1] = 0;\n  v14 = nullptr;\n  if ( v5 <= 999 )\n  {\n    v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                 (cocos2d::CCString *)\"%i\",\n                                 (const char *)(unsigned int)v5);\n    CString = (char *)cocos2d::CCString::getCString(v10);\n  }\n  else\n  {\n    CString = GJSpecialColorSelect::textForColorIdx((GJSpecialColorSelect *)(unsigned int)v5);\n  }\n  v12 = CString;\n  v7 = strlen(CString);\n  std::string::assign(v13, v12, v7);\n  if ( (v13[0] & 1) != 0 )\n    v8 = (char *)v14;\n  else\n    v8 = (char *)v13 + 1;\n  (*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 106) + 928LL))(*((_QWORD *)this + 106), v8);\n  if ( v3 )\n  {\n    if ( v5 <= 1004 || v5 == 1009 || v5 >= 1009 && (unsigned int)(v5 - 1013) <= 1 )\n      ColorSelectLiveOverlay::toggleControls((cocos2d::CCArray **)this, 1u);\n    else\n      ColorSelectLiveOverlay::toggleControls((cocos2d::CCArray **)this, 0);\n  }\n  if ( (v13[0] & 1) != 0 )\n    operator delete(v14);\n  return _stack_chk_guard;\n}", "assembly": "; \n; ColorSelectLiveOverlay::updateColorLabel from 0xa65838 to 0xa659c0 (392 bytes)\n; \n; 3 xrefs:\n; > ColorSelectLiveOverlay::init @ 0xa66710\n; > ColorSelectLiveOverlay::onSelectTab @ 0xa66af0\n; > <???> @ 0xd02e8\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_70]!                                ; +0x0, 0xa65838\nMOV             X29, SP                                                ; +0x4, 0xa6583c\nSTP             X21, X22, [SP,#0x70+var_50]                            ; +0x8, 0xa65840\nADRP            X21, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xa65844\nSTR             X23, [SP,#0x70+var_40]                                 ; +0x10, 0xa65848\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x14, 0xa6584c\nMOV             X19, X0                                                ; +0x18, 0xa65850\nLDR             X1, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0xa65854\nLDRB            W2, [X0,#0x358]                                        ; +0x20, 0xa65858\nLDR             X20, [X19,#0x2B8]                                      ; +0x24, 0xa6585c\nLDR             X0, [X0,#0x2B0]                                        ; +0x28, 0xa65860\nCMP             W2, WZR                                                ; +0x2c, 0xa65864\nLDR             X1, [X1]; int                                          ; +0x30, 0xa65868\nSTR             X1, [X29,#0x70+var_8]                                  ; +0x34, 0xa6586c\nCSEL            X20, X20, X0, NE                                       ; +0x38, 0xa65870\nCBZ             X20, loc_A65990                                        ; +0x3c, 0xa65874\nLDR             W22, [X20,#0x5C]                                       ; +0x40, 0xa65878\nCMP             W22, WZR                                               ; +0x44, 0xa6587c\nB.LE            loc_A65970                                             ; +0x48, 0xa65880\nSTR             XZR, [X29,#0x70+var_20]                                ; +0x4c, 0xa65884\nCMP             W22, #0x3E7                                            ; +0x50, 0xa65888\nSTR             XZR, [X29,#0x70+var_18]                                ; +0x54, 0xa6588c\nSTR             XZR, [X29,#0x70+var_10]                                ; +0x58, 0xa65890\nB.LE            loc_A65940                                             ; +0x5c, 0xa65894\nMOV             W0, W22; this                                          ; +0x60, 0xa65898\nBL              _ZN20GJSpecialColorSelect15textForColorIdxEi; GJSpecialColorSelect::textForColorIdx(int) ; +0x64, 0xa6589c\nSTR             X0, [X29,#0x70+var_28]                                 ; +0x68, 0xa658a0\nBL              .strlen                                                ; +0x6c, 0xa658a4\nADD             X23, X29, #0x70+var_20                                 ; +0x70, 0xa658a8\nLDR             X1, [X29,#0x70+var_28]; int                            ; +0x74, 0xa658ac\nMOV             X2, X0; size_t                                         ; +0x78, 0xa658b0\nMOV             X0, X23; int                                           ; +0x7c, 0xa658b4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKcm; std::string::assign(char const*,ulong) ; +0x80, 0xa658b8\nLDR             X0, [X19,#0x350]                                       ; +0x84, 0xa658bc\nLDRB            W1, [X29,#0x70+var_20]                                 ; +0x88, 0xa658c0\nLDR             X2, [X0]                                               ; +0x8c, 0xa658c4\nLDR             X2, [X2,#0x3A0]                                        ; +0x90, 0xa658c8\nTBNZ            W1, #0, loc_A65968                                     ; +0x94, 0xa658cc\nADD             X1, X23, #1                                            ; +0x98, 0xa658d0\nBLR             X2                                                     ; +0x9c, 0xa658d4\nCBZ             X20, loc_A65908                                        ; +0xa0, 0xa658d8\nCMP             W22, #0x3EC                                            ; +0xa4, 0xa658dc\nB.LE            loc_A65958                                             ; +0xa8, 0xa658e0\nCMP             W22, #0x3F1                                            ; +0xac, 0xa658e4\nB.EQ            loc_A65958                                             ; +0xb0, 0xa658e8\nB.LT            loc_A658FC                                             ; +0xb4, 0xa658ec\nSUB             W22, W22, #0x3F5                                       ; +0xb8, 0xa658f0\nCMP             W22, #1                                                ; +0xbc, 0xa658f4\nB.LS            loc_A65958                                             ; +0xc0, 0xa658f8\nMOV             X0, X19; this                                          ; +0xc4, 0xa658fc\nMOV             W1, #0; bool                                           ; +0xc8, 0xa65900\nBL              _ZN22ColorSelectLiveOverlay14toggleControlsEb; ColorSelectLiveOverlay::toggleControls(bool) ; +0xcc, 0xa65904\nLDRB            W0, [X29,#0x70+var_20]                                 ; +0xd0, 0xa65908\nTBZ             W0, #0, loc_A65918                                     ; +0xd4, 0xa6590c\nLDR             X0, [X29,#0x70+var_10]; void *                         ; +0xd8, 0xa65910\nBL              _ZdlPv; operator delete(void *)                        ; +0xdc, 0xa65914\nLDR             X21, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xe0, 0xa65918\nLDR             X1, [X29,#0x70+var_8]                                  ; +0xe4, 0xa6591c\nLDR             X0, [X21]                                              ; +0xe8, 0xa65920\nCMP             X1, X0                                                 ; +0xec, 0xa65924\nB.NE            loc_A659A0                                             ; +0xf0, 0xa65928\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0xf4, 0xa6592c\nLDP             X21, X22, [SP,#0x70+var_50]                            ; +0xf8, 0xa65930\nLDR             X23, [SP,#0x70+var_40]                                 ; +0xfc, 0xa65934\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0x100, 0xa65938\nRET                                                                    ; +0x104, 0xa6593c\nADRP            X0, #(aSongidI+8)@PAGE; \"%i\"                           ; +0x108, 0xa65940\nMOV             W1, W22; char *                                        ; +0x10c, 0xa65944\nADD             X0, X0, #(aSongidI+8)@PAGEOFF; this                    ; +0x110, 0xa65948\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x114, 0xa6594c\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x118, 0xa65950\nB               loc_A658A0                                             ; +0x11c, 0xa65954\nMOV             X0, X19; this                                          ; +0x120, 0xa65958\nMOV             W1, #1; bool                                           ; +0x124, 0xa6595c\nBL              _ZN22ColorSelectLiveOverlay14toggleControlsEb; ColorSelectLiveOverlay::toggleControls(bool) ; +0x128, 0xa65960\nB               loc_A65908                                             ; +0x12c, 0xa65964\nLDR             X1, [X29,#0x70+var_10]                                 ; +0x130, 0xa65968\nB               loc_A658D4                                             ; +0x134, 0xa6596c\nLDR             X2, [X19,#0x350]                                       ; +0x138, 0xa65970\nADRL            X1, byte_11E1A70                                       ; +0x13c, 0xa65974\nMOV             X0, X2                                                 ; +0x144, 0xa6597c\nLDR             X2, [X2]                                               ; +0x148, 0xa65980\nLDR             X2, [X2,#0x3A0]                                        ; +0x14c, 0xa65984\nBLR             X2                                                     ; +0x150, 0xa65988\nB               loc_A65918                                             ; +0x154, 0xa6598c\nLDR             X0, [X19,#0x298]                                       ; +0x158, 0xa65990\nCBZ             X0, loc_A65970                                         ; +0x15c, 0xa65994\nLDR             W22, [X0,#0x400]                                       ; +0x160, 0xa65998\nB               loc_A6587C                                             ; +0x164, 0xa6599c\nBL              .__stack_chk_fail                                      ; +0x168, 0xa659a0\nLDRB            W1, [X29,#0x70+var_20]                                 ; +0x16c, 0xa659a4\nMOV             X19, X0                                                ; +0x170, 0xa659a8\nTBZ             W1, #0, loc_A659B8                                     ; +0x174, 0xa659ac\nLDR             X0, [X29,#0x70+var_10]; void *                         ; +0x178, 0xa659b0\nBL              _ZdlPv; operator delete(void *)                        ; +0x17c, 0xa659b4\nMOV             X0, X19                                                ; +0x180, 0xa659b8\nBL              _Unwind_Resume                                         ; +0x184, 0xa659bc", "xrefs": ["ColorSelectLiveOverlay::init @ 0xa66710", "ColorSelectLiveOverlay::onSelectTab @ 0xa66af0", "<???> @ 0xd02e8"], "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"}