//
// PlayLayer::toggleDebugDraw from 0x1403a7900 to 0x1403a798b (139 bytes)
//
// 5 xrefs:
// > PlayLayer::updateDebugDrawSettings @ 0x1403a78f8
// > PlayLayer::destroyPlayer @ 0x1403b3c9e
// > PlayLayer::resetLevel @ 0x1403b9085
// > PlayLayer::togglePracticeMode @ 0x1403b9e8e
// > ??> @ 0x1406d6b6c
//
// 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)
{
bool v2; // di
v2 = a1->m_isDebugDrawEnabled && a1->m_isPracticeMode || a1->m_hitboxesOnDeath && a1->m_playerDied;
if ( v2 != a1->m_debugDrawNode->isVisible(a1->m_debugDrawNode) )
{
cocos2d::CCDrawNode::clear(a1->m_debugDrawNode);
a1->m_debugDrawNode->setVisible(a1->m_debugDrawNode, v2);
if ( v2 )
a1->updateDebugDraw(a1);
}
}