{"type": "func", "start": 4300061780, "end": 4300061916, "name": "EmotePickerPopup::canAddEmote", "pseudocode": "// \n// EmotePickerPopup::canAddEmote from 0x1004dbc54 to 0x1004dbcdc (136 bytes)\n// \n// 2 xrefs:\n// > EmotePickerPopup::refreshEnabled @ 0x1004db348\n// > EmotePickerPopup::onPickEmote @ 0x1004dba58\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 11:06:34 +0000\n// \n\n__int64 __fastcall EmotePickerPopup::canAddEmote(__int64 a1)\n{\n  __int64 v2; // x0\n  int v3; // w0\n  __int64 v4; // x1\n  _BOOL8 v5; // x19\n  std::string __p; // [xsp+8h] [xbp-28h] BYREF\n\n  v2 = *(_QWORD *)(a1 + 1168);\n  if ( !v2 )\n    return 1;\n  CCTextInputNode::getString(v2, &__p);\n  v3 = EmoteSprite::parseTokens(&__p);\n  v4 = *(unsigned int *)(a1 + 1176);\n  v5 = v3 < (int)v4 && (int)EmoteSprite::effectiveLength(&__p, v4) < *(_DWORD *)(a1 + 1180);\n  if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )\n    operator delete(__p.__r_.__value_.__l.__data_);\n  return v5;\n}", "assembly": "; \n; EmotePickerPopup::canAddEmote from 0x1004dbc54 to 0x1004dbcdc (136 bytes)\n; \n; 2 xrefs:\n; > EmotePickerPopup::refreshEnabled @ 0x1004db348\n; > EmotePickerPopup::onPickEmote @ 0x1004dba58\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 11:06:34 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x1004dbc54\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1004dbc58\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1004dbc5c\nADD             X29, SP, #0x30                                         ; +0xc, 0x1004dbc60\nMOV             X19, X0                                                ; +0x10, 0x1004dbc64\nLDR             X0, [X0,#0x490]                                        ; +0x14, 0x1004dbc68\nCBZ             X0, loc_1004DBCAC                                      ; +0x18, 0x1004dbc6c\nADD             X8, SP, #0x30+__p                                      ; +0x1c, 0x1004dbc70\nBL              CCTextInputNode__getString                             ; +0x20, 0x1004dbc74\nLDR             W2, [X19,#0x498]                                       ; +0x24, 0x1004dbc78\nADD             X0, SP, #0x30+__p; __str                               ; +0x28, 0x1004dbc7c\nMOV             X1, #0                                                 ; +0x2c, 0x1004dbc80\nBL              EmoteSprite__parseTokens                               ; +0x30, 0x1004dbc84\nLDR             W1, [X19,#0x498]                                       ; +0x34, 0x1004dbc88\nCMP             W0, W1                                                 ; +0x38, 0x1004dbc8c\nB.GE            loc_1004DBCB4                                          ; +0x3c, 0x1004dbc90\nADD             X0, SP, #0x30+__p                                      ; +0x40, 0x1004dbc94\nBL              EmoteSprite__effectiveLength                           ; +0x44, 0x1004dbc98\nLDR             W8, [X19,#0x49C]                                       ; +0x48, 0x1004dbc9c\nCMP             W0, W8                                                 ; +0x4c, 0x1004dbca0\nCSET            W19, LT                                                ; +0x50, 0x1004dbca4\nB               loc_1004DBCB8                                          ; +0x54, 0x1004dbca8\nMOV             W19, #1                                                ; +0x58, 0x1004dbcac\nB               loc_1004DBCC8                                          ; +0x5c, 0x1004dbcb0\nMOV             W19, #0                                                ; +0x60, 0x1004dbcb4\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x64, 0x1004dbcb8\nTBZ             W8, #0x1F, loc_1004DBCC8                               ; +0x68, 0x1004dbcbc\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x6c, 0x1004dbcc0\nBL              __ZdlPv; operator delete(void *)                       ; +0x70, 0x1004dbcc4\nMOV             X0, X19                                                ; +0x74, 0x1004dbcc8\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x78, 0x1004dbccc\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x7c, 0x1004dbcd0\nADD             SP, SP, #0x40 ; '@'                                    ; +0x80, 0x1004dbcd4\nRET                                                                    ; +0x84, 0x1004dbcd8", "xrefs": ["EmotePickerPopup::refreshEnabled @ 0x1004db348", "EmotePickerPopup::onPickEmote @ 0x1004dba58"], "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"}