//
// sub_100946B90 from 0x100946b90 to 0x100946c02 (114 bytes)
//
// 1 xrefs:
// > NewThreadPopup::init @ 0x10094563c
//
// 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:38:33 +0000
//
_QWORD *__fastcall sub_100946B90(__int64 a1, __int64 *a2)
{
__int64 v2; // r12
__int64 v3; // r15
unsigned int v4; // eax
unsigned int v5; // r9d
_QWORD *result; // rax
v2 = *(_QWORD *)(a1 + 752);
v3 = *(_QWORD *)(a1 + 888);
if ( *(_BYTE *)(a1 + 737) == 1 )
v4 = EmoteSprite::maxEmotesMessage();
else
v4 = EmoteSprite::maxEmotesComment();
v5 = 300;
if ( *(_BYTE *)(a1 + 737) )
v5 = 500;
result = EmotePickerPopup::toggle(v2, a1 + 688, a2, v3, v4, v5);
*(_QWORD *)(a1 + 752) = result;
return result;
}