//
// GJGarageLayer::textInputOpened from 0x1003a13fc to 0x1003a14dc (224 bytes)
//
// 2 xrefs:
// > j_GJGarageLayer::textInputOpened @ 0x1003a1528
// > ??> @ 0x100944238
//
// 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:03:46 +0000
//
void __fastcall GJGarageLayer::textInputOpened(__int64 a1, _QWORD *a2)
{
_BOOL4 v3; // w0
_BOOL4 v4; // w20
std::string v5; // [xsp+0h] [xbp-70h] BYREF
void *v6[2]; // [xsp+18h] [xbp-58h] BYREF
char v7; // [xsp+2Fh] [xbp-41h]
void *__p[2]; // [xsp+30h] [xbp-40h] BYREF
char v9; // [xsp+47h] [xbp-29h]
void *v10[2]; // [xsp+48h] [xbp-28h] BYREF
char v11; // [xsp+5Fh] [xbp-11h]
*(_BYTE *)(GameManager::sharedState(a1) + 929) = 1;
CCTextInputNode::getString((__int64)a2, v10);
sub_100009900(__p, "Player");
v3 = sub_1000045BC(v10, __p);
v4 = v3;
if ( v9 < 0 )
{
operator delete(__p[0]);
if ( !v4 )
goto LABEL_9;
}
else if ( !v3 )
{
goto LABEL_9;
}
sub_100009900(v6, "");
CCTextInputNode::setString(a2, (__int64 *)v6);
if ( v7 < 0 )
operator delete(v6[0]);
sub_100009900(&v5, " ");
CCTextInputNode::updateLabel((__int64)a2, &v5);
if ( SHIBYTE(v5.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v5.__r_.__value_.__l.__data_);
LABEL_9:
if ( v11 < 0 )
operator delete(v10[0]);
}