//
// cocos2d::CCTMXLayer::positionForHexAt from 0xb38f9c to 0xb39024 (136 bytes)
//
// 2 xrefs:
// > cocos2d::CCTMXLayer::positionAt @ 0xb3913c
// > ??> @ 0xb8f98
//
// 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::positionForHexAt(cocos2d::CCTMXLayer *a1, const cocos2d::CCPoint *a2)
{
cocos2d::CCPoint *v2; // x8
float v3; // s1
float v4; // s3
cocos2d::CCPoint result; // 0:s0.4,4:s1.4
v3 = *(float *)&a1[1].m_uID;
v4 = 0.0;
if ( (int)a2->x % 2 == 1 )
v4 = v3 * -0.5;
cocos2d::CCPoint::CCPoint(
v2,
(float)((float)(a2->x
* *((float *)&a1[1].cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ 1))
* 3.0)
* 0.25,
v4
+ (float)((float)((float)(*(float *)&a1[1].cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
- a2->y)
- 1.0)
* v3));
return result;
}