//
// EditorPauseLayer::toggleEditorBackground from 0x509010 to 0x509040 (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:51:26 +0000
//
int __fastcall EditorPauseLayer::toggleEditorBackground(LevelEditorLayer **this, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
GameManager *v4; // r0
LevelEditorLayer *v5; // r5
GameManager *v6; // r0
char v7; // r1
v3 = (GameManager *)GameManager::sharedState((GameManager *)this);
v4 = (GameManager *)GameManager::toggleGameVariable(v3, "0078");
v5 = *(this + 114);
v6 = (GameManager *)GameManager::sharedState(v4);
v7 = GameManager::getGameVariable(v6, "0078") ^ 1;
return LevelEditorLayer::toggleBackground(v5, v7);
}