//
// PlatformerControlsPopup::refreshApplyVisible from 0xcfa68c to 0xcfa70c (128 bytes)
//
// 4 xrefs:
// > PlatformerControlsPopup::init @ 0xcfb290
// > PlatformerControlsPopup::onLevelControlsRefreshed @ 0xcfbc30
// > PlatformerControlsPopup::uploadActionFinished @ 0xcfbddc
// > ??> @ 0x998b0
//
// 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::refreshApplyVisible(__int64 this)
{
__int64 v1; // x1
unsigned __int8 v2; // w2
__int64 v3; // x1
__int64 v4; // x3
_BOOL4 v5; // w20
__int64 v6; // x1
__int64 v7; // x19
v1 = *(_QWORD *)(this + 1048);
if ( v1 )
{
v2 = *(_BYTE *)(v1 + 1784);
v3 = v1 + 1784;
v4 = v2 >> 1;
if ( (v2 & 1) != 0 )
v4 = *(_QWORD *)(v3 + 8);
v5 = v4 != 0;
}
else
{
v5 = 0;
}
v6 = *(_QWORD *)(this + 1168);
if ( v6 )
{
v7 = this;
(*(void (__fastcall **)(_QWORD, _BOOL4))(*(_QWORD *)v6 + 344LL))(*(_QWORD *)(this + 1168), v5);
return (*(__int64 (__fastcall **)(_QWORD, _BOOL4))(**(_QWORD **)(v7 + 1168) + 1056LL))(*(_QWORD *)(v7 + 1168), v5);
}
return this;
}