//
// GJBaseGameLayer::getTargetFlyCameraY from 0x46f038 to 0x46f09a (98 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::animateInDualGroundNew @ 0x487bfe
//
// 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
//
float GJBaseGameLayer::getTargetFlyCameraY(GJBaseGameLayer *a1, GameObject *a2)
{
StartPosObject *m_lastActivatedPortal2; // r1
_DWORD v5[2]; // [sp+4h] [bp-Ch] BYREF
v5[0] = a2;
if ( a1->m_gameState.m_isDualMode )
{
m_lastActivatedPortal2 = (StartPosObject *)a1->m_gameState.m_lastActivatedPortal2;
if ( !m_lastActivatedPortal2 )
{
m_lastActivatedPortal2 = a1->m_startPosObject;
if ( !m_lastActivatedPortal2 )
{
if ( !a2 )
return 0.0;
goto LABEL_6;
}
}
goto LABEL_8;
}
if ( a2 )
{
LABEL_6:
a2->getStartPos((cocos2d::CCPoint *)v5, a2);
return *(float *)&v5[1];
}
m_lastActivatedPortal2 = a1->m_startPosObject;
if ( m_lastActivatedPortal2 )
{
LABEL_8:
((void (__fastcall *)(_DWORD *))m_lastActivatedPortal2->getStartPos)(v5);
return *(float *)&v5[1];
}
return 0.0;
}