//
// LevelPickerPopup::textChanged from 0xc84d98 to 0xc84ed4 (316 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'LevelPickerPopup::textChanged @ 0xc84ed8
// > ??> @ 0x60070
// > ??> @ 0x14eeaf8
//
// 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 13:05:41 +0000
//
__int64 __fastcall LevelPickerPopup::textChanged(LevelPickerPopup *this, CCTextInputNode *a2)
{
ButtonSprite *v4; // x0
__int64 v5; // x0
__int64 v6; // x0
__int64 v7; // x2
__int64 v8; // x3
char v9; // w0
__int64 v11[3]; // [xsp+38h] [xbp+38h] BYREF
__int64 v12[3]; // [xsp+50h] [xbp+50h] BYREF
v4 = *((ButtonSprite **)this + 115);
*((_BYTE *)this + 808) = 0;
*((_DWORD *)this + 169) = 0;
if ( v4 )
ButtonSprite::setString(v4, "Online");
v5 = *((_QWORD *)this + 113);
if ( v5 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, 0);
v6 = *((_QWORD *)this + 114);
if ( v6 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, 0);
CCTextInputNode::getString(a2, v11);
sub_C6DE48((__int64)v11, v12);
if ( (*((_BYTE *)this + 872) & 1) != 0 )
{
**((_BYTE **)this + 111) = 0;
*((_QWORD *)this + 110) = 0;
}
else
{
*((_BYTE *)this + 873) = 0;
*((_BYTE *)this + 872) = 0;
}
std::string::reserve((__int64 *)this + 109, 0);
v7 = v12[0];
v8 = v12[1];
v9 = v11[0];
*((_QWORD *)this + 111) = v12[2];
*((_QWORD *)this + 109) = v7;
*((_QWORD *)this + 110) = v8;
if ( (v9 & 1) != 0 )
operator delete((void *)v11[2]);
LevelPickerPopup::refreshUseID(this);
PagedListPopup::fadeLoading(this);
LevelPickerPopup::buildSavedPage(this);
return _stack_chk_guard;
}