//
// sub_1004C515C from 0x1004c515c to 0x1004c51b4 (88 bytes)
//
// 1 xrefs:
// > sub_10045EFC4 @ 0x10045efe4
//
// 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_1004C515C(__int64 a1, _DWORD *a2)
{
__int64 result; // x0
_OWORD v4[3]; // [xsp+0h] [xbp-50h] BYREF
__int64 v5; // [xsp+30h] [xbp-20h]
v5 = 0;
memset(v4, 0, sizeof(v4));
result = (*(__int64 (__fastcall **)(_QWORD, _QWORD, _OWORD *))(*(_QWORD *)(a1 + 96) + 136LL))(
*(_QWORD *)(a1 + 96),
*(unsigned int *)(a1 + 192),
v4);
if ( !(_DWORD)result )
*a2 = HIDWORD(v4[0]);
return result;
}