//
// PlayerObject::spiderTestJump from 0x100403720 to 0x1004037d4 (180 bytes)
//
// 3 xrefs:
// > PlayerObject::spiderTestJumpX @ 0x10040f36b
// > PlayerObject::spiderTestJumpY @ 0x10041020c
// > PlayerObject::ringJump @ 0x1004147aa
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall PlayerObject::spiderTestJump(PlayerObject *a1, bool a2)
{
GJBaseGameLayer *m_gameLayer; // rdi
__int64 v4; // xmm0_8
__int64 v5; // xmm1_8
PlayerObject::spiderTestJumpInternal(a1, a2);
m_gameLayer = a1->m_gameLayer;
if ( m_gameLayer )
GJBaseGameLayer::gameEventTriggered(m_gameLayer, SpiderTeleport, 0, a1->m_uniqueID);
if ( !a1->m_isShip && !a1->m_isBird && !a1->m_isDart && !a1->m_isSwing && !a1->m_isBall && !a1->m_isSpider )
{
if ( a1->m_isUpsideDown )
v4 = 1119092736;
else
v4 = 1132920832;
if ( a1->m_isUpsideDown )
v5 = 1127481344;
else
v5 = 0;
if ( !a1->m_isSideways )
v4 = v5;
((void (__fastcall *)(PlayerObject *, double, double))a1->setRotation)(a1, *(double *)&v4, *(double *)&v5);
}
}