//
// LevelSettingsLayer::onOptionToggle from 0xb62224 to 0xb62268 (68 bytes)
//
// 3 xrefs:
// > ??> @ 0x69508
// > LevelSettingsLayer::init @ 0xb6606c
// > ??> @ 0x1542958
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:02:12 +0000
//
__int64 __fastcall LevelSettingsLayer::onOptionToggle(LevelSettingsLayer *this, cocos2d::CCObject *a2)
{
__int64 result; // x0
__int64 v4; // x1
result = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)result == 1 )
{
v4 = *((_QWORD *)this + 102);
result = *(unsigned __int8 *)(v4 + 440) ^ 1u;
*(_BYTE *)(v4 + 440) ^= 1u;
}
return result;
}