//
// GJBaseGameLayer::enterDualMode from 0x1001ea33c to 0x1001ea3a8 (108 bytes)
//
// 1 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x100121200
//
// 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 GJBaseGameLayer::enterDualMode(GJBaseGameLayer *a1, GameObject *a2, bool a3)
{
PlayerObject *m_player1; // x21
__int64 *v6; // x0
__int64 v7; // [xsp+8h] [xbp-28h] BYREF
if ( a2 )
{
m_player1 = a1->m_player1;
v6 = (__int64 *)((__int64 (__fastcall *)(GameObject *))a2->getPosition)(a2);
sub_1000229B8(&v7, v6);
sub_1000229D0(&m_player1->m_lastPortalPos, (double *)&v7);
a1->m_player1->m_lastActivatedPortal = a2;
a1->m_gameState.m_lastActivatedPortal1 = a2;
}
}