//
// cocos2d::CCLayerMultiplex::switchTo from 0x180052ef0 to 0x180052f6a (122 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bc430
//
// 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:21:46 +0000
//
void __fastcall cocos2d::CCLayerMultiplex::switchTo(cocos2d::CCLayerMultiplex *this, unsigned int a2)
{
cocos2d::CCArray *v4; // rbx
struct cocos2d::CCString *v5; // rax
__int64 v6; // r8
cocos2d::CCArray *v7; // rcx
cocos2d::CCArray *v8; // rbx
struct cocos2d::CCString *v9; // rax
cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 52));
v4 = *(cocos2d::CCArray **)this;
v5 = cocos2d::CCArray::stringAtIndex(*((cocos2d::CCArray **)this + 52), *((_DWORD *)this + 102));
LOBYTE(v6) = 1;
(*((void (__fastcall **)(cocos2d::CCLayerMultiplex *, struct cocos2d::CCString *, __int64))v4 + 67))(this, v5, v6);
v7 = *((cocos2d::CCArray **)this + 52);
v8 = *(cocos2d::CCArray **)this;
*((_DWORD *)this + 102) = a2;
v9 = cocos2d::CCArray::stringAtIndex(v7, a2);
(*((void (__fastcall **)(cocos2d::CCLayerMultiplex *, struct cocos2d::CCString *))v8 + 58))(this, v9);
}