//
// GJBaseGameLayer::enterDualMode from 0x100107760 to 0x1001077ce (110 bytes)
//
// 1 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x10008b221
//
// 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 12:21:32 +0000
//
void __fastcall GJBaseGameLayer::enterDualMode(__int64 a1, __int64 a2)
{
__int64 v2; // rbx
__int64 v3; // rax
_BYTE v4[48]; // [rsp-30h] [rbp-30h] BYREF
if ( a2 )
{
v2 = *(_QWORD *)(a1 + 3256) + 2488LL;
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 192LL))(a2);
sub_1002782D0(v4, v3);
sub_100278300(v2, v4);
*(_QWORD *)(*(_QWORD *)(a1 + 3256) + 2592LL) = a2;
*(_QWORD *)(a1 + 976) = a2;
}
}