//
// OptionsScrollLayer::onMatchToggle from 0x1006ebcb0 to 0x1006ebd29 (121 bytes)
//
// 1 xrefs:
// > OptionsScrollLayer::addTagMatchToggle @ 0x1006eac62
//
// This function is hookable on this platform (idp: pc, 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 12:35:49 +0000
//
__int64 __fastcall OptionsScrollLayer::onMatchToggle(__int64 a1)
{
__int64 result; // rax
__int64 v2; // rax
const std::string::value_type *v3; // rsi
result = *(_QWORD *)(a1 + 752);
if ( result )
{
*(_BYTE *)(result + 134) ^= 1u;
v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 744) + 1072LL))(*(_QWORD *)(a1 + 744));
v3 = "Match: All";
if ( *(_BYTE *)(*(_QWORD *)(a1 + 752) + 134LL) )
v3 = "Match: Any";
ButtonSprite::setString(v2, v3);
MusicSearchResult::updateObjects(*(unsigned int **)(a1 + 752));
return OptionsScrollLayer::setupList(a1, *(_QWORD *)(a1 + 672));
}
return result;
}