//
// ProfilePage::updatePageArrows from 0xa54ca0 to 0xa54d5c (188 bytes)
//
// 3 xrefs:
// > ProfilePage::toggleMainPageVisibility @ 0xa54e80
// > ProfilePage::setupPageInfo @ 0xa58524
// > ??> @ 0x63640
//
// 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 13:00:07 +0000
//
__int64 __fastcall ProfilePage::updatePageArrows(ProfilePage *this)
{
__int64 v2; // x2
__int64 v3; // x2
v2 = *((_QWORD *)this + 100);
if ( *((_DWORD *)this + 213) )
{
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)v2 + 344LL))(*((_QWORD *)this + 100), 1);
v3 = *((_QWORD *)this + 99);
if ( *((_DWORD *)this + 213) + *((_DWORD *)this + 214) < *((_DWORD *)this + 212) )
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 344LL))(v3, 1);
}
else
{
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v2 + 344LL))(*((_QWORD *)this + 100), 0);
v3 = *((_QWORD *)this + 99);
if ( *((_DWORD *)this + 213) + *((_DWORD *)this + 214) < *((_DWORD *)this + 212) )
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 344LL))(v3, 1);
}
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 344LL))(v3, 0);
}