//
// OptionsScrollLayer::onMatchToggle from 0xb84cbc to 0xb84d5c (160 bytes)
//
// 3 xrefs:
// > ??> @ 0x77d88
// > OptionsScrollLayer::addTagMatchToggle @ 0xb84410
// > ??> @ 0x15430c0
//
// 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:30 +0000
//
__int64 __fastcall OptionsScrollLayer::onMatchToggle(__int64 this, cocos2d::CCObject *a2)
{
__int64 v2; // x1
cocos2d::CCArray **v3; // x19
ButtonSprite *v4; // x0
v2 = *(_QWORD *)(this + 752);
if ( v2 )
{
v3 = (cocos2d::CCArray **)this;
*(_BYTE *)(v2 + 134) ^= 1u;
v4 = (ButtonSprite *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(this + 744) + 1072LL))(*(_QWORD *)(this + 744));
if ( *((_BYTE *)v3[94] + 134) )
ButtonSprite::setString(v4, "Match: Any");
else
ButtonSprite::setString(v4, "Match: All");
MusicSearchResult::updateObjects(v3[94]);
return OptionsScrollLayer::setupList((OptionsScrollLayer *)v3, v3[84]);
}
return this;
}