//
// GJBaseGameLayer::enterDualMode from 0x58f2cc to 0x58f320 (84 bytes)
//
// 1 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x411b74
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:04 +0000
//
int __fastcall GJBaseGameLayer::enterDualMode(int this, GameObject *a2, int a3, int a4)
{
int v4; // r6
int v6; // r8
const cocos2d::CCPoint *v7; // r0
_DWORD v8[3]; // [sp+4h] [bp+0h] BYREF
v8[0] = a2;
v8[1] = a3;
v8[2] = a4;
v4 = this;
if ( a2 )
{
v6 = *(_DWORD *)(this + 2076);
v7 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 96))(a2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, v7);
this = cocos2d::CCPoint::operator=(v6 + 2024, v8);
*(_DWORD *)(*(_DWORD *)(v4 + 2076) + 2100) = a2;
*(_DWORD *)(v4 + 840) = a2;
}
return this;
}