//
// GJBaseGameLayer::spawnPlayer2 from 0x100285764 to 0x1002857e0 (124 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::toggleDualMode @ 0x100281aec
//
// This function is hookable on this platform (idp: arm, 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 11:01:57 +0000
//
__int64 __fastcall GJBaseGameLayer::spawnPlayer2(__int64 a1)
{
__int64 v2; // x0
if ( !(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3264) + 512LL))(*(_QWORD *)(a1 + 3264)) )
{
v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3256) + 512LL))(*(_QWORD *)(a1 + 3256));
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v2 + 464LL))(v2, *(_QWORD *)(a1 + 3264), 59);
if ( (*(_BYTE *)(a1 + 12236) & 1) == 0 )
PlayerObject::addAllParticles(*(_QWORD *)(a1 + 3264));
}
return sub_1002CA150(*(_QWORD *)(a1 + 3264), *(_QWORD *)(a1 + 3256), (*(_BYTE *)(a1 + 1912) & 1) == 0);
}