//
// sub_18004C780 from 0x18004c780 to 0x18004c7c0 (64 bytes)
//
// 2 xrefs:
// > sub_180052E90 @ 0x180052f0f
// > ??> @ 0x1801f86ac
//
// 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_18004C780(__int64 a1, __int64 a2)
{
__int64 v3; // rax
unsigned int v4; // ecx
*(_OWORD *)a2 = 0;
*(_OWORD *)(a2 + 16) = 0;
*(_QWORD *)(a2 + 32) = 0;
v3 = sub_180033C30(a1, 1, 4912);
v4 = 0;
*(_QWORD *)(a2 + 32) = v3;
if ( !v3 )
return (unsigned int)-139;
return v4;
}