//
// PlayerObject::spawnFromPlayer from 0x75d510 to 0x75d608 (248 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::spawnPlayer2 @ 0x99e878
// > ??> @ 0xba208
//
// 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 12:53:01 +0000
//
__int64 __fastcall PlayerObject::spawnFromPlayer(PlayerObject *this, PlayerObject *a2, unsigned __int8 a3)
{
int v3; // w21
unsigned __int8 v6; // w1
double YVelocity; // d0
__int64 result; // x0
double v9; // d0
v3 = a3;
(*(void (__fastcall **)(PlayerObject *, __int64))(*(_QWORD *)this + 344LL))(this, 1);
(*(void (__fastcall **)(PlayerObject *, __int64))(*(_QWORD *)this + 912LL))(this, 0xFFFFFFFFLL);
PlayerObject::copyAttributes(this, a2);
v6 = *((_BYTE *)a2 + 2423);
if ( v3 )
{
PlayerObject::flipGravity((__int64)this, v6 ^ 1, 1u);
YVelocity = PlayerObject::getYVelocity(a2);
PlayerObject::setYVelocity((__int64)this, -YVelocity);
*((_BYTE *)this + 2425) = 0;
*((_BYTE *)this + 2500) = 0;
PlayerObject::toggleVisibility((__int64)this, *((_BYTE *)a2 + 1787) ^ 1);
result = *((unsigned __int8 *)this + 2420);
if ( !*((_BYTE *)this + 2420) )
return result;
return PlayerObject::placeStreakPoint(this);
}
PlayerObject::flipGravity((__int64)this, v6, 1u);
v9 = PlayerObject::getYVelocity(a2);
PlayerObject::setYVelocity((__int64)this, v9);
*((_BYTE *)this + 2425) = 0;
*((_BYTE *)this + 2500) = 0;
PlayerObject::toggleVisibility((__int64)this, *((_BYTE *)a2 + 1787) ^ 1);
result = *((unsigned __int8 *)this + 2420);
if ( *((_BYTE *)this + 2420) )
return PlayerObject::placeStreakPoint(this);
return result;
}