//
// sub_100587F58 from 0x100587f58 to 0x100587fa4 (76 bytes)
//
// 1 xrefs:
// > sub_100587D40 @ 0x100587e18
//
// This function is hookable on this platform (idp: arm, 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 11:08:33 +0000
//
__int64 __fastcall sub_100587F58(__int64 a1, __int64 a2, _QWORD *a3, __int64 a4)
{
_BOOL4 v5; // w9
unsigned int v7; // [xsp+Ch] [xbp-14h] BYREF
sub_1005D0224(*(_QWORD *)(a4 + 368), a2, 1, *(unsigned int *)a3, &v7);
v5 = v7 == 0;
*a3 = v7;
return (unsigned int)(2 * v5);
}