//
// PlayLayer::toggleDebugDraw from 0x30f36e to 0x30f3ae (64 bytes)
//
// 4 xrefs:
// > PlayLayer::updateDebugDrawSettings @ 0x30f3f0
// > PlayLayer::destroyPlayer @ 0x3140b2
// > PlayLayer::togglePracticeMode @ 0x31431e
// > PlayLayer::resetLevel @ 0x31ff20
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void PlayLayer::toggleDebugDraw(PlayLayer *a1)
{
int shouldDebugDraw; // r5
shouldDebugDraw = PlayLayer::shouldDebugDraw(a1);
if ( shouldDebugDraw != ((int (__fastcall *)(cocos2d::CCDrawNode *))a1->m_debugDrawNode->isVisible)(a1->m_debugDrawNode) )
{
cocos2d::CCDrawNode::clear(a1->m_debugDrawNode);
a1->m_debugDrawNode->setVisible(a1->m_debugDrawNode, shouldDebugDraw);
if ( shouldDebugDraw )
a1->updateDebugDraw(a1);
}
}