//
// PlatformerControlsPopup::onToggleSource from 0x79cc5e to 0x79cc8e (48 bytes)
//
// 0 xrefs:
//
// 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
//
GJUINode *__fastcall PlatformerControlsPopup::onToggleSource(GJUINode *this, cocos2d::CCObject *a2)
{
PlatformerControlsPopup *v2; // r4
int v3; // r5
v2 = this;
v3 = *((_DWORD *)this + 182);
if ( v3 )
{
*(_DWORD *)(v3 + 1356) = (unsigned __int8)PlatformerControlsPopup::sourceIsCustom(this) ^ 1;
PlatformerControlsPopup::updateEditLabel(v2);
PlatformerControlsPopup::refreshModeUI((cocos2d::CCPoint **)v2);
return PlatformerControlsPopup::reapplyRuntime(v2);
}
return this;
}