{"type": "func", "start": 7835644, "end": 7835754, "name": "EmotePickerPopup::canAddEmote", "pseudocode": "// \n// EmotePickerPopup::canAddEmote from 0x778ffc to 0x77906a (110 bytes)\n// \n// 2 xrefs:\n// > EmotePickerPopup::refreshEnabled @ 0x77907c\n// > EmotePickerPopup::onPickEmote @ 0x77954c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:59:22 +0000\n// \n\nint __fastcall EmotePickerPopup::canAddEmote(EmotePickerPopup *this, int a2, int a3, int a4)\n{\n  int v5; // r1\n  int v6; // r0\n  int v7; // r2\n  int v8; // r3\n  int v9; // r1\n  _BOOL4 v10; // r6\n  _DWORD v12[4]; // [sp+0h] [bp-10h] BYREF\n\n  v12[0] = this;\n  v12[1] = a2;\n  v12[2] = a3;\n  v12[3] = a4;\n  v5 = *((_DWORD *)this + 210);\n  if ( !v5 )\n    return 1;\n  CCTextInputNode::getString((CCTextInputNode *)v12, v5);\n  v6 = EmoteSprite::parseTokens((unsigned __int8 *)v12, 0, *((_DWORD *)this + 211));\n  v9 = *((_DWORD *)this + 211);\n  v10 = v6 < v9 && EmoteSprite::effectiveLength((unsigned __int8 *)v12, v9, v7, v8) < *((_DWORD *)this + 212);\n  std::string::~string((int)v12);\n  return v10;\n}", "assembly": "; \n; EmotePickerPopup::canAddEmote from 0x778ffc to 0x77906a (110 bytes)\n; \n; 2 xrefs:\n; > EmotePickerPopup::refreshEnabled @ 0x77907c\n; > EmotePickerPopup::onPickEmote @ 0x77954c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:59:22 +0000\n; \nPUSH            {R0-R6,LR}                                             ; +0x0, 0x778ffc\nMOV             R6, R0                                                 ; +0x2, 0x778ffe\nLDR             R3, =(__stack_chk_guard_ptr - 0x77900A)                ; +0x4, 0x779000\nLDR.W           R1, [R0,#0x348]                                        ; +0x6, 0x779002\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0xa, 0x779006\nLDR             R3, [R3]; __stack_chk_guard                            ; +0xc, 0x779008\nLDR             R2, [R3]                                               ; +0xe, 0x77900a\nMOV             R4, R3                                                 ; +0x10, 0x77900c\nSTR             R2, [SP,#0x10+var_4]                                   ; +0x12, 0x77900e\nCBZ             R1, loc_77904C                                         ; +0x14, 0x779010\nMOV             R0, SP; this                                           ; +0x16, 0x779012\nMOV             R5, SP                                                 ; +0x18, 0x779014\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x1a, 0x779016\nMOV             R0, SP                                                 ; +0x1e, 0x77901a\nMOVS            R1, #0                                                 ; +0x20, 0x77901c\nLDR.W           R2, [R6,#0x34C]                                        ; +0x22, 0x77901e\nBL              _ZN11EmoteSprite11parseTokensERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPNS0_6vectorI10EmoteTokenNS4_ISA_EEEEi; EmoteSprite::parseTokens(std::string const&,std::vector<EmoteToken> *,int) ; +0x26, 0x779022\nLDR.W           R1, [R6,#0x34C]                                        ; +0x2a, 0x779026\nCMP             R0, R1                                                 ; +0x2e, 0x77902a\nBGE             loc_779042                                             ; +0x30, 0x77902c\nMOV             R0, SP                                                 ; +0x32, 0x77902e\nBL              _ZN11EmoteSprite15effectiveLengthERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEi; EmoteSprite::effectiveLength(std::string const&,int) ; +0x34, 0x779030\nLDR.W           R6, [R6,#0x350]                                        ; +0x38, 0x779034\nCMP             R0, R6                                                 ; +0x3c, 0x779038\nITE GE                                                                 ; +0x3e, 0x77903a\nMOVGE           R6, #0                                                 ; +0x40, 0x77903c\nMOVLT           R6, #1                                                 ; +0x42, 0x77903e\nB               loc_779044                                             ; +0x44, 0x779040\nMOVS            R6, #0                                                 ; +0x46, 0x779042\nMOV             R0, R5                                                 ; +0x48, 0x779044\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x4a, 0x779046\nB               loc_77904E                                             ; +0x4e, 0x77904a\nMOVS            R6, #1                                                 ; +0x50, 0x77904c\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x52, 0x77904e\nMOV             R0, R6                                                 ; +0x54, 0x779050\nLDR             R3, [R4]                                               ; +0x56, 0x779052\nCMP             R2, R3                                                 ; +0x58, 0x779054\nBEQ             loc_779066                                             ; +0x5a, 0x779056\nBLX             __stack_chk_fail                                       ; +0x5c, 0x779058\nMOV             R0, R5                                                 ; +0x60, 0x77905c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x62, 0x77905e\nBL              __cxa_end_cleanup                                      ; +0x66, 0x779062\nADD             SP, SP, #0x10                                          ; +0x6a, 0x779066\nPOP             {R4-R6,PC}                                             ; +0x6c, 0x779068", "xrefs": ["EmotePickerPopup::refreshEnabled @ 0x77907c", "EmotePickerPopup::onPickEmote @ 0x77954c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}