//
// sub_1004EA560 from 0x1004ea560 to 0x1004ea5f8 (152 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_1004EA560(__int64 a1, _DWORD **a2)
{
__int64 result; // x0
int v5; // [xsp+Ch] [xbp-24h] BYREF
while ( 2 )
{
result = 0;
switch ( **a2 )
{
case 2:
if ( (unsigned int)sub_1004E8ECC(a1, (__int64)a2) )
continue;
return 1;
case 3:
result = sub_1004E90CC(a1, (__int64)a2, &v5, 0);
if ( !(_DWORD)result )
return result;
if ( !v5 )
continue;
return 1;
case 4:
case 7:
return 1;
default:
return result;
}
}
}