// // EndPortalObject::getSpawnPos from 0x1003feb08 to 0x1003feb6c (100 bytes) // // 2 xrefs: // > PlayLayer::checkForEnd @ 0x10011f758 // > PlayLayer::checkForEnd @ 0x10011f784 // // 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 // cocos2d::CCPoint __fastcall EndPortalObject::getSpawnPos(EndPortalObject *a1) { _DWORD *v1; // x8 _DWORD *v3; // x20 float x; // s8 GameManager *v5; // x0 __n128 v6; // q0 __n128 v7; // q1 cocos2d::CCPoint result; // 0:s0.4,4:s1.4 v3 = v1; x = a1->m_startPosition.x; v5 = GameManager::sharedState(); v7.n128_u32[0] = 1.0; if ( a1->m_flippedX ) v7.n128_f32[0] = -1.0; v6.n128_f32[0] = x + (float)((float)(-300.0 / v5->m_playLayer->m_gameState.m_cameraZoom) * v7.n128_f32[0]); v7.n128_u32[0] = LODWORD(a1->m_startPosition.y); sub_100022980(v6, v7, v3); return result; }