//
// PlayLayer::toggleDebugDraw from 0x1000b31c0 to 0x1000b3244 (132 bytes)
//
// 0 xrefs:
//
// 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)
{
unsigned __int8 v1; // r14
if ( !a1->m_isDebugDrawEnabled || (v1 = 1, !a1->m_isPracticeMode) )
v1 = a1->m_hitboxesOnDeath && a1->m_playerDied;
if ( v1 != ((unsigned __int8 (__fastcall *)(cocos2d::CCDrawNode *))a1->m_debugDrawNode->isVisible)(a1->m_debugDrawNode) )
{
cocos2d::CCDrawNode::clear(a1->m_debugDrawNode);
((void (__fastcall *)(cocos2d::CCDrawNode *, _QWORD))a1->m_debugDrawNode->setVisible)(a1->m_debugDrawNode, v1);
if ( v1 )
((void (__fastcall *)(PlayLayer *))a1->updateDebugDraw)(a1);
}
}