//
// sub_100549F0C from 0x100549f0c to 0x100549f98 (140 bytes)
//
// 6 xrefs:
// > sub_100542810 @ 0x100542880
// > sub_100549588 @ 0x100549650
// > sub_100549588 @ 0x100549674
// > AccountReviewPopup::FLAlert_Clicked @ 0x10054aaf0
// > AccountReviewPopup::FLAlert_Clicked @ 0x10054abb4
// > AccountReviewPopup::FLAlert_Clicked @ 0x10054ad10
//
// 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_100549F0C(__int64 result, int a2, __int64 a3)
{
__int64 v3; // x20
__int64 v4; // x8
_QWORD *v5; // x0
int v7; // [xsp+Ch] [xbp-14h] BYREF
v7 = a2;
if ( (a2 & 0x80000000) == 0 )
{
v3 = result;
v4 = *(_QWORD *)(result + 1320);
if ( (int)((unsigned __int64)(*(_QWORD *)(result + 1328) - v4) >> 3) > a2 )
{
if ( *(_QWORD *)(v4 + 8LL * (unsigned int)a2) )
{
v5 = (_QWORD *)(result + 1344);
if ( (_DWORD)a3 )
sub_1000D8E78((__int64)v5, &v7, &v7);
else
sub_10005484C(v5, &v7);
result = *(_QWORD *)(*(_QWORD *)(v3 + 1320) + 8LL * v7);
if ( *(unsigned __int8 *)(result + 392) != (_DWORD)a3 )
return CCMenuItemToggler::toggle(result, a3);
}
}
}
return result;
}