//
// GJBaseGameLayer::enterDualMode from 0x46f5f8 to 0x46f64c (84 bytes)
//
// 1 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x31f68a
//
// 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 GJBaseGameLayer::enterDualMode(GJBaseGameLayer *a1, GameObject *a2, bool a3)
{
PlayerObject *m_player1; // r8
const cocos2d::CCPoint *v6; // r0
int v7; // r2
bool v8; // r3
cocos2d::CCPoint v9; // [sp+4h] [bp+0h] BYREF
LODWORD(v9.x) = a2;
LODWORD(v9.y) = a3;
if ( a2 )
{
m_player1 = a1->m_player1;
v6 = a2->getPosition(a2);
cocos2d::CCPoint::CCPoint(&v9, v6);
cocos2d::CCPoint::operator=((PlayerObject *)&m_player1->m_lastPortalPos, COERCE_FLOAT(&v9), v7, v8);
a1->m_player1->m_lastActivatedPortal = a2;
a1->m_gameState.m_lastActivatedPortal1 = a2;
}
}