//
// EditLevelLayer::onEmotes from 0x1001de420 to 0x1001de48c (108 bytes)
//
// 1 xrefs:
// > EditLevelLayer::init @ 0x1001dd7d9
//
// 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:26:27 +0000
//
__int64 __fastcall EditLevelLayer::onEmotes(_QWORD *a1)
{
__int64 v1; // r14
__int64 v2; // r15
__int64 v3; // r12
unsigned int v4; // eax
__int64 result; // rax
v1 = (*(__int64 (__fastcall **)(_QWORD *, __int64))(*a1 + 480LL))(a1, 2);
v2 = a1[68];
v3 = a1[69];
v4 = EmoteSprite::maxEmotesComment();
result = EmotePickerPopup::toggle(v3, a1 + 57, v2, v1, v4, 180);
a1[69] = result;
return result;
}