//
// sub_1005408FC from 0x1005408fc to 0x1005409ac (176 bytes)
//
// 1 xrefs:
// > sub_1005401F4 @ 0x1005407a0
//
// 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 11:07:42 +0000
//
void __fastcall sub_1005408FC(__int64 a1, __int64 a2)
{
__int64 v3; // x20
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x0
void (__fastcall ***v7)(_QWORD, _QWORD, __int64, void **); // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
__int64 v9; // [xsp+18h] [xbp-18h]
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v4 = *(_QWORD *)(a1 + 1032);
if ( v4 )
{
CCTextInputNode::getString(v4, __p);
}
else
{
__p[0] = nullptr;
__p[1] = nullptr;
v9 = 0;
}
v5 = cocos2d::CCDirector::sharedDirector();
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1);
v7 = *(void (__fastcall ****)(_QWORD, _QWORD, __int64, void **))(a1 + 1016);
if ( v7 )
(**v7)(v7, *(unsigned int *)(a1 + 1024), v3, __p);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1368LL))(a1, 0);
if ( SHIBYTE(v9) < 0 )
operator delete(__p[0]);
}