//
// sub_8A148 from 0x8a148 to 0x8a188 (64 bytes)
//
// 2 xrefs:
// > sub_89F0C @ 0x8a008
// > sub_89F0C @ 0x8a028
//
// 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_8A148(__int64 a1, __int64 a2, _QWORD *a3, __int64 a4)
{
__int64 v5; // x8
unsigned int v7; // [xsp+Ch] [xbp-4h] BYREF
sub_E03B0(*(_QWORD *)(a4 + 368), a2, 1, *(unsigned int *)a3, &v7);
v5 = v7;
*a3 = v7;
return 2 * (unsigned int)(v5 == 0);
}