// // GJSmartTemplate::offsetForDir from 0x1403b9a30 to 0x1403b9b24 (244 bytes) // // 3 xrefs: // > EditorUI::getSmartNeighbor @ 0x1401b802b // > EditorUI::getNeighbor @ 0x1401b814b // > @ 0x140923d74 // // This function is hookable on this platform (idp: pc, 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 11:31:26 +0000 // cocos2d::CCPoint *__fastcall GJSmartTemplate::offsetForDir(cocos2d::CCPoint *a1, int a2, unsigned int a3) { float v3; // xmm0_4 float v5; // xmm6_4 __int64 v8; // rcx float v9; // xmm2_4 float v10; // xmm1_4 v5 = 30.0; ObjectToolbox::sharedState(); ObjectToolbox::gridNodeSizeForKey(v8, a3); if ( v3 == 15.0 ) v5 = 15.0; switch ( a2 ) { case 1: v9 = v5; goto LABEL_13; case 2: v9 = -v5; goto LABEL_13; case 3: v5 = -v5; goto LABEL_7; case 4: LABEL_7: v9 = 0.0; v10 = v5; break; case 5: v9 = v5; v10 = -v5; break; case 6: goto LABEL_10; case 7: v5 = -v5; LABEL_10: v9 = v5; v10 = v5; break; case 8: v10 = v5; v9 = -v5; break; default: v9 = 0.0; LABEL_13: v10 = 0.0; break; } cocos2d::CCPoint::CCPoint(a1, v10, v9); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source