//
// sub_1004C5748 from 0x1004c5748 to 0x1004c5770 (40 bytes)
//
// 4 xrefs:
// > ??> @ 0x100828660
// > ??> @ 0x100828808
// > ??> @ 0x1008289b0
// > ??> @ 0x100828b40
//
// 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_1004C5748(__int64 a1, __int64 a2, int a3, __int64 a4)
{
__int64 v4; // x8
_QWORD *v5; // x0
if ( !a4 )
return 31;
v4 = *(_QWORD *)(a1 + 96);
if ( v4 && (v5 = *(_QWORD **)(v4 + 360)) != nullptr )
return sub_1004B26F4(v5, a2, a3, a4);
else
return 63;
}