//
// PlayLayer::updateTestModeLabel from 0x1001195ac to 0x10011964c (160 bytes)
//
// 4 xrefs:
// > PlayLayer::init @ 0x100115d94
// > PlayLayer::toggleIgnoreDamage @ 0x100116104
// > PlayLayer::setupHasCompleted @ 0x100117348
// > PlayLayer::resetLevel @ 0x100121bdc
//
// 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::updateTestModeLabel(PlayLayer *a1)
{
cocos2d::CCLabelBMFont *m_statusLabel; // x0
bool v3; // w8
const char *v4; // x1
m_statusLabel = a1->m_statusLabel;
if ( m_statusLabel )
{
v3 = a1->m_isIgnoreDamageEnabled || a1->m_isTestMode;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, bool))m_statusLabel->setVisible)(m_statusLabel, v3);
if ( a1->m_ignoreDamage )
{
v4 = "Ignore Damage";
}
else if ( a1->m_isIgnoreDamageEnabled )
{
v4 = "Used Ignore Damage";
}
else
{
if ( !a1->m_isTestMode )
return;
v4 = "Testmode";
}
((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_statusLabel->setString)(a1->m_statusLabel, v4);
}
}