//
// sub_1005245E4 from 0x1005245e4 to 0x100524660 (124 bytes)
//
// 1 xrefs:
// > sub_100523800 @ 0x100523c9c
//
// 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:14 +0000
//
__int64 __fastcall sub_1005245E4(__int64 a1, __int64 a2)
{
signed int v3; // w20
__int64 result; // x0
__int64 v5; // x0
__int64 v6; // x0
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
result = *(_QWORD *)(a1 + 800);
if ( result && (v3 & 0x80000000) == 0 )
{
result = sub_1002E757C(result);
if ( v3 < (int)result )
{
v5 = sub_1002E75A0(*(_QWORD *)(a1 + 800), v3);
v6 = AccountReviewPopup::create(*(unsigned int *)(v5 + 56), v5 + 64, 0);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);
}
}
return result;
}