//
// sub_100549D90 from 0x100549d90 to 0x100549e04 (116 bytes)
//
// 1 xrefs:
// > sub_1005467AC @ 0x100547544
//
// 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:07:49 +0000
//
__int64 __fastcall sub_100549D90(__int64 a1, __int64 a2)
{
__int64 result; // x0
signed int v4; // w20
__int64 v5; // x0
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( *(_DWORD *)(a1 + 1236) == 1 )
{
v4 = result;
result = *(_QWORD *)(a1 + 1312);
if ( result )
{
if ( (v4 & 0x80000000) == 0 )
{
result = sub_1002E757C(result);
if ( v4 < (int)result )
{
v5 = sub_1002E75A0(*(_QWORD *)(a1 + 1312), v4);
return sub_10054B298(v5, *(unsigned int *)(v5 + 56), *(unsigned int *)(v5 + 168));
}
}
}
}
return result;
}