// // GJWorldNode::dotPositionForLevel from 0x1003c4ed0 to 0x1003c5332 (1122 bytes) // // 2 xrefs: // > GJWorldNode::addDotsToLevel @ 0x1003c4a0b // > GJWorldNode::addDotsToLevel @ 0x1003c4a9b // // 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::dotPositionForLevel(GJWorldNode *a1, int a2, int a3) { int v3; // ecx float v5; // xmm1_4 cocos2d::CCPoint result; // 0:xmm0_8.8 switch ( a3 ) { case 2002: switch ( v3 ) { case 0: result = (cocos2d::CCPoint)3273916416LL; goto LABEL_31; case 1: result = (cocos2d::CCPoint)3273129984LL; v5 = 4.0; goto LABEL_55; case 2: result = (cocos2d::CCPoint)3271950336LL; v5 = 6.0; goto LABEL_55; case 3: result = (cocos2d::CCPoint)3269328896LL; v5 = 6.0; goto LABEL_55; case 4: result = (cocos2d::CCPoint)3267362816LL; v5 = 3.0; goto LABEL_55; default: goto LABEL_18; } case 2003: switch ( v3 ) { case 0: result = (cocos2d::CCPoint)3263692800LL; v5 = 8.0; goto LABEL_55; case 1: result = (cocos2d::CCPoint)3262382080LL; v5 = 17.0; goto LABEL_55; case 2: result = (cocos2d::CCPoint)3259760640LL; v5 = 26.0; goto LABEL_55; case 3: result = (cocos2d::CCPoint)3255566336LL; v5 = 34.0; goto LABEL_55; case 4: result = (cocos2d::CCPoint)3248488448LL; v5 = 36.0; goto LABEL_55; default: goto LABEL_18; } case 2004: switch ( v3 ) { case 0: result = (cocos2d::CCPoint)1091567616LL; v5 = 32.0; goto LABEL_55; case 1: result = (cocos2d::CCPoint)1093664768LL; v5 = 21.0; goto LABEL_55; case 2: result = (cocos2d::CCPoint)1094713344LL; v5 = 13.0; goto LABEL_55; case 3: result = (cocos2d::CCPoint)1101004800LL; v5 = 5.0; goto LABEL_55; case 4: result = (cocos2d::CCPoint)1108869120LL; v5 = 3.0; goto LABEL_55; default: goto LABEL_18; } case 2005: switch ( v3 ) { case 0: result = (cocos2d::CCPoint)1117126656LL; v5 = 8.0; goto LABEL_55; case 1: result = (cocos2d::CCPoint)1118961664LL; v5 = 9.0; goto LABEL_55; case 2: result = (cocos2d::CCPoint)1121189888LL; v5 = 9.0; goto LABEL_55; case 3: result = (cocos2d::CCPoint)1123811328LL; v5 = 7.0; goto LABEL_55; case 4: result = (cocos2d::CCPoint)1125056512LL; v5 = 11.0; goto LABEL_55; default: goto LABEL_18; } case 2007: switch ( v3 ) { case 0: result = (cocos2d::CCPoint)3273392128LL; v5 = 14.0; goto LABEL_55; case 1: result = (cocos2d::CCPoint)3272146944LL; v5 = 14.0; goto LABEL_55; case 2: result = (cocos2d::CCPoint)3270508544LL; v5 = 18.0; goto LABEL_55; case 3: result = (cocos2d::CCPoint)3268280320LL; v5 = 17.0; goto LABEL_55; case 4: result = (cocos2d::CCPoint)3266445312LL; v5 = 11.0; goto LABEL_55; default: goto LABEL_18; } case 2008: switch ( v3 ) { case 0: result = (cocos2d::CCPoint)3262906368LL; v5 = 23.0; goto LABEL_55; case 1: result = (cocos2d::CCPoint)3261071360LL; v5 = 31.0; goto LABEL_55; case 2: result = (cocos2d::CCPoint)3257401344LL; v5 = 37.0; goto LABEL_55; case 3: result = (cocos2d::CCPoint)3253207040LL; v5 = 40.0; goto LABEL_55; default: goto LABEL_18; } case 2009: switch ( v3 ) { case 0: result = (cocos2d::CCPoint)1065353216LL; v5 = 33.0; goto LABEL_55; case 1: result = (cocos2d::CCPoint)3238002688LL; v5 = 24.0; goto LABEL_55; case 2: result = (cocos2d::CCPoint)3247964160LL; v5 = 18.0; goto LABEL_55; case 3: result = (cocos2d::CCPoint)3250061312LL; v5 = 9.0; goto LABEL_55; case 4: result = (cocos2d::CCPoint)3243245568LL; v5 = -3.0; goto LABEL_55; case 5: result = (cocos2d::CCPoint)1088421888LL; v5 = -7.0; goto LABEL_55; case 6: result = (cocos2d::CCPoint)1106771968LL; break; case 7: result = (cocos2d::CCPoint)1113063424LL; break; default: goto LABEL_18; } v5 = -10.0; LABEL_55: sub_10028CBE0((float *)a1, result.x, v5); break; case 2010: switch ( v3 ) { case 0: result = (cocos2d::CCPoint)1119748096LL; v5 = -4.0; goto LABEL_55; case 1: result = (cocos2d::CCPoint)1120927744LL; v5 = 3.0; goto LABEL_55; case 2: result = (cocos2d::CCPoint)1122238464LL; LABEL_31: v5 = 10.0; goto LABEL_55; case 3: result = (cocos2d::CCPoint)1123942400LL; v5 = 14.0; goto LABEL_55; case 4: result = (cocos2d::CCPoint)1125318656LL; v5 = 18.0; goto LABEL_55; default: goto LABEL_18; } default: LABEL_18: *(double *)&result = sub_10028CC60(a1, (double *)&dword_1009A1298); break; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source