//
// GJWorldNode::positionForLevelButton from 0x1003c46e0 to 0x1003c47d6 (246 bytes)
//
// 1 xrefs:
// > GJWorldNode::init @ 0x1003c415e
//
// 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 __fastcall GJWorldNode::positionForLevelButton(GJWorldNode *a1, int a2)
{
int v2; // edx
float v4; // xmm1_4
cocos2d::CCPoint result; // 0:xmm0_8.8
switch ( v2 )
{
case 2001:
result = (cocos2d::CCPoint)3275227136LL;
v4 = 18.0;
goto LABEL_14;
case 2002:
result = (cocos2d::CCPoint)3264610304LL;
v4 = 0.0;
goto LABEL_14;
case 2003:
result = (cocos2d::CCPoint)3221225472LL;
v4 = 40.0;
goto LABEL_14;
case 2004:
result = (cocos2d::CCPoint)1114112000LL;
v4 = 4.0;
goto LABEL_14;
case 2005:
result = (cocos2d::CCPoint)1126170624LL;
goto LABEL_10;
case 2006:
result = (cocos2d::CCPoint)3274637312LL;
LABEL_10:
v4 = 19.0;
goto LABEL_14;
case 2007:
result = (cocos2d::CCPoint)3263954944LL;
v4 = 2.0;
goto LABEL_14;
case 2008:
result = (cocos2d::CCPoint)3240099840LL;
v4 = 46.0;
goto LABEL_14;
case 2009:
result = (cocos2d::CCPoint)1117519872LL;
v4 = -9.0;
goto LABEL_14;
case 2010:
result = (cocos2d::CCPoint)1126694912LL;
v4 = 20.0;
LABEL_14:
sub_10028CBE0((float *)a1, result.x, v4);
break;
default:
*(double *)&result = sub_10028CC60(a1, (double *)&dword_1009A1298);
break;
}
return result;
}