//
// UILayer::updateDualMode from 0x1004c87b0 to 0x1004c8836 (134 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::toggleDualMode @ 0x100123ffe
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall UILayer::updateDualMode(UILayer *a1, bool a2)
{
GameManager *v2; // rax
unsigned int v3; // r14d
__int64 v4; // rax
if ( a1->m_dualMode != a2 )
{
a1->m_dualMode = a2;
if ( a1->m_inPlatformer )
{
v2 = GameManager::sharedState();
GameManager::getGameVariable(v2, "0024");
}
if ( (unsigned int)sub_100720070(a1->m_uiNodes) )
{
v3 = 0;
do
{
v4 = sub_1007200C0(a1->m_uiNodes, v3);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 328LL))(v4, 0);
++v3;
}
while ( v3 < (unsigned int)sub_100720070(a1->m_uiNodes) );
}
}
}