//
// sub_1004B5F58 from 0x1004b5f58 to 0x1004b5fb4 (92 bytes)
//
// 3 xrefs:
// > sub_1004B8EE0 @ 0x1004b8f3c
// > sub_1004B9654 @ 0x1004b96b0
// > ??> @ 0x1008284a0
//
// 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_1004B5F58(__int64 a1)
{
void (__fastcall *v2)(__int64); // x8
v2 = *(void (__fastcall **)(__int64))(a1 + 864);
if ( v2 )
v2(a1 + 8);
*(_BYTE *)(a1 + 786) = 0;
sub_1004B1970(*((_QWORD *)off_1008524C8 + 54), (int *)a1);
return 0;
}