{"type": "func", "start": 13341840, "end": 13342056, "name": "EmotePickerPopup::canAddEmote", "pseudocode": "// \n// EmotePickerPopup::canAddEmote from 0xcb9490 to 0xcb9568 (216 bytes)\n// \n// 3 xrefs:\n// > EmotePickerPopup::refreshEnabled @ 0xcb9588\n// > EmotePickerPopup::onPickEmote @ 0xcba4b8\n// > <???> @ 0xe1580\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\nbool __fastcall EmotePickerPopup::canAddEmote(EmotePickerPopup *this)\n{\n  CCTextInputNode *v2; // x0\n  int v3; // w0\n  int v4; // w1\n  _BOOL4 v5; // w22\n  __int64 v7[3]; // [xsp+30h] [xbp+30h] BYREF\n\n  v2 = *((CCTextInputNode **)this + 146);\n  if ( !v2 )\n    return 1;\n  CCTextInputNode::getString(v2, v7);\n  v3 = EmoteSprite::parseTokens((char *)v7, nullptr, *((_DWORD *)this + 294));\n  v4 = *((_DWORD *)this + 294);\n  v5 = 0;\n  if ( v3 < v4 )\n  {\n    v5 = (int)EmoteSprite::effectiveLength((char *)v7, v4) < *((_DWORD *)this + 295);\n    if ( (v7[0] & 1) == 0 )\n      return v5;\nLABEL_6:\n    operator delete((void *)v7[2]);\n    return v5;\n  }\n  if ( (v7[0] & 1) != 0 )\n    goto LABEL_6;\n  return v5;\n}", "assembly": "; \n; EmotePickerPopup::canAddEmote from 0xcb9490 to 0xcb9568 (216 bytes)\n; \n; 3 xrefs:\n; > EmotePickerPopup::refreshEnabled @ 0xcb9588\n; > EmotePickerPopup::onPickEmote @ 0xcba4b8\n; > <???> @ 0xe1580\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,#var_50]!                                ; +0x0, 0xcb9490\nMOV             X29, SP                                                ; +0x4, 0xcb9494\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0xcb9498\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xcb949c\nMOV             X20, X0                                                ; +0x10, 0xcb94a0\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x14, 0xcb94a4\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0xcb94a8\nLDR             X0, [X0,#0x490]; this                                  ; +0x1c, 0xcb94ac\nLDR             X1, [X1]                                               ; +0x20, 0xcb94b0\nSTR             X1, [X29,#0x50+var_8]                                  ; +0x24, 0xcb94b4\nCBZ             X0, loc_CB9540                                         ; +0x28, 0xcb94b8\nADD             X21, X29, #0x50+var_20                                 ; +0x2c, 0xcb94bc\nMOV             X8, X21                                                ; +0x30, 0xcb94c0\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x34, 0xcb94c4\nLDR             W2, [X20,#0x498]                                       ; +0x38, 0xcb94c8\nMOV             X0, X21                                                ; +0x3c, 0xcb94cc\nMOV             X1, #0                                                 ; +0x40, 0xcb94d0\nBL              _ZN11EmoteSprite11parseTokensERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPNS0_6vectorI10EmoteTokenNS4_ISA_EEEEi; EmoteSprite::parseTokens(std::string const&,std::vector<EmoteToken> *,int) ; +0x44, 0xcb94d4\nLDR             W1, [X20,#0x498]                                       ; +0x48, 0xcb94d8\nMOV             W22, #0                                                ; +0x4c, 0xcb94dc\nCMP             W0, W1                                                 ; +0x50, 0xcb94e0\nB.LT            loc_CB9518                                             ; +0x54, 0xcb94e4\nLDRB            W0, [X29,#0x50+var_20]                                 ; +0x58, 0xcb94e8\nTBNZ            W0, #0, loc_CB9534                                     ; +0x5c, 0xcb94ec\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x60, 0xcb94f0\nMOV             W0, W22                                                ; +0x64, 0xcb94f4\nLDR             X2, [X29,#0x50+var_8]                                  ; +0x68, 0xcb94f8\nLDR             X1, [X19]                                              ; +0x6c, 0xcb94fc\nCMP             X2, X1                                                 ; +0x70, 0xcb9500\nB.NE            loc_CB9548                                             ; +0x74, 0xcb9504\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x78, 0xcb9508\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x7c, 0xcb950c\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x80, 0xcb9510\nRET                                                                    ; +0x84, 0xcb9514\nMOV             X0, X21                                                ; +0x88, 0xcb9518\nBL              _ZN11EmoteSprite15effectiveLengthERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEi; EmoteSprite::effectiveLength(std::string const&,int) ; +0x8c, 0xcb951c\nLDR             W1, [X20,#0x49C]                                       ; +0x90, 0xcb9520\nCMP             W0, W1                                                 ; +0x94, 0xcb9524\nLDRB            W0, [X29,#0x50+var_20]                                 ; +0x98, 0xcb9528\nCSET            W22, LT                                                ; +0x9c, 0xcb952c\nTBZ             W0, #0, loc_CB94F0                                     ; +0xa0, 0xcb9530\nLDR             X0, [X29,#0x50+var_10]; void *                         ; +0xa4, 0xcb9534\nBL              _ZdlPv; operator delete(void *)                        ; +0xa8, 0xcb9538\nB               loc_CB94F0                                             ; +0xac, 0xcb953c\nMOV             W22, #1                                                ; +0xb0, 0xcb9540\nB               loc_CB94F0                                             ; +0xb4, 0xcb9544\nBL              .__stack_chk_fail                                      ; +0xb8, 0xcb9548\nLDRB            W1, [X29,#0x50+var_20]                                 ; +0xbc, 0xcb954c\nMOV             X19, X0                                                ; +0xc0, 0xcb9550\nTBZ             W1, #0, loc_CB9560                                     ; +0xc4, 0xcb9554\nLDR             X0, [X29,#0x50+var_10]; void *                         ; +0xc8, 0xcb9558\nBL              _ZdlPv; operator delete(void *)                        ; +0xcc, 0xcb955c\nMOV             X0, X19                                                ; +0xd0, 0xcb9560\nBL              _Unwind_Resume                                         ; +0xd4, 0xcb9564", "xrefs": ["EmotePickerPopup::refreshEnabled @ 0xcb9588", "EmotePickerPopup::onPickEmote @ 0xcba4b8", "<???> @ 0xe1580"], "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"}