//
// PlatformerControlsPopup::refreshClassUI from 0xcfa878 to 0xcfa92c (180 bytes)
//
// 5 xrefs:
// > PlatformerControlsPopup::refreshModeUI @ 0xcfab54
// > PlatformerControlsPopup::update @ 0xcfacd0
// > PlatformerControlsPopup::onUpload @ 0xcfc164
// > PlatformerControlsPopup::onClose @ 0xcfc4a4
// > ??> @ 0x6f7f0
//
// 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:06:50 +0000
//
__int64 __fastcall PlatformerControlsPopup::refreshClassUI(LevelControlConfig **this)
{
int v2; // w23
ButtonSprite **v3; // x20
__int64 v4; // x19
_BOOL4 IsCustom; // w25
const char *v6; // x1
ButtonSprite *v7; // x0
v2 = PlatformerControlsPopup::presentClasses(this);
*((_DWORD *)this + 325) = v2;
v3 = this + 143;
v4 = 0;
IsCustom = PlatformerControlsPopup::sourceIsCustom((PlatformerControlsPopup *)this);
do
{
if ( IsCustom )
{
v6 = "GJ_button_04.png";
if ( (v2 & *(_DWORD *)((_BYTE *)&unk_11A54E0 + v4)) == 0 )
{
v7 = *v3;
if ( !*v3 )
goto LABEL_6;
LABEL_5:
ButtonSprite::updateBGImage(v7, v6);
goto LABEL_6;
}
}
v7 = *v3;
v6 = "GJ_button_01.png";
if ( *v3 )
goto LABEL_5;
LABEL_6:
v4 += 4;
++v3;
}
while ( v4 != 12 );
return PlatformerControlsPopup::refreshUploadColumn((__int64)this, v2);
}