//
// PlayLayer::toggleDebugDraw from 0x100119750 to 0x100119804 (180 bytes)
//
// 4 xrefs:
// > PlayLayer::updateDebugDrawSettings @ 0x1001160e0
// > PlayLayer::destroyPlayer @ 0x10011eb3c
// > PlayLayer::togglePracticeMode @ 0x100121a30
// > PlayLayer::resetLevel @ 0x100121c8c
//
// 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 __fastcall PlayLayer::toggleDebugDraw(PlayLayer *a1)
{
bool v2; // w21
if ( a1->m_isDebugDrawEnabled && a1->m_isPracticeMode )
v2 = 1;
else
v2 = a1->m_hitboxesOnDeath && a1->m_playerDied;
if ( v2 != ((unsigned int (__fastcall *)(cocos2d::CCDrawNode *))a1->m_debugDrawNode->isVisible)(a1->m_debugDrawNode) )
{
cocos2d::CCDrawNode::clear(a1->m_debugDrawNode);
((void (__fastcall *)(cocos2d::CCDrawNode *, bool))a1->m_debugDrawNode->setVisible)(a1->m_debugDrawNode, v2);
if ( v2 )
((void (__fastcall *)(PlayLayer *))a1->updateDebugDraw)(a1);
}
}