//
// sub_1005ED6F0 from 0x1005ed6f0 to 0x1005ed7f0 (256 bytes)
//
// 1 xrefs:
// > sub_1005F10A8 @ 0x1005f125c
//
// 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_1005ED6F0(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v6; // x22
int v7; // w3
int v8; // w4
int v9; // w5
int v10; // w6
int v11; // w7
__int64 v12; // x19
int v13; // w22
int v15; // [xsp+4h] [xbp-ACh] BYREF
void *v16[4]; // [xsp+8h] [xbp-A8h] BYREF
__int64 v17; // [xsp+28h] [xbp-88h]
_BYTE v18[64]; // [xsp+38h] [xbp-78h] BYREF
v6 = *(_QWORD *)(**(_QWORD **)(a1 + 32) + 136LL);
sub_1005E2DF4(v16);
if ( !(unsigned int)sub_1005E326C(v16, (__int64 *)a1) )
return 0xFFFFFFFFLL;
if ( v6 )
{
v12 = (*(__int64 (__fastcall **)(__int64, __int64, __int64, void **))(*(_QWORD *)v17 + 136LL))(v17, a2, a3, v16);
sub_1005E31A4((__int64)v16);
}
else
{
v13 = sub_1005E30F8(v16, (__int64)v18, &v15, v7, v8, v9, v10, v11);
sub_1005E31A4((__int64)v16);
if ( v13 )
return sub_1005ECBAC(*(_DWORD **)(a1 + 32));
else
return 0;
}
return v12;
}