//
// CCTextInputNode::setParseEmotes from 0x1400553e0 to 0x140055459 (121 bytes)
//
// 9 xrefs:
// > ThreadViewPopup::init @ 0x1400da2cf
// > NewThreadPopup::init @ 0x1400efff0
// > NewThreadPopup::applyMode @ 0x1400f0e01
// > ThreadDescPopup::buildUI @ 0x1400fcc9f
// > EditLevelLayer::init @ 0x140178e04
// > SoundPackDescPopup::init @ 0x1401995b0
// > SetTextPopup::init @ 0x1403a77d0
// > ShareCommentLayer::init @ 0x14062ef78
// > ??> @ 0x140910340
//
// This function is hookable on this platform (idp: pc, 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 11:25:40 +0000
//
__int64 __fastcall CCTextInputNode::setParseEmotes(__int64 a1, int a2)
{
__int64 v2; // rax
_BYTE *v4; // rax
size_t v5; // r8
__int128 v7; // [rsp+20h] [rbp-28h] BYREF
__int64 v8; // [rsp+30h] [rbp-18h]
__int64 v9; // [rsp+38h] [rbp-10h]
v2 = *(_QWORD *)(a1 + 632);
*(_DWORD *)(a1 + 520) = a2;
if ( v2 )
*(_DWORD *)(v2 + 604) = a2;
v4 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(a1 + 592) + 600LL) + 8LL))(*(_QWORD *)(a1 + 592) + 600LL);
v7 = 0;
v8 = 0;
v5 = -1;
v9 = 0;
do
++v5;
while ( v4[v5] );
sub_14003D230(&v7, v4, v5);
return CCTextInputNode::updateLabel(a1, &v7);
}