// // EditorUI::getLimitedPosition from 0x140202550 to 0x1402025de (142 bytes) // // 2 xrefs: // > EditorUI::getGridSnappedPos @ 0x1401bf9b4 // > @ 0x14091aedc // // 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:28:13 +0000 // cocos2d::CCPoint *__fastcall EditorUI::getLimitedPosition(__int64 a1, cocos2d::CCPoint *a2, float *a3) { __int64 v3; // rax float v5; // xmm2_4 float v6; // xmm1_4 __int64 v7; // rcx int v8; // eax v3 = *(_QWORD *)(a1 + 1512); v5 = fmaxf(-3000.0, a3[1]); v6 = fmaxf(-3000.0, *a3); a3[1] = v5; *a3 = fminf(240000.0, v6); v7 = *(_QWORD *)(v3 + 3528); v8 = 80; if ( *(_BYTE *)(v7 + 461) ) v8 = 1000; a3[1] = fminf((float)((float)v8 * 30.0) + 90.0, v5); cocos2d::CCPoint::CCPoint(a2, (const struct cocos2d::CCPoint *)a3); return a2; }