//
// CCTextInputNode::emoteTokenContaining from 0x3dc8b8 to 0x3dc8ea (50 bytes)
//
// 2 xrefs:
// > CCTextInputNode::updateLabel @ 0x3e2f20
// > CCTextInputNode::onTextFieldInsertText @ 0x3e4244
//
// 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:46:48 +0000
//
_DWORD *__fastcall CCTextInputNode::emoteTokenContaining(CCTextInputNode *this, int a2)
{
int v2; // r2
_DWORD *result; // r0
int v4; // r3
int v5; // r2
v2 = *((_DWORD *)this + 95) - *((_DWORD *)this + 94);
result = *((_DWORD **)this + 94);
v4 = 0;
v5 = -1431655765 * (v2 >> 2);
while ( v4 != v5 )
{
if ( a2 > *result && a2 < result[1] + *result )
return result;
++v4;
result += 3;
}
return nullptr;
}