//
// GJGarageLayer::textInputOpened from 0x4027a4 to 0x402860 (188 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'GJGarageLayer::textInputOpened @ 0x402878
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJGarageLayer::textInputOpened(GJGarageLayer *a1, CCTextInputNode *a2)
{
int v4; // r10
char *v5; // r2
char v6; // [sp+4h] [bp-14h] BYREF
_BYTE v7[4]; // [sp+8h] [bp-10h] BYREF
char v8[4]; // [sp+Ch] [bp-Ch] BYREF
char *v9; // [sp+10h] [bp-8h] BYREF
GameManager::sharedState()->m_clickedName = 1;
CCTextInputNode::getString((CCTextInputNode *)&v6, (int)a2);
sub_776584((int)v7, "Player");
v4 = sub_774DBC(&v6, v7);
sub_774008(v7);
if ( !v4 )
{
GJGarageLayer::updatePlayerName(a1, (const char *)&unk_939830);
sub_776584((int)v8, (char *)&unk_939830);
CCTextInputNode::setString((int)a2, v8, v5);
sub_774008(v8);
sub_776584((int)&v9, " ");
CCTextInputNode::updateLabel((int)a2, &v9);
sub_774008(&v9);
}
sub_774008(&v6);
}