//
// EndPortalObject::getSpawnPos from 0x100386200 to 0x10038627c (124 bytes)
//
// 2 xrefs:
// > PlayLayer::checkForEnd @ 0x100088c58
// > PlayLayer::checkForEnd @ 0x100088c97
//
// 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:29:10 +0000
//
float *__fastcall EndPortalObject::getSpawnPos(float *a1, __int64 a2)
{
__int64 v2; // rax
float v3; // xmm1_4
float v5; // [rsp+Ch] [rbp-14h]
v5 = *(float *)(a2 + 960);
v2 = *(_QWORD *)(GameManager::sharedState() + 544);
if ( *(_BYTE *)(a2 + 1360) )
v3 = -1.0;
else
v3 = 1.0;
sub_100278250(a1, (float)((float)(-300.0 / *(float *)(v2 + 424)) * v3) + v5, *(float *)(a2 + 964));
return a1;
}