//
// PlatformerControlsPopup::onToggleSource from 0xcfac48 to 0xcfac9c (84 bytes)
//
// 3 xrefs:
// > ??> @ 0xff010
// > PlatformerControlsPopup::init @ 0xcfaee0
// > ??> @ 0x1547c50
//
// 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:51 +0000
//
GameManager *__fastcall PlatformerControlsPopup::onToggleSource(GameManager *this, cocos2d::CCObject *a2)
{
PlatformerControlsPopup *v2; // x19
__int64 v3; // x20
v2 = this;
v3 = *((_QWORD *)this + 131);
if ( v3 )
{
*(_DWORD *)(v3 + 1840) = !PlatformerControlsPopup::sourceIsCustom(this);
PlatformerControlsPopup::updateEditLabel(v2);
PlatformerControlsPopup::refreshModeUI((cocos2d::CCNode **)v2);
return PlatformerControlsPopup::reapplyRuntime(v2);
}
return this;
}