//
// TabbedPopupLayer::refreshTabButtons from 0x72de74 to 0x72dec4 (80 bytes)
//
// 4 xrefs:
// > KeybindingsLayer::showTab @ 0x58a78a
// > TabbedPopupLayer::pageChanged @ 0x72df5a
// > TabbedPopupLayer::showTab @ 0x72e014
// > EditorSoundsLayer::showTab @ 0x78ab1e
//
// 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
//
char *__fastcall TabbedPopupLayer::refreshTabButtons(char *this, const char *a2, const char *a3)
{
char *v3; // r9
unsigned int i; // r8
int v7; // r2
const char *v8; // r1
v3 = this;
for ( i = 0; ; ++i )
{
v7 = *((_DWORD *)v3 + 178);
if ( i >= -1171354717 * ((*((_DWORD *)v3 + 179) - v7) >> 2) )
break;
this = *(char **)(v7 + 44 * i + 40);
if ( this )
{
this = (char *)(*(int (__fastcall **)(char *))(*(_DWORD *)this + 536))(this);
if ( this )
{
if ( i == *((_DWORD *)v3 + 184) )
v8 = a2;
else
v8 = a3;
this = ButtonSprite::updateBGImage(this, v8);
}
}
}
return this;
}