//
// PlatformerControlsPopup::refreshApplyVisible from 0x79c8c0 to 0x79c906 (70 bytes)
//
// 3 xrefs:
// > PlatformerControlsPopup::init @ 0x79d6f6
// > PlatformerControlsPopup::onLevelControlsRefreshed @ 0x79dd3a
// > PlatformerControlsPopup::uploadActionFinished @ 0x79deac
//
// 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:59:50 +0000
//
int __fastcall PlatformerControlsPopup::refreshApplyVisible(PlatformerControlsPopup *this, int a2, int a3)
{
int v4; // r3
int v5; // r4
int v6; // r4
_BOOL4 v7; // r4
int result; // r0
v4 = *((_DWORD *)this + 182);
if ( v4 )
{
v5 = *(unsigned __int8 *)(v4 + 1328);
a3 = v5 << 31;
if ( (v5 & 1) != 0 )
v6 = *(_DWORD *)(v4 + 1332);
else
v6 = v5 >> 1;
v7 = v6 != 0;
}
else
{
v7 = 0;
}
result = *((_DWORD *)this + 197);
if ( result )
{
(*(void (__fastcall **)(int, _BOOL4, int))(*(_DWORD *)result + 172))(result, v7, a3);
return (*(int (__fastcall **)(_DWORD, _BOOL4))(**((_DWORD **)this + 197) + 528))(*((_DWORD *)this + 197), v7);
}
return result;
}