//
// sub_54644 from 0x54644 to 0x546cc (136 bytes)
//
// 1 xrefs:
// > ??> @ 0x10c358
//
// 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 12:13:48 +0000
//
__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;
}