//
// sub_1004E1E10 from 0x1004e1e10 to 0x1004e1eb4 (164 bytes)
//
// 1 xrefs:
// > IDNameBrowserPopup::mountVirtualRow @ 0x1004e1b58
//
// 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 11:06:37 +0000
//
__int64 __fastcall sub_1004E1E10(__int64 result, __int64 a2)
{
__int64 v3; // x19
int v4; // w20
__int64 v5; // x0
if ( a2 )
{
v3 = result;
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( (int)result >= 1 )
{
v4 = result;
cocos2d::CCObject::retain(a2);
cocos2d::CCObject::autorelease(a2);
if ( *(_QWORD *)(GameManager::sharedState() + 552) )
{
if ( *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 552) + 3272LL) )
{
v5 = GameManager::sharedState();
sub_10040E168(*(char **)(*(_QWORD *)(v5 + 552) + 3272LL), v4, *(_DWORD *)(v3 + 676));
}
}
*(_DWORD *)(v3 + 752) = v4;
return IDNameBrowserPopup::onClose(v3);
}
}
return result;
}