//
// sub_180028A80 from 0x180028a80 to 0x180028b0a (138 bytes)
//
// 2 xrefs:
// > sub_180028B10 @ 0x180028b7c
// > ??> @ 0x1801f76f8
//
// 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:00 +0000
//
__int64 __fastcall sub_180028A80(__int64 a1, int a2, _DWORD *a3, _DWORD *a4)
{
__int64 result; // rax
if ( !byte_1801B3BA0 )
{
qword_1801B44E8 = (unsigned __int64)&unk_1801B3BBF & 0xFFFFFFFFFFFFFFF0uLL;
if ( !(unsigned int)sub_180028BE0(1) && !(unsigned int)sub_18002D350() )
sub_180032180(32);
byte_1801B3BA0 = 1;
}
if ( a3 )
*a3 = 18640 * ((a2 + 1) / 2);
result = 0;
if ( a4 )
*a4 = 1152;
return result;
}