//
// sub_1005E2DA0 from 0x1005e2da0 to 0x1005e2df4 (84 bytes)
//
// 1 xrefs:
// > sub_1005FD49C @ 0x1005fdac8
//
// 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_1005E2DA0(__int64 a1, __int64 a2, _DWORD *a3)
{
int v5; // w0
*a3 = 0;
if ( !*(_DWORD *)a1 )
return 1;
v5 = sub_1005E2C10(a2, (char *)(a1 + 8), *(_DWORD *)a1);
if ( (v5 & 0x80000000) == 0 )
{
*(_DWORD *)a1 = 0;
*a3 = v5;
return 1;
}
return 0xFFFFFFFFLL;
}