//
// GJWorldNode::dotPositionForLevel from 0xaa6578 to 0xaa6a84 (1292 bytes)
//
// 2 xrefs:
// > GJWorldNode::addDotsToLevel @ 0xaa6b90
// > ??> @ 0xc6598
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:00:51 +0000
//
cocos2d::CCPoint *__usercall GJWorldNode::dotPositionForLevel@(int a1@, int a2@, cocos2d::CCPoint *a3@)
{
cocos2d::CCPoint *v4; // 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
switch ( a1 )
{
case 2002:
switch ( a2 )
{
case 0:
v14 = -164.0;
goto LABEL_49;
case 1:
cocos2d::CCPoint::CCPoint(a3, -152.0, 4.0);
return a3;
case 2:
v13 = -134.0;
goto LABEL_45;
case 3:
v13 = -111.0;
LABEL_45:
cocos2d::CCPoint::CCPoint(a3, v13, 6.0);
v4 = a3;
break;
case 4:
v12 = -96.0;
goto LABEL_38;
default:
goto LABEL_2;
}
break;
case 2003:
switch ( a2 )
{
case 0:
v11 = -68.0;
goto LABEL_31;
case 1:
v6 = -61.0;
goto LABEL_18;
case 2:
cocos2d::CCPoint::CCPoint(a3, -51.0, 26.0);
v4 = a3;
break;
case 3:
cocos2d::CCPoint::CCPoint(a3, -35.0, 34.0);
v4 = a3;
break;
case 4:
cocos2d::CCPoint::CCPoint(a3, -20.0, 36.0);
v4 = a3;
break;
default:
goto LABEL_2;
}
break;
case 2004:
switch ( a2 )
{
case 0:
cocos2d::CCPoint::CCPoint(a3, 9.0, 32.0);
v4 = a3;
break;
case 1:
cocos2d::CCPoint::CCPoint(a3, 11.0, 21.0);
v4 = a3;
break;
case 2:
cocos2d::CCPoint::CCPoint(a3, 12.0, 13.0);
v4 = a3;
break;
case 3:
cocos2d::CCPoint::CCPoint(a3, 20.0, 5.0);
v4 = a3;
break;
case 4:
v12 = 38.0;
goto LABEL_38;
default:
goto LABEL_2;
}
break;
case 2005:
switch ( a2 )
{
case 0:
v11 = 75.0;
LABEL_31:
cocos2d::CCPoint::CCPoint(a3, v11, 8.0);
return a3;
case 1:
v10 = 89.0;
goto LABEL_28;
case 2:
v10 = 106.0;
LABEL_28:
cocos2d::CCPoint::CCPoint(a3, v10, 9.0);
v4 = a3;
break;
case 3:
cocos2d::CCPoint::CCPoint(a3, 126.0, 7.0);
v4 = a3;
break;
case 4:
v9 = 143.0;
goto LABEL_25;
default:
goto LABEL_2;
}
break;
case 2007:
switch ( a2 )
{
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(a3, v6, 17.0);
v4 = a3;
break;
case 4:
v9 = -89.0;
LABEL_25:
cocos2d::CCPoint::CCPoint(a3, v9, 11.0);
v4 = a3;
break;
default:
goto LABEL_2;
}
break;
case 2008:
switch ( a2 )
{
case 0:
cocos2d::CCPoint::CCPoint(a3, -63.0, 23.0);
v4 = a3;
break;
case 1:
cocos2d::CCPoint::CCPoint(a3, -56.0, 31.0);
v4 = a3;
break;
case 2:
cocos2d::CCPoint::CCPoint(a3, -42.0, 37.0);
v4 = a3;
break;
case 3:
cocos2d::CCPoint::CCPoint(a3, -29.0, 40.0);
v4 = a3;
break;
default:
goto LABEL_2;
}
break;
case 2009:
switch ( a2 )
{
case 0:
cocos2d::CCPoint::CCPoint(a3, 1.0, 33.0);
v4 = a3;
break;
case 1:
cocos2d::CCPoint::CCPoint(a3, -8.0, 24.0);
v4 = a3;
break;
case 2:
cocos2d::CCPoint::CCPoint(a3, -19.0, 18.0);
v4 = a3;
break;
case 3:
cocos2d::CCPoint::CCPoint(a3, -23.0, 9.0);
v4 = a3;
break;
case 4:
cocos2d::CCPoint::CCPoint(a3, -13.0, -3.0);
v4 = a3;
break;
case 5:
cocos2d::CCPoint::CCPoint(a3, 7.0, -7.0);
v4 = a3;
break;
case 6:
cocos2d::CCPoint::CCPoint(a3, 31.0, -10.0);
v4 = a3;
break;
case 7:
cocos2d::CCPoint::CCPoint(a3, 54.0, -10.0);
v4 = a3;
break;
default:
goto LABEL_2;
}
break;
case 2010:
switch ( a2 )
{
case 0:
cocos2d::CCPoint::CCPoint(a3, 95.0, -4.0);
v4 = a3;
break;
case 1:
v12 = 104.0;
LABEL_38:
cocos2d::CCPoint::CCPoint(a3, v12, 3.0);
v4 = a3;
break;
case 2:
v14 = 114.0;
LABEL_49:
cocos2d::CCPoint::CCPoint(a3, v14, 10.0);
v4 = a3;
break;
case 3:
v8 = 127.0;
LABEL_22:
cocos2d::CCPoint::CCPoint(a3, v8, 14.0);
v4 = a3;
break;
case 4:
v7 = 147.0;
LABEL_20:
cocos2d::CCPoint::CCPoint(a3, v7, 18.0);
v4 = a3;
break;
default:
goto LABEL_2;
}
break;
default:
LABEL_2:
cocos2d::CCPoint::CCPoint(a3, (const cocos2d::CCPoint *)&dword_155DC18);
v4 = a3;
break;
}
return v4;
}