//
// GJGarageLayer::textInputOpened from 0x50c2d8 to 0x50c3a8 (208 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'GJGarageLayer::textInputOpened @ 0x50c3c0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:28 +0000
//
int __fastcall GJGarageLayer::textInputOpened(GJGarageLayer *this, CCTextInputNode *a2)
{
_BOOL4 v4; // r9
unsigned __int8 v6[12]; // [sp+4h] [bp-38h] BYREF
int v7[3]; // [sp+10h] [bp-2Ch] BYREF
int v8[3]; // [sp+1Ch] [bp-20h] BYREF
int v9[3]; // [sp+28h] [bp-14h] BYREF
*(_BYTE *)(GameManager::sharedState(this) + 729) = 1;
CCTextInputNode::getString((CCTextInputNode *)v6, (int)a2);
memset(v7, 0, sizeof(v7));
std::string::__init(v7, "Player", 6u);
v4 = sub_50AA62(v6, (unsigned __int8 *)v7);
std::string::~string((int)v7);
if ( v4 )
{
GJGarageLayer::updatePlayerName(this, (const char *)&unk_B6B226);
memset(v8, 0, sizeof(v8));
std::string::__init(v8, &unk_B6B226, 0);
CCTextInputNode::setString((int)a2, (int)v8);
std::string::~string((int)v8);
memset(v9, 0, sizeof(v9));
std::string::__init(v9, " ", 1u);
CCTextInputNode::updateLabel((float *)a2, (int)v9);
std::string::~string((int)v9);
}
return std::string::~string((int)v6);
}