//
// sub_1000414F4 from 0x1000414f4 to 0x100041584 (144 bytes)
//
// 3 xrefs:
// > SetGroupIDLayer::init @ 0x10003fc7c
// > sub_100041D6C @ 0x100041da4
// > SetGroupIDLayer::onArrow @ 0x1000420c8
//
// 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 10:57:37 +0000
//
__int64 __fastcall sub_1000414F4(__int64 a1)
{
__int64 v2; // x0
char *CString; // x1
__int64 v4; // x20
__int64 result; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v7; // [xsp+1Fh] [xbp-11h]
*(_BYTE *)(a1 + 797) = 1;
if ( (*(_DWORD *)(a1 + 764) & 0x80000000) != 0 )
{
CString = "";
}
else
{
v2 = sub_1003065B0("%i", *(_DWORD *)(a1 + 764));
CString = (char *)cocos2d::CCString::getCString(v2);
}
v4 = *(_QWORD *)(a1 + 728);
sub_100009900(__p, CString);
CCTextInputNode::setString(v4, __p);
if ( v7 < 0 )
operator delete(__p[0]);
*(_BYTE *)(a1 + 797) = 0;
result = *(_QWORD *)(a1 + 856);
if ( result )
return sub_1004E7BB0();
return result;
}