//
// IDNameBrowserPopup::onEditRow from 0xcdeb88 to 0xcdecec (356 bytes)
//
// 3 xrefs:
// > ??> @ 0x59698
// > IDNameBrowserPopup::mountVirtualRow @ 0xcdd42c
// > ??> @ 0x15420f8
//
// 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:06:34 +0000
//
__int64 __fastcall IDNameBrowserPopup::onEditRow(IDNameBrowserPopup *this, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
int v4; // w20
GameManager *v5; // x0
GameManager *v6; // x0
__int64 v7; // x0
_QWORD *v8; // x20
const char *v9; // x1
size_t v10; // x0
char *v12; // [xsp+38h] [xbp+38h]
__int64 v13[2]; // [xsp+48h] [xbp+48h] BYREF
void *v14; // [xsp+58h] [xbp+58h]
__int64 v15[2]; // [xsp+60h] [xbp+60h] BYREF
void *v16; // [xsp+70h] [xbp+70h]
if ( a2 )
{
v3 = (GameManager *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v4 = (int)v3;
if ( (int)v3 > 0 )
{
v5 = *(GameManager **)(GameManager::sharedState(v3) + 552);
if ( v5 )
{
v6 = *(GameManager **)(*(_QWORD *)(GameManager::sharedState(v5) + 552) + 3272LL);
if ( v6 )
{
v7 = GameManager::sharedState(v6);
LevelSettingsObject::getIDName(
*(LevelSettingsObject **)(*(_QWORD *)(v7 + 552) + 3272LL),
v4,
*((_DWORD *)this + 169),
v13);
IDNameBrowserPopup::setFormID(this, v4);
v8 = *((_QWORD **)this + 90);
if ( v8 )
{
v9 = (char *)v13 + 1;
if ( (v13[0] & 1) != 0 )
v9 = (const char *)v14;
v12 = (char *)v9;
v15[0] = 0;
v15[1] = 0;
v16 = nullptr;
v10 = strlen(v9);
std::string::__init(v15, v12, v10);
CCTextInputNode::setString(v8, (char *)v15);
if ( (v15[0] & 1) != 0 )
operator delete(v16);
}
IDNameBrowserPopup::updateConflictLabel(this);
if ( (v13[0] & 1) != 0 )
operator delete(v14);
}
}
}
}
return _stack_chk_guard;
}