// // EditorUI::showGridSizeAlert from 0x10000e340 to 0x10000e4bf (383 bytes) // // 1 xrefs: // > EditorUI::handleEditorAction @ 0x10060cd53 // // 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:50 +0000 // __int64 __fastcall EditorUI::showGridSizeAlert(__int64 a1) { __m128 v1; // xmm0 size_t v2; // rax size_t v3; // r14 char *v4; // r15 size_t v5; // r12 _QWORD __dst[2]; // [rsp+8h] [rbp-68h] BYREF void *__p; // [rsp+18h] [rbp-58h] char __s[40]; // [rsp+20h] [rbp-50h] BYREF if ( *(_BYTE *)(a1 + 656) == 1 && (v1 = (__m128)*(unsigned int *)(a1 + 652), v1.f32[0] > 0.0) ) { if ( v1.f32[0] == _mm_cvtepi32_ps(_mm_cvttps_epi32(v1)).f32[0] ) { sprintf(__s, "Gridsize: %d", (int)v1.f32[0]); v2 = strlen(__s); if ( v2 >= 0xFFFFFFFFFFFFFFF8LL ) LABEL_18: sub_100003630(); } else { sprintf(__s, "Gridsize: %.1f", v1.f32[0]); v2 = strlen(__s); if ( v2 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_18; } } else { strcpy(__s, "Gridsize: Off"); v2 = strlen(__s); if ( v2 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_18; } v3 = v2; if ( v2 >= 0x17 ) { v5 = 26; if ( (v2 | 7) != 0x17 ) v5 = (v2 | 7) + 1; v4 = (char *)operator new(v5); __p = v4; __dst[0] = v5 + 1; __dst[1] = v3; goto LABEL_13; } LOBYTE(__dst[0]) = 2 * v2; v4 = (char *)__dst + 1; if ( v2 ) LABEL_13: memcpy(v4, __s, v3); v4[v3] = 0; EditorUI::showTextAlert(a1, __dst, 0, 1, 0); if ( (__dst[0] & 1) != 0 ) operator delete(__p); return __stack_chk_guard; }