//
// sub_1004D52E8 from 0x1004d52e8 to 0x1004d533c (84 bytes)
//
// 1 xrefs:
// > sub_1004D4894 @ 0x1004d4f14
//
// This function is hookable on this platform (idp: arm, 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:06:30 +0000
//
__int64 __fastcall sub_1004D52E8(__int64 a1, __int64 a2)
{
__int64 v4; // x21
__int64 v5; // x22
__int64 v6; // x0
__int64 result; // x0
v4 = *(_QWORD *)(a1 + 1088);
v5 = *(_QWORD *)(a1 + 1032);
v6 = EmoteSprite::maxEmotesComment(a1);
result = EmotePickerPopup::toggle(v4, a1 + 1016, a2, v5, v6, 140);
*(_QWORD *)(a1 + 1088) = result;
return result;
}