//
// sub_54644 from 0x54644 to 0x546cc (136 bytes)
//
// 1 xrefs:
// > ??> @ 0x10c358
//
// 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_54644(__int64 a1, char a2)
{
unsigned int v4; // w21
_BYTE v6[16]; // [xsp+0h] [xbp-30h] BYREF
sub_54CC4(v6);
v4 = ((__int64 (__fastcall *)(__int64, _QWORD))loc_52588)(a1, a2 & 1);
if ( !v4 )
{
if ( (*(_BYTE *)(a1 + 61) & 0x40) != 0 )
v4 = 0;
else
v4 = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 192) + 88LL))(*(_QWORD *)(a1 + 192), a2 & 1);
}
sub_51F94((__int64)v6);
return v4;
}