//
// cocos2d::CCTMXLayer::vertexZForPos from 0x5f7730 to 0x5f778a (90 bytes)
//
// 2 xrefs:
// > cocos2d::CCTMXLayer::setupTileSprite @ 0x5f77ca
// > cocos2d::CCTMXLayer::tileAt @ 0x5f7e9c
//
// 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
//
int cocos2d::CCTMXLayer::vertexZForPos(cocos2d::CCTMXLayer *a1, const cocos2d::CCPoint *a2)
{
cocos2d::CCObjectType m_eObjType; // r3
float v3; // s15
if ( !LOBYTE(a1[1].m_fRotationX) )
return a1[1].m_unknown5;
m_eObjType = a1[1].m_eObjType;
if ( !m_eObjType )
{
v3 = *(float *)&a1[1].m_uID - a2->y;
return (int)(float)-v3;
}
if ( m_eObjType == 2 )
{
v3 = (float)(unsigned int)(float)(*(float *)&a1[1].cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ *(float *)&a1[1].m_uID)
- (float)(a2->x + a2->y);
return (int)(float)-v3;
}
return 0;
}