//
// sub_1004E7E8C from 0x1004e7e8c to 0x1004e7f20 (148 bytes)
//
// 5 xrefs:
// > sub_1004E7850 @ 0x1004e7a04
// > sub_1004E7DEC @ 0x1004e7e48
// > IDNameInput::idNameBrowserClosed @ 0x1004e7f64
// > sub_1004E8760 @ 0x1004e8800
// > sub_1004E8810 @ 0x1004e88c8
//
// 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:41 +0000
//
void __fastcall sub_1004E7E8C(__int64 a1, int a2)
{
_QWORD *v2; // x19
void *__p[2]; // [xsp+10h] [xbp-40h] BYREF
char v4; // [xsp+27h] [xbp-29h]
char __str[16]; // [xsp+28h] [xbp-28h] BYREF
v2 = *(_QWORD **)(a1 + 384);
if ( v2 )
{
snprintf(__str, 0x10u, "%d", a2);
sub_100009900(__p, __str);
CCTextInputNode::setString(v2, (__int64 *)__p);
if ( v4 < 0 )
operator delete(__p[0]);
}
}