//
// GJWorldNode::positionForLevelButton from 0x95f964 to 0x95fac0 (348 bytes)
//
// 2 xrefs:
// > GJWorldNode::init @ 0x9604d4
// > ??> @ 0x93888
//
// 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 GJWorldNode::positionForLevelButton(GJWorldNode *a1, int a2)
{
cocos2d::CCPoint *v2; // x8
float v5; // s0
cocos2d::CCPoint result; // 0:s0.4,4:s1.4
switch ( a2 )
{
case 2001:
cocos2d::CCPoint::CCPoint(v2, -184.0, 18.0);
break;
case 2002:
cocos2d::CCPoint::CCPoint(v2, -75.0, 0.0);
break;
case 2003:
cocos2d::CCPoint::CCPoint(v2, -2.0, 40.0);
break;
case 2004:
cocos2d::CCPoint::CCPoint(v2, 58.0, 4.0);
break;
case 2005:
v5 = 160.0;
goto LABEL_12;
case 2006:
v5 = -175.0;
LABEL_12:
cocos2d::CCPoint::CCPoint(v2, v5, 19.0);
break;
case 2007:
cocos2d::CCPoint::CCPoint(v2, -70.0, 2.0);
break;
case 2008:
cocos2d::CCPoint::CCPoint(v2, -10.0, 46.0);
break;
case 2009:
cocos2d::CCPoint::CCPoint(v2, 78.0, -9.0);
break;
case 2010:
cocos2d::CCPoint::CCPoint(v2, 168.0, 20.0);
break;
default:
cocos2d::CCPoint::CCPoint(v2, (const cocos2d::CCPoint *)&dword_1243878);
break;
}
return result;
}