//
// sub_1004E1EB4 from 0x1004e1eb4 to 0x1004e1f90 (220 bytes)
//
// 1 xrefs:
// > IDNameBrowserPopup::mountVirtualRow @ 0x1004e1c48
//
// 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_1004E1EB4(__int64 result, __int64 a2)
{
__int64 v3; // x19
unsigned int v4; // w20
__int64 v5; // x21
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v7; // [xsp+1Fh] [xbp-21h]
if ( a2 )
{
v3 = result;
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( (int)result >= 1 )
{
v4 = result;
result = GameManager::sharedState();
if ( *(_QWORD *)(result + 552) )
{
result = GameManager::sharedState();
if ( *(_QWORD *)(*(_QWORD *)(result + 552) + 3272LL) )
{
cocos2d::CCObject::retain(a2);
cocos2d::CCObject::autorelease(a2);
v5 = *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 552) + 3272LL);
sub_100009900(__p, "");
sub_10040DE3C(v5, v4, (__int64 *)__p, *(_DWORD *)(v3 + 676));
if ( v7 < 0 )
operator delete(__p[0]);
sub_10040DF38(v5, v4, *(_DWORD *)(v3 + 676));
sub_1004E11C0(v3);
return sub_1004E2024(v3);
}
}
}
}
return result;
}