//
// sub_180044940 from 0x180044940 to 0x18004497d (61 bytes)
//
// 1 xrefs:
// > sub_180015B40 @ 0x180015c49
//
// 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:12 +0000
//
__int64 __fastcall sub_180044940(__int64 a1, unsigned int a2)
{
if ( a2 > 0x7E || **(_DWORD **)a1 != 9 )
return 0;
*(_DWORD *)(*(_QWORD *)(a1 + 8) + 4LL * (int)a2 + 832) = 1;
if ( a2 == 2 )
*(_QWORD *)(*(_QWORD *)(a1 + 8) + 1352LL) = 0;
return 1;
}