//
// cocos2d::CCTMXLayer::positionAt from 0x5f7674 to 0x5f7728 (180 bytes)
//
// 4 xrefs:
// > cocos2d::CCTMXLayer::setupTileSprite @ 0x5f77b6
// > cocos2d::CCTMXLayer::setupTileSprite @ 0x5f785e
// > cocos2d::CCTMXLayer::setupTileSprite @ 0x5f787e
// > cocos2d::CCTMXLayer::tileAt @ 0x5f7e8a
//
// 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 *cocos2d::CCTMXLayer::positionAt(
cocos2d::CCPoint *__return_ptr retstr,
cocos2d::CCTMXLayer *a2,
const cocos2d::CCPoint *a3)
{
cocos2d::CCObjectType m_eObjType; // r3
int v7; // r2
bool v8; // r3
float x; // s17
cocos2d::CCDirector *v10; // r0
float v11; // r0
float y; // s16
float v13; // s17
cocos2d::CCDirector *v14; // r0
float v15; // r0
int v16; // r2
bool v17; // r3
cocos2d::CCPoint v19; // [sp+4h] [bp-Ch] BYREF
cocos2d::CCPoint::CCPoint(retstr, &stru_ACAB2C);
m_eObjType = a2[1].m_eObjType;
switch ( m_eObjType )
{
case 1:
cocos2d::CCTMXLayer::positionForHexAt(&v19, a2, a3);
goto LABEL_7;
case 0:
cocos2d::CCTMXLayer::positionForOrthoAt(&v19, a2, a3);
LABEL_7:
cocos2d::CCPoint::operator=(retstr, &v19.x, v7, v8);
break;
case 2:
cocos2d::CCTMXLayer::positionForIsoAt(&v19, a2, a3);
goto LABEL_7;
}
x = retstr->x;
v10 = cocos2d::CCDirector::sharedDirector();
v11 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v10));
y = retstr->y;
v13 = x / v11;
v14 = cocos2d::CCDirector::sharedDirector();
v15 = COERCE_FLOAT(cocos2d::CCDirector::getContentScaleFactor(v14));
cocos2d::CCPoint::CCPoint(&v19, v13, y / v15);
cocos2d::CCPoint::operator=(retstr, &v19.x, v16, v17);
return retstr;
}