//
// OptionsScrollLayer::addTagMatchToggle from 0xb84364 to 0xb844c4 (352 bytes)
//
// 2 xrefs:
// > MusicBrowser::onTagFilters @ 0xb88f04
// > ??> @ 0x80d10
//
// 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::addTagMatchToggle(OptionsScrollLayer *this)
{
cocos2d::CCDirector *v2; // x0
cocos2d::CCDirector *v3; // x0
const char *v4; // x6
float v5; // s8
char *v6; // x0
__int64 v7; // x0
__int64 v8; // x0
__int64 v9; // x23
cocos2d::CCNode *v10; // x22
void (__fastcall *v11)(__int64, __int64 *); // x19
__int64 v13; // [xsp+50h] [xbp+50h] BYREF
__int64 v14; // [xsp+58h] [xbp+58h] BYREF
_BYTE v15[8]; // [xsp+60h] [xbp+60h] BYREF
v2 = *((cocos2d::CCDirector **)this + 94);
if ( v2 )
{
v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v2);
cocos2d::CCDirector::getWinSize(&v13, v3);
v5 = (float)((float)(*((float *)&v13 + 1) * 0.5) + 145.0) - 24.0;
if ( *(_BYTE *)(*((_QWORD *)this + 94) + 134LL) )
v6 = "Match: Any";
else
v6 = "Match: All";
v7 = ButtonSprite::create(
(ButtonSprite *)v6,
(const char *)&qword_48 + 6,
0,
1,
0.4,
"bigFont.fnt",
"GJ_button_04.png",
v4,
22.0);
v8 = CCMenuItemSpriteExtra::create(v7, 0, (__int64)this, (__int64)OptionsScrollLayer::onMatchToggle, 0);
*((_QWORD *)this + 93) = v8;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v8);
v9 = *((_QWORD *)this + 93);
v10 = *((cocos2d::CCNode **)this + 69);
v11 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v9 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, (float)((float)(*(float *)&v13 * 0.5) + 170.0) - 39.0, v5);
cocos2d::CCNode::convertToNodeSpace(&v14, v10, (const cocos2d::CCPoint *)v15);
v11(v9, &v14);
}
return _stack_chk_guard;
}