//
// sub_10045EFC4 from 0x10045efc4 to 0x10045f01c (88 bytes)
//
// 1 xrefs:
// > ??> @ 0x100827d68
//
// 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_10045EFC4(__int64 a1, _DWORD *a2)
{
__int64 v2; // x8
__int64 result; // x0
__int64 v4; // x8
v2 = *(_QWORD *)(a1 + 472);
if ( !v2 || !*(_QWORD *)(a1 + 32) )
return 30;
if ( !*(_QWORD *)(v2 + 40) )
{
v4 = *(_QWORD *)(v2 + 48);
if ( v4 )
{
*a2 = *(unsigned __int16 *)(v4 + 272);
return 0;
}
return 30;
}
result = sub_1004C515C();
if ( !(_DWORD)result )
return 0;
return result;
}