//
// PlayLayer::toggleDebugDraw from 0x3ff932 to 0x3ff972 (64 bytes)
//
// 4 xrefs:
// > PlayLayer::updateDebugDrawSettings @ 0x3ff9ea
// > PlayLayer::destroyPlayer @ 0x405b62
// > PlayLayer::togglePracticeMode @ 0x40797a
// > PlayLayer::resetLevel @ 0x412bd0
//
// 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:47:23 +0000
//
int __fastcall PlayLayer::toggleDebugDraw(cocos2d::CCDrawNode **this)
{
int shouldDebugDraw; // r5
int result; // r0
shouldDebugDraw = PlayLayer::shouldDebugDraw((PlayLayer *)this);
result = (*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 2894) + 176))(*(this + 2894));
if ( shouldDebugDraw != result )
{
cocos2d::CCDrawNode::clear(*(this + 2894));
result = (*(int (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 2894) + 172))(*(this + 2894), shouldDebugDraw);
if ( shouldDebugDraw )
return (*((int (__fastcall **)(cocos2d::CCDrawNode **))*this + 163))(this);
}
return result;
}