//
// std::_Bit_reference::operator= from 0x3657d0 to 0x3657ec (28 bytes)
//
// 31 xrefs:
// > LevelEditorLayer::updateColor @ 0x3658ae
// > LevelEditorLayer::updateColor @ 0x3658d8
// > std::__fill_bvector @ 0x36598c
// > LevelEditorLayer::toggleLockActiveLayer @ 0x367188
// > LevelEditorLayer::unlockAllLayers @ 0x36721e
// > LevelEditorLayer::updateToggledGroups @ 0x367f46
// > LevelEditorLayer::resetToggledGroups @ 0x367fe4
// > LevelEditorLayer::updateBlendValues @ 0x3680a4
// > LevelEditorLayer::updateBlendValues @ 0x3680c6
// > LevelEditorLayer::updateBlendValues @ 0x3680fe
// > LevelEditorLayer::updateBlendValues @ 0x368124
// > LevelEditorLayer::updateBlendValues @ 0x36814a
// > LevelEditorLayer::updateBlendValues @ 0x36815a
// > LevelEditorLayer::updateBlendValues @ 0x368168
// > std::vector>::_M_fill_insert @ 0x36ff28
// > std::vector>::_M_fill_insert @ 0x370012
// > std::vector>::_M_fill_insert @ 0x3700ac
// > LevelEditorLayer::updateGameObjects @ 0x375a2e
// > LevelEditorLayer::init @ 0x3766ee
// > LevelEditorLayer::init @ 0x376702
// > LevelEditorLayer::init @ 0x376716
// > LevelEditorLayer::init @ 0x37672a
// > LevelEditorLayer::init @ 0x37673e
// > GJBaseGameLayer::checkCollisions @ 0x49393e
// > GJEffectManager::updatePulseEffects @ 0x49adf2
// > GJEffectManager::removeAllPulseActions @ 0x49b328
// > GJEffectManager::toggleGroup @ 0x49ec6c
// > GJEffectManager::loadFromState @ 0x4a6b00
// > GJEffectManager::init @ 0x4a6f7e
// > GJBigSprite::unloadSprite @ 0x50ecc0
// > GJBigSprite::init @ 0x50f504
//
// 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
//
int __fastcall std::_Bit_reference::operator=(int a1, int a2)
{
if ( a2 )
sub_364FBE(a1);
else
**(_DWORD **)a1 &= ~*(_DWORD *)(a1 + 4);
return a1;
}