//
// sub_10007D470 from 0x10007d470 to 0x10007d5b0 (320 bytes)
//
// 3 xrefs:
// > SecretLayer5::init @ 0x10007cc34
// > SecretLayer5::textInputClosed @ 0x10007f67c
// > SecretLayer5::textChanged @ 0x10007f6fc
//
// 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:58:16 +0000
//
__int64 __fastcall sub_10007D470(__int64 a1, char *a2)
{
__int64 v4; // x19
_BOOL4 v5; // w21
__int64 v6; // x20
__int16 v7; // w8
void *v9[2]; // [xsp+8h] [xbp-98h] BYREF
char v10; // [xsp+1Fh] [xbp-81h]
void *__p[2]; // [xsp+20h] [xbp-80h] BYREF
char v12; // [xsp+37h] [xbp-69h]
void *v13[2]; // [xsp+38h] [xbp-68h] BYREF
char v14; // [xsp+4Fh] [xbp-51h]
void *v15[2]; // [xsp+50h] [xbp-50h] BYREF
char v16; // [xsp+67h] [xbp-39h]
void *v17[2]; // [xsp+68h] [xbp-38h] BYREF
char v18; // [xsp+7Fh] [xbp-21h]
v4 = *(_QWORD *)(*(_QWORD *)(a1 + 464) + 600LL);
sub_100009900(v17, a2);
sub_100009900(v15, "");
if ( sub_1000045BC(v17, v15) )
{
v5 = 1;
}
else
{
sub_100009900(v13, a2);
sub_100009900(__p, "...");
v5 = sub_1000045BC(v13, __p);
if ( v12 < 0 )
operator delete(__p[0]);
if ( v14 < 0 )
operator delete(v13[0]);
}
if ( v16 < 0 )
operator delete(v15[0]);
if ( v18 < 0 )
{
operator delete(v17[0]);
if ( v5 )
goto LABEL_11;
LABEL_15:
BYTE2(v17[0]) = -1;
v7 = -1;
goto LABEL_16;
}
if ( !v5 )
goto LABEL_15;
LABEL_11:
v6 = *(_QWORD *)(a1 + 464);
sub_100009900(v9, "...");
CCTextInputNode::updateLabel(v6, v9);
if ( v10 < 0 )
operator delete(v9[0]);
BYTE2(v17[0]) = -40;
v7 = -26260;
LABEL_16:
LOWORD(v17[0]) = v7;
return (*(__int64 (__fastcall **)(__int64, void **))(*(_QWORD *)v4 + 1072LL))(v4, v17);
}