//
// EmotePickerPopup::dEmotePickerPopup from 0x1401236e0 to 0x140123787 (167 bytes)
//
// 3 xrefs:
// > sub_140124B7C @ 0x140124b83
// > ??> @ 0x140732810
// > ??> @ 0x1409167fc
//
// 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 11:26:57 +0000
//
_QWORD *__fastcall EmotePickerPopup::dEmotePickerPopup(_QWORD *Block, char a2)
{
_QWORD *v4; // rcx
v4 = (_QWORD *)Block[150];
if ( v4 )
{
if ( ((Block[152] - (_QWORD)v4) & 0xFFFFFFFFFFFFFFF8uLL) >= 0x1000 )
{
if ( (unsigned __int64)v4 - *(v4 - 1) - 8 > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
v4 = (_QWORD *)*(v4 - 1);
}
j_j_free(v4);
Block[150] = 0;
Block[151] = 0;
Block[152] = 0;
}
SetupTriggerPopup::dSetupTriggerPopup(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}