//
// GJBaseGameLayer::spawnPlayer2 from 0x100107210 to 0x10010728e (126 bytes)
//
// 0 xrefs:
//
// 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
//
__int64 __fastcall GJBaseGameLayer::spawnPlayer2(__int64 a1)
{
__int64 v1; // rax
if ( !(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3264) + 512LL))(*(_QWORD *)(a1 + 3264)) )
{
v1 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3256) + 512LL))(*(_QWORD *)(a1 + 3256));
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v1 + 464LL))(v1, *(_QWORD *)(a1 + 3264), 59);
if ( !*(_BYTE *)(a1 + 12236) )
PlayerObject::addAllParticles(*(_QWORD *)(a1 + 3264));
}
return PlayerObject::spawnFromPlayer(
*(_QWORD *)(a1 + 3264),
*(_QWORD *)(a1 + 3256),
*(unsigned __int8 *)(a1 + 1912) ^ 1u);
}