//
// CCTextInputNode::emoteTokenEndingAt from 0x3dc8f0 to 0x3dc91e (46 bytes)
//
// 1 xrefs:
// > CCTextInputNode::onTextFieldDeleteBackward @ 0x3e354e
//
// 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::emoteTokenEndingAt(CCTextInputNode *this, int a2)
{
_DWORD *v2; // r3
int v3; // r2
int i; // r4
_DWORD *result; // r0
v2 = *((_DWORD **)this + 94);
v3 = -1431655765 * ((*((_DWORD *)this + 95) - (int)v2) >> 2);
for ( i = 0; i != v3; ++i )
{
result = v2;
v2 += 3;
if ( *result + result[1] == a2 )
return result;
}
return nullptr;
}