//
// sub_1005139B0 from 0x1005139b0 to 0x100513a04 (84 bytes)
//
// 1 xrefs:
// > ThreadDescPopup::buildUI @ 0x1005133dc
//
// 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:07:04 +0000
//
__int64 __fastcall sub_1005139B0(__int64 a1, __int64 a2)
{
__int64 v4; // x21
__int64 v5; // x22
__int64 v6; // x0
__int64 result; // x0
v4 = *(_QWORD *)(a1 + 1136);
v5 = *(_QWORD *)(a1 + 1048);
v6 = EmoteSprite::maxEmotesComment();
result = EmotePickerPopup::toggle(v4, a1 + 1024, a2, v5, v6, 300);
*(_QWORD *)(a1 + 1136) = result;
return result;
}