// // EditorUI::getGridSnappedPos from 0x100011b10 to 0x100011bc0 (176 bytes) // // 5 xrefs: // > SetupSmartBlockLayer::onPasteTemplate @ 0x1004e197e // > EditorUI::doPasteObjects @ 0x1005b8096 // > EditorUI::swipeToPosition @ 0x100609c03 // > EditorUI::ccTouchEnded @ 0x10060ac14 // > EditorUI::applySpecialOffset @ 0x100611a7c // // 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 12:18:52 +0000 // __int64 __fastcall EditorUI::getGridSnappedPos( __int64 a1, __int64 a2, unsigned int *a3, double a4, double a5, __m128 a6) { float v7; // xmm0_4 __m128 v8; // xmm1 __m128 v9; // xmm3 _BYTE v11[8]; // [rsp+Ch] [rbp-24h] BYREF float v12; // [rsp+14h] [rbp-1Ch] v12 = *(float *)(*(_QWORD *)(*(_QWORD *)(a2 + 1440) + 14288LL) + 604LL); v7 = fmodf(90.0, v12); v8 = (__m128)*a3; v9 = (__m128)a3[1]; v8.f32[0] = v8.f32[0] / v12; v9.f32[0] = (float)(v9.f32[0] - v7) / v12; sub_100278250( v11, (float)(_mm_round_ss(a6, v8, 9).f32[0] + 0.5) * v12, (float)((float)(_mm_round_ss((__m128)0LL, v9, 9).f32[0] + 0.5) * v12) + v7); EditorUI::getLimitedPosition(a1, a2, v11); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source