//
// sub_180015820 from 0x180015820 to 0x180015865 (69 bytes)
//
// 2 xrefs:
// > sub_180015B40 @ 0x180015c75
// > ??> @ 0x1801f7098
//
// 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:52:47 +0000
//
__int64 __fastcall sub_180015820(__int64 a1, int a2, _DWORD *a3, __int64 a4)
{
__int64 result; // rax
bool v6; // zf
unsigned int v7; // [rsp+50h] [rbp+18h] BYREF
sub_1800B3470(*(_QWORD *)(a4 + 368), a2, 1, *a3, (__int64)&v7);
result = 0;
v6 = v7 == 0;
*(_QWORD *)a3 = v7;
if ( v6 )
return 2;
return result;
}