//
// sub_1004567DC from 0x1004567dc to 0x100456878 (156 bytes)
//
// 1 xrefs:
// > ??> @ 0x100827778
//
// 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_1004567DC(__int64 a1)
{
__int64 v2; // x20
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x0
v2 = sub_1004562F8(a1);
if ( !(_DWORD)v2 )
{
sub_1004A5E18(a1 + 112);
v3 = *(_QWORD *)(a1 + 728);
if ( v3 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 16LL))(v3);
*(_QWORD *)(a1 + 728) = 0;
}
v4 = *(_QWORD *)(a1 + 744);
if ( v4 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 16LL))(v4);
*(_QWORD *)(a1 + 744) = 0;
}
v5 = *(_QWORD *)(a1 + 752);
if ( v5 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 16LL))(v5);
*(_QWORD *)(a1 + 752) = 0;
}
*(_DWORD *)(a1 + 100) = 1232348160;
*(_DWORD *)(a1 + 104) = 1120403456;
*(_QWORD *)(a1 + 736) = 0;
}
return v2;
}