//
// sub_1000412C8 from 0x1000412c8 to 0x100041370 (168 bytes)
//
// 2 xrefs:
// > SetGroupIDLayer::init @ 0x10003fb7c
// > SetGroupIDLayer::onArrow @ 0x100042128
//
// 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
//
void __fastcall sub_1000412C8(__int64 a1)
{
__int64 v2; // x20
__int64 v3; // x0
char *CString; // x0
void **v5; // x8
_QWORD v6[2]; // [xsp+10h] [xbp-40h] BYREF
char v7; // [xsp+27h] [xbp-29h]
_QWORD v8[2]; // [xsp+28h] [xbp-28h] BYREF
char v9; // [xsp+3Fh] [xbp-11h]
*(_BYTE *)(a1 + 797) = 1;
v2 = *(_QWORD *)(a1 + 736);
if ( *(_DWORD *)(a1 + 792) )
{
v3 = sub_1003065B0("%i", *(_DWORD *)(a1 + 792));
CString = (char *)cocos2d::CCString::getCString(v3);
sub_100009900(v6, CString);
CCTextInputNode::setString(v2, v6);
if ( v7 < 0 )
{
v5 = (void **)v6;
LABEL_6:
operator delete(*v5);
}
}
else
{
sub_100009900(v8, "");
CCTextInputNode::setString(v2, v8);
if ( v9 < 0 )
{
v5 = (void **)v8;
goto LABEL_6;
}
}
*(_BYTE *)(a1 + 797) = 0;
}