//
// sub_18004C780 from 0x18004c780 to 0x18004c7c0 (64 bytes)
//
// 2 xrefs:
// > sub_180052E90 @ 0x180052f0f
// > ??> @ 0x1801f86ac
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:53:15 +0000
//
__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;
}