//
// sub_1004E7A48 from 0x1004e7a48 to 0x1004e7afc (180 bytes)
//
// 1 xrefs:
// > sub_1004E6D68 @ 0x1004e7454
//
// 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:06:40 +0000
//
void __fastcall sub_1004E7A48(__int64 a1)
{
__int64 v2; // x0
void **v3; // x0
__int64 v4; // x20
__int64 v5; // x0
_QWORD *v6; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v8; // [xsp+1Fh] [xbp-11h]
v2 = *(_QWORD *)(a1 + 384);
if ( v2 && *(_DWORD *)(a1 + 376) )
{
CCTextInputNode::getString(v2, __p);
if ( (unsigned int)sub_1004E68A8((__int64 *)__p) )
{
if ( v8 >= 0 )
v3 = __p;
else
v3 = (void **)__p[0];
v4 = atoi((const char *)v3);
}
else
{
v4 = 0;
}
v5 = *(_QWORD *)(a1 + 440);
if ( v5 )
{
*(_QWORD *)(a1 + 440) = 0;
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 1112LL))(v5);
}
v6 = sub_1004DF804(v4, *(unsigned int *)(a1 + 376), a1 + 328);
if ( v6 )
(*(void (__fastcall **)(_QWORD *))(*v6 + 1312LL))(v6);
if ( v8 < 0 )
operator delete(__p[0]);
}
}