//
// SFXBrowser::onToggleView from 0xb96964 to 0xb969f4 (144 bytes)
//
// 6 xrefs:
// > ??> @ 0x5f7d0
// > sub_B947C8 @ 0xb951ec
// > sub_B947C8 @ 0xb9531c
// > sub_B947C8 @ 0xb95438
// > sub_B947C8 @ 0xb95568
// > ??> @ 0x15423d8
//
// 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:41 +0000
//
__int64 __fastcall SFXBrowser::onToggleView(__int64 this, cocos2d::CCObject *a2)
{
__int64 v2; // x19
int v3; // w0
int v4; // w1
__int64 v5; // x0
if ( *(_QWORD *)(this + 712) )
{
v2 = this;
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
if ( v3 == 4 )
{
if ( *(_DWORD *)(v2 + 1116) == 4 )
v4 = 0;
else
v4 = 4;
v5 = v2;
}
else
{
v4 = v3;
if ( v3 == *(_DWORD *)(*(_QWORD *)(v2 + 712) + 140LL) )
return SFXBrowser::switchToView(v2, *(_DWORD *)(v2 + 1116));
v5 = v2;
}
return SFXBrowser::switchToView(v5, v4);
}
return this;
}