//
// TabbedPopupLayer::refreshPageButtons from 0x72dec8 to 0x72df3e (118 bytes)
//
// 4 xrefs:
// > KeybindingsLayer::showTab @ 0x58a790
// > TabbedPopupLayer::pageChanged @ 0x72df48
// > TabbedPopupLayer::showTab @ 0x72e01e
// > EditorSoundsLayer::showTab @ 0x78ab24
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:17 +0000
//
int __fastcall TabbedPopupLayer::refreshPageButtons(TabbedPopupLayer *this)
{
int v2; // r3
int v3; // r0
_BOOL4 v4; // r4
int v5; // r0
int result; // r0
v2 = *((_DWORD *)this + 184);
v4 = v2 >= 0
&& (v3 = *((_DWORD *)this + 178), v2 < -1171354717 * ((*((_DWORD *)this + 179) - v3) >> 2))
&& *(_DWORD *)(v3 + 44 * v2 + 32) > 1;
v5 = *((_DWORD *)this + 186);
if ( v5 )
{
(*(void (__fastcall **)(int, _BOOL4))(*(_DWORD *)v5 + 172))(v5, v4);
(*(void (__fastcall **)(_DWORD, _BOOL4))(**((_DWORD **)this + 186) + 528))(*((_DWORD *)this + 186), v4);
}
result = *((_DWORD *)this + 187);
if ( result )
{
(*(void (__fastcall **)(int, _BOOL4))(*(_DWORD *)result + 172))(result, v4);
return (*(int (__fastcall **)(_DWORD, _BOOL4))(**((_DWORD **)this + 187) + 528))(*((_DWORD *)this + 187), v4);
}
return result;
}