//
// EditorBuildStats::noteAction from 0x100587dc0 to 0x100587e22 (98 bytes)
//
// 25 xrefs:
// > EditorUI::onDeleteSelected @ 0x1000082a3
// > EditorUI::onDeleteSelected @ 0x100008419
// > EditorUI::editObject @ 0x100009428
// > EditorUI::editGroup @ 0x10000a862
// > EditorUI::onDelete @ 0x10000cc9c
// > EditorUI::onDeleteAll @ 0x10000ff7e
// > EditorUI::onDeleteSelectedType @ 0x100010007
// > EditorUI::onDeleteStartPos @ 0x100010081
// > EditorUI::FLAlert_Clicked @ 0x100010232
// > EditorUI::onCreateObject @ 0x100011116
// > EditorUI::onCreateObject @ 0x1000113d1
// > EditorUI::createSmartObjectsFromTemplate @ 0x100013c80
// > EditorUI::createPrefab @ 0x1000147ce
// > EditorUI::editObjectSpecial @ 0x100018e16
// > EditorUI::editObjectOptions @ 0x100019da7
// > LevelEditorLayer::handleAction @ 0x1000b28cd
// > LevelEditorLayer::redoLastAction @ 0x1000b2fc0
// > LevelEditorLayer::undoLastAction @ 0x1000b3010
// > LevelEditorLayer::onPlaytest @ 0x1000c5a1f
// > SetupSmartBlockLayer::onPasteTemplate @ 0x1004e189a
// > EditorUI::onDuplicate @ 0x1005b5f0d
// > EditorUI::doPasteObjects @ 0x1005b7ffd
// > EditorUI::doPasteInPlace @ 0x1005b8273
// > EditorUI::moveObjectCall_1 @ 0x10060e473
// > EditorUI::transformObjectCall_1 @ 0x10060ed01
//
// 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:32:22 +0000
//
__int64 __fastcall EditorBuildStats::noteAction(__int64 a1)
{
__int64 result; // rax
int v2; // ecx
unsigned int v3; // edx
__int64 v4; // rcx
result = *(unsigned int *)(a1 + 32);
v2 = *(_DWORD *)(a1 + 96);
if ( v2 >= 0 )
{
v3 = result - v2;
if ( (int)result - v2 < 2 )
{
v4 = 0;
}
else
{
v4 = 1;
if ( v3 >= 4 )
{
v4 = 2;
if ( v3 >= 8 )
{
v4 = 3;
if ( v3 >= 0x10 )
{
v4 = 4;
if ( v3 >= 0x20 )
{
v4 = 5;
if ( v3 >= 0x40 )
v4 = (v3 > 0x7F) | 6LL;
}
}
}
}
}
++*(_DWORD *)(a1 + 4 * v4 + 64);
}
*(_DWORD *)(a1 + 96) = result;
return result;
}