//
// sub_100994150 from 0x100994150 to 0x1009941f0 (160 bytes)
//
// 1 xrefs:
// > sub_100993790 @ 0x100993ff7
//
// 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 12:39:10 +0000
//
void __fastcall sub_100994150(__int64 a1, __int64 a2)
{
unsigned int v3; // r14d
__int64 v4; // rsi
__int64 v5; // rax
__int64 v6; // rax
void (__fastcall ***v7)(_QWORD, _QWORD, _QWORD, __int128 *); // rdi
__int128 v8; // [rsp+0h] [rbp-30h] BYREF
void *__p; // [rsp+10h] [rbp-20h]
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v4 = *(_QWORD *)(a1 + 1032);
if ( v4 )
{
CCTextInputNode::getString(&v8, v4);
}
else
{
v8 = 0;
__p = nullptr;
}
v5 = cocos2d::CCDirector::sharedDirector();
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1);
v7 = *(void (__fastcall ****)(_QWORD, _QWORD, _QWORD, __int128 *))(a1 + 1016);
if ( v7 )
(**v7)(v7, *(unsigned int *)(a1 + 1024), v3, &v8);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1368LL))(a1, 0);
if ( (v8 & 1) != 0 )
operator delete(__p);
}