// // EditorUI::onDeleteStartPos from 0x1401b0f30 to 0x1401b0fc6 (150 bytes) // // 2 xrefs: // > EditorUI::setupDeleteMenu @ 0x1401f459b // > @ 0x140919f10 // // 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:27:55 +0000 // __int64 __fastcall EditorUI::onDeleteStartPos(__int64 a1) { __int64 v2; // rcx int v3; // ebx __int64 v4; // rdx int v5; // ecx __int64 result; // rax int v7; // eax int v8; // ecx EditorUI::deselectAll(); v2 = *(_QWORD *)(a1 + 1512); v3 = *(_DWORD *)(v2 + 14928) - *(_DWORD *)(v2 + 14932); LevelEditorLayer::removeAllObjectsOfType(v2, 31); *(_DWORD *)(*(_QWORD *)(a1 + 1512) + 15416LL) += v3 + *(_DWORD *)(*(_QWORD *)(a1 + 1512) + 14932LL) - *(_DWORD *)(*(_QWORD *)(a1 + 1512) + 14928LL); v4 = *(_QWORD *)(a1 + 1512) + 15408LL; v5 = *(_DWORD *)(*(_QWORD *)(a1 + 1512) + 15504LL); result = *(unsigned int *)(*(_QWORD *)(a1 + 1512) + 15440LL); if ( v5 >= 0 ) { v7 = result - v5; v8 = 0; if ( v7 > 1 ) { do { if ( v8 >= 7 ) break; v7 = (unsigned int)v7 >> 1; ++v8; } while ( (unsigned int)v7 > 1 ); } ++*(_DWORD *)(v4 + 4LL * v8 + 64); result = *(unsigned int *)(v4 + 32); } *(_DWORD *)(v4 + 96) = result; return result; }