//
// EmotePickerPopup::canAddEmote from 0x778ffc to 0x77906a (110 bytes)
//
// 2 xrefs:
// > EmotePickerPopup::refreshEnabled @ 0x77907c
// > EmotePickerPopup::onPickEmote @ 0x77954c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:59:22 +0000
//
int __fastcall EmotePickerPopup::canAddEmote(EmotePickerPopup *this, int a2, int a3, int a4)
{
int v5; // r1
int v6; // r0
int v7; // r2
int v8; // r3
int v9; // r1
_BOOL4 v10; // r6
_DWORD v12[4]; // [sp+0h] [bp-10h] BYREF
v12[0] = this;
v12[1] = a2;
v12[2] = a3;
v12[3] = a4;
v5 = *((_DWORD *)this + 210);
if ( !v5 )
return 1;
CCTextInputNode::getString((CCTextInputNode *)v12, v5);
v6 = EmoteSprite::parseTokens((unsigned __int8 *)v12, 0, *((_DWORD *)this + 211));
v9 = *((_DWORD *)this + 211);
v10 = v6 < v9 && EmoteSprite::effectiveLength((unsigned __int8 *)v12, v9, v7, v8) < *((_DWORD *)this + 212);
std::string::~string((int)v12);
return v10;
}