//
// PlayLayer::toggleIgnoreDamage from 0x406320 to 0x406342 (34 bytes)
//
// 5 xrefs:
// > UILayer::handleAction @ 0x3fe77e
// > PlayLayer::init @ 0x40b230
// > PlayLayer::resetLevel @ 0x4122cc
// > PauseLayer::onSideButtonPressed @ 0x48e762
// > GameOptionsLayer::didToggle @ 0x5d3aa2
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:47:28 +0000
//
int __fastcall PlayLayer::toggleIgnoreDamage(PlayLayer *this, int a2)
{
*((_BYTE *)this + 1434) = a2;
if ( a2 )
*((_BYTE *)this + 11797) = 1;
*(_BYTE *)(*((_DWORD *)this + 519) + 1605) = a2;
*(_BYTE *)(*((_DWORD *)this + 520) + 1605) = a2;
return PlayLayer::updateTestModeLabel(this);
}