// // EditorUI::getLimitedPosition from 0x1003f6204 to 0x1003f6270 (108 bytes) // // 2 xrefs: // > EditorUI::getGridSnappedPos @ 0x1003eba40 // > EditorUI::moveObject @ 0x1003eefb4 // // 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 EditorUI::getLimitedPosition(EditorUI *a1, cocos2d::CCPoint a2) { float32x2_t *v2; // x1 __int64 *v3; // x8 float v4; // s0 float32x2_t v5; // d1 float32x2_t v6; // d0 cocos2d::CCPoint result; // 0:s0.4,4:s1.4 v4 = 80.0; if ( a1->m_editorLayer->m_levelSettings->m_dynamicLevelHeight ) v4 = 1000.0; v5.f32[0] = vld1_dup_f32((const float *)&dword_1006455C4).f32[0]; v5.f32[1] = (float)(v4 * 30.0) + 90.0; v6 = vmaxnm_f32(*v2, (float32x2_t)vdup_n_s32(0xC53B8000)); *v2 = (float32x2_t)vbsl_s8((int8x8_t)vcgt_f32(v5, v6), (int8x8_t)v6, (int8x8_t)v5); result.x = sub_1000229B8(v3, (__int64 *)v2); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source