{"type": "func", "start": 13342056, "end": 13342392, "name": "EmotePickerPopup::refreshEnabled", "pseudocode": "// \n// EmotePickerPopup::refreshEnabled from 0xcb9568 to 0xcb96b8 (336 bytes)\n// \n// 4 xrefs:\n// > EmotePickerPopup::textChanged @ 0xcb96b8\n// > EmotePickerPopup::init @ 0xcb984c\n// > EmotePickerPopup::onPickEmote @ 0xcba5c8\n// > <???> @ 0x8dd90\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:06:13 +0000\n// \n\n__int64 __fastcall EmotePickerPopup::refreshEnabled(__int64 this)\n{\n  __int64 v1; // x19\n  unsigned int v2; // w21\n  __int64 v3; // x1\n  __int64 *v4; // x20\n  __int64 v5; // x22\n  unsigned __int64 v6; // x22\n  __int64 i; // x19\n  cocos2d::CCArray *v8; // x0\n  __int64 v9; // x0\n  __int64 v10; // x1\n\n  v1 = this;\n  if ( *(_QWORD *)(this + 1048) )\n  {\n    this = EmotePickerPopup::canAddEmote((EmotePickerPopup *)this);\n    v2 = (unsigned __int8)this;\n    if ( (unsigned __int8)this != *(_DWORD *)(v1 + 1208) )\n    {\n      v3 = *(_QWORD *)(v1 + 1048);\n      *(_DWORD *)(v1 + 1208) = (unsigned __int8)this;\n      this = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 488LL))(v3);\n      if ( this )\n      {\n        this = **(unsigned int **)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 1048) + 488LL))(*(_QWORD *)(v1 + 1048))\n                                 + 56);\n        if ( (_DWORD)this )\n        {\n          v4 = *(__int64 **)(*(_QWORD *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 1048) + 488LL))(*(_QWORD *)(v1 + 1048))\n                                       + 56)\n                           + 16LL);\n          v5 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 1048) + 488LL))(*(_QWORD *)(v1 + 1048))\n                                     + 56)\n                         + 16LL);\n          this = 8LL\n               * **(unsigned int **)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 1048) + 488LL))(*(_QWORD *)(v1 + 1048))\n                                   + 56)\n               - 8;\n          v6 = v5 + this;\n          if ( (unsigned __int64)v4 <= v6 )\n          {\n            for ( i = *v4; *v4; i = *v4 )\n            {\n              ++v4;\n              (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)i + 1056LL))(i, v2);\n              v8 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)i + 488LL))(i);\n              v9 = cocos2d::CCArray::objectAtIndex(v8, 0);\n              if ( v2 )\n                v10 = 255;\n              else\n                v10 = 90;\n              this = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 912LL))(v9, v10);\n              if ( v6 < (unsigned __int64)v4 )\n                break;\n            }\n          }\n        }\n      }\n    }\n  }\n  return this;\n}", "assembly": "; \n; EmotePickerPopup::refreshEnabled from 0xcb9568 to 0xcb96b8 (336 bytes)\n; \n; 4 xrefs:\n; > EmotePickerPopup::textChanged @ 0xcb96b8\n; > EmotePickerPopup::init @ 0xcb984c\n; > EmotePickerPopup::onPickEmote @ 0xcba5c8\n; > <???> @ 0x8dd90\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:06:13 +0000\n; \nSTP             X29, X30, [SP,#-0x40+var_s0]!                          ; +0x0, 0xcb9568\nMOV             X29, SP                                                ; +0x4, 0xcb956c\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0xcb9570\nSTP             X21, X22, [SP,#var_s20]                                ; +0xc, 0xcb9574\nSTP             X23, X24, [SP,#var_s30]                                ; +0x10, 0xcb9578\nMOV             X19, X0                                                ; +0x14, 0xcb957c\nLDR             X1, [X0,#0x418]                                        ; +0x18, 0xcb9580\nCBZ             X1, loc_CB96A4                                         ; +0x1c, 0xcb9584\nBL              _ZN16EmotePickerPopup11canAddEmoteEv; EmotePickerPopup::canAddEmote(void) ; +0x20, 0xcb9588\nUXTB            W21, W0                                                ; +0x24, 0xcb958c\nLDR             W1, [X19,#0x4B8]                                       ; +0x28, 0xcb9590\nCMP             W21, W1                                                ; +0x2c, 0xcb9594\nB.EQ            loc_CB96A4                                             ; +0x30, 0xcb9598\nLDR             X1, [X19,#0x418]                                       ; +0x34, 0xcb959c\nSTR             W21, [X19,#0x4B8]                                      ; +0x38, 0xcb95a0\nMOV             X0, X1                                                 ; +0x3c, 0xcb95a4\nLDR             X1, [X1]                                               ; +0x40, 0xcb95a8\nLDR             X1, [X1,#0x1E8]                                        ; +0x44, 0xcb95ac\nBLR             X1                                                     ; +0x48, 0xcb95b0\nCBZ             X0, loc_CB96A4                                         ; +0x4c, 0xcb95b4\nLDR             X1, [X19,#0x418]                                       ; +0x50, 0xcb95b8\nMOV             X0, X1                                                 ; +0x54, 0xcb95bc\nLDR             X1, [X1]                                               ; +0x58, 0xcb95c0\nLDR             X1, [X1,#0x1E8]                                        ; +0x5c, 0xcb95c4\nBLR             X1                                                     ; +0x60, 0xcb95c8\nLDR             X0, [X0,#0x38]                                         ; +0x64, 0xcb95cc\nLDR             W0, [X0]                                               ; +0x68, 0xcb95d0\nCBZ             W0, loc_CB96A4                                         ; +0x6c, 0xcb95d4\nLDR             X1, [X19,#0x418]                                       ; +0x70, 0xcb95d8\nMOV             X0, X1                                                 ; +0x74, 0xcb95dc\nLDR             X1, [X1]                                               ; +0x78, 0xcb95e0\nLDR             X1, [X1,#0x1E8]                                        ; +0x7c, 0xcb95e4\nBLR             X1                                                     ; +0x80, 0xcb95e8\nLDR             X2, [X0,#0x38]                                         ; +0x84, 0xcb95ec\nLDR             X1, [X19,#0x418]                                       ; +0x88, 0xcb95f0\nMOV             X0, X1                                                 ; +0x8c, 0xcb95f4\nLDR             X20, [X2,#0x10]                                        ; +0x90, 0xcb95f8\nLDR             X1, [X1]                                               ; +0x94, 0xcb95fc\nLDR             X1, [X1,#0x1E8]                                        ; +0x98, 0xcb9600\nBLR             X1                                                     ; +0x9c, 0xcb9604\nLDR             X2, [X0,#0x38]                                         ; +0xa0, 0xcb9608\nLDR             X1, [X19,#0x418]                                       ; +0xa4, 0xcb960c\nMOV             X0, X1                                                 ; +0xa8, 0xcb9610\nLDR             X22, [X2,#0x10]                                        ; +0xac, 0xcb9614\nLDR             X1, [X1]                                               ; +0xb0, 0xcb9618\nLDR             X1, [X1,#0x1E8]                                        ; +0xb4, 0xcb961c\nBLR             X1                                                     ; +0xb8, 0xcb9620\nLDR             X0, [X0,#0x38]                                         ; +0xbc, 0xcb9624\nLDR             W2, [X0]                                               ; +0xc0, 0xcb9628\nMOV             X0, #0xFFFFFFFFFFFFFFF8                                ; +0xc4, 0xcb962c\nADD             X0, X0, W2,UXTW#3                                      ; +0xc8, 0xcb9630\nADD             X22, X22, X0                                           ; +0xcc, 0xcb9634\nCMP             X20, X22                                               ; +0xd0, 0xcb9638\nB.HI            loc_CB96A4                                             ; +0xd4, 0xcb963c\nLDR             X19, [X20]                                             ; +0xd8, 0xcb9640\nCBZ             X19, loc_CB96A4                                        ; +0xdc, 0xcb9644\nMOV             W24, #0xFF                                             ; +0xe0, 0xcb9648\nMOV             W23, #0x5A ; 'Z'                                       ; +0xe4, 0xcb964c\nLDR             X2, [X19]                                              ; +0xe8, 0xcb9650\nMOV             W1, W21                                                ; +0xec, 0xcb9654\nMOV             X0, X19                                                ; +0xf0, 0xcb9658\nADD             X20, X20, #8                                           ; +0xf4, 0xcb965c\nLDR             X2, [X2,#0x420]                                        ; +0xf8, 0xcb9660\nBLR             X2                                                     ; +0xfc, 0xcb9664\nLDR             X2, [X19]                                              ; +0x100, 0xcb9668\nMOV             X0, X19                                                ; +0x104, 0xcb966c\nLDR             X2, [X2,#0x1E8]                                        ; +0x108, 0xcb9670\nBLR             X2                                                     ; +0x10c, 0xcb9674\nMOV             W1, #0; unsigned int                                   ; +0x110, 0xcb9678\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x114, 0xcb967c\nLDR             X2, [X0]                                               ; +0x118, 0xcb9680\nCMP             W21, WZR                                               ; +0x11c, 0xcb9684\nCSEL            W1, W24, W23, NE                                       ; +0x120, 0xcb9688\nLDR             X2, [X2,#0x390]                                        ; +0x124, 0xcb968c\nBLR             X2                                                     ; +0x128, 0xcb9690\nCMP             X22, X20                                               ; +0x12c, 0xcb9694\nB.CC            loc_CB96A4                                             ; +0x130, 0xcb9698\nLDR             X19, [X20]                                             ; +0x134, 0xcb969c\nCBNZ            X19, loc_CB9650                                        ; +0x138, 0xcb96a0\nLDP             X19, X20, [SP,#var_s10]                                ; +0x13c, 0xcb96a4\nLDP             X21, X22, [SP,#var_s20]                                ; +0x140, 0xcb96a8\nLDP             X23, X24, [SP,#var_s30]                                ; +0x144, 0xcb96ac\nLDP             X29, X30, [SP+var_s0],#0x40                            ; +0x148, 0xcb96b0\nRET                                                                    ; +0x14c, 0xcb96b4", "xrefs": ["EmotePickerPopup::textChanged @ 0xcb96b8", "EmotePickerPopup::init @ 0xcb984c", "EmotePickerPopup::onPickEmote @ 0xcba5c8", "<???> @ 0x8dd90"], "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"}