//
// sub_ED01C from 0xed01c to 0xed0b4 (152 bytes)
//
// 3 xrefs:
// > sub_F05B8 @ 0xf0b44
// > sub_F05B8 @ 0xf1058
// > sub_F05B8 @ 0xf109c
//
// 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_ED01C(__int64 a1, __int64 a2, int *a3)
{
__int64 result; // x0
__int64 v6; // x1
__int64 v7; // x1
int v8; // w22
__int64 v9; // x1
int v10; // w22
int v11; // [xsp+8h] [xbp-28h] BYREF
int v12; // [xsp+Ch] [xbp-24h] BYREF
v11 = 0;
result = sub_ECD60(a1, a2, &v11, 8u);
if ( (_DWORD)result )
{
result = sub_ED9F4(result, v6, &v12);
if ( (_DWORD)result )
{
v8 = v11 | (v12 << 8);
result = sub_EDAEC(a1, v7, &v12, 8);
if ( (_DWORD)result )
{
v10 = v8 | (v12 << 16);
result = sub_EDAEC(a1, v9, &v12, 8);
if ( (_DWORD)result )
{
v11 = v10 | (v12 << 24);
*a3 = v11;
return 1;
}
}
}
}
return result;
}