//
// EndPortalObject::getSpawnPos from 0x8b50f4 to 0x8b515c (104 bytes)
//
// 3 xrefs:
// > PlayLayer::checkForEnd @ 0x6f2cb0
// > PlayLayer::checkForEnd @ 0x6f2d24
// > ??> @ 0x6e9c8
//
// 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:56:24 +0000
//
cocos2d::CCPoint *__usercall EndPortalObject::getSpawnPos@(
cocos2d::CCPoint *__return_ptr a1@,
EndPortalObject *this@)
{
float v3; // s8
float v5; // s1
float v6; // s0
v3 = *((float *)this + 240);
v5 = 300.0 / *(float *)(*(_QWORD *)(GameManager::sharedState(this) + 544) + 424LL);
if ( *((_BYTE *)this + 1360) )
v6 = -1.0;
else
v6 = 1.0;
cocos2d::CCPoint::CCPoint(a1, v3 - (float)(v5 * v6), *((float *)this + 241));
return a1;
}