//
// cocos2d::CCTMXLayer::vertexZForPos from 0x10025ab80 to 0x10025abf9 (121 bytes)
//
// 0 xrefs:
//
// 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 __fastcall cocos2d::CCTMXLayer::vertexZForPos(cocos2d::CCTMXLayer *a1, const cocos2d::CCPoint *a2)
{
int m_uIndexInArray; // ecx
int result; // eax
if ( LOBYTE(a1[1].m_fSkewY) != 1 )
return LODWORD(a1[1].m_fSkewX);
m_uIndexInArray = a1[1].m_uIndexInArray;
if ( !m_uIndexInArray )
return (int)(float)-(float)(*(float *)&a1[1].cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
- a2->y);
result = 0;
if ( m_uIndexInArray == 2 )
return (int)(float)-(float)((float)(int)(float)(*(float *)(&a1->m_bManualSortAllChildrenDirty + 3)
+ *(float *)&a1[1].cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable)
- (float)(a2->x + a2->y));
return result;
}