//
// GJWorldNode::dotPositionForLevel from 0x95fae8 to 0x95fff4 (1292 bytes)
//
// 2 xrefs:
// > GJWorldNode::addDotsToLevel @ 0x960100
// > ??> @ 0x96288
//
// 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::dotPositionForLevel(GJWorldNode *a1, int a2, int a3)
{
cocos2d::CCPoint *v3; // x8
float v6; // s0
float v7; // s0
float v8; // s0
float v9; // s0
float v10; // s0
float v11; // s0
float v12; // s0
float v13; // s0
float v14; // s0
cocos2d::CCPoint result; // 0:s0.4,4:s1.4
switch ( a2 )
{
case 2002:
switch ( a3 )
{
case 0:
v14 = -164.0;
goto LABEL_49;
case 1:
cocos2d::CCPoint::CCPoint(v3, -152.0, 4.0);
return result;
case 2:
v13 = -134.0;
goto LABEL_45;
case 3:
v13 = -111.0;
LABEL_45:
cocos2d::CCPoint::CCPoint(v3, v13, 6.0);
break;
case 4:
v12 = -96.0;
goto LABEL_38;
default:
goto LABEL_2;
}
break;
case 2003:
switch ( a3 )
{
case 0:
v11 = -68.0;
goto LABEL_31;
case 1:
v6 = -61.0;
goto LABEL_18;
case 2:
cocos2d::CCPoint::CCPoint(v3, -51.0, 26.0);
break;
case 3:
cocos2d::CCPoint::CCPoint(v3, -35.0, 34.0);
break;
case 4:
cocos2d::CCPoint::CCPoint(v3, -20.0, 36.0);
break;
default:
goto LABEL_2;
}
break;
case 2004:
switch ( a3 )
{
case 0:
cocos2d::CCPoint::CCPoint(v3, 9.0, 32.0);
break;
case 1:
cocos2d::CCPoint::CCPoint(v3, 11.0, 21.0);
break;
case 2:
cocos2d::CCPoint::CCPoint(v3, 12.0, 13.0);
break;
case 3:
cocos2d::CCPoint::CCPoint(v3, 20.0, 5.0);
break;
case 4:
v12 = 38.0;
goto LABEL_38;
default:
goto LABEL_2;
}
break;
case 2005:
switch ( a3 )
{
case 0:
v11 = 75.0;
LABEL_31:
cocos2d::CCPoint::CCPoint(v3, v11, 8.0);
return result;
case 1:
v10 = 89.0;
goto LABEL_28;
case 2:
v10 = 106.0;
LABEL_28:
cocos2d::CCPoint::CCPoint(v3, v10, 9.0);
break;
case 3:
cocos2d::CCPoint::CCPoint(v3, 126.0, 7.0);
break;
case 4:
v9 = 143.0;
goto LABEL_25;
default:
goto LABEL_2;
}
break;
case 2007:
switch ( a3 )
{
case 0:
v8 = -156.0;
goto LABEL_22;
case 1:
v8 = -137.0;
goto LABEL_22;
case 2:
v7 = -120.0;
goto LABEL_20;
case 3:
v6 = -103.0;
LABEL_18:
cocos2d::CCPoint::CCPoint(v3, v6, 17.0);
break;
case 4:
v9 = -89.0;
LABEL_25:
cocos2d::CCPoint::CCPoint(v3, v9, 11.0);
break;
default:
goto LABEL_2;
}
break;
case 2008:
switch ( a3 )
{
case 0:
cocos2d::CCPoint::CCPoint(v3, -63.0, 23.0);
break;
case 1:
cocos2d::CCPoint::CCPoint(v3, -56.0, 31.0);
break;
case 2:
cocos2d::CCPoint::CCPoint(v3, -42.0, 37.0);
break;
case 3:
cocos2d::CCPoint::CCPoint(v3, -29.0, 40.0);
break;
default:
goto LABEL_2;
}
break;
case 2009:
switch ( a3 )
{
case 0:
cocos2d::CCPoint::CCPoint(v3, 1.0, 33.0);
break;
case 1:
cocos2d::CCPoint::CCPoint(v3, -8.0, 24.0);
break;
case 2:
cocos2d::CCPoint::CCPoint(v3, -19.0, 18.0);
break;
case 3:
cocos2d::CCPoint::CCPoint(v3, -23.0, 9.0);
break;
case 4:
cocos2d::CCPoint::CCPoint(v3, -13.0, -3.0);
break;
case 5:
cocos2d::CCPoint::CCPoint(v3, 7.0, -7.0);
break;
case 6:
cocos2d::CCPoint::CCPoint(v3, 31.0, -10.0);
break;
case 7:
cocos2d::CCPoint::CCPoint(v3, 54.0, -10.0);
break;
default:
goto LABEL_2;
}
break;
case 2010:
switch ( a3 )
{
case 0:
cocos2d::CCPoint::CCPoint(v3, 95.0, -4.0);
break;
case 1:
v12 = 104.0;
LABEL_38:
cocos2d::CCPoint::CCPoint(v3, v12, 3.0);
break;
case 2:
v14 = 114.0;
LABEL_49:
cocos2d::CCPoint::CCPoint(v3, v14, 10.0);
break;
case 3:
v8 = 127.0;
LABEL_22:
cocos2d::CCPoint::CCPoint(v3, v8, 14.0);
break;
case 4:
v7 = 147.0;
LABEL_20:
cocos2d::CCPoint::CCPoint(v3, v7, 18.0);
break;
default:
goto LABEL_2;
}
break;
default:
LABEL_2:
cocos2d::CCPoint::CCPoint(v3, (const cocos2d::CCPoint *)&dword_1243878);
break;
}
return result;
}