//
// OptionsScrollLayer::onMatchToggle from 0x14047ee60 to 0x14047eeea (138 bytes)
//
// 2 xrefs:
// > MusicBrowser::onTagFilters @ 0x14047daaa
// > ??> @ 0x1409287a8
//
// 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 11:32:44 +0000
//
void __fastcall OptionsScrollLayer::onMatchToggle(__int64 a1)
{
__int64 v2; // rcx
__int64 *v3; // rax
char *v4; // rdx
v2 = *(_QWORD *)(a1 + 760);
if ( v2 )
{
*(_BYTE *)(v2 + 142) = *(_BYTE *)(v2 + 142) == 0;
v3 = (__int64 *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 752) + 952LL))(*(_QWORD *)(a1 + 752));
v4 = "Match: All";
if ( *(_BYTE *)(*(_QWORD *)(a1 + 760) + 142LL) )
v4 = "Match: Any";
ButtonSprite::setString(v3, v4);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 760) + 72LL))(
*(_QWORD *)(a1 + 760),
*(unsigned int *)(*(_QWORD *)(a1 + 760) + 136LL));
OptionsScrollLayer::setupList(a1, *(_QWORD *)(a1 + 672));
}
}