//
// EmotePickerPopup::onClose from 0x140124b10 to 0x140124b7c (108 bytes)
//
// 2 xrefs:
// > ??> @ 0x140732c58
// > ??> @ 0x140916934
//
// 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
//
__int64 __fastcall EmotePickerPopup::onClose(__int64 a1, __int64 a2)
{
__int64 v4; // rcx
__int64 v5; // rax
void (__fastcall ***v6)(_QWORD, __int64); // rcx
v4 = *(_QWORD *)(a1 + 1152);
if ( v4 )
{
v5 = a1 + 544;
if ( !a1 )
v5 = 0;
if ( *(_QWORD *)(v4 + 512) == v5 )
*(_QWORD *)(v4 + 512) = 0;
}
v6 = *(void (__fastcall ****)(_QWORD, __int64))(a1 + 1168);
if ( v6 )
{
*(_QWORD *)(a1 + 1168) = 0;
(**v6)(v6, a1);
}
return EditorWindowPopup::onClose(a1, a2);
}