//
// GJGarageLayer::textInputClosed from 0x40287c to 0x402944 (200 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'GJGarageLayer::textInputClosed @ 0x402954
//
// 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::textInputClosed(GJGarageLayer *a1, CCTextInputNode *a2)
{
int v4; // r10
GameManager *v5; // r10
char *v6; // r2
char *v7; // [sp+4h] [bp-14h] BYREF
_BYTE v8[4]; // [sp+8h] [bp-10h] BYREF
_BYTE v9[4]; // [sp+Ch] [bp-Ch] BYREF
char v10[4]; // [sp+10h] [bp-8h] BYREF
CCTextInputNode::getString((CCTextInputNode *)&v7, (int)a2);
sub_776584((int)v8, (char *)&unk_939830);
v4 = sub_774DBC(&v7, v8);
sub_774008(v8);
if ( !v4 )
sub_7753D4((int)&v7, "Player");
GameManager::sharedState()->m_scoreValid = 0;
v5 = GameManager::sharedState();
sub_775C20(v9);
sub_775D40(&v5->m_playerName, v9);
sub_774008(v9);
GJGarageLayer::updatePlayerName(a1, v7);
sub_776584((int)v10, v7);
CCTextInputNode::setString((int)a2, v10, v6);
sub_774008(v10);
sub_774008(&v7);
}