//
// EndPortalObject::getSpawnPos from 0x10047f484 to 0x10047f4e8 (100 bytes)
//
// 2 xrefs:
// > PlayLayer::checkForEnd @ 0x100148adc
// > PlayLayer::checkForEnd @ 0x100148b08
//
// 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:05:45 +0000
//
float *__usercall EndPortalObject::getSpawnPos@(__int64 a1@, float *a2@)
{
float v4; // s8
__int64 v5; // x0
float v6; // s1
v4 = *(float *)(a1 + 960);
v5 = GameManager::sharedState();
v6 = 1.0;
if ( *(_BYTE *)(a1 + 1360) )
v6 = -1.0;
return sub_1000262BC(
a2,
v4 + (float)((float)(-300.0 / *(float *)(*(_QWORD *)(v5 + 544) + 424LL)) * v6),
*(float *)(a1 + 964));
}