//
// CCTextInputNode::emoteTokenStartingAt from 0x6b81f4 to 0x6b8258 (100 bytes)
//
// 2 xrefs:
// > CCTextInputNode::onTextFieldDeleteBackward @ 0x6c3db4
// > ??> @ 0xa6f00
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:50:53 +0000
//
_QWORD *__fastcall CCTextInputNode::emoteTokenStartingAt(CCTextInputNode *this, int a2)
{
_QWORD *v2; // x2
unsigned __int64 v3; // x5
_QWORD *v4; // x2
__int64 v5; // x3
_QWORD *result; // x0
v2 = *((_QWORD **)this + 64);
v3 = 0xAAAAAAAAAAAAAAABLL * ((__int64)(*((_QWORD *)this + 65) - (_QWORD)v2) >> 3);
if ( v3 )
{
if ( a2 == (unsigned int)*v2 )
return *((_QWORD **)this + 64);
v4 = v2 + 3;
v5 = 0;
while ( 1 )
{
++v5;
result = v4;
v4 += 3;
if ( v5 == v3 )
break;
if ( a2 == (unsigned int)*result )
return result;
}
}
return nullptr;
}