//
// sub_10045EBA8 from 0x10045eba8 to 0x10045ec14 (108 bytes)
//
// 1 xrefs:
// > ??> @ 0x100827bd8
//
// 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_10045EBA8(_QWORD *a1, __int64 a2)
{
__int64 v2; // x8
__int64 result; // x0
v2 = a1[59];
if ( !v2 || !a1[4] )
return 30;
if ( (*(_BYTE *)(v2 + 62) & 1) != 0 )
return 58;
result = sub_1005089F4(a1);
if ( !(_DWORD)result )
return (*(__int64 (__fastcall **)(_QWORD *, __int64))(*a1 + 120LL))(a1, a2);
return result;
}