//
// sub_100586BBC from 0x100586bbc to 0x100586c2c (112 bytes)
//
// 1 xrefs:
// > sub_1005834D0 @ 0x100585ef0
//
// 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_100586BBC(__int64 a1, __int64 a2)
{
__int64 v4; // x0
__int64 v5; // x0
__int64 (__fastcall *v6)(__int64, __int64); // x2
v4 = sub_100617F64(a2);
if ( (unsigned int)(v4 - 1) <= 1 )
{
v4 = sub_100617B98(a1);
if ( v4 )
{
v4 = sub_100617F78(a2);
if ( (v4 & 2) != 0 )
return 1;
}
}
v5 = sub_10061826C(v4);
v6 = (__int64 (__fastcall *)(__int64, __int64))sub_100617F28(v5);
return v6(a1, a2);
}